var displayWidth = screen.width;
var displayHeight = screen.height;

function openWin(URL) {
		W = 880;
		H = 493;
		scrW=screen.width;
		scrH=screen.height;
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
	if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			chifeWin = window.open(URL,"chife","directories=no,menubar=no,location=no,scrollbars=no,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		} else{
			chifeWin = window.open(URL,"chife","directories=no,menubar=no,location=no,scrollbars=no,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		}
	} else {
	chifeWin = window.open(URL,"chife","directories=no,menubar=no,location=no,scrollbars=no,status=no,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	chifeWin.focus();
	}

}


function openSamp(URL) {
		W = 400;
		H = 300;
		scrW=screen.width;
		scrH=screen.height;
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
		if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			chifeWin = window.open(URL,"Samp","directories=no,menubar=no,location=no,scrollbars=no,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		} else{
			chifeWin = window.open(URL,"Samp","directories=no,menubar=no,location=no,scrollbars=no,status=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		}
	} else {
	chifeWin = window.open(URL,"Samp","directories=no,menubar=no,location=no,scrollbars=no,status=no,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	chifeWin.focus();
	}
}

function openOther(theURL,winName){
		W = 750;
		H = screen.height/2;
		scrW=screen.width;
		scrH=screen.height;
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
		if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			chifeWin = window.open(theURL,winName,"toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		} else{
			chifeWin = window.open(theURL,winName,"toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		}
	} else {
	chifeWin = window.open(theURL,winName,"toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	chifeWin.focus();
	}
}

function openMov(theURL){
		W = 500;
		H = 430;
		scrW=screen.width;
		scrH=screen.height;
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
		if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			chifeWin = window.open(theURL,"mov","toolbar=no,location=no,status=no,menubar=no,scrollbars=aout,resizable=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		} else{
			chifeWin = window.open(theURL,"mov","toolbar=no,location=no,status=no,menubar=no,scrollbars=aout,resizable=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		}
	} else {
	chifeWin = window.open(theURL,"mov","toolbar=no,location=no,status=no,menubar=no,scrollbars=aout,resizable=no,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	chifeWin.focus();
	}
}

function openSwf(theURL){
		W = 800;
		H = 400;
		scrW=screen.width;
		scrH=screen.height;
		openX = ((scrW/2) - (W/2));
		openY = ((scrH/2) - (H/2));
		if (navigator.appName == "Microsoft Internet Explorer") {
		if (navigator.platform.substr(0,3) == "Mac") {
			chifeWin = window.open(theURL,"swf","toolbar=no,location=no,status=no,menubar=no,scrollbars=aout,resizable=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		} else{
			chifeWin = window.open(theURL,"swf","toolbar=no,location=no,status=no,menubar=no,scrollbars=aout,resizable=no,width=" + W+ ",height=" + H + ",left=" +  openX + ",top=" + openY );
			chifeWin.focus();
		}
	} else {
	chifeWin = window.open(theURL,"swf","toolbar=no,location=no,status=no,menubar=no,scrollbars=aout,resizable=no,width=" + W+ ",height=" + H + ",screenX=" +  openX + ",screenY=" + openY );
	chifeWin.focus();
	}
}


function MM_openBrWindow(theURL,winName,features) {
	var winShop;
	winShop = window.open(theURL,winName,features);
	winShop.focus();
}
