/*---SORRY FOR ANY UNORTHODOX CODING TECHNIQUES---*/
window.onerror=function(){ return true; }
var _proto='http://';
try{ var addMe=(document.location.href.indexOf('.go.com')==-1)?'tvplex-tsdev.online.disney.com':'tvplex.go.com'; }
catch(add){var addMe='tvplex-tsdev.online.disney.com';}
try{ if (window.location.protocol == "https:"){ _proto='https://'; } } catch(prot){}
root='http://'+addMe+'/buenavista/tonydanza'; imgRoot=_proto+addMe+'/buenavista/tonydanza/images';
function params(wut,qp,dflt){ dflt=(dflt==null)?'':dflt; try{r=unescape(wut.match(new RegExp(qp+"=+([^&;]*)"))[1]);}catch(qp){r=dflt;} return r; }
function gid(_id){ return document.getElementById(_id); }

var basehead='';
if (location.href.match(new RegExp("(forums|forumsqa|joe|register|registerqa|studio)\.go\.com"))!=null){
basehead=root+'/';
} else {
tfound=0; lochash=location.href.split(/\//);
for (tfer in lochash){ if (lochash[tfer]=='tonydanza'){ tfound=lochash.length-tfer-2; break; }}
for (tfer=0; tfer<tfound; tfer++){ basehead+='../'; }
}

function rollins(e){
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (j=0;j<myArraySet.length;j++){ if (myArraySet[j][0]==thislink.id+'_over'){document.getElementById(thislink.id).src=myArraySet[j][1].src; break;}}}
function unrollins(e){
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (k=0;k<myArraySet.length;k++){ if (myArraySet[k][0]==thislink.id){ document.getElementById(thislink.id).src=myArraySet[k][1].src; break;}}}
function rolloverInit(){
myArraySet=new Array(); myImages=new Array(); count=-1;
for (i=0;i<document.links.length;i++){
elk=document.links[i];
if (elk.id!=""){
try{ bob=document.getElementById('i'+elk.id); unName=bob.src; count++;
c3=bob.src.replace(/-off\./gi,'-on.').replace(/_off\./gi,'_on.');
thisImage=new Image(); thisImage.src=c3; myArraySet[count]=new Array(bob.id+'_over',thisImage);
elk.onmouseover=rollins; count++; thisImage=new Image(); thisImage.src=unName; myArraySet[count]=new Array(bob.id,thisImage);elk.onmouseout=unrollins;
} catch(none){}
}}}


document.writeln('<style>');
document.writeln('body { background-color:#D2F7FF; text-align:center; margin:0px; font:14px arial; color:black; }');
document.writeln('.e {color:#e9e6e1; font-family:Arial,Helvetica,sans-serif; font-size:12px; }');
document.writeln('.e:hover {color:white;}');
document.writeln('.el {color:#6F3F0E;}');
document.writeln('.el:hover {color:#D70F11;}');
document.writeln('#mainer a{color:#6F3F0E;}');
document.writeln('#mainer a:hover {color:#D70F11;}');
document.writeln('.tlink {color:#072B5F; padding:0px 1px 0px 1px;}');
document.writeln('.tlink:hover {color:white; background:#5278A7;}');
document.writeln('.fake {color:#1C3F94; font-weight:bold;}');
document.writeln('.tb{font-family:Arial,Helvetica,sans-serif; font-size:12px; color:#2E2925;}');
document.writeln('td{font-family:arial,helvetica; font-size:14px; color:#222;}');
document.writeln('#FOOTER a{ color:#3647B3 !important;}');
document.writeln('#CONTENT{ width:780px; margin:0px auto 0px auto; padding:0px; background:#ffffff; }\
#FLASHCONTENT{ position:absolute; width:800px; height:560px; left:1px; top:18px; overflow:hidden; }\
.CONTENT{ border-bottom:1px solid #ABDCEF; border-top:1px solid #ABDCEF; }\
#WRAPPER{ width:780px; margin:0px auto 0px auto; padding:0px; }\
#FLASHWRAPPER{ width:800px; height:580px; position:relative; margin:0px auto 0px auto; padding:0px; }\
#CHROME{ position:absolute; width:780px; height:28px; left:0px; top:0px; overflow:hidden; }\
#FLASHCHROME{ position:absolute; width:780px; height:28px; left:10px; top:0px; overflow:hidden; }\
#BOTTOMNAV{ width:798px; background:#6683BD; text-align:center; margin:0px auto 0px auto; padding:0px; }\
#hed{ font:bold 15px arial; }\
#TABLEAU td{ vertical-align:top; }\
.TEAL{ color:#0084AC; }\
.GRAPE{ color:#46639d; }\
.BLUE{ color:#1C3F94; }\
#PL15{ padding-left:15px; }\
#BOTS a, #INFODIV a{color:#61823b; text-decoration:underline; }\
#BOTS a:hover, #INFODIV a:hover{ text-decoration:none; }\
a{color:#1C3F94; text-decoration:underline; }\
a:hover{ text-decoration:none; }\
.PREP{ color:#1C3F94; font-size:12px; margin-left:-7px; }\
#gFOOTER a{ text-decoration:none; }');
document.writeln('</style>');

styles=[
["#STEALTH, #NEWER","display:none;"], ["#SHOWER, #OLDER","display:block;"]
];
document.writeln('<style>');  for (sty in styles){ document.writeln(styles[sty][0]+'{ '+styles[sty][1]+' }'); }  document.writeln('</style>');
function flipCSS(){
styles=[ ["#SHOWER, #OLDER","display:none;"],["#STEALTH, #NEWER","display:block;"] ];
document.writeln('<style>');  for (sty in styles){ document.writeln(styles[sty][0]+'{ '+styles[sty][1]+' }'); }  document.writeln('</style>');
}

// axis graphics hack-a-thon
function changeHeight(x){
document.embeds[0].height = navigator.appName == "Netscape" && navigator.appVersion.indexOf("Safari")<0 ? x : null;document.getElementById("movie").height=x;
}
function setReset(){}
function resetNav(){}
// end axis graphics hack-a-thon

function popDesk(x){
x=x.replace('//','/'); x=x.replace('data/desktops/',''); x=x.replace('.jpg','');
if (x.indexOf('800')>-1){ w=794; h=594; }
else if (x.indexOf('1024')>-1){ w=1020; h=764; }
else { w=1276; h=1020; }
hitbox.Set_hbPageView("popwallpaper_"+x,"/TVPlex/TonyDanza",_acct);
void(window.open('popwallpaper.html?'+x,"_blank",'width='+w+',height='+h+',top=1,left=1,scrollbars=0,statusbar=0'));
}

function popBuddyIcons(){
void(centerIt(400,270,'pop-icon-instructions.html',"_blank"));
hitbox.Set_hbPageView("popbuddyicons","/TVPlex/TonyDanza",_acct);
}

function writeFlash(movie,width,height,id,base,_bgcolor,_vars){
id=(id==null)?'swf':id; width=(width==null)?'800':width; height=(height==null)?'500':height;
document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+_proto+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'" id="'+id+'"><param name="movie" value="'+movie+'"><param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="opaque">');
if (_bgcolor!=null){document.writeln('<param name="bgcolor" value="'+_bgcolor+'">'); }
if (base!=null){document.writeln('<param name="Base" value="'+base+'">'); }
if (_vars!=null){document.writeln('<param name="flashvars" value="'+_vars+'">'); }
document.write('<embed src="'+movie+'" menu="false" quality="high" pluginspage="'+_proto+'www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" id="'+id+'" swLiveConnect=true wmode="opaque"');
if (base!=null){document.write(' Base="'+base+'"'); }
if (_bgcolor!=null){document.write(' bgcolor="'+_bgcolor+'"'); }
if (_vars!=null){document.write(' flashvars="'+_vars+'"'); }
document.write('></embed></object>');
}

function popVideo(){
winny=centerIt(360,340,'','_blank');
winny.document.writeln('<html><head><title>The Tony Danza Show</title></head><body bgcolor="#D2F7FF" text="#000000" link="#1C3F94" vlink="#1C3F94" alink="#333333" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"><style>td{font:11px arial;}</style><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="320" height="240" id="m"><param name="movie" value="data/gallery/show_preview.swf"><param name="quality" value="high"><param name="menu" value="false"><embed src="data/gallery/show_preview.swf" menu="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="320" height="240" id="m"></embed></object></td></tr><tr><td>&nbsp; &copy; Disney Enterprises, Inc. All rights reserved.</td><td align="right"><a href="javascript:window.close();">close this window</a> &nbsp;</td></tr></table></body></html>');
winny.document.close();
}

function writeFooterNav(){
document.writeln('<table width="770" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td align="center"><a href="'+root+'/sitemap.html" class="e" style="text-decoration:none;">- Site Map -</a></td></tr></table>');
}

// link disclaimer
function GOurl(url) {
_width=400; _height=170; if (navigator.appName == "Netscape"){ height+=16; }
var pip=window.open("","disclaimer","width="+_width+",height="+_height+",top=1,left=1,statusbar=0,scrollbars=0"); pdiddy=pip.document;
pdiddy.write('<html><head><title>The Tony Danza Show - Disclaimer</title><scr'+'ipt type="text/javascript" language="javascript">sendTimer = setTi'+'meout("sendToClientSide()",1500);closeTimer = setTi'+'meout("window.close()",15000);func'+'tion sendToCli'+'entSide(){window.op'+'en("'+url+'");}</scr'+'ipt></head><body bgcolor="#ffffff" text="#000000" link="#1C3F94" vlink="#0c2f84" alink="#2c4fa4" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="background:url('+imgRoot+'/disclaimer-bg-white.jpg) no-repeat center; background-color:#fff;"><table width="100%" height="100%" border="2" bordercolor="#6683BD" cellspacing="0" cellpadding="0"><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="8"><tr><td><div style="font:bold 11px arial,helvetica; padding-top:6px;">');
pdiddy.write('The web site you are about to link to is not controlled by "The Tony Danza Show" or Buena Vista Television, and different terms of use and privacy policy will apply. By proceeding you agree and understand that "The Tony Danza Show" or Buena Vista Television are not responsible for the site you are about to access.<br>');
pdiddy.write('<div style="height:10px"><spacer/></div>If your page does not load within a few seconds, please <nobr><a href="javascript:sendToCli'+'entSide();">click here</a> </nobr>to open it.<div align="center" style="font:bold 10px arial; margin-top:8px;"><a href="javascript:window.close();">close this window</a></div></div></td></tr></table></td></tr></table></body></html>');
pdiddy.close();
}
// end link disclaimer

// Footer
function writePrivacy(coloroverride){ document.writeln('<font face="verdana, helvetica, arial" size="1">');
coloroverride=(coloroverride==null)?'#3647B3':coloroverride;
document.writeln('<span id="gFOOTER"><br><a href="https://register.go.com/tonydanza/index" style="color:'+coloroverride+';">Register</a> | <a href="https://register.go.com/tonydanza/lists" style="color:'+coloroverride+';">Guest Services</a> | <a href="http://register.go.com/go/goFAQ" style="color:'+coloroverride+';" target="_blank">Help</a>');
writeNBFooterSmall('&copy; Disney Enterprises, Inc. All rights reserved.',null,coloroverride);
document.writeln('</span>');
rolloverInit();
}

leftPos=1, topPos=1, popW=1, popH=1, popDimensions = "";
function centerIt(popW,popH,urlToCenter,centeredWinName){
var w = 800, h = 600; if (document.all || document.layers || document.getElementById) { w=screen.availWidth; h=screen.availHeight; }
leftPos = (w-popW)/2, topPos = (h-popH)/2; popDimensions = 'width='+popW+',height='+popH+',left='+leftPos+',top='+topPos+',scrollbars=0,statusbar=0';
if (urlToCenter != null){ winner=window.open(urlToCenter,centeredWinName,popDimensions); return winner; }
}
function comingSoon(){
winny=centerIt(140,100,'','_blank');
winny.document.writeln('<html><head><title></title></head><body bgcolor="#E9D2A9" text="#462C09" link="#2585B7" vlink="#2585B7" alink="#462C09" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" style="border:1px solid white; font-family:arial,helvetica; font-size:16px;"><br><br><center><b>Coming Soon!</b></center></body></html>');
winny.document.close();
}
/* HITBOX STUFF */
try{ var _pn=document.location.href.match(new RegExp("\/([^\/\?\.]*)\.htm"))[1]; } catch(peein){ var _pn='index'; } if (_pn==""){_pn="index";}
var _mlc="/TVPlex/TonyDanza";
var _acct="DM510312C3MA38EN3;DM51030813MR38EN3;DM5103083LCA38EN3";
/* END HITBOX STUFF */

cWid='780'; cBGcolor='#6683BD'; cTcolor='white';
cBreadcrumb='<a href="http://bventertainment.go.com" class="bcb">BV Entertainment</a> <a class="bc">&gt;</a> <a href="http://tvplex.go.com/buenavista/tonydanza/index.html" class="bc">The Tony Danza Show</a>';
function writeThaChrome(){ writeNBChrome(cWid,cBGcolor,cBreadcrumb,cTcolor); }
function goShop(){ GOurl('http://www.warnermarketing.net/tonydanza'); }

function noFlash7(){
height=200;
if (navigator.appName == "Netscape") height+=16;
winny=window.open("","_blank","width=230,height="+height+",top=1,left=1");
winny.document.writeln('<html><head><title>Flash Upgrade</title>');
winny.document.writeln('<scr'+'ipt language="javascript">');
winny.document.writeln('function flashMe(){');
winny.document.writeln('url="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash;";');
winny.document.writeln('try{ opener.GOurl(url); } catch(e) { window.open(url); } this.close();}');
winny.document.writeln('</scr'+'ipt></head>');
winny.document.writeln('<body bgcolor="#ffffff" text="black" link="#1C3F94" vlink="#0c2f84" alink="#2c4fa4" topmargin=2 leftmargin=2 marginwidth="2" marginheight="2"><table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#6683BD"><tr bgcolor="white"><td height="20"><img src="'+imgRoot+'/disclaimer-logo-sm.gif" width="72" height="29" alt="The Tony Danza Show" border="0"></td></tr><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="8"><tr><td><p align="justify"><font style="font-family:arial,helvetica; font-size:11px; font-weight:bold;">Some features on this site require Flash version 7 to work properly.  You can download this plug-in by clicking on the icon below.<br><br><a href="javascript:flashMe();" style="text-decoration:none; font-size:14px;"><img src="'+_proto+'disney.go.com/globalmedia/guest_services/images/software_center_flash_small.gif" width="39" height="36" border="0" align="middle"> &nbsp; <b>Get FLASH 7 Now!</b></a><br><br><center><font style="font-size:10px; font-weight:bold;"><a href="javascript:window.close();">close this window</a></font></center></td></tr></table></td></tr></table></body></html>');
winny.document.close();
}
function goAuctions(dll){
abby=window.open('http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://www.abcauctions.com&name=danza_toabcauctions_'+dll);
}

var today=new Date(); var xml=''; var _timeflip=false;
function getToday(){
if (params(location.search,'time','')!=''){
today=new Date(params(location.search,'time')); document.cookie='time='+today+'; path=/;';
document.writeln('<div style="position:absolute; top:0px; left:0px; width:250px; height:16px; font:bold 11px arial; color:white; background:#072B5E; border:1px solid white; overflow:hidden; z-index:100;">&nbsp; time: '+today.toString()+'</div>');
} else if (params(document.cookie,'time','')!=''){ today=new Date(params(document.cookie,'time'));
document.writeln('<div style="position:absolute; top:0px; left:0px; width:250px; height:16px; font:bold 11px arial; color:white; background:#072B5E; border:1px solid white; overflow:hidden; z-index:100;">&nbsp; time: '+today.toString()+'</div>');
} else { document.writeln('<scr'+'ipt language="javas'+'cript" src="http://dolutils.go.com/dolutils/tv/funct'+'ions?vars=today"></scr'+'ipt>'); }
}

function doTimeShift(){ //USAGE= doTimeShift(["July 4, 2005","alert('whatever')"], ["July 5, 2005","alert(today)"], ["July 6, 2005","alert('6th')"]);
for (tim=doTimeShift.arguments.length-1; tim>=0; tim--){
thistime=new Date(doTimeShift.arguments[tim][0]); offset=(today.toString().match(/(DT|Daylight)/gi)!=null)?7:8;
thistime.setHours(thistime.getHours()+(offset-(thistime.getTimezoneOffset()/60))); //ALL TIMES PACIFIC
if (today>=thistime){ eval(doTimeShift.arguments[tim][1]); _timeflip=true; break; }
}}

function writePositioned(_code,_left,_top,_width,_height){
document.writeln('<div style="position:relative; height:1px; overflow:visible;">\
<div style="position:absolute; left:'+_left+'px; top:'+_top+'px; width:'+_width+'px; height:'+_height+'px; overflow:hidden;">'+_code+'</div></div>');
}

function writeTopNav(navsec){
navbasehead=(_proto=='https://')?basehead.replace(/http\:/i,'https:'):basehead;
document.writeln('<div id="TOPNAV" style="position:relative; width:780px; height:75px; overflow:hidden;">\
<div id="FLASHNAV" style="position:absolute; width:780px; height:58px; left:-10px; top:18px;">');
writeFlash(navbasehead+'nav_blue.swf'+((navsec!=null)?'?sec='+navsec:''),802,58,'tNav',navbasehead,'#D2F7FF','mouseHere=no');
document.writeln('</div><div id="CHROME" style="position:absolute; width:780px; height:28px; left:0px; top:0px; overflow:hidden;">');
writeThaChrome();
document.writeln('</div></div>');
}

function writeBottomNav(navsec){
//document.write('<div style="width:800px; height:61px; margin-left:-10px; overflow:hidden;">');
navbasehead=(_proto=='https://')?basehead.replace(/http\:/i,'https:'):basehead;
writeFlash(navbasehead+'nav_bot_blue.swf'+((navsec!=null)?'?sec='+navsec:''),800,61,'bNav',navbasehead,'#D2F7FF','mouseHere=no');
try{ window.document.tNav.SetVariable("mouseHere", "no"); window.document.bNav.SetVariable("mouseHere", "no"); }catch(suck){}
//document.writeln('</div>');
/*(navsec=='faq')?document.write('<img id="ifaq" src="'+imgRoot+'/nav-bottom-faq-on.gif" width="71" height="23" alt="FAQ" border="0">')
:document.write('<a href="'+root+'/faq.html" id="faq"><img id="ifaq" src="'+imgRoot+'/nav-bottom-faq-off.gif" width="71" height="23" alt="FAQ" border="0"></a>');*/
}

function writeRegistrationHeader(){
document.writeln('<img src="'+imgRoot+'/regstration-header.gif" width="780" height="82" alt="The Tony Danza Show - Registration" border="0"><br>');
}

function goContests(){
extravaDanza=false;
location.href='http://tvplex.go.com/buenavista/tonydanza/contests'+((extravaDanza)?'/extravadanza/index':'')+'.html';
}