//
//self.resizeTo(screen.width, screen.height);
//self.moveTo(0,0);

var dimx;
var dimy;
var x;
var y;
dimx= 150;
dimy= 150;
 x = ((screen.width - dimx)/2);
 y = ((screen.height - dimy)/3);
 /*self.moveTo(x, y);*/
self.window.name="grande"
function openWin() {
infro=open('../popUpFlash.html','infro','width=150,height=150,top='+(y)+',left='+(x-150)+',copyhistory=no,toolbar=no,scrollbars=no,resizable=0,menubar=no,status=no,directories=no,location=no');
if (infro.focus) infro.focus();
}  
//
function openWinCentred(chi,w,h, scroll) {
	
	dim_x= w;
	dim_y= h;
	posX = ((screen.width - dim_x)/2);
	posY = ((screen.height - dim_y)/3);
	infro=open(chi,'infro','width='+(w)+',height='+(h)+',top='+(posY)+',left='+(posX)+',copyhistory=no,toolbar=no,scrollbars='+scroll+',resizable=0,menubar=no,status=no,directories=no,location=no');
	if (infro.focus) infro.focus();
	//infro.resizeTo(w, h);
	//
}  
function openWinCentredRes(chi,w,h, scroll) {
	dim_x= w;
	dim_y= h;
	posX = ((screen.width - dim_x)/2);
	posY = ((screen.height - dim_y)/3);
	infro=open(chi,'infro','width='+(w)+',height='+(h)+',top='+(posY)+',left='+(posX)+',copyhistory=no,toolbar=no,scrollbars='+scroll+',resizable=1,menubar=no,status=no,directories=no,location=no');
	if (infro.focus) infro.focus();
	//infro.resizeTo(w, h);
}  

//
function deleteSkip(){
	open('../index.html?false','_self');
}

function writePage(){
	//games
	//goodies
	URL=window.location.href;
	pos=URL.indexOf("?");
	URL=URL.slice((pos+1),URL.length);
	//
		document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='740' height='593' id='loader' align='middle'><param name='allowScriptAccess' value='sameDomain'/><param name='movie' value='loader.swf?goTo="+URL+"' /><param name='quality' value='high' /><param name='bgcolor' value='#000000' /><embed src='loader.swf?goTo="+URL+"' quality='high' bgcolor='#000000' width='740' height='593' name='loader' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>")
	}
//
defaultStatus = "--- Powerade ---"
function setStatus(path){
	defaultStatus = path;
}


//
/*
<PARAM NAME=FlashVars VALUE="foo=Hello%20World&paragraph=first+line%0Dsecond+line">
<EMBED src="display.swf" FlashVars="foo=Hello%20World&paragraph=first+line%0Dsecond+line" ... (other parameters)> </EMBED>
*/