// Browser Detection Variables - Netscape 4.7 Gets The FU  
// var NS4 = document.layers;
// var IE4 = document.all;
var DOM = document.getElementById;
// if (NS4){alert("This site uses W3C standard CSS1 and HTML4 - Your browser doesn't support these extensions so you'll see a garbled mess.. but it's not the site, it's the piece o shit Netscape 4 something or other.. it stinks and they know it - Take a few minutes to upgrade, it's free and it's worth it.. not only on this absolutely fantastic site, but others as well.. Netscape 6 is out now.. http://www.netscape.com.. and Microsoft Internet Explorer 6 (PC) / 5.5 (Mac) is the best.. http://www.microsoft.com");}
// capture mouse events
// if(window.Event)
//   document.captureEvents(Event.MOUSEUP);
//   document.onmouseup = brakes;
// preload top ten buttons
movies_n = new Image();

movies_n.src = "http://www.whudat.com/sitewide_images/movies_off.gif";
movies_a = new Image();
movies_a.src = "http://www.whudat.com/sitewide_images/movies_on.gif";
pop_n = new Image();
pop_n.src = "http://www.whudat.com/sitewide_images/pop_off.gif";
pop_a = new Image();
pop_a.src = "http://www.whudat.com/sitewide_images/pop_on.gif";
rnb_n = new Image();
rnb_n.src = "http://www.whudat.com/sitewide_images/rnb_off.gif";
rnb_a = new Image();
rnb_a.src = "http://www.whudat.com/sitewide_images/rnb_on.gif";
// rollover functions: act(active) - inact(inactive)
function act(imgname){imgname.src = eval(imgname.name + "_a").src;
        	}
function inact(imgname){imgname.src = eval(imgname.name +"_n").src;
            }
// 	layer switch functions and variables
if (DOM){var refLayer = "document.getElementById"; var openbrak = "('"; var closbrak = "')"; var styleSW = ".style";}
// if (IE4){var refLayer = ""; var styleSW = ".style"; var closbrak = ""; var openbrak ="";}

var holdpowers = new Array();
var nopower = new Array("movtabv", "toptenmov", "gross");

function wondertwins(activate){			
 for(var i = 0; i < wondertwins.arguments.length; i++){
	eval(refLayer+openbrak+wondertwins.arguments[i]+closbrak+styleSW+'.visibility="visible"');
       	holdpowers[i] = wondertwins.arguments[i];
		}
	deactivate();	 
}
function deactivate(){
 for(var i=0; i < nopower.length; i++){
   	eval(refLayer+openbrak+nopower[i]+closbrak+styleSW+'.visibility="hidden"');
		nopower[i] = holdpowers[i];
    	 }
}
/*
// news scroll		
keepmovn = true;
tap= "";
var firstclick = 0;
function setNewsPosition(pop){
		 document.getElementById('news').style.top = 10 + "px";
		 firstclick += 1;
	}
function moveUp(pop){
      if(pop == 0){setNewsPosition();}
   
 if(DOM){ 
		var y = parseInt(document.getElementById('news').style.top);
		document.getElementById('news').style.top = y - 2 + "px";
        if(keepmovn){
		tap = setTimeout('moveUp();', 2);
	}
}
else
        {news.style.posTop-=2;	
		if(keepmovn){
		tap = setTimeout("moveUp();", 2);
		}
    }
}

function moveDown(pop){

    if(pop == 0){setNewsPosition();}
	  
 if(DOM){ 
		var y = parseInt(document.getElementById('news').style.top);
		document.getElementById('news').style.top = y + 2 + "px";
        if(keepmovn){
		tap = setTimeout('moveDown();', 2);
	}
}
else
	    {
	    news.style.posTop+=2;	
		if(keepmovn){
		tap = setTimeout("moveDown();", 2);
		}
	}
}
function brakes(){
		keepmovn = false;
		clearTimeout(tap);
		keepmovn = true;
    }
// set news position - what else would it be for?	 
function init(){
		if(document.all){news.style.posTop=0;}
 }
*/

// open click pictures	 width +22, height +30 
function openPic(image){
    bigpicture = window.open(image, 'bigwindow', 'width=537 height=670');
    bigpicture.document.bgColor="black";
}
// open click window
function openWin(page){
    bigpicture = window.open(page,'bigwindow', 'width=520, height=555, scrollbars=yes, status=no');
    bigpicture.focus();
}
// open Keshawnta Insert window
function nwsKS(page){
    bigpicture = window.open(page,'bigwindow', 'width=600, height=500, scrollbars=yes, status=yes');
}
// open miscellaneous pictures   
function openPic2(image, dimensions){
    bigpicture = window.open(image,'bigwindow', dimensions);
    bigpicture.focus();
}

// open comment window
function nwsCom(page){
bigpicture = window.open(page,'bigwindow', 'width=400, height=375, scrollbars=1, resizable=1');
bigpicture.focus();
} 

