// JavaScript Document



/*apply hover effect to images within lists (ie only)*/
ieEffects = function() {
		var thumbs = document.getElementById("hhBase").getElementsByTagName("img");
		for (var i=0; i<thumbs.length; i++) {
		if (thumbs[i].className == 'thumbs') {
					thumbs[i].onmouseover=function() {
						//alert ('message');
						this.setAttribute("className","thumbsHover");
					}
					thumbs[i].onmouseout=function() {
						this.setAttribute("className","thumbs");
					}
		}
		}
}

viewAsset = function(guid) {
	var page = 'http://player.discoveryeducation.com/views/hhView.cfm?guidAssetId='+guid;
	var windowprops = "width=846,height=430,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes";
	window.open(page, "", windowprops);
}


	
//	currently not using this funciont (producing wicked ie behavior)
//if (window.attachEvent) {
////IE and Opera
//window.attachEvent("onload", ieEffects);
//} 	
	
