styles=[
["body","background:white;"],
["td, div","font:12px arial; color:#295266;"],
["a","color:#ef7600;"],
["#FOOTERDIV","background:white; height:80px;"],
["#chromefooterdiv","font:11px arial; color:#718ea1;"],
["#SKYSCRAPERTD","padding:18px 0 0 10px;"],
["#showhighlightitem a, #highlightlinks a","color:#4c5655;"],
["#showhighlightitem","font-size:12px; border-bottom:1px solid #BEBEBE; background:url(images/arrow-small.gif) left 5px no-repeat; padding:5px 0 5px 15px;"],
["#MAINWRAPPER","background:white; position:relative; width:960px; margin:0 auto 0 auto;"],
[".leftimage","margin:0 10px 10px 0;"],
[".rightimage","margin:0 0 10px 10px;"],
[".blue","color:#087DB5 !important;"]
];
document.writeln('<style>');  for (sty in styles){ document.writeln(styles[sty][0]+'{ '+styles[sty][1]+' }'); }  document.writeln('</style>');

function AddEvent(obj, evType, fn){ 
if (obj.addEventListener){ obj.addEventListener(evType, fn, false); return true; }
else if (obj.attachEvent){ var r = obj.attachEvent("on"+evType, fn); return r; }
else { return false; } 
}

function $sec(_str){ return (window.location.protocol=="https:")?_str.replace(/http:/,'https:'):_str; }

_rnk="http://regisandkelly.go.com/";
_bve="http://bventertainment.go.com/tv/buenavista/regisandkelly/";
//if (window.location.href.indexOf("go.com")==-1){ _bve="http://tsdev-studio.online.disney.com/tv/buenavista/regisandkelly/"; }

$nav=[
{ cat:"home", url:"http://liveregisandkelly.com" },
{ cat:"showinfo", url:_rnk+"guest_guide.html", items:[
{ id:"guestguide", url:_rnk+"guest_guide.html" },
{ id:"gettickets", url:_bve+"get_tickets.html" },
{ id:"locallistings", url:_bve+"local_listings.html" },
{ id:"inbox", url:_bve+"special/askregiskelly/" },
{ id:"gelmanspage", url:_bve+"gelman.html" },
{ id:"faq", url:_bve+"faq.html" }
] },
{ cat:"hosts", url:_bve+"regis_trivia.html", items:[
{ id:"regis", url:_bve+"regis_trivia.html" },
{ id:"kelly", url:_bve+"kelly_trivia.html" }
] },
{ cat:"videophotos", url:_bve+"host_chat.html", items:[
{ id:"hostchat", url:_bve+"host_chat.html" },
{ id:"videoarchive", url:_bve+"video_archive.html" },
{ id:"webexclusives", url:_bve+"special/webexclusives/index.html" },
{ id:"performances", url:_bve+"special/livestage/index.html" },
{ id:"idolsonlive", url:_bve+"special/idolsonlive/index.html" },
{ id:"20th", url:_bve+"special/20thanniversary/index.html" },
{ id:"photos", url:_bve+"gallery.html" }
] },
{ cat:"funstuff", url:"http://blogs.liveregisandkelly.com/behind_the_scenes/", items:[
{ id:"blog", url:"http://blogs.liveregisandkelly.com/behind_the_scenes/" },
{ id:"trivia", url:_bve+"contests/traveltrivia/index.html" },
{ id:"recipes", url:_rnk+"recipes.html" },
{ id:"fashionfinder", url:_rnk+"fashion_finder.html" },
{ id:"themeweeks", url:_bve+"features.html" },
{ id:"submissions", url:_bve+"submissions.html" },
{ id:"downloads", url:_bve+"downloads.html" }
] },
{ cat:"tickets", url:_bve+"get_tickets.html" },
{ cat:"help", url:_bve+"faq.html", items:[
{ id:"faq", url:_bve+"faq.html" },
{ id:"contactus", url:"javascript:feedback()" }
] }
]

function writeNewNav(){
document.writeln('<div id="htmlnavdiv" style="width:775px; height:40px;"><table border="0" cellspacing="0" cellpadding="0" align="center"><tr>');

for (i=0; i<$nav.length; i++){
oheye=addZero(i+1);
document.writeln('<td valign="top"><div style="position:relative;">');
if ($nav[i].items!=null){
document.writeln('<div id="extended'+oheye+'" style="position:absolute; top:34px; z-index:1;"><img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-top.gif" id="inav'+oheye+'-top" border="0" alt=""><br>');
for (j=0; j<$nav[i].items.length; j++){
document.writeln('<a href="'+$nav[i].items[j].url+'" id="nav'+oheye+'-'+$nav[i].items[j].id+'"><img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-'+$nav[i].items[j].id+'-off.gif" id="inav'+oheye+'-'+$nav[i].items[j].id+'" border="0" alt=""></a><br>');
if (j<$nav[i].items.length-1){
document.writeln('<img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-separator.gif" border="0" alt=""><br>');
}
}
document.writeln('<img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-bottom.gif" border="0" alt=""></div>');
}
document.writeln('<a href="'+$nav[i].url+'" id="nav'+oheye+'"><img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-'+$nav[i].cat+'-off.gif" id="inav'+oheye+'" border="0" alt=""></a>');
document.writeln('</div></td>');
}

document.writeln('</tr></table></div>');

hide('extended02'); hide('extended03'); hide('extended04'); hide('extended05'); hide('extended07');
}

function writePositionedNav(){
document.writeln('<div id="htmlnavdiv" style="width:775px; height:40px; position:absolute; left:225px; top:108px;"><table border="0" cellspacing="0" cellpadding="0" align="center"><tr>');

for (i=0; i<$nav.length; i++){
oheye=addZero(i+1);
document.writeln('<td valign="top"><div style="position:relative;">');
if ($nav[i].items!=null){
document.writeln('<div id="extended'+oheye+'" style="position:absolute; top:34px; z-index:1;"><img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-top.gif" id="inav'+oheye+'-top" border="0" alt=""><br>');
for (j=0; j<$nav[i].items.length; j++){
document.writeln('<a href="'+$nav[i].items[j].url+'" id="nav'+oheye+'-'+$nav[i].items[j].id+'"><img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-'+$nav[i].items[j].id+'-off.gif" id="inav'+oheye+'-'+$nav[i].items[j].id+'" border="0" alt=""></a><br>');
if (j<$nav[i].items.length-1){
document.writeln('<img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-separator.gif" border="0" alt=""><br>');
}
}
document.writeln('<img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-bottom.gif" border="0" alt=""></div>');
}
document.writeln('<a href="'+$nav[i].url+'" id="nav'+oheye+'"><img src="'+$sec(_bve)+'images/nav/nav'+oheye+'-'+$nav[i].cat+'-off.gif" id="inav'+oheye+'" border="0" alt=""></a>');
document.writeln('</div></td>');
}

document.writeln('</tr></table></div>');

hide('extended02'); hide('extended03'); hide('extended04'); hide('extended05'); hide('extended07');
}

function writePrivacy(elcolor,txtcolor){

elcolor=(elcolor==null)?'#ef7600':elcolor;
document.writeln('<div style="text-align:center; margin: 0 auto;"><span style="font:10px verdana; color:'+((txtcolor==null)?'#718ea1':txtcolor)+';">');
document.writeln('<br><a href="https://register.go.com/regisandkelly/index" style="color:'+elcolor+';">Register</a> | <a href="https://register.go.com/regisandkelly/lists" style="color:'+elcolor+';">Guest Services</a> | <a href="http://register.go.com/go/goFAQ" style="color:'+elcolor+';" target="_blank">Help</a><br>');
writeNBFooterSmall('&copy; Disney * ABC Domestic Television. All rights reserved.',null,elcolor);
document.writeln('</span></div>');
rolloverInit();

AddEvent(gid('nav02'),'mouseover',function(){ show('extended02'); })
AddEvent(gid('extended02'),'mouseover',function(){ show('extended02'); gid('inav02').src=$sec(_bve)+'images/nav/nav02-showinfo-on.gif'; })
AddEvent(gid('nav02'),'mouseout',function(){ hide('extended02'); })
AddEvent(gid('extended02'),'mouseout',function(){ hide('extended02'); gid('inav02').src=$sec(_bve)+'images/nav/nav02-showinfo-off.gif'; })
AddEvent(gid('nav03'),'mouseover',function(){ show('extended03'); })
AddEvent(gid('extended03'),'mouseover',function(){ show('extended03'); gid('inav03').src=$sec(_bve)+'images/nav/nav03-hosts-on.gif'; })
AddEvent(gid('nav03'),'mouseout',function(){ hide('extended03'); })
AddEvent(gid('extended03'),'mouseout',function(){ hide('extended03'); gid('inav03').src=$sec(_bve)+'images/nav/nav03-hosts-off.gif'; })
AddEvent(gid('nav04'),'mouseover',function(){ show('extended04'); })
AddEvent(gid('extended04'),'mouseover',function(){ show('extended04'); gid('inav04').src=$sec(_bve)+'images/nav/nav04-videophotos-on.gif'; })
AddEvent(gid('nav04'),'mouseout',function(){ hide('extended04'); })
AddEvent(gid('extended04'),'mouseout',function(){ hide('extended04'); gid('inav04').src=$sec(_bve)+'images/nav/nav04-videophotos-off.gif'; })
AddEvent(gid('nav05'),'mouseover',function(){ show('extended05'); })
AddEvent(gid('extended05'),'mouseover',function(){ show('extended05'); gid('inav05').src=$sec(_bve)+'images/nav/nav05-funstuff-on.gif'; })
AddEvent(gid('nav05'),'mouseout',function(){ hide('extended05'); })
AddEvent(gid('extended05'),'mouseout',function(){ hide('extended05'); gid('inav05').src=$sec(_bve)+'images/nav/nav05-funstuff-off.gif'; })
AddEvent(gid('nav07'),'mouseover',function(){ show('extended07'); })
AddEvent(gid('extended07'),'mouseover',function(){ show('extended07'); gid('inav07').src=$sec(_bve)+'images/nav/nav07-help-on.gif'; })
AddEvent(gid('nav07'),'mouseout',function(){ hide('extended07'); })
AddEvent(gid('extended07'),'mouseout',function(){ hide('extended07'); gid('inav07').src=$sec(_bve)+'images/nav/nav07-help-off.gif'; })


}


function writeHeader(hdr){
hvars='';
if (hdr!=null){
if (hdr.p!=null && hdr.p!=''){ hvars+="p="+hdr.p+"&"; }
if (hdr.t!=null && hdr.t!=''){ hvars+="t="+hdr.t+"&"; }
if (hdr.w==null || hdr.w==''){ hdr.w='500'; }
if (hdr.h==null || hdr.h==''){ hdr.h='100'; }
if (hdr.textcolor==null || hdr.textcolor==''){ hdr.textcolor='EE7000'; }
hvars+="textcolor="+hdr.textcolor+"&";
if (hdr.current_page!=null && hdr.current_page!=''){ hvars+="current_page="+hdr.current_page+"&"; }
if (hdr.s!=null){
hvars+="s="+hdr.s.replace(/<b>/gi,'').replace(/<\/b>/gi,'')+"&";
bstart=hdr.s.indexOf('<b>');
if (bstart!=-1){ bstop=hdr.s.replace(/<b>/gi,'').indexOf('</b>'); if (bstop!=-1){ hvars+="b="+bstart+"&e="+bstop; }}
} else { hvars+="&s="; }}
new $flash({ movie:$sec(_bve)+"header-text.swf", w:hdr.w, h:hdr.h, vars:hvars, wmode:'transparent', bgcolor:'white', salign:'top left' }).render();
}

function writeItemTitle(_title,_width,_fontsize,_fontcolor,_bluedot){
_img=(_bluedot==null)?root+'/images/orangedot.gif':root+'/images/bluedot.gif'
_width=(_width==null)?600:_width; _fontsize=(_fontsize==null)?14:_fontsize; _fontcolor=(_fontcolor==null)?"#EF7600":_fontcolor;
document.writeln('<div style="height:'+(_fontsize+2)+'px; width:'+_width+'px; background:url('+_img+') center left repeat-x;">\
<table border="0" cellspacing="0" cellpadding="0" style="background:white; height:'+(_fontsize+2)+'px;"><tr><td style="font:bold italic '+_fontsize+'px arial; color:'+_fontcolor+'">'+_title+'&nbsp;</td></tr></table></div>');
}

function $brightcove(br){
br.w=(br.w!=null)?br.w:300; br.h=(br.h!=null)?br.h:361; br.ads=(br.ads!=null)?br.ads:true; br.banner=(br.banner!=null)?br.banner:true;
br.autoStart=(br.autoStart!=null)?br.autoStart:false;
if (br.ads==true){
flashVars="adURLBase=http://bventertainment.go.com/brightcove/&pwidth="+br.w+"&pheight="+br.h+"&autoStart="+br.autoStart+"&playerId="+br.playerId+"&videoId="+br.videoId+"&banner="+br.banner;
new $flash({ movie:"http://bventertainment.go.com/brightcove/brightcove-player.swf", w:br.w, h:br.h, vars:flashVars }).render();
} else {
new $flash({ movie:"http://services.brightcove.com/services/viewer/federated/"+br.playerId, w:br.w, h:br.h, vars:"continuousPlay=false&playerId="+br.playerId+"&viewerSecureGatewayURL=https://services.brightcove.com/services/amfgateway&servicesURL=http://services.brightcove.com/services&cdnURL=http://admin.brightcove.com&domain=embed&autoStart="+br.autoStart, base:"http://admin.brightcove.com" }).render();
}
}

function $brightcovegallery(br){
br.w=(br.w!=null)?br.w:500; br.h=(br.h!=null)?br.h:400;
new $flash({ movie:"http://mstories.vo.llnwd.net/o1/federated/shell.swf?proxyURL=http://dp.storymaker-se.com/DaliDataProxy/x.aspx&proxyStore=bcmeta&expID="+br.experienceId, w:br.w, h:br.h }).render();
}

function Joiterator(joey){
this.items=joey.items; this.count=joey.items.length; this.numshow=joey.numshow; this.currentItem=this.items[0]; this.currentPage=0;
if (this.numshow=="all"){ this.numshow=this.count; }
try{ this.pageCount=Math.floor(joey.items.length/joey.numshow)+1; }catch(j){ this.pageCount=1; }
var jtp=[]; var jtcp=-1;
for (jj=0; jj<this.count; jj++){
if (jj%this.numshow==0 || isNaN(jj%this.numshow)){ jtcp++; jtp[jtp.length]=[]; }
this.items[jj].index=jj; jtp[jtcp][jtp[jtcp].length]=this.items[jj];
}
this.pages=jtp; this.pageCount=this.pages.length;
this.isFirst=function(){ return (this.currentPage==0 || this.count==0); }
this.isLast=function(){ return (this.currentPage==this.pageCount-1 || this.count==0); }
this.next=function(){ if (!this.isLast()){ this.currentPage++; this.currentItem=this.pages[this.currentPage][0]; }}
this.back=function(){ if (!this.isFirst()){ this.currentPage--; this.currentItem=this.pages[this.currentPage][0]; }}
return this;
}

function randy(hi,lo){ lo=(lo==null)?1:lo;hi=(hi==null)?10:hi; do{ randall=Math.floor(Math.random()*(hi+1)); } while(!((randall>=lo)&&(randall<=hi))); return randall; }