// Pop up a new window.
function popup(filename, width, height, scrollbars, resize) {
 var etcParams = ",directories=0,location=0,menubar=0,resizable="+(resize ? "1" : "0")+",status=0,toolbar=0,scrollbars=" + (scrollbars ? "1" : "0");
 var popup = window.open(filename, "_blank", "width=" + width + ",height=" + height + etcParams);
 popup.focus();
 }
 //	OPEN A NEW WINDOW
function popNew(filename) {
	var popNew = window.open(filename, "_blank");
	popNew.focus();
}
function orderNow() {
//	popup("exit_links/order.html", 385, 290, 0, 0);
	//popNew('exit_links/order.html');
	popNew('http://go-disneystore.com/confessionsofateenagedramaqueendvd');
	//hitbox.Set_hbLink(exitLinkArray[4]);
}
function openWindow2(url,winName,w,h,resizedata) {
	leftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	topPosition = (screen.height) ? (screen.height-h)/2 : 0;
	
	var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition+',resizable=' + resizedata +',toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no';
	var popup = window.open(url,winName,windowprops);
	popup.focus();
}

function popup2(filename, width, height, scrollbars) {
 var etcParams = ",directories=0,location=0,menubar=0,resizable=1,status=0,toolbar=0,scrollbars=" + (scrollbars ? "1" : "0");
 var popup = window.open(filename, "_blank", "width=" + width + ",height=" + height + etcParams);
 popup.focus();
}
/*
quicktime LARGE = qt_3000k.html
popup should be - 700x500

quicktime MEDIUM = qt_1500k.html
popup should be - 540x450

quicktime SMALL = qt_300k.html
popup should be - 540x370

windows media LARGE = wm_300k.html
popup should be - 540x410

windows media MEDIUM = wm_100k.html
popup should be - 540x370

windows media SMALL = wm_56k.html
popup should be - 540x370

real SMALL = r_56k.html
popup should be - 540x330

real MEDIUM = r_100k.html
popup should be - 540x330

real LARGE = r_300k.html
popup should be - 540x350*/
function launch_clip(id)
{
	switch(id)
	{
		//alert(sz +"  &=  "+ft+"   &=  "+id);
		case "trailer":
			 openWindow2("http://www.totaleclips.com/disney/player/splash.asp?clipid=e19682","preview",340,480,1);
			 //hitbox.Set_hbLink(exitLinkArray[0]);
			 break;
		case "clip1":
			openWindow2("http://www.totaleclips.com/disney/player/splash.asp?clipid=e19680","preview",340,480,1);
		case "clip2":
			openWindow2("http://www.totaleclips.com/disney/player/splash.asp?clipid=e19639","preview",340,480,1);	
		case "clip3":
			openWindow2("http://www.totaleclips.com/disney/player/splash.asp?clipid=e19638","preview",340,480,1);			
		//default:
			 //openWindow2("exit_links/"+id+".html","preview",340,480,1);
			break;
	}
}
function launchQT(sz)
{
	switch(sz)
	{
		case "sm":
			 openWindow2("qt_300k.html","preview",540,370);
			 break;
		case "md":
			 openWindow2("qt_1500k.html","preview",540,450);
			break;
		case "lg":
			 openWindow2("qt_3000k.html","preview",700,500);
			break;
		default:
			 openWindow2("qt_300k.html","preview",540,370);
			break;
		
		
		
	}
}
function launchWM(sz)
{
	switch(sz)
	{
		case "sm":
			 openWindow2("wm_56k.html","preview",540,370);
			 break;
		case "md":
			 openWindow2("wm_100k.html","preview",540,370);
			break;
		case "lg":
			 openWindow2("wm_300k.html","preview",540,410);
			break;
		default:
			 openWindow2("wm_100k.html","preview",540,370);
			break;
		
		
	}
}
function launchRL(sz)
{
	switch(sz)
	{
		case "sm":
			 openWindow2("r_56k.html","preview",540,330);
			 break;
		case "md":
			 openWindow2("r_100k.html","preview",540,330);
			break;
		case "lg":
			 openWindow2("r_300k.html","preview",540,350);
			break;
		default:
			 openWindow2("r_100k.html","preview",540,330);
			break;
		
	}
}
