// 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_clips(side)
{
	var url="preview/preview_classy.html";
	openWindow2(url,"special",540,400);
}
function get_soundtrack()
{
	var url="http://hollywoodrecords.go.com/freakyfriday/index_dis.html";
	popup(url,792,600,true);
}
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 get_audition()
{
	var url="audition/index.html";
	openWindow2(url,"audition",650,550);
}
function popQuotes()
{
	var url="preview/quotes.html";
	popup(url,540,600,false);
}