// Pop up a new window.
function popup(filename, width, height, scrollbars) {
 var etcParams = ",directories=0,location=0,menubar=0,resizable=0,status=0,toolbar=0,scrollbars=" + (scrollbars ? "1" : "0");
 return window.open(filename, "_blank", "width=" + width + ",height=" + height + etcParams);
}

function openWindow2(url,winName,w,h) {
	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 +',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=0,status=0,toolbar=0,scrollbars=" + (scrollbars ? "1" : "0");
 var popup = window.open(filename, "_blank", "width=" + width + ",height=" + height + etcParams);
 popup.focus();
}
//functions that flash calls out please do not rename...
function download_paper(n,s)
{
	var url="wallpaper/"+n+s+".html";
	//alert(url);
	popup2(url, 800, 600, "1");
}
function get_photo(n)
{
	var url="photos/photo"+n+".html";
	openWindow2(url,"photos",540,420);
}

function get_soundtrack()
{
	hitbox.Set_hbLink("Exit_freaky+friday_synergy_live+action_soundtrack");
	var url="http://hollywoodrecords.go.com/freakyfriday/index_dis.html";
	popup(url,770,590,false);
}
function pop_saver(url)
{
	openWindow2(url,"ff",515,460);
}
function get_buddy_icons()
{
	var url="buddyicons/icons.html";
	openWindow2(url,"icons",250,420);
}
function get_specialMessage()
{
	var url="preview/index.html";
	openWindow2(url,"special",540,400);
}
function order_now()
{
	
	hitbox.Set_hbLink("Exit_freaky+friday_sell+movies_live+action_order+now");
	var url="redirects/order_now_redirect.html";
//	popup(url,791,600,true);
	window.open ( url, "clip", "toolbar=yes,toolbar=yes,location=yes,location=yes,status=yes,status=yes,menubar=yes,menubar=yes, scrollbars=yes,scrollbars=yes,resizable=yes,resizable=yes" );
}
function get_audition()
{
	var url="audition/index.html";
	openWindow2(url,"audition",650,550);
}
function popQuotes()
{
	var url="preview/quotes.html";
	popup(url,540,600,false);
}
function get_clip(arg, exit)
{
var url="redirects/clips"+arg+"_redirect.html";
hitbox.Set_hbLink(exit);

window.open ( url, "clip", "toolbar=no,toolbar=0,location=no,location=0,status=no,status=0,menubar=no,menubar=0, scrollbars=no,scrollbars=0,resizable=no,resizable=0,width=340,height=480" );

}
function get_preview(side)
{

hitbox.Set_hbLink("Exit_freakyfriday_multimedia_liveaction_trailer");
var a=side == "grunge" ? "b" : "a";
var url="redirects/trailer_"+a+"_redirect.html";
window.open ( url, "trailer", "toolbar=no,toolbar=0,location=no,location=0,status=no,status=0,menubar=no,menubar=0, scrollbars=no,scrollbars=0,resizable=no,resizable=0,width=340,height=480" );
}


function get_movie(arg,side)
{
	switch(arg)
	{
		case 1:
			 get_preview(side);
			
			 break;
		case 2:
			get_clip(1, "Exit_freaky+friday_multimedia_live+action_clip1");
			
			break;
		case 3:
			get_clip(2, "Exit_freaky+friday_multimedia_live+action_clip2");
			break;
		case 4:
			get_clip(3, "Exit_freaky+friday_multimedia_live+action_clip3");
			
			break;
		case 5:
			get_clip(4, "Exit_freaky+friday_multimedia_live+action_clip4");
			
			break;
		default:
			get_preview(side);
			
			break;
		
		
		
	}
}
function launchSendCookie()
{
	openWindow2("send_cookie_main.html","friend", 540,410);
}


exitLinkArray = new Array();
	exitLinkArray[0] = escape("Exit_stitch+the+movie_sell+movies_animation_order+now");
	








