function nullit() {return true;}
//window.onerror = nullit;

	function MakeArray(n){
	   this.length = n
	   for (var i = 1; i<=n; i++) {
	      this[i] = new Image()
	   }
	   return this;
	}
	
	function omOver(name,number){
		if (document.images){
	      	name.src = over[number].src;
	   	}
	}
	function omOut(name,number){
		if (document.images){
	    	name.src = out[number].src;
	   	}
	}
	
	if (document.images) {
		braille_out = new MakeArray(12);
		braille_over = new MakeArray(12);
		imgLoc = new Array ("","lyl_1","lyl_2","lyl_3","lyl_4","dyl_1","dyl_2","dyl_3","dyl_4","dyl_1","dyl_2","dyl_3","dyl_4")
		imgLoc2 = new Array ("","lyl_a1","lyl_a1","lyl_a1","lyl_a1","dyl_a1","dyl_a1","dyl_a1","dyl_a1","dyl_a1","dyl_a1","dyl_a1","dyl_a1")
		for (imgX=1;imgX<13;imgX++){
		braille_out[imgX].src = "/sitewide/images/icn_braille_" + imgLoc[imgX] + ".gif";
		braille_over[imgX].src = "/sitewide/images/icn_braille_" +imgLoc2[imgX] + ".gif";
		}
	}
	function brailleOver(name,number){
		if (document.images){
	    	name.src = braille_over[number].src;
		}
	}
	function brailleOut(name,number){
		if (document.images){
	    	name.src = braille_out[number].src;
		}
	}
			
	
/*
 * @description	Opens the sitewide flipbook player. 
 * @param	Flipbook ID or URL. 
 * @param Object, used to customize the flipbook skin and values.
 */
function popFlip(fbKey, obj){
	//var fbKey = arguments[0];
	//var fbArgs = "";
	//var args = (arguments[1] == undefined) ? "" : arguments[1];
	var fbArgs = "";
	for (var p in obj){
		fbArgs += "&" + p + "=" + obj[p];
	}
	
	if (fbKey.indexOf("fid=")>=0) {
		// new flip pop, old w=556, h=486
		window.open('/sitewide/flipbook/index.jhtml?'+fbKey+fbArgs,'flipbook','width=720,height=540,scrollbars=no');
	}
	else {
		var flipLoc  = fbKey.split("?");
		flipLocPath  = flipLoc[0].split("index.jhtml");
		var flipLocFull  =  flipLocPath[0];
		if (flipLoc[1] != "" && flipLoc[1] != null) flipLocFull += "&" + flipLoc[1];
		window.open('/sitewide/flipbook/index.jhtml?pf='+flipLocFull+fbArgs+'','flipbook','width=720,height=540,scrollbars=no');
	}
}

	function dropIt(layername,layerstatus){
		return true;
	}
	
	function genPop(loc,wName,attr){
		window.open(loc,wName,attr);
	}
	
	function touppPop(pp){
		if (arguments.length == 1) window.open('/sitewide/mtvinfo/privacy.jhtml','Privacy','width=605,height=400,resizable,scrollbars');
		else window.open('/sitewide/mtvinfo/terms.jhtml','TOS','width=605,height=400,resizable,scrollbars');
	}
	
	function adspecsPop(pp){
		if(arguments.length == 1) ;
		window.open('/asm/adspecs/contact.jhtml','AdSpecs','width=605,height=400,resizable,scrollbars');
	}
	
	function popQT(url){
		url = "/sitewide/videoplayer/qtplayer.jhtml?" + url;
		window.open(url,"qtplayer","width=320, height=240");
	}


function MakeArray(n){
   this.length = n
   for (var i = 1; i<=n; i++) {
	  this[i] = new Image()
   }
   return this;
}


function imgFlip(imageName,imageSrc) {
  if (document.images)
    document.images[imageName].src = eval(imageSrc + ".src");
}

/*
function headerOver(num){ 
		//eval ("document." + imagename[num] + ".src ='" + header_Over[num].src +"'")
	}
function headerOut(num){ 
	if ((num != gatewayLock)){
		//eval ("document." + imagename[num] + ".src ='" + header_Out[num].src +"'")
	}
}
function headerOver(num){
	if ((document.images) && (num != gatewayLock)){
		eval ("document." + imageName[num] + ".src ='" + header_Over[num].src +"'")
	}
}
function headerOut(num){
	if ((document.images) && (num != gatewayLock)){
	eval ("document." + imageName[num] + ".src ='" + header_Out[num].src +"'")}
	}

function headerOutX(num){
	if (document.images){
		if(dhtml==0 && (num != gatewayLock)) {
			eval ("document." + imageName[num] + ".src ='" + header_Out[num].src +"'")
		}
	}
}
*/


function toggleFlash(show) {
		if (IE4){document.all.flashLayer.style.visibility = show;}
		if (NS4){document.flashLayer.visibility=show;}
		if (NS4 && (show=="visible")){
		document.flashLayer.top = "0";}
		if (NS6 && (show=="hidden")){
		document.getElementById("flashLayer").style.top = "-1000px";	}
		if (NS6 && (show=="visible")){
		document.getElementById("flashLayer").style.top = "0px";}
		}
