


// from plugins/content/1pixelout/audio-player.js

var ap_instances = new Array();

function ap_stopAll(playerID) {
	for(var i = 0;i<ap_instances.length;i++) {
		try {
			if(ap_instances[i] != playerID) document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 1);
			else document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 0);
		} catch( errorObject ) {
			// stop any errors
		}
	}
}

function ap_registerPlayers() {
	var objectID;
	var objectTags = document.getElementsByTagName("object");
	for(var i=0;i<objectTags.length;i++) {
		objectID = objectTags[i].id;
		if(objectID.indexOf("audioplayer") == 0) {
			ap_instances[i] = objectID.substring(11, objectID.length);
		}
	}
}

var ap_clearID = setInterval( ap_registerPlayers, 100 );

// end plugins/content/1pixelout/audio-player.js

<!--//--><![CDATA[//><!--
startList = function() {

	if (document.all&&document.getElementById) {   
			theul = document.getElementById("menu").childNodes[0];
			theul.setAttribute('id','menu_ul');
			navRoot = document.getElementById("menu_ul");
					for (i=0; i<navRoot.childNodes.length; i++) {
						effect(navRoot);
				}
	}   
}

function effect(elementId) {
node = elementId.childNodes[i];
		if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className="over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace("over", "");
				}
		}

}

window.onload=startList;


function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. 
{

if (document.all&&document.getElementById) {   
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }    
}
}

if (document.all&&document.getElementById) {   
window.attachEvent("onload", correctPNG);
}

function shippingValid(MainForm,ShippingForm) {
   var objForm1 = document.forms[MainForm];
   var objForm2 = document.forms[ShippingForm];
   if (objForm2.txtToZip.value == '' || objForm2.submitted.value=='') {
        alert('Please enter a zip code and click the Calculate Shipping button.');
        return false;
   } else {
        var str = objForm1.shipping.value;
        if (str.length>7) {
                var answer = confirm("Looks like there was an issue calculating shipping. We contact you later with a shipping quote. Would you like to continue with this order now?")
                if (answer) {
                        objForm1.shipping.value = '';
                        return true;
                } else {
                        return false;
                }
        }
   }
};
function mark(form) {
        form.submitted.value=1;
        return;
}
