/*
	File:	Behaviors for Preschool Electronics
	Author:	Eric Shepherd
	Date:	July 2006
	Site:	Preschool Electronics
*/


EventHelper.AddEvent(window, 'load', init, false);

// instantiate ProductHelper
var p = new ProductHelper();

function init() {
	p.init();
	p.awardInit();
}
ProductHelper.prototype.awardInit = function() {
	var awards = DomHelper.GetElementsByClassName("award", "dd");
	if (awards) var award = awards[0];
	if (award) {
		var theLink = award.getElementsByTagName('a')[0];
		var thisRef = this;
		EventHelper.AddEvent(theLink, 'click', ptr = function(e) {DomHelper.NewWin(this, e, 'popup', this.href, 'award', 364, 180); }, false);
	}
}


