window.onerror=function(){ return true; };
try{ var addMe=(document.location.href.indexOf('.go.com')==-1)?'tsdev-studio.online.disney.com':'bventertainment.go.com'; }
catch(add){var addMe='tsdev-studio.online.disney.com';}
var _proto='http://';
try{ if (window.location.protocol == "https:"){ _proto='https://'; } } catch(lockpee){}
var root=_proto+addMe+'/tv/buenavista/regisandkelly';

currentTravelTrivia="http://bventertainment.go.com/tv/buenavista/regisandkelly/contests/traveltrivia/index.html";

try{ /*---CONCESSION FOR TUESDAY---*/
if (document.location.href.indexOf('tuesday.com')>0){ addMe='tuesday.dev.tuesday.com'; _proto='http://'; root=_proto+addMe+'/bvtv/regis_and_kelly/bin';
}}catch(t){}

try{ _gpn=/([\w-~]*)(\.htm|$|\?|\#|\.cgi)/i.exec(location.href)[1]; } catch(pn){ _gpn='index'; } if (_gpn==""){ _gpn="index"; }
try{ _submlc=new RegExp("regisandkelly(\.go\.com|)(.*|)/"+_gpn,"i").exec(location.href)[2]; } catch(m){ _submlc=''; }
var _gmlc="/TVPlex/LiveWithRegisKelly_redesign";
var _gacct="DM510312C3MA38EN3;DM51030813MR38EN3;DM5103083LCA38EN3";
function hitIt(_hbpn,_hbmlc){ try{ hitbox.Set_hbPageView(_hbpn,_hbmlc,_gacct); }catch(hb){}}

document.writeln('<scr'+'ipt language="javascript" src="'+_proto+'studio.go.com/chrome/chrome.js"><\/scr'+'ipt>');

document.writeln('<scr'+'ipt language="javascript" src="'+_proto+'global.go.com/detect/scripts/master_flash_light.js"><\/scr'+'ipt>');
try{
if (location.href.match(/register(|qa)\.go\.com/gi)==null){
document.writeln('<scr'+'ipt language="javascript" src="http://regisandkelly.go.com/features.js"><\/scr'+'ipt>');
}}catch(e){}


styles=[
["body","margin:0; padding:0; text-align:center; background:#9db6c7;"],
[".white","background:#fff;"],
["td, div","font:12px arial; color:#295266;"],
["form","margin:0; padding:0;"],
["#BANNERDIV","background:url("+root+"/images/bg_tile_top.gif) repeat-x; padding:3px; border-bottom:1px solid #587281;"],
["#CONTENT","background:white;"],
["#HEADERDIV","padding:0; margin:0; background:white;"],
["#MAIN","background:url("+root+"/images/top_bar.gif) no-repeat; padding-top:16px;"],
["#MAIN-WIDE",""],
["#MAIN a, #CONTENT a","color:#ef7600;"],
["#LEFTIMG","padding-right:12px;"],
["#SKYSCRAPERTD","width:180px; text-align:right; padding-bottom:20px;"],
["#FOOTERDIV","height:146px; background:#9db6c7 url("+root+"/images/bg_tile_bottom.gif) repeat-x; font:11px arial; color:#b1cee1;"],
["#WRAPPER","width:770px; margin:0 auto 0 auto;"],
["#MYSPACEDIV","width:840px; margin:0 auto 0 auto; text-align:left;"],
["#MYSPACELEFT","width:40px;"],
["#MYSPACEPHOTO","width:166px;"],
["#MYSPACEMAIN",""],
["#MYSPACEBLURB","padding:2px 2px 6px 2px;"],
["#SQUAREAD","padding-left:10px;"],
[".even","padding:0; margin:3px 3px 3px 18px;"],
[".gray","background:#f6f6f6;"],
[".fade","background:url("+root+"/images/listing_fade.gif) repeat-y;"],
[".subheader","font:bold 14px arial; color:#ef7600;"],
[".header","font:bold 16px arial; color:#ef7600;"],
["input.sm, textarea.sm","width:200px; font:12px arial;"],
[".padleft","padding-left:5px;"],
[".pl10","padding-left:10px;"],
[".padmsg","padding:7 10 10 0;"],
[".padbottom","padding-bottom:5px;"],
[".padinfo","padding:8 0 10 20;"],
[".pad","padding:8 10 10 20;"],
[".med","width:300px;"],
[".text","font:12px/16px arial; color:#295266;"],
[".orange","color:#ef7600;"],
[".orangeborder","border:1px solid #ef7600;"],
[".dark td.indent","background:url("+root+"/images/myspace/white6.gif) repeat-y left #f5f5f5;"],
[".indent"," background:url("+root+"/images/myspace/white6.gif) repeat-y left;"],
[".dark","background-color:#f5f5f5;"],
[".legal","font:9px arial; color:#c0c0c0;"],
[".blue","font:12px arial; color:#295266 !important; text-decoration:none;"],
[".blue:hover","text-decoration:underline;"],
[".hostchatsm","font:10px/12px arial;"],
[".hostchatsm a","text-decoration:none; color:#295266 !important;"],
[".hostchatsm a:hover","text-decoration:underline;"],
[".subtitle","font:oblique 12px arial; color:#000000;"],
["#FEATURES a, #FEATURES a","color:#ef7600;"],
["ol.outdent", "margin-left:25px;"],
["html>body ol.outdent", "margin-left:-15px;"],
[".boldfeature", "font-weight:bold;"],
[".featurehdr", "font-weight:bold; font-size:16px;"],
[".headerrecentfeat","font:bold 14px arial; color:#748693;"],
["table.recentfeat tr td a","font:bold 11px arial; color:#ef7600;"],
["#chromefooterdiv","color:#B1CEE1;"],
["#STEALTH, #NEWER","display:none;"],
[".sup","font:bold 8px/8px verdana; vertical-align:40%;"],
["a","text-decoration:none;"]
];

document.writeln('<style>');  for (sty in styles){ document.writeln(styles[sty][0]+'{ '+styles[sty][1]+' }'); }  document.writeln('</style>');

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 addZero(vNumber){ return ((vNumber<10)?"0":"")+vNumber; }
function gid(_id){ return document.getElementById(_id); }
function inner(_gid,_text){ gid(_gid).innerHTML=_text; }
function show(){ for (i=0; i<show.arguments.length; i++){ gid(show.arguments[i]).style.display='block'; }}
function hide(){ for (i=0; i<hide.arguments.length; i++){ gid(hide.arguments[i]).style.display='none'; }}
function $sec(_str){ return (window.location.protocol=="https:")?_str.replace(/http:/,'https:'):_str; }

function centerIt(popW,popH,urlToCenter,centeredWinName,otherAttributes){
leftPos=(screen.availWidth-popW)/2; topPos=(screen.availHeight-popH)/2;
otherAttributes=(otherAttributes==null)?'statusbar=0,scrollbars=0':otherAttributes;
return window.open(urlToCenter,centeredWinName,"width="+popW+",height="+popH+",left="+leftPos+",top="+topPos+","+otherAttributes)
}

function writePositioned(_code,_left,_top,_width,_height,_id){
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;" '+((_id==null)?'':'id="'+_id+'"')+'>'+_code+'</div></div>');
}

// link disclaimer
function GOurl(url){
url=url.replace(/ *$/mg,'').replace(/^ */mg,'');
if (url.indexOf('http')==-1){ url="http://"+url; }
window.open(url);
/*if (url.indexOf(".go.com")!=-1){
window.open(url);
} else {
height=(navigator.appName == "Netscape")?180:167;
if (url.indexOf('http')==-1){ url="http://"+url; }
var popDisclaimer=window.open("","disclaimer","width=374,height="+height+",top=1,left=1,screenX=1,screenY=1,");
popDisclaimer.document.writeln('<html><head><title>LiveRegisAndKelly.com - Disclaimer</title>\
<SCR'+'IPT TYPE="text/javascript" LANGUAGE="JavaScript">\
sendTimer = setTimeout("sendToClientSide()",1500);closeTimer = setTimeout("window.close()",15000);\
function sendToClientSide(){window.open("'+url+'");}\
</scr'+'ipt></head>\
<body text="027297" link="309898" vlink="309898" alink="027297" bgcolor="white" topmargin=0 leftmargin=0 marginwidth="0" marginheight="0">\
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="border:2px solid #5AB3B8;"><tr><td bgcolor="#003E63"><img src="'+root+'/images/disclaimer-logo.gif" width="28" height="27" alt="Live with Regis and Kelly" border="0" hspace="1" vspace="1"></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;">The web site you are about to link to is not controlled by "Live with Regis and Kelly" and different terms of use and privacy policy will apply. By proceeding you agree and understand that "Live" is not responsible for the site you are about to access.<br><img src="'+root+'/images/blank.gif" border="0" width="1" height="15"><br>If your page does not load within a few seconds, please <nobr><a href="javascript:sendToClientSide();"><font color="#5AB3B8">click here</font></a> </nobr>to open it.<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>');
popDisclaimer.document.close();
}*/
}
// end link disclaimer

function $flash(ef){ //new $flash({ movie:'', w:'100%', h:'173', bgcolor:'', base:'', vars:'', id:'' }).render();
ef.w=(ef.w==null)?'590':ef.w; ef.h=(ef.h==null)?'450':ef.h; ef.id=(ef.id==null)?'flashmovie':ef.id; ef.wmode=(ef.wmode==null)?'opaque':ef.wmode;
sendback={}
flashstr='<object id="'+ef.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+_proto+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ef.w+'" height="'+ef.h+'"><param name="movie" value="'+ef.movie+((ef.vars!=null)?'?'+ef.vars:'')+'"><param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="'+ef.wmode+'"><param name="scale" value="noscale"><param name="allowScriptAccess" value="always"><param name="show" value="#ffffff">';
if (ef.base!=null){flashstr+='<param name="base" value="'+ef.base+'">'; }
if (ef.salign!=null){flashstr+='<param name="salign" value="'+ef.salign+'">'; }
if (ef.bgcolor!=null){flashstr+='<param name="bgcolor" value="'+ef.bgcolor+'">'; }
if (ef.vars!=null){flashstr+='<param name="flashVars" value="'+ef.vars+'">'; }
flashstr+='<embed name="'+ef.id+'" id="'+ef.id+'" src="'+ef.movie+((ef.vars!=null)?'?'+ef.vars:'')+'" menu="false" quality="high" pluginspage="'+_proto+'www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ef.w+'" height="'+ef.h+'" swLiveConnect="true" wmode="'+ef.wmode+'" scale="noscale" allowScriptAccess="always"';
if (ef.base!=null){flashstr+=' base="'+ef.base+'"'; }
if (ef.salign!=null){flashstr+=' salign="'+ef.salign+'"'; }
if (ef.bgcolor!=null){flashstr+=' bgcolor="'+ef.bgcolor+'"'; }
if (ef.vars!=null){flashstr+=' FlashVars="'+ef.vars+'"'; }
flashstr+='></embed></object>';
sendback.toString=function(){ return flashstr; }
sendback.render=function(){ document.writeln(flashstr); }
sendback.inner=function(targetgid){ gid(targetgid).innerHTML=flashstr; }
return sendback;
}

function store(){ GOurl('http://www.shopwithregisandkelly.com'); }
function recipes(){ location.href='http://regisandkelly.go.com/recipes.html'; }
function moreInfo(){ location.href='http://forums.go.com/forums/regisandkelly/v2/info'; }
function goTrivia(){ location.href=currentTravelTrivia; }
function goSurvey(){ window.open("http://www.dscservice.com/websurvey/survey.asp?VID=1&SID=17"); }
function goBlog(){ location.href='http://blogs.liveregisandkelly.com/behind_the_scenes/'; }

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 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.swf==null && hdr.header==null){ hdr.swf="topflash.swf" } else if (hdr.header!=null){ hdr.swf="topflash_blank.swf"; }
if (hdr.swf.indexOf("http://")==-1){ hdr.swf=_proto+'bventertainment.go.com/tv/buenavista/regisandkelly/'+hdr.swf; }
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="; }}
hvars+="&siteRoot=http://bventertainment.go.com/tv/buenavista/regisandkelly/";
if (hdr.header!=null){ hvars+="&header="+hdr.header; }
new $flash({ movie:hdr.swf, w:'100%', h:'173', base:_proto+'bventertainment.go.com/tv/buenavista/regisandkelly/', vars:hvars, wmode:'transparent', bgcolor:'white' }).render();
}

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

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>');
}

function setShowHide(dt,id,act){ //setShowHide("February 11, 2006 0:01","RERUNS","hide")
notyet='none'; nowisok='block'; try{ if (act.match(/(0|hid|none)/gi)!=null){ notyet='block'; nowisok='none'; }}catch(ssh){}
document.writeln('<style>#'+id+'{ display:'+((today<new Date(dt))?notyet:nowisok)+' }</style>');
}

function setScrollColor(_facecolor,_id){
faceup=''; facedown=''; _facecolor=_facecolor.replace(/\#/g,'');
R=parseInt(_facecolor.substring(0,2),16); G=parseInt(_facecolor.substring(2,4),16); B=parseInt(_facecolor.substring(4,6),16);
if(R<240){R+=16;} else if(R<255){R=255;} R=R.toString(16); R=(R.length==1)?R='0'+R:R;
if(G<240){G+=16;} else if(G<255){G=255;} G=G.toString(16); G=(G.length==1)?G='0'+G:G;
if(B<240){B+=16;} else if(B<255){B=255;} B=B.toString(16); B=(B.length==1)?B='0'+B:B;
faceup=''+R+G+B;
R=parseInt(_facecolor.substring(0,2),16); G=parseInt(_facecolor.substring(2,4),16); B=parseInt(_facecolor.substring(4,6),16);
if(R>15){R-=16;} else if(R>0){R=0;} R=R.toString(16); R=(R.length==1)?R='0'+R:R;
if(G>15){G-=16;} else if(G>0){G=0;} G=G.toString(16); G=(G.length==1)?G='0'+G:G;
if(B>15){B-=16;} else if(B>0){B=0;} B=B.toString(16); B=(B.length==1)?B='0'+B:B;
facedown=''+R+G+B;
document.writeln('<style>'+((_id==null)?'body':_id)+'{ scrollbar-shadow-color:#000000; scrollbar-track-color:#666666; scrollbar-3dlight-color:#666666; scrollbar-arrow-color:#ffffff; scrollbar-base-color:#000000; scrollbar-highlight-color:#'+faceup+'; scrollbar-darkshadow-color:#'+facedown+'; scrollbar-face-color:#'+_facecolor+'; }</style>');
}

function DoFlashDetection(_ver){
if (params(document.cookie,'NO_FLASH_DETECT','false')!='true'){
_ver=(_ver==null)?"8":_ver;
CreateInterface(); DetectFlash(_ver,root+"/noflash.html");
}
}

function writePrivacy(elcolor,txtcolor){
elcolor=(elcolor==null)?'white':elcolor;
document.writeln('<span style="font:10px verdana; color:'+((txtcolor==null)?'#B1CEE1':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>');
rolloverInit();
}

function writeCommonFooter(){
document.writeln('<div style="background:url('+root+'/images/bg_tile_bottom.gif) repeat-x;" align="center">\
<table cellspacing="0" cellpadding="0" align="center" height="146">\
<tr><td style="background:url('+root+'/images/bg_bottom_left.gif) no-repeat right; width:80px;"><spacer/></td>\
<td style="background:url('+root+'/images/bottom.gif) no-repeat center; width:770px; padding-top:25px;" class="footer" align="center" valign="top">');
writePrivacy();
document.writeln('</td><td style="background:url('+root+'/images/bg_bottom_right.gif) no-repeat left; width:80px;"><spacer/></td>\
</tr></table>\
</div>');
}

function writeRegisChrome(){

cWid='100%'; cBGcolor='396C8B'; cTcolor='white';
cBreadcrumb='<a href="http://bventertainment.go.com" class="bcb">BV Entertainment</a> <a class="bc">&gt;</a> <a href="http://liveregisandkelly.com/" target="_top" class="bc">"Live with Regis and Kelly"</a>';
//writeNBChrome(cWid,cBGcolor,cBreadcrumb,cTcolor,true);

}

alwaysHideAds=false;
function writeBannerAd(){
if (window.location.protocol=="file:" || alwaysHideAds){
document.writeln('<img src="'+root+'/images/spacer.gif" width="728" height="90" border="0" alt=""><br>');
} else {
document.writeln('<a href="'+root+'/index.html"><img src="'+root+'/ads/728x90_rk-redesign.gif" width="728" height="90" border="0" alt="Check it out!  We redesigned our website! The new liveregisandkelly.com is here!"></a><br>');
}
}

function writeSkyscraperAd(){
if (window.location.protocol=="file:" || alwaysHideAds){
document.writeln('<img src="'+root+'/images/spacer.gif" width="160" height="600" border="0" alt=""><br>');
} else {

skyscraperads=[
'<a href="'+root+'/show_idea.html"><img src="'+root+'/ads/160x600_great-idea-for-show.gif" width="160" height="600" border="0" alt="Have a great idea for the show? Click here to tell us about it."></a>',
'<a href="'+root+'/hostchat.html"><img src="'+root+'/ads/160x600_great-live-moments.gif" width="160" height="600" border="0" alt="Great Live Moments - Relive them today! Host Chat Central!"></a>'
];

try{ adindy=(location.href.match(/(get_tickets|local_listings|recipes)/gi)!=null)?0:1; }catch(ai){ adindy=0; }
document.writeln(skyscraperads[adindy]+'<br><br><br>');

}
}

function writeSquareAd(){
if (window.location.protocol=="file:" || alwaysHideAds){
document.writeln('<img src="'+root+'/images/spacer.gif" width="300" height="250" border="0" alt=""><br>');
} else {

squareads=[
'<a href="'+root+'/show_idea.html"><img src="'+root+'/ads/300x250_great-idea-for-show.gif" width="300" height="250" border="0" alt="Have a great idea for the show? Click here to tell us about it."></a>',
'<a href="'+root+'/hostchat.html"><img src="'+root+'/ads/300x250_great-live-moments.gif" width="300" height="250" border="0" alt="Great Live Moments - Relive them today! Host Chat Central!"></a>',
'<a href="http://disneyparks.disney.go.com/" target="_blank"><img src="'+root+'/ads/300x250-disneyparks-family.gif" width="300" height="250" border="0" alt="Discover your dream. DisneyParks.com"></a>',
'<a href="http://disneyparks.disney.go.com/" target="_blank"><img src="'+root+'/ads/300x250-disneyparks-woody.gif" width="300" height="250" border="0" alt="Discover your dream. DisneyParks.com"></a>',
'<a href="javascript:recipes();"><img src="'+root+'/ads/300x250_recipe-archive.gif" width="300" height="250" border="0" alt="Recipe Archive - Click here to see what\'s cookin\'"></a>'
];

try{
if (location.href.match(/(regis\.|room=regis|kelly_trivia)/gi)!=null){ adindy=3; }
else if (location.href.match(/(kelly\.|room=kelly|regis_trivia|regis_music)/gi)!=null){ adindy=2; }
else { adindy=4; }
}catch(ai){ adindy=4; }
document.writeln(squareads[adindy]);

}
}

states=["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "District of Columbia", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming" ];
daysOfWeek=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
monthsOfYear=["January","February","March","April","May","June","July","August","September","October","November","December"];


function boxIt(_id,_shade,_wide){

_shade=(_shade==null)?'dark':_shade;  _bgcolor=(_shade=='dark')?((_wide)?'#EDEDED':'#f0f1f1'):'#f9f9f9'; _width=(_wide)?'712':'445';

output='<table width="100%" border="0" cellspacing="0" cellpadding="0">\
<tr><td colspan="3"><img src="'+root+'/images/'+_shade+'-box'+((_wide)?'-wide':'')+'_top.gif" alt="" border="0"></td></tr>\
<tr><td style="background:url('+root+'/images/'+_shade+'-box'+((_wide)?'-wide':'')+'_left.gif) repeat-y; width:10px;"><spacer/></td><td bgcolor="'+_bgcolor+'" width="'+_width+'">';
output+=gid(_id).innerHTML;
output+='</td><td style="background:url('+root+'/images/'+_shade+'-box'+((_wide)?'-wide':'')+'_right.gif) repeat-y; width:10px;"><spacer/></td></tr>\
<tr><td colspan="3"><img src="'+root+'/images/'+_shade+'-box'+((_wide)?'-wide':'')+'_bottom.gif" alt=""></td></tr></table>';
inner(_id,output);

}


function rollins(e){ /*---ROLLOVER FUNCTIONS---*/
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!=""){
bob=document.getElementById('i'+elk.id); if (bob!=null){ unName=bob.src; count++;
c3=bob.src.replace(/_off\./gi,'_ovr.').replace(/_on\./gi,'_ovr.').replace(/-off\./gi,'-on.').replace(/-1\./gi,'-2.');
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;
bob.src=c3; bob.src=unName; //FLIP REAL QUICK TO PRELOAD
}}}}


/*---XML IMPORT/PARSING FUNCTIONS---*/
isSafari=(navigator.appVersion.match(/safari/gi)!=null);
function nval(_wut){ try{
returnValue=((isSafari)?((_wut.childNodes.length>0)?_wut.firstChild.nodeValue:_wut.nodeValue):((navigator.appName=="Netscape")?_wut.textContent:_wut.text)); return (returnValue!=null)?returnValue:''; }catch(nov){ return ''; }}
function gtn(_wut,_tag,index){ rt=_wut.getElementsByTagName(_tag);
return ((rt.length>1)?((index!=null)?nval(rt[index]):rt):((rt.length==0)?'':((index!=null)?rt:nval(rt[0])))); }
function gtn0(_wut,_tag){ tempgtn=gtn(_wut,_tag); if (typeof(tempgtn)=='string'){ tempgtn=gtn(_wut,_tag,0); }  return tempgtn; }
function importXML(xmlobj){
_xmlfile=xmlobj.url; _xmlRtn=xmlobj.obj; _act=xmlobj.action;

if (window.XMLHttpRequest && !(window.ActiveXObject)){
xmlDoc=new XMLHttpRequest(); xmlDoc.onreadystatechange=function(){ if (xmlDoc.readyState==4){ eval(_xmlRtn+"=xmlDoc.responseXML"); eval(_act); }}
xmlDoc.open("GET",_xmlfile,true); xmlDoc.send(null);
} else if (document.implementation && document.implementation.createDocument){
xmlDoc=document.implementation.createDocument("","",null); xmlDoc.onload=function(){ eval(_xmlRtn+"=xmlDoc"); eval(_act); }
xmlDoc.load(_xmlfile);
} else if (window.ActiveXObject){
xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.onreadystatechange=function(){ if (xmlDoc.readyState==4){ eval(_xmlRtn+"=xmlDoc"); eval(_act); }}
xmlDoc.load(_xmlfile);
} else  { return; }
//xmlDoc.load(_xmlfile);

}
function getAtt(_wut,_att){ return _wut.getAttribute(_att); }
function getIndexByAttribute(_wut,_att,_val){ ri=-1; if (_wut.length>0){ for (i=0; i<_wut.length; i++){ if (getAtt(_wut[i],_att)==_val){ ri=i; break; }}} return ri; }
/*---END XML IMPORT/PARSING FUNCTIONS---*/


function loadFeaturesNav(){}

function writeFeaturesNav(){
document.writeln('<a href="http://bventertainment.go.com/tv/buenavista/regisandkelly/features.html"><img src="'+root+'/images/features/btn_back-features.gif" alt="" width="85" height="11" border="0"></a><br><br>');
document.writeln('<div style="font:bold 14px arial; color:#216D9C;">Recent Features</div>\
<img src="'+root+'/images/features/curve_recent-feat.gif" width="133" height="17" alt=""><br>');
for (f=0; f<features.length; f++){
if (features[f].url.indexOf("http")==-1){ features[f].url=root+"/"+features[f].url; }
if (features[f].url!=location.href){
document.writeln('<div style="padding:'+((f==0)?'0':'5px')+' 0 5px 0; border-bottom:2px solid #e2e5e7"><a href="'+features[f].url+'" style="font:bold 11px arial; color:#003063;">'+features[f].title+'</a></div>');
}}
document.writeln('<br><a href="http://bventertainment.go.com/tv/buenavista/regisandkelly/features.html"><img src="'+root+'/images/features/btn_back-features.gif" alt="" width="85" height="11" border="0"></a><br><br>');
}

function hideAorB(flp){ flipper=(today>=new Date(flp.time)); document.writeln('<style>#'+((flipper)?flp.hide:flp.show)+'{ display:none; }</style>'); }

function writeItemTitle(_title,_width,_fontsize,_fontcolor,_bluedot){
_img=(_bluedot==null)?root+'/images/orangedot.gif':root+'/images/bluedot.gif'
_width=(_width==null)?400:_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 backToTop(){
document.writeln('<div align="right" class="noprint"><a href="javascript:scroll(0,0)" style="font:11px arial;">^ back to top ^</a></div><br>');
}

function getVideo(_clip,_auto,_wmwid,_wmhi){ /*---RETURNS AN EMBEDDED WINDOWS MEDIA PLAYER OBJECT---*/
if (_clip==null){ rtnstring=""; } else {
autostart=(_auto==null)?params(document.cookie,'autostart','true'):_auto;  wmwidth=(_wmwid==null)?"332":_wmwid;  wmheight=(_wmhi==null)?"290":_wmhi;
agt=navigator.userAgent.toLowerCase();
var WMP7; try{ WMP7=new ActiveXObject('WMPlayer.OCX'); } catch(wm){}
if (WMP7){
rtnstring='<object classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-oleobject" width="'+wmwidth+'" height="'+wmheight+'" standby="Loading Microsoft Windows Media Player components..." id="MediaPlayer"><PARAM NAME="url" VALUE="'+_clip+'"><PARAM NAME="AutoStart" VALUE="'+autostart+'"><PARAM NAME="ShowControls" VALUE="1"><PARAM NAME="Volume" VALUE="50"></object>';
} else {
rtnstring='<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" type="application/x-oleobject" width="'+wmwidth+'" height="'+wmheight+'" standby="Loading Microsoft Windows Media Player components..." id="MediaPlayer"><param name="FileName" value="'+_clip+'"><param name="ShowControls" value="1"><param name="ShowDisplay" value="0"><param name="ShowStatusBar" value="1"><param name="AutoSize" value="0"><param name="AutoStart" value="'+autostart+'"><param name="Volume" value="50"><embed src="'+_clip+'" width="'+wmwidth+'" height="'+wmheight+'" autostart="'+autostart+'" autoplay="'+autostart+'" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" filename="'+_clip+'" Name="MediaPlayer" ShowControls="1" ShowDisplay="0" ShowStatusBar="1" volume="50"></embed></object>';
}}
return rtnstring;
}

function $wmv(ev){
if (ev.auto==null){ ev.auto=true; }
this.videostring=getVideo(ev.url, ev.auto, ev.w, ev.h);
this.toString=function(){ return this.videostring; }
this.render=function(){ document.writeln(this.videostring); }
this.inner=function(targetgid){ gid(targetgid).innerHTML=this.videostring; }
return this;
}

/*---SORT ARRAY FUNCTIONS---*/
function sortByNumber(_ary,reverse){ if (reverse){ return _ary.sort(function(a,b){return(b-a)}); } else { return _ary.sort(function(a,b){return(a-b)}); }}
function randomSort(_ary){ return _ary.sort(function(){ return (Math.round(Math.random())-0.5) }) }

function setFlashVar(_id,_var,_val){
try{ gid(_id).SetVariable(_var,_val); } catch(e){ thisobj=eval("window.document."+_id); thisobj.SetVariable(_var,_val); }
}
function callFlash(){
_id=callFlash.arguments[0]; _function=callFlash.arguments[1]; _flashargs="";

if (callFlash.arguments.length>2){
for (i=2; i<callFlash.arguments.length; i++){
_flashargs+=(callFlash.arguments[i]!=null)?"'"+callFlash.arguments[i]+"'":null;
if (i<callFlash.arguments.length-1){ _flashargs+=","; }
}
}
try{ eval("gid(_id)."+_function+"("+_flashargs+")"); }
catch(e){ eval("window.document."+_id+"."+_function+"("+_flashargs+")"); }
}

/*---EASY PRINTABLE FUNCTIONS---*/
var _printtitle; var _printwidth=640;
function $print(){
filltext='<br><br><div align="center" style="font:bold 18px arial; color:#5f954f;">'+_printtitle+'</div><br>'+gid('PRINTABLEAREA').innerHTML+'<br><br>';
eve=window.open('','printwindow','width='+_printwidth+', height=600, left=1, top=1, scrollbars=1, resizable=1, statusbar=1, menubar=1, toolbar=1');
eve.document.writeln('<html><head><title></title><scr'+'ipt language="javas'+'cript">window.onerror=function(){ return true; }</scr'+'ipt><style>.noprint{ display:none; } .even{ padding:0; margin:3px 3px 3px 25px; } .orange{ color:#ef7600; } .orangeborder{ border:1px solid #ef7600; }</style></head><body style="margin:0; padding:1px; background:white; font:12px arial; text-align:center;"><div style="text-align:left; width:'+(_printwidth-48)+'px; margin:0 auto 0 auto;">');
try{
_printstyle=gid('PRINTABLESTYLE').innerHTML; eve.document.writeln('<style>'+_printstyle+'</style>');
}catch(e){}
eve.document.writeln(filltext.replace(new RegExp("<a +[^>]*>",'gi'),'').replace(/<\/a>/gi,''));
eve.document.writeln('</div></body></html>');
eve.document.close();
}
function PrintableButton(_ptitle){
if (_ptitle!=null){ _printtitle=_ptitle; } else {
try{ _printtitle=document.title.replace("Live with Regis and Kelly - ",""); }catch(e){ _printtitle=""; }
}
document.writeln('<a href="javascript:$print()" class="noprint"><img src="http://bventertainment.go.com/tv/buenavista/regisandkelly/images/button-printable.gif" width="145" height="22" border="0" alt="Printable Version" class="noprint"></a>');
}
/*---/ EASY PRINTABLE FUNCTIONS---*/

function autoBox(){
isNetscape=(navigator.appName=="Netscape");
cornerimageroot="http://regisandkelly.go.com/images/";
_divs=document.getElementsByTagName("div");
for (i=0; i<_divs.length; i++){
if (_divs[i].id.indexOf("AUTO")!=-1){
divstyle=(_divs[i].id.indexOf("-BORDER")!=-1)?"border:1px solid #DBDFE2;":"background:#FAFAFA;";
cornerimage=(_divs[i].id.indexOf("-BORDER")!=-1)?"corner":"bg";
_divs[i].innerHTML='<div style="'+divstyle+'"><img src="'+cornerimageroot+cornerimage+'-top-left.gif" width="10" height="10" border="0" alt="" style="float:left; margin:-1px 0 0 -'+((isNetscape)?'1':'4')+'px;"><img src="'+cornerimageroot+cornerimage+'-top-right.gif" width="10" height="10" border="0" alt="" style="float:right; margin:-1px -'+((isNetscape)?'1':'4')+'px 0 0;"><div style="padding:10px; font:bold 12px arial; color:black;">'+_divs[i].innerHTML+'</div><img src="'+cornerimageroot+cornerimage+'-bottom-left.gif" width="10" height="10" border="0" alt="" style="float:left; margin:-'+((isNetscape)?'9':'8')+'px 0 -1px -'+((isNetscape)?'1':'4')+'px;"><img src="'+cornerimageroot+cornerimage+'-bottom-right.gif" width="10" height="10" border="0" alt="" style="float:right; margin:-'+((isNetscape)?'9':'8')+'px -'+((isNetscape)?'1':'4')+'px -1px 0;"></div>';
}}}

function threeStateButton(thurston,where){
if (thurston.id==null){ try{ thurston.id=/([\w-~]*).htm/i.exec(thurston.href)[1]; } catch(pn){ thurston.id='index'; }}
if (where==null){ try{ where=_gpn; }catch(wh){ where='index'; }}
imgprops=''; if (thurston.href==null && thurston.url!=null){ thurston.href=thurston.url; }
if (thurston.width!=null){ imgprops+=' width="'+thurston.width+'"'; }
if (thurston.height!=null){ imgprops+=' height="'+thurston.height+'"'; }
imgprops+=' border="'+((thurston.border!=null)?thurston.border:'0')+'"';
imgprops+=' alt="'+((thurston.alt!=null)?thurston.alt:'')+'"';
this.output=(thurston.id!=where)?'<a href="'+thurston.href+'" id="NAV'+thurston.id+'"><img id="iNAV'+thurston.id+'" src="'+thurston.image+'" '+imgprops+'></a>':'<img src="'+thurston.image.replace(/_off\./gi,'_ovr.').replace(/_on\./gi,'_ovr.').replace(/-off\./gi,'-on.')+'" '+imgprops+'>'
this.write=function(){ document.write(this.output); }
this.inner=function(_gid){ document.getElementById(_gid).innerHTML=this.output; }
return this;
}

/*---THINGS THAT ARE NOT MINE---*/
//popup
function popup( url, w, h, windowName, r, s ) {
win=window.open(url, windowName, 'height=' +h+ ', width=' +w+ ', resizable=' +r+ ', status=no, scrollbars=' +s+ ', location=no, menubar=no, toolbar=no, left=50, top=50');
}
//feedback
function feedback(){ popup(root+'/feedback.html', 400, 510, 'feedback', 'no', 'no'); }
function askregiskellyfeedback(){ popup(root+'/askregiskellyfeedback.html', 400, 510, 'feedback', 'no', 'no'); }

function emailPage(subjectmessage, bodymessage)
{ 
	
	var pageLink = document.location;  
	var subject = subjectmessage; 
	var body_message = bodymessage +pageLink;
	
	var mailto_link = 'mailto:?subject='+subject+'&body='+body_message; 
	
	win = window.open(mailto_link,'emailWindow'); 
	if (win && win.open &&!win.closed) win.close(); 
	
} 
