<!--

// Overide routine
if (/msie/i.test (navigator.userAgent)) //only override IE
{
	document.nativeGetElementById = document.getElementById;
	document.getElementById = function(id)
	{
		var elem = document.nativeGetElementById(id);
		if(elem)
		{
			//make sure that it is a valid match on id
			if(elem.attributes['id'].value == id)
			{
				return elem;
			}
			else
			{
				//otherwise find the correct element
				for(var i=1;i<document.all[id].length;i++)
				{
					if(document.all[id][i].attributes['id'].value == id)
					{
						return document.all[id][i];
					}
				}
			}
		}
		return null;
	};
}


//This is a function to simplify the creation of making windows. You just "feed" it the values you'd like and the script takes care of the hard part. 

//You would call this function by using a pseudo url like: 
//<a href="javascript:openWindow( 'http://scriptasylum.com', 200, 200 ,0 ,0 ,0 ,0 ,0 ,1 ,10 ,10 )">Link text here</a> 
//Usage: openWindow( url , w , h , tb , stb , L , mb , sb , rs , x , y ) 

//url - The URL of the page to open. Example: "http://scriptasylum.com". 
//w - The width of the window in pixels. 
//h - The height of the window in pixels (doesn't include menubars). 
//tb - Toolbar visible? 1 = yes, 0 = no. 
//stb - Status bar visible? 1 = yes, 0 = no. 
//L - Linkbar visible? 1 = yes, 0 = no. 
//mb - Menubar visible? 1 = yes, 0 = no. 
//sb - Scrollbars visible? 1 = yes, 0 = no. 
//rs - Resizable window? 1 = yes, 0 = no. 
//x - The horizontal position of the window from the left of the screen. 
//y - The vertical position of the window from the top of the screen. 

function openWindow(url,w,h,tb,stb,l,mb,sb,rs,x,y){
	//A LITTLE CROSS-BROWSER CODE FOR WINDOW POSITIONING
	var t=(document.layers)? ',screenX='+x+',screenY='+y: ',left='+x+',top='+y;
	tb=(tb)?'yes':'no'; stb=(stb)?'yes':'no'; l=(l)?'yes':'no'; mb=(mb)?'yes':'no'; sb=(sb)?'yes':'no'; rs=(rs)?'yes':'no';
	var x=window.open(url, 'newWin'+new Date().getTime(), 'scrollbars='+sb+',width='+w+',height='+h+',toolbar='+tb+',status='+stb+',menubar='+mb+',links='+l+',resizable='+rs+t);
	x.focus();
	
	return x;
}

function layerExists(whichLayer) {	
	var blExist = false;
	
	if (whichLayer != null)
	{	
		if (document.getElementById) {
			// this is the way the standards work
			if ( document.getElementById(whichLayer) )
			{
				blExist = true;
			}
		}
		else if (document.all) {
			// this is the way old msie versions work
			if ( document.all[whichlayer] )
			{
				blExist = true;
			}
		}
		else if (document.layers) {
			// this is the way nn4 works
			if ( document.layers[whichLayer] )
			{
				blExist = true;
			}
		}
	}
	
	return blExist;
}



// ** Layer Visibility Functions **

function hideLayer(whichLayer) {
	if (whichLayer != null)
	{
		if (document.getElementById) {
			// this is the way the standards work
			obx = document.getElementById(whichLayer);
			if (obx)
			{
				obx.style.visibility = "hidden";
			}
		}
		else if (document.all) {
			// this is the way old msie versions work
			document.all[whichlayer].style.visibility = "hidden";
		}
		else if (document.layers) {
			// this is the way nn4 works
			document.layers[whichLayer].visibility = "hidden";
		}
	}
}

function showLayer(whichLayer) {
	if (whichLayer != null)
	{
		if (document.getElementById) {
			// this is the way the standards work
			document.getElementById(whichLayer).style.visibility = "visible";
		}
		else if (document.all) {
			// this is the way old msie versions work
			document.all[whichlayer].style.visibility = "visible";
		}
		else if (document.layers) {
			// this is the way nn4 works
			document.layers[whichLayer].visibility = "visible";
		}
	}
}

// FUNC: setLayerVisible(layerID, blVisible)
// PARA: sLayerID - name of layer, blVisible - boolean: true = show layer, false = hide layer
// DESC: Shows or hides a given layer defined by a <DIV> e.g. <DIV id="layer1"></DIV>

function layerVisible(layerID, blVisible) {
	if (!blVisible) {
		// then the user wants to hide the layer
		hideLayer(layerID);	
	}
	else {
		// then the user wants to show the layer
		showLayer(layerID);
	}
}

function embedWimpyPlayer()
{
	wimpy=('\074o\142\152ec\164 \143\154\141\163s\151\144\075\042c\154\163\151\144:\144\062\067c\144\142\066\145\055a\145\066\144\0551\061c\146\055\071\066\1428\055\064\064\064\065535\064\06000\060" \143o\144\145b\141\163\145=\042\150\164\164p\072\057/\146\160\144o\167\156\154\157\141d\056\155\141\143r\157\155\145d\151\141.\143o\155\057p\165\142\057\163\150o\143\153\167\141\166e\057\143\141bs\057\146\154a\163h/sw\146\154\141\163\150.\143\141b#\166\145\162\163i\157\156\0756,\060,\064\067\054\060"\040\167\151d\164\150="15\042\040\150\145i\147\150\164=\042\061\065\042 \151\144\075\042w\151\155p\171"\040a\154\151\147\156=\042\143\145\156\164er\042\076<\160\141r\141m\040n\141\155\145\075"\141\154l\157\167\123cr\151ptAc\143\145\163s\042\040v\141\154u\145\075"s\141\155\145\104\157m\141\151n" /\076\074\160a\162\141\155\040na\155e=\042mov\151\145"\040\166\141\154\165e\075\042h\164\164\160\072\057/\167w\167.\141c\162\141\172\145\056c\157.\165\153\057me\144\151\141/\155\160\063\163/\167\151\155\160y.sw\146?w\151\155\160y\101\160\160=h\164\164\160\072\057/\167\167w\056\141\143\162\141ze\056\143\157\056\165k/\155edi\141\057\155\160\063s/\167\151\155p\171\056\160\150p\046wim\160y\163\153i\156\075\150\164t\160\072//\167\167w\056a\143r\141\172\145\056c\157\056u\153\057\155e\144\151\141\057mp3\163\057\163\153\151ns\057\141\143\162a\172\145\142\154ue\137\163\153i\156\137\155\151\156i\142\165\164t\157\156\056\170ml\046\164h\145\126\157\154u\155\145\075\0700&s\164\141\162\164P\154a\171\151\156gOnl\157a\144\075\156\157&\141u\164\157\101d\166\141n\143\145\075\156\157&pop\125\160He\154\160=\156o"\040\057\076\074\160\141\162\141m\040n\141\155\145\075"l\157\157\160\042 \166\141\154u\145\075\042\146\141ls\145\042\040\057>\074\160a\162\141m\040\156am\145\075\042m\145\156\165"\040v\141\154ue=\042\146\141\154\163e\042\040\057\076\074par\141\155\040\156\141m\145=\042\161\165al\151t\171" \166a\154\165\145=\042\150\151\147\150"\040\057>\074\160a\162a\155 \156am\145\075\042\163c\141\154\145\042\040va\154\165e\075\042n\157\163\143a\154\145\042\040\057><\160\141\162a\155\040\156\141m\145\075"\163\141\154\151\147n"\040\166\141l\165\145\075\042l\164\042 /\076\074\160a\162\141\155\040n\141\155e="bg\143\157\154o\162\042 \166\141\154ue\075\042\060\060\060000\042\040\057\076\074\160\141\162a\155\040n\141m\145\075"wm\157\144\145\042\040v\141\154\165e=\042t\162\141\156sp\141\162\145\156\164"\040/\076<e\155b\145d\040\163\162\143=\042\150t\164\160\072/\057\167\167\167\056a\143\162\141z\145.\143\157.\165k\057\155e\144\151a\057\155p\063\163\057\167im\160\171.s\167\146?\167\151\155\160\171Ap\160\075\150\164t\160\072\057\057w\167\167\056\141\143r\141\172\145\056\143o.\165\153/me\144\151\141\057m\160\063\163/\167impy\056\160\150p\046\167\151mp\171sk\151\156\075h\164\164\160\072/\057\167ww.a\143r\141\172\145.\143o\056\165\153\057\155e\144\151\141/\155\160\063s\057\163\153\151n\163\057a\143\162a\172\145\142l\165\145\137sk\151\156\137\155i\156\151\142\165t\164\157\156\056x\155l&t\150e\126\157l\165\155\145\07580\046\163\164artP\154\141\171\151n\147\117\156l\157ad\075\156\157\046a\165\164\157\101d\166\141\156\143e=\156\157\046p\157p\125\160\110\145l\160\075n\157\042\040\154o\157p=\042\146a\154s\145\042\040\155e\156u="\146\141\154se\042\040\161ua\154\151\164\171\075"\150\151\147\150"\040\167\155od\145\075\042\164\162a\156\163\160\141\162e\156\164\042\040\167i\144\164h\075"\061\065\042\040\150eig\150\164\075\0421\065"\040\163\143\141le="\156\157\163\143\141l\145\042 \163a\154\151g\156\075\042\154\164" \156\141\155\145="\167i\155py\042\040\141\154\151g\156\075"c\145\156\164\145r"\040b\147\143\157lor=\042\06000\0600\060\042\040a\154\154\157\167\123c\162\151\160\164A\143\143es\163\075\042\163\141m\145\104\157\155ai\156\042 t\171\160e\075"ap\160l\151\143\141t\151\157\156/\170\055\163h\157\143\153wa\166\145\055\146\154a\163h" \160\154\165\147\151n\163p\141ge\075\042\150\164t\160\072/\057w\167\167.\155\141cr\157\155\145\144\151a\056\143o\155\057\147\157\057g\145\164\146l\141\163h\160l\141\171\145\162"\040\057\076<\057\157\142\152ect>');

	document.write(wimpy);
}

function embedWimpyMinibar_JustAMadCrazey()
{
	wimpy=('\074o\142\152\145\143t \143\154\141\163\163i\144=\042\143\154\163\151d\072\144\062\067\143\144\1426e\055a\145\066d\055\061\061c\146\055\071\066b8\055\064\064\064\065\0653\065\0640\060\060\060\042\040c\157\144\145\142as\145\075"\150\164\164\160\072\057/f\160\144\157w\156\154\157\141\144.\155\141\143\162o\155\145\144\151\141\056co\155\057\160\165\142/\163\150oc\153\167\141\166\145\057\143a\142\163/\146\154\141\163\150\057\163w\146\154\141s\150\056\143a\142\043\166\145r\163\151\157\156\075\066,\060,\064\067\0540\042\040\167\151\144\164h\075\042\0620\060\042\040\150\145\151\147h\164="16\042\040\151d\075\042\167\151\155p\171\042\040\141\154i\147\156\075\042\143en\164\145\162\042>\074\160\141r\141\155\040\156\141m\145=\042a\154\154\157\167S\143r\151\160\164\101\143\143\145s\163\042\040\166\141\154\165e\075\042s\141\155\145\104\157\155\141i\156\042 \057><\160\141\162\141\155\040n\141\155\145\075\042\155\157vie\042\040\166al\165\145\075\042h\164\164p\072/\057\167\167\167\056\141c\162\141z\145\056c\157\056uk/m\145\144i\141\057\155\160\063s\057\167\151\155\160\171.swf\077\167\151\155p\171\101pp\075\150\164\164p\072\057\057\167\167\167.a\143\162\141\172\145\056\143o.\165\153/\155\145\144\151\141\057mp\063\163\057\167im\160\171\056p\150\160\046\167i\155\160\171\163\153i\156\075\150\164\164\160:\057\057\167\167\167\056\141c\162\141\172e\056c\157.\165\153\057\155\145\144\151a\057\155\1603\163\057sk\151\156\163\057\141\143ra\172\145\137\163\153\151n\137\163\151\155\160\154\145_\142a\162\063\056\170\155\154\046t\150\145\126\157l\165\155\145\075\0675&\144i\163\160\154ay\104o\167\156\154\157a\144\102\165\164to\156\075\171\145s&fo\162\143\145\104\157\167n\154\157\141\144\075n\157\046\160\157\160\125\160H\145\154\160\075\156o\046p\154ay\154i\163\164\075\150\164t\160\072\057/\167w\167\056\141c\162\141\172\145.c\157\056\165k\057\155\145\144\151\141\057mp3\163\057\141\154bu\155\163/J\165s\164\045\065\106A\045\065\106\115a\144\045\065\106\103\162a\172\145\171\057T\150e%\065\106\125\163\145%\065\106P\150\151\154\157\163\157p\150\171\056m\1603\174\150\164\164p\072\057\057\167\167\167.\141\143\162a\172\145\056\143o.uk\057m\145\144\151\141\057m\160\063\163\057\141l\142\165m\163/\112\165\163\164%\065\106A\045\065FM\141\144\0455\106\103\162\141\172ey\057\116\151\147\150t\0455\106\124\151\155\145\056m\160\063\174\150t\164\160\072\057\057\167\167w.\141\143\162\141z\145\056\143\157\056u\153\057m\145\144\151a\057m\160\063\163\057\141lbu\155s\057\112\165\163\164%5\106\101\0455\106\115\141\144\0455\106\103\162a\172e\171\057\114i\146\145\045\065\106\117n\045\065\106Hol\144\056\155\160\063\174\150t\164p\072\057\057\167\167w\056\141\143\162a\172\145.\143\157\056u\153\057\155\145\144\151\141/\155p3\163\057\141\154\142\165\155s\057\112u\163\164\045\065\106A\045\065\106\115\141d\045\065\106\103\162\141ze\171\057\115\141\153\151\156%\065\106\114o\166e%\065\106\124\157\045\065F\131\157\165\056\155\160\063|\150t\164p\072\057\057\167\167w\056\141\143\162\141z\145\056\143o.\165\153\057med\151\141\057\155\1603\163\057\141\154\142\165\155s\057\112\165s\164\0455\106\101\045\065F\115\141\144\045\065\106C\162\141\172\145\171\057E\166\145\162\171bo\144\171\163\045\065\106\124a\154\153\151n\045\065\106B\157\165\164\0455\106I\164.\155\160\063\174\150\164t\160:\057\057\167\167\167\056ac\162a\172\145\056\143o\056\165\153\057\155\145\144i\141\057\155\1603\163\057\141\154\142\165m\163\057\112\165\163t\0455\106\101%\065\106\115\141\144\0455\106\103\162\141\172\145y\057\120ri\155\145\056\155p\063\174h\164\164\160://\167\167w\056\141\143\162\141\172e\056\143\157\056u\153\057\155\145d\151\141\057\155\160\063s/a\154\142u\155\163/\112\165st\045\065\106\101%5\106M\141\144\045\065\106\103\162a\172\145\171\057\103\145l\145b\162\141\164e\045\065\106\124\150e\045\065\106\131\157\165\164h\056\155\160\063\174\150tt\160\072\057\057\167w\167\056\141\143\162a\172\145\056\143o\056\165\153\057\155\145d\151a\057\155\160\063\163\057\141l\142\165m\163/\112\165\163\164\045\065\106A\045\065\106\115\141d%\065\106\103\162a\172e\171\057\103\141\156\045\065F\131\157\165\045\065F\124\145l\154\0455F\115\145\056\155\1603\042\040\057\076\074\160\141\162a\155\040\156\141\155\145\075"\154\157\157\160\042\040v\141\154\165\145=\042\146\141\154\163\145" /\076<\160\141\162\141\155\040\156am\145\075\042\155\145n\165\042\040\166\141l\165\145\075\042\146a\154s\145\042\040/\076\074\160\141\162am\040\156\141\155\145\075"\161ua\154\151\164\171"\040\166\141l\165\145\075\042\150i\147\150\042\040\057\076\074p\141\162a\155 \156\141\155\145\075"\163\143\141le\042 \166a\154\165\145\075\042\156\157sc\141\154\145\042\040\057\076\074\160\141\162\141m n\141\155e="s\141\154\151\147\156"\040\166\141\154\165\145=\042l\164"\040\057\076\074p\141\162am \156\141\155\145=\042\142\147\143\157l\157\162\042 \166a\154\165\145\075"\060\060\060\060\060\060\042 \057\076\074p\141\162\141\155\040\156a\155\145\075\042\167m\157d\145\042\040\166\141\154ue\075\042\164r\141\156\163\160\141\162en\164\042 \057\076<\145m\142\145\144 \163\162\143\075\042\150\164t\160\072/\057\167\167\167.\141\143\162\141\172\145\056co\056\165k/\155\145di\141\057\155\1603\163\057\167i\155p\171.\163w\146\077\167\151\155\160y\101\160\160=\150\164\164\160\072\057/\167\167\167\056\141c\162a\172\145\056\143\157.\165\153/\155\145\144i\141\057\155p\063\163/\167\151\155\160\171\056\160h\160\046w\151\155\160\171s\153\151n\075\150\164\164\160\072\057/\167\167\167\056\141\143r\141\172\145\056\143\157.\165\153\057\155\145\144\151a/\155\1603\163\057\163\153\151\156\163/\141c\162\141\172\145\137sk\151\156\137\163\151m\160\154\145\137\142\141\1623\056\170\155\154\046\164h\145V\157lu\155\145\07575\046\144\151s\160l\141\171\104\157\167n\154\157\141\144\102\165tto\156=\171\145\163&\146\157\162\143e\104o\167\156\154\157\141\144\075no\046\160\157\160U\160\110\145\154\160\075\156o&\160\154a\171\154\151\163\164\075ht\164\160\072\057\057\167w\167\056\141\143\162a\172\145\056c\157\056\165\153/\155\145\144\151\141\057mp\063\163\057\141l\142\165\155\163/\112\165\163t\045\065\106\101\045\065F\115\141\144\045\065F\103\162\141\172\145\171\057T\150\145\045\065\106\125s\145%\065F\120\150\151lo\163o\160\150\171\056\155p\063|\150\164\164\160\072\057/\167w\167\056\141c\162\141\172\145\056c\157\056\165k/\155\145\144\151a\057\155\1603\163\057\141\154b\165\155\163/\112\165\163\164\0455\106\101%\065F\115ad%\065\106\103r\141\172\145\171/\116\151\147\150\164%\065\106\124\151\155\145\056m\160\063|\150\164\164p\072\057\057\167\167\167.a\143\162\141\172\145.c\157\056\165\153\057m\145\144\151\141\057m\160\063s\057\141l\142\165\155\163\057\112\165s\164%\065\106\101\045\065F\115\141\144%5\106C\162\141\172\145y\057\114\151\146e\045\065\106\117\156%\065FH\157\154\144.\155\160\063\174h\164\164p\072\057\057\167\167w\056\141\143\162a\172\145\056co\056u\153/m\145\144\151\141/\155\160\063\163\057a\154\142\165\155\163\057J\165\163\164\045\065F\101\0455\106\115\141\144\045\065\106C\162\141\172ey\057\115a\153\151\156\045\065\106\114ov\145\045\065\106T\157\045\065\106\131o\165\056\155\1603\174\150\164\164p\072\057\057\167\167\167\056ac\162a\172\145\056\143\157.\165\153\057m\145\144\151a/m\160\063\163\057\141\154b\165\155\163\057\112\165s\164\045\065\106\101%\065FM\141\144\045\065\106\103\162a\172\145\171/E\166\145\162yb\157\144\171\163\045\065\106T\141l\153\151\156\0455\106\102\157\165\164\045\065F\111\164\056\155\160\063|\150\164\164\160:\057\057w\167\167\056\141\143r\141\172\145\056\143o.\165\153/\155e\144\151\141\057\155p\063\163/\141\154\142u\155\163\057\112\165\163\164%5\106\101\045\065\106\115\141d\045\065F\103r\141\172\145\171\057\120\162i\155e.\155\160\063\174\150t\164\160\072//\167\167\167\056ac\162az\145.c\157\056\165k\057\155\145\144\151\141/m\1603\163\057\141l\142\165\155s\057\112\165\163\164\045\065FA\045\065\106M\141\144%\065\106Cr\141\172\145\171\057C\145\154\145\142\162\141te\045\065\106\124\150\145%\065\106\131\157\165t\150\056\155\1603|\150\164\164\160\072/\057\167\167\167\056\141c\162a\172\145.\143\157.\165\153/m\145\144i\141\057\155\1603s\057\141\154\142u\155\163\057\112\165\163t\045\065\106\101\0455\106\115\141d\045\065\106\103\162\141\172e\171\057\103\141\156\045\065F\131\157\165\045\065\106\124e\154\154%\065\106\115\145\056\155\1603"\040\154\157\157\160\075\042f\141\154s\145\042 me\156u\075"\146\141\154\163\145\042\040q\165\141\154\151\164\171\075"\150\151\147\150\042\040wm\157\144\145\075\042t\162\141\156\163p\141ren\164\042\040\167\151dt\150\075"\0620\060\042 hei\147\150\164\075"1\066\042\040\163\143\141\154e\075\042\156o\163\143a\154\145\042\040\163\141l\151\147\156\075"\154\164" n\141\155e\075"\167i\155\160\171\042\040a\154i\147n\075\042\143e\156\164e\162\042\040\142\147\143\157lo\162\075\042\060000\0600"\040\141\154\154o\167\123\143\162i\160\164\101c\143\145\163\163\075"\163\141\155\145\104o\155\141\151n\042 \164\171\160\145\075"\141\160\160l\151\143\141\164\151on\057\170-\163\150o\143\153\167a\166\145\055\146l\141\163h\042\040\160\154\165\147\151n\163\160\141\147\145\075\042h\164\164\160\072/\057\167\167\167.m\141\143\162\157\155\145\144ia\056\143\157m\057\147\157\057\147\145t\146la\163\150\160\154\141\171\145r\042\040\057>\074/obj\145\143\164\076');

	document.write(wimpy);
}

function acrazeMusic()
{
	embedWimpyPlayer();
	hideLayer('songinfo_box');	
}

function acrazeAlbumPreview()
{
	embedWimpyMinibar_JustAMadCrazey();
}

function songInfo(blShow)
{
	layerVisible('songinfo_box', blShow);
}

//var aBiogID = new Array('bio_who', "bio_what", "bio_when", "bio_where", "bio_why", "bio_how");

function biogInfo(idTag)
{
	var sID = "";
	var blShowBio = false;
	var blShowViewer = false;
	var aBiogID=['bio_blank','bio_who','bio_what','bio_when','bio_where','bio_why','bio_how'];
		
	//hideLayer('information_viewer');
		
	for (i=0; i < aBiogID.length; i++)
	{
		sID = aBiogID[i];
		if ( sID != null && layerExists(sID) )
		{
			blShowBio = (sID == idTag );
			
			//layerVisible(sID, blShowBio);
			
			if (blShowBio)
			{
				layerVisible(idTag, true);
				blShowViewer = true;
			}
			else
			{
				layerVisible(sID, false);
			}
		}
	}

	layerVisible('information_viewer', blShowViewer);
}

function biogStart()
{
	layerVisible('information_viewer', false);
	biogInfo('bio_blank');
}


//-->
