// link disclaimer for pop-up
function disclaimer(url) {
theURL(url, 'newWin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0, width=760,height=480');
}

// the Disney version
function theURL(url,width,height,scrollbars,name){
if (name != null) { url = url + '\",\"'+name+'\"'; } else { url = url + '\",\"_blank\"'; }
if (width != null) { url = url + ',\"width='+width+',height='+height; if (scrollbars != null) { url = url + ',scrollbars\"' } else { url = url + '\"'; } }
var popDisclaimer=window.open("","disclaimer","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=370,height=210,top=100,left=150,screenX=180,screenY=100");
popDisclaimer.document.write ('<html>');
popDisclaimer.document.write ('<head>');
popDisclaimer.document.write ('<title>Disney.com - Disclaimer</title>');
popDisclaimer.document.write ('<SCR'+'IPT TYPE="text/javascript" LANGUAGE="JavaScript">');
popDisclaimer.document.write ('sendTimer = setTimeout("sendToClientSide()",1500);closeTimer = setTimeout("window.close()",15000);');
popDisclaimer.document.write ('function sendToClientSide(){window.open("'+url+');}');
popDisclaimer.document.write ('</scr'+'ipt>');
popDisclaimer.document.write ('</head>');
popDisclaimer.document.write ('<body bgcolor="#FFFFFF" text="#0065CE" link="#FFFF80" vlink="#FFFF80" alink="#FFFF80" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>');
popDisclaimer.document.write ('<table width="370" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="http://disney.go.com/sponsors/images/disclaimer_top.gif" width="370" height="27" alt="" border="0"></td></tr><tr><td><table width="330" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td><br><FONT FACE="Verdana,sans-serif" SIZE="2" COLOR="#0065CE"><b>The web site you are about to link to is not controlled by Disney Online and different terms of use and privacy policy will apply. By proceeding you agree and understand that Disney Online is not responsible for the site you are about to access.</b></FONT><br><br></td></tr></table>');
popDisclaimer.document.write ('</td></tr><tr bgcolor="#0000CC"><td align="center" height="20"><a href="javascript:window.close();"><FONT FACE="Verdana,sans-serif" SIZE="1" COLOR="#FFFF00"><b>Close this window</b></font></a></td></tr></table>');
popDisclaimer.document.write ('</body>');
popDisclaimer.document.write ('</html>');
}
// end link disclaimer

function claim() { 
	try{
	win.close();
	}catch(e){}
	win = window.open('http://www.gotdownloads.com/Devo2-0/', 'newWin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0, width=760,height=480');
	win.focus();
	//disclaimer('http://www.gotdownloads.com/Devo2-0/')
}

function buy() { 
	GOurl('http://disneyshopping.go.com/DSSectionPage.process?Merchant_Id=2&Section_Id=11886&Product_Id=194373')
	//GOurl('http://www.musicspacekids.com/referral.asp?tracking_id=devo2&type=P&product=MS0868')
}

function hob() { 
window.open('http://www.hob.com/tickets/eventdetail.asp?eventid=39082', 'devopop', 'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=600,height=400') 
}

function setBuddyIcon(num) {
win = window.open('buddyicon.html?icon=' + num,  
'buddies','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0, width=430,height=250');
win.focus();
}

function screenMac() {
win = window.open('download.html?theFile=http://disney.go.com/disneyrecords/Song-Albums/Devo20/downloads/devo_ss_MAC.sit','download','height=220,width=415');
win.focus();
}

function screenPc() {
win = window.open('download.html?theFile=http://disney.go.com/disneyrecords/Song-Albums/Devo20/downloads/devo_ss_pc.zip','download','height=220,width=415');
win.focus();
}

function wall800() {
win = window.open('wall_800.html','download','scrollbars=yes,resizable=no, height=450,width=700');
win.focus();
}

function wall1024() {
win = window.open('wall_1024.html','download','scrollbars=yes,resizable=no, height=450,width=700');
win.focus();
}

function wall1280() {
win = window.open('wall_1280.html','download','scrollbars=yes,resizable=no, height=450,width=700');
win.focus();
}

function press1(){ docOp('press1.pdf','press','press1.pdf'); }
function press2(){docOp('press2.pdf','press','press2.pdf'); }
function press3(){ docOp('press3.pdf','press','press3.pdf'); }
function press4(){ docOp('press4.pdf','press','press4.pdf'); }
function press5(){ docOp('press5.pdf','press','press5.pdf'); }
function press6(){ docOp('press6.pdf','press','press6.pdf'); }
function press7(){ docOp('press7.pdf','press','press7.pdf'); } 
function docOp(filename,target,windowTitle){
	var dWin = target + "objDocWin"; 
	
	if (window[dWin] && !window[dWin].closed){
			window[dWin].close();
			//window[dWin].execCommand("Refresh");
		}
		
	window[dWin] = window.open('',target,'menubar=1,location=0,toolbar=0,resizable=1,status=0');	
	window[dWin].name = dWin; 

	var dPage = '<html>\r\n<head>\r\n';
	var winTitle = (windowTitle) ? windowTitle:filename.substring(filename.lastIndexOf("/")+1);
	dPage += '<title>'+winTitle+'</title>\r\n';
	dPage += '</head>\r\n';
	dPage += '<frameset rows="100%,*" border="0" frameborder="0" framespacing="0">\r\n';
	dPage += '<frame name="'+target+'" src="about:blank">\r\n';
	dPage += '</frameset>\r\n';
	dPage += '</html>';
	window[dWin].document.write(dPage);
	setTimeout('dLoad("'+dWin+'","'+target+'","'+filename+'")',0);
	window[dWin].focus();
}

function dLoad(dWin,target,filename){
	var dPage = '<html>\n<head>\n<title></title>\n';
	var wDF = window[dWin].frames[target];
	wDF.document.write(dPage); 
	
	var doc = new Image();
	doc.onerror = function(){
		if (window[dWin] && !window[dWin].closed){
			wDF.location.replace(this.src);
		}
	}
	doc.src = filename;
}

function incubator() {
window.location.href="http://radio.disney.go.com/music/incubator/index.html"
}

