<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
		settings='width='+(screen.width-10)+',height='+screen.height+',top=0,left=0,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
		win=window.open(mypage,myname,settings);
}

function MovieWindow(mypage,myname,w,h,scroll,pos,ImageName){
	var mypic;
	mypic  = new Image();
	mypic.src="/Upload/Pic"+ImageName+".jpg";
	var PomHeight;
	PomHeight=Math.round((mypic.height*520)/mypic.width)+42;
	PomHeight=h;

	//document.write (PomHeight);
	if(pos=="random"){
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center"){
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=0;
	}
	else if((pos!="center" && pos!="random") || pos==null){
		LeftPosition=0;
		TopPosition=0
	}
	settings='width='+w+',height='+PomHeight+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
	win=window.open(mypage,myname,settings);
}









//*********************************************************
//
//Original Scripts DO NOT CHANGE ANYTHING BELOW THIS POINT
//
//*********************************************************

function NewWindow_Original(mypage,myname,w,h,scroll,pos){
if(pos=="random"){
	LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
	TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
}
if(pos=="center"){
	LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=0;
}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=0}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
	win=window.open(mypage,myname,settings);
}


function FullScreen() {
	var d
	if (document.layers) {
		var j=screen.availHeight+(window.innerHeight-window.outerHeight)+45;
		var i=screen.availWidth-18;
		d=window.open('/intronew/getSize.asp','v3','width=' + (i) + ',height=' + j +',left=0,top=0,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no')
		if (!navigator.mimeTypes["application/x-shockwave-flash"]) alert('Flash Player 4.0 is required to view this site, but is not detected.  Please come back after installing Flash Player 4.0')
	}
	else {
		d = (navigator.userAgent.indexOf("Mac") != -1) ? window.open('/intronew/getSize.asp') : window.open('/intronew/getSize.asp','v3','scrollbars=false,fullscreen=yes');
	}
	if (d) d.focus()
}
// -->