//Begin Chrome Settings
var chromeColor="#003399";   //Blue
var chromeWidth=770;
var bCrumbLevel_1="Toontown";
var bCrumbLevel_2_text="";
var bCrumbLevel_2_url="";
var bCrumbLevel_3_text="";
var bCrumbLevel_3_url="";
var legalFooterColor="#0000FF";
var legalFtrLine1="<div style='font-weight: bold;'>Disney's Toontown Online</div>";
var legalFtrOpts=["Member/Guest Services","https://account.toontown.com/webChangeEmail.php","Help","http://play.toontown.com/faq/","Contact Us","http://apps.disneyblast.go.com/cgi-bin/mail/generic_mail.cgi?template=toontown/toonhelp.tpl"];
var legalFtrCpyRgt='<div style="font: verdana, arial, helvetica, sans-serif 1pt; font-color:#000000;"><a href="http://play.toontown.com/memberAgreement.php">Member Agreements</a>&nbsp;|&nbsp;<a href="http://disney.go.com/guestservices/netiquette.html">House Rules</a><br><span style="color:#000">&copy; Disney. All rights reserved.</span>';
//End Chrome Settings

function bckBtn(){
  history.back(-1);
}
function btnOn(image){
  image.src=image.src.replace("_off.", "_on.")
}
function btnOff(image){
  image.src=image.src.replace("_on.", "_off.")
}
function homeBtn(){
  window.top.location='http://play.toontown.com/';
}
function exitBtn(){
  window.top.location='http://play.toontown.com/';
}
function popUrl(map){
  //defaults
  if (map['id']==null || map['id']==''){
    map['id']='popurl';
  }
  if (map['width']==null || map['width']==''){
    map['width']='600';
  }
  if (map['height']==null || map['height']==''){
    map['height']='800';
  }
  if (map['scroll']==null || map['scroll']==''){
    map['scroll']='0';
  }
  if (map['resize']==null || map['resize']==''){
    map['resize']='0';
  }
  window.open(map['url'],map['id'],"width="+map['width']+",height="+map['height']+",scrollbars="+map['scroll']+",resizable="+map['resize']+"");
}
function popHalloweenFun(){
  window.open('http://play.toontown.com/popups/halloween_fun_puzzle_2008.php','halloweenfun',"width=612,height=792,scrollbars=1,resizable=1");
}
function getSWFById(id){
	return document.getElementById(id);
}
function resizeSwfHeightById(h,id){
	var obj = getSWFById(id);

	var varSwf = thisMovie(id)
	var varDiv = document.getElementById("flashcontent");
	thisMovie(id).height = Number(h.toString())
	varDiv.style.height = obj.height = (h.toString()+"px");
}
function scrollWindow(x,y){
  window.scrollTo(x,y);
}
function thisMovie(movieName){
//alert('thisMovie being called ');
  if (navigator.appName.indexOf("Microsoft")!=-1){
    return window[movieName];
  }else{return document[movieName];}
}
function renderHdr(){
  html='';
  html+='<div id="ttHdr2"><a href="http://play.toontown.com/webHome.php"><img src="http://a.disney.go.com/toontown/global/assets/ttHdr.jpg" alt="Disney&#39;s Toontown Online" title="Disney&#39;s Toontown Online" border="0"></a></div>';
  html+='<div id="ttHdrBar">Are YOU Toon Enough?</div>';
  document.write(html);
}
function renderFavicon(xhtml)
{
  html='';

  if (location.protocol=='https'){
    faviconURL='https://disney.go.com/toontown/favicon.ico';
  }else{
    faviconURL='http://a.disney.go.com/toontown/favicon.ico';
  }

  if (xhtml){
    html+='<link rel="icon" href="'+faviconURL+'" type="image/x-icon" />';
    html+='<link rel="shortcut icon" href="'+faviconURL+'" type="image/x-icon" />';
  }else{
    html+='<link rel="icon" href="'+faviconURL+'" type="image/x-icon">';
    html+='<link rel="shortcut icon" href="'+faviconURL+'" type="image/x-icon">';
  }

  document.write(html);
}