/*This A.P.I. (Alberto's Perfect Interface) for CBS.Com*/
/*Global var start*/
this.author = "";
this.UpDated = "";
this.version = "CBS.Com A.P.I. ver 4.0 ";
this.whatIs = version+'and updated on '+ UpDated;
this.whatIs = version+'and updated on '+ UpDated;
//document.write('<meta name="Author" CONTENT='+this.author+'>\n <meta name="Creator" CONTENT='+this.author+this.whatIs+'>\n');
this.FDownload = 'http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash';
this.FCodebase = 'http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=4,0,2,0';
this.ClassID = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
var flashplugin = false;
currOpen = "";
var newstemp=0;
var entTemp=0;
var all_loaded=false;/*for dhtml menu*/
/*Global var end*/
function checkBrowser()
{
	this.ie4=false;
	this.ie5=false;
	this.ie51=false;
	this.ie6=false;
	this.ie7=false;
	this.ns4=false;
	this.ns6=false;
	this.ns7=false;
	this.mac=false;	
	this.pc=false;
	this.aol=false;
	this.moz=false;
	this.saf=false;
	this.dom=document.getElementById?this.dom=true:this.dom=false;
	this.bname=navigator.appName;
	this.ver=navigator.appVersion;
	this.int_ver=parseInt(this.ver);
	this.navUser=navigator.userAgent;
	this.navMime=navigator.mimeTypes;
	this.navPlugs=navigator.plugins;
	this.bname.indexOf("Netscape")>=0&&this.int_ver==4?(this.ns4=true):(this.ns4=false);
	this.navUser.toLowerCase().indexOf('aol')!=-1?(this.aol=true):(this.aol=false);
	this.ver.indexOf('Mac')!=-1?(this.mac=true):(this.pc=true);
	this.navUser.indexOf('MSIE 4')>0?(this.ie4=true):(this.ie4=false);
	this.navUser.indexOf('MSIE 5')>0?(this.ie5=true):(this.ie5=false);
	this.navUser.indexOf('Mozilla/4.0 (compatible; MSIE 5.')>-1?(this.ie51=true):(this.ie51=false);
	this.navUser.indexOf('MSIE 6')>0?(this.ie6=true):(this.ie6=false);
	this.navUser.indexOf('MSIE 7')>0?(this.ie7=true):(this.ie7=false);
	this.navUser.indexOf("Netscape6")>0?(this.ns6=true):(this.ns6=false);
	this.navUser.indexOf("Netscape/7.0")>0?(this.ns7=true):(this.ns7=false);
	this.navUser.indexOf("Mozilla/5.0")!= -1?(this.moz=true):(this.moz=false);
	this.navUser.indexOf("Safari/")!= -1?(this.saf=true):(this.saf=false);


ash='<SCRIPT LANGUAGE="VBScript">\n';
ash+='Function WhichFlashVar\n';
ash+='on error resume next\n dim CbsFlash, flashplugin\n flashplugin = 0\n CbsFlash = 0\n';
ash+='set CbsFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.2")\n if IsObject(CbsFlash) then flashplugin = 2\n CbsFlash = 0\n';
ash+='set CbsFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.3")\n if IsObject(CbsFlash) then flashplugin = 3\n CbsFlash = 0\n';
ash+='set CbsFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.4")\n if IsObject(CbsFlash) then flashplugin = 4\n CbsFlash = 0\n';
ash+='set CbsFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.5")\n if IsObject(CbsFlash) then flashplugin = 5\n CbsFlash = 0\n';
ash+='set CbsFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.6")\n if IsObject(CbsFlash) then flashplugin = 6\n CbsFlash = 0\n';
ash+='set CbsFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.7")\n if IsObject(CbsFlash) then flashplugin = 7\n CbsFlash = 0\n';
ash+='set CbsFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.8")\n if IsObject(CbsFlash) then flashplugin = 8\n CbsFlash = 0\n';
ash+='set CbsFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.9")\n if IsObject(CbsFlash) then flashplugin = 9\n CbsFlash = 0\n';
ash+='WhichFlashVar = flashplugin\n End Function\n';
ash+='<\/SCRIPT>\n';

if(this.navPlugs&&this.navPlugs.length>0)
{
	for(i=0;i<this.navPlugs.length;i++)
	{
		if(this.navPlugs[i].name.indexOf("Shockwave Flash 2")!=-1){flashplugin="update";}
		if(this.navPlugs[i].description.indexOf("Shockwave Flash 3")!=-1){this.flashplugin=3;}
		if(this.navPlugs[i].description.indexOf("Shockwave Flash 4")!=-1){this.flashplugin=4;}
		if(this.navPlugs[i].description.indexOf("Shockwave Flash 5")!=-1){this.flashplugin=5;}
		if(this.navPlugs[i].description.indexOf("Shockwave Flash 6")!=-1){this.flashplugin=6;}
		if(this.navPlugs[i].description.indexOf("Shockwave Flash 7")!=-1){this.flashplugin=7;}
		if(this.navPlugs[i].description.indexOf("Shockwave Flash 8")!=-1){this.flashplugin=8;}
		if(this.navPlugs[i].description.indexOf("Shockwave Flash 9")!=-1){this.flashplugin=9;}
	}
	
}
else if(this.navUser &&this.navUser.indexOf("MSIE")>=0&&(this.navUser.indexOf("Windows 95")>=0||this.navUser.indexOf("Windows 98")>=0||this.navUser.indexOf("Windows NT")>=0||this.navUser.indexOf("Windows NT 5.0")>=0||this.navUser.indexOf("Windows NT 5.1")>=0)||cbs.mac)
{document.write(ash);flashplugin=WhichFlashVar();}


	
this.cbs=(this.ie4||this.ie5||this.ie6||this.ie7||this.ns4||this.ns6||this.ns7||this.moz);
this.CbsDOM=(this.ie5||this.ie51||this.ns6||this.ie6||this.ie7||this.ns7||this.moz);
this.CbsNDOM=(this.ie4||this.ns4);
return this;
}
cbs=new checkBrowser();
/*Flash display*/
function EmbedFlash(width,height,FlashSrc,ImageSrc,SendUrl,Alt_Id_Name,MapName,color,fVer,autostart)
{
var AFT,AIT;
FlashCode='';
if(!fVer){fVer=3;}
if(!width || !height){width=20;height=20;}
if(!autostart){autostart=true;}
if(!Alt_Id_Name){file_ID="CBS";}else{file_ID=Alt_Id_Name;}
if(!color){color="";}
if(cbs.mac){flashplugin=6;}
if(MapName==""){MapName=="null";}
if((flashplugin)>=(fVer))
{
FlashCode=('<OBJECT classid="'+this.ClassID+'" codebase="'+this.FCodebase+'" ID="'+file_ID+'" WIDTH="'+width+'" HEIGHT="'+height+'">\n');
FlashCode+=('<PARAM NAME=movie VALUE="'+FlashSrc+'"> <PARAM NAME="quality" VALUE="high">\n<PARAM NAME="menu" VALUE="false"> \n');
FlashCode+=('<PARAM NAME="AUTOSTART" VALUE="'+autostart+'">\n<PARAM NAME="bgcolor" VALUE="'+color+'">\n');
FlashCode+=('<EMBED menu=false swLiveConnect="FALSE" src="'+FlashSrc+'" quality=high width='+width+' height='+height+' type="application/x-shockwave-flash" pluginspage="'+this.FDownload+'" autostart="'+autostart+'" high bgcolor="'+color+'"></EMBED>\n</OBJECT>');}
else if((!flashplugin)&&(MapName!="null"))
{FlashCode+=('<img src="'+ImageSrc+'" alt="'+file_ID+'" border="'+0+'" width="'+width+'" height="'+height+'" usemap="'+MapName+'">');}
else if((flashplugin)<=(fVer))
{FlashCode+=('<a href="'+this.FDownload+'" target="_blank"><img src="'+ImageSrc+'" alt="'+file_ID+'" border="'+0+'" width="'+width+'" height="'+height+'"></a>');}
else if((!flashplugin)&&(SendUrl==this.FDownload))
{FlashCode+=('<a href="'+SendUrl+'" target="_blank"><img src="'+ImageSrc+'" alt="'+file_ID+'" border="'+0+'" width="'+width+'" height="'+height+'"></a>');}
else if((!flashplugin)&&(!SendUrl)&&(MapName=="null"))
{FlashCode=('<img src="'+ImageSrc+'" alt="'+file_ID+'" border="'+0+'" width="'+width+'" height="'+height+'">');}
else if((!flashplugin)&&(SendUrl!=this.FDownload)&&(MapName=="null"))
{FlashCode+=('<a href="'+SendUrl+'"><img src="'+ImageSrc+'" alt="'+file_ID+'" border="'+0+'" width="'+width+'" height="'+height+'"></a>');}
document.write(FlashCode);}
function jump(url){location.href = url+'.shtml';}
function init()
{
if (cbs.ns4)
{
for (var i=0;i<document.layers.length;i++)
{
var thisObj = document.layers[i];
thisObj.captureEvents(Event.MOUSEOUT);
thisObj.onmouseout = hideit;
}
}
}
function hideit (e)
{
var layname = e.target.name;
var tar = e.target+"";
if(cbs.ie5||cbs.ie4){if(layname.indexOf('search')<0)return;}
if (tar.indexOf('navigation')>=0){hide(layname);}
else {routeEvent(e);}
}
function getObjStyle(objTree)
{
var objStrArr = objTree.split('.');
var objStr = objStrArr[objStrArr.length-1];
var strS = "";
if (cbs.ns4)
{
strS += "document.layers[objStrArr[0]]";
if (objStrArr.length > 1)
{
	for(var i=1; i<objStrArr.length; i++)
{strS+=".document.layers[objStrArr["+i+"]]";}
}
return(eval(strS));
}
else if(cbs.ie4){return(document.all[objStr].style);}
}
function show(strObj)
{
var thisObj = getObjStyle(strObj);
if(all_loaded==false){return;}
if(currOpen != ""){hide(currOpen);}
if(cbs.ie4){thisObj.visibility = "visible";}
if(cbs.ns4){thisObj.visibility = "show";}
if(cbs.CbsDOM){document.getElementById(strObj).style.visibility = "visible";}
currOpen=strObj;
}
function hide(strObj)
{
var thisObj = getObjStyle(strObj);
if(currOpen ==""){return;}
if (cbs.ie4){
var thisDoc = document.all[strObj];
if (!(thisDoc.contains(window.event.toElement)))
{thisObj.visibility="hidden";}}
if (cbs.ns4){thisObj.visibility = "hide";}
if(cbs.CbsDOM){document.getElementById(strObj).style.visibility = "hidden";}
currOpen="";
}
/*Flip can be used with or with out layers*/
function flip(){if (document.images){var num_arg = arguments.length-1;var layername = "";var thisObj;if ((arguments.length%2) != 0){layername = arguments[num_arg];}for (var i=0; i<num_arg; i){var j = i+1;var imgname = arguments[i];var imgsrc = arguments[j];if (cbs.ns4 && layername){thisObj = getObjStyle(layername);thisObj.document.images[imgname].src = eval(imgsrc+'.src');}else{document.images[imgname].src = eval(imgsrc+'.src');}i+=2;}}}
function makeBox(arrName,n,layerName)
{
var words = arrName[n];
var copy = words;
if(layerName=='divText'&&cbs.ns4){document.layers['divCont'].document.layers['divText'].document.open();document.layers['divCont'].document.layers['divText'].document.write(copy);document.layers['divCont'].document.layers['divText'].document.close();return;}
if(layerName!='divText'&&cbs.mac&&cbs.ie4){document.all.content.innerHTML=copy;}
if(layerName=='divText'&&cbs.mac&&cbs.ie4){document.all.divText.innerHTML=copy;}
if(cbs.ns4)
{
document.layers[layerName].document.open();
document.layers[layerName].document.write(copy);
document.layers[layerName].document.close();
}
if(cbs.CbsDOM){document.getElementById(layerName).innerHTML = copy;}
if(cbs.ie4){'document.all.'+layerName+'.innerHTML'+'='+copy;}
}
function openWin(url,w,h,winName,scroll,resize)
{if(winName==''){winName='CbsWindow';}if(scroll==''){scroll='yes';}/* edited by AFA popwin */
window.open(url,winName,"height="+h+",width="+w+",status=0,scrollbars="+scroll+",resizable="+resize+",location=0,menubar=0").focus();}
/*Real Player*/
function PlayReal(file,url,media_title)
{
/*just for tonight 10-01-01*/
if(file.indexOf('*')){document.holder.RmLive.value="true";}else{document.holder.RmLive.value="false";}
/*just for tonight 10-01-01*/
document.holder.passedRM.value=file;document.holder.RmTitle.value=media_title;window.open(url,"LateShow","height=480,width=515,status=0,scrollbars=0,location=0,menubar=0,resizable=0")}
function todayDate(){
d = new Date();
day = d.getDate();
monthint = d.getMonth();
y = d.getYear();
y += (y < 1900) ? 1900 : 0;
allmonths = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
today = allmonths[monthint]+" "+day+", "+y;
document.write(today);}
/*resize fix for ns 4*/
if (cbs.ns4){winw = window.innerWidth;winh = window.innerHeight;window.onResize = reloadwin;}
function reloadwin(){if ((winw != window.innerWidth) || (winh != window.innerHeight)){var holder=location.href;holder=holder.split("#");location.href=holder[0];}}
/*created and added on 12/15/2000@1:33pm by Alberto Araya reedited on 9-19-01*/
var myArray = new Array();
myArray = document.location.href.split("/");
var title = myArray[3];
var sec = myArray[4];
if(sec == null || title == null){if((myArray[2]=='cbs.com')||(myArray[2]=='www.cbs.com')||(myArray[2]=='stager.cbsig.net')){title = "HomePage";sec = "HomePage";}}
function size_window(w,h){thisWin(title,sec,530,h);}
function thisWin(title,sec,w,h){switch(title){case 'daytime':if(sec==''){sec='DAYTIME';popwin = window.open("/info/user_services/fb_global_form.shtml",sec,"height="+h+",width="+w+",status=0,scrollbars=yes,location=0,menubar=0,resizable=no");}
else{popwin = window.open("/info/user_services/fb_global_form.shtml",sec,"height="+h+",width="+w+",status=0,scrollbars=yes,location=0,menubar=0,resizable=no");}
break;case 'primetime':popwin = window.open("/info/user_services/fb_global_form.shtml",sec,"height="+h+",width="+w+",status=0,scrollbars=yes,location=0,menubar=0,resizable=no");break;case 'latenight':if(myArray[4]=='lateshow'){popwin = window.open("/info/user_services/fb_global_form.shtml",sec,"height="+h+",width="+w+",status=0,scrollbars=yes,location=0,menubar=0,resizable=no");}else{popwin = window.open("/info/user_services/fb_global_form.shtml",sec,"height="+h+",width="+w+",status=0,scrollbars=yes,location=0,menubar=0,resizable=no");}break;case 'news':popwin = window.open("/info/user_services/fb_global_form.shtml",sec,"height="+h+",width="+w+",status=0,scrollbars=yes,location=0,menubar=0,resizable=no");break;
case 'cbsstore':popwin = window.open("/info/user_services/fb_global_form.shtml",title,"height="+h+",width="+w+",status=0,scrollbars=yes,location=0,menubar=0,resizable=no");break;
case 'info':popwin = window.open("/info/user_services/fb_global_form.shtml",sec,"height="+h+",width="+w+",status=0,scrollbars=yes,location=0,menubar=0,resizable=no");break;
default:/*from home page.*/popwin = window.open("/info/user_services/fb_global_form.shtml",sec,"height="+h+",width="+w+",status=0,scrollbars=yes,location=0,menubar=0,resizable=no");break;}}
/**created and added on 05/11/2001@10:20am by Alberto Araya*/
/*for news and entertament ticker*/
function Entrotate(speed)
{
if((blocks[0]=="null")||(blocks[0]=="")){return;}/*will kill prsess if no info from ent*/
if(entTemp>blocks.length-1){entTemp=0;return;}
if(!speed){speed=5000;}
if(cbs.ie4){document.all.entcontent.innerHTML=blocks[entTemp];}
if(cbs.CbsDOM){document.getElementById('entcontent').innerHTML = blocks[entTemp];}
else if(cbs.ns4){document.layers['entcontent'].document.open();document.layers['entcontent'].document.write(blocks[entTemp]);document.layers['entcontent'].document.close();}
setTimeout("Entrotate()",speed);
entTemp++;
}
function moveLayers(layer,PosX,PosY)
{
//if(!layer||!PosX||PosY){return;}
var Mleft=PosY+"px";
var Mtop=PosX+"px";
if((cbs.pc)||(cbs.mac))
{
if(cbs.ns4){Mleft=parseInt(Mleft);Mtop=parseInt(Mtop)+(0);eval("document.layers['"+layer+"'].left="+Mleft+";");eval("document.layers['"+layer+"'].top="+Mtop+";");}
else if(cbs.ie4){Mleft= parseInt(Mleft);Mtop= parseInt(Mtop)+(0);eval("document.all['"+layer+"'].style.left="+Mleft+";");eval("document.all['"+layer+"'].style.top="+Mtop+";");}
else{Mleft= parseInt(Mleft);Mtop= parseInt(Mtop)+(0);document.getElementById(layer).style.left=Mleft;document.getElementById(layer).style.top=Mtop;}
}}
/* added by afa on 9/12/02 */
/*added for help on hp*/
function hp_off(video,txt)
{		
if(video==''){return;}
else{
PlayReal(video+'&plugin=1&proto=rtsp','/latenight/lateshow/dave_tv/ls_dtv_pop_player.shtml',txt);
var speed=300;
setTimeout("window.location='/latenight/lateshow/'",3000);}
}
/* added by afa on 9/12/02 */
/*part of old core need to removed asap*/
function vlaunch(file)
{
return;
if (navigator.appName == "Navigator" && navigator.appVersion.indexOf('3') >= 0){
if(confirm("We\'re sorry, the CBS video player requires a version 4 broswer\nClick ok to continue to our browser download page\n Hit cancel to return")) {
window.open('story_112201.html', '', '');}}
else {var nWin = "http://host194.cbs.teb.qwest.net/apps/video/pageOne.html?" + file;window.open(nWin, 'vviewer','width=340,height=550,scrollbars=no,resize=no,location=no,status=no');}}
function pop_up( address, winname, x, y, prefs, replace )
{IE4 = (document.all) ? 1 : 0; NS4 = (document.layers) ? 1 : 0; 
if (NS4) {/*adjustments for nn*/y = (y + 15); /*height*/x = (x - 1); /*width*/} 
if (IE4) { /*adjustments for ie*/ y = (y + 10); /*height*/x = (x - 1); /*width*/} 
attributes = "width=" + x + ",height=" + y + ",status=no,toolbar=no,scrollbars=no";winLaunch( address, winname, attributes, replace );}
/*kilborn site primetime interviews*/
function openAudio(clip){poppy = window.open('/Common/includes/pt_audio_interview_module.htm?' + clip, 'audio', 'width=340,height=130,scrollbars=0');}
function win_pop_up( address, winname, attributes, replace ){winLaunch( address, winname, attributes, replace );}
function winLaunch( address, winname, attributes, replace ){var whandle = window.open( address, winname, attributes, replace );whandle.focus();}
/*Hit Box Code*/
var presentUrl = document.location;
var urlString = presentUrl.toString();
var _acct;
var default_acct="DM5309061BAA;DM530910EMZA;"
function WhichSection()
{
var SiteUrl = document.location.toString();
this.ar = (SiteUrl.indexOf('/primetime/amazing_race8/')>=0)?1:0;
this.sur = (SiteUrl.indexOf('/primetime/survivor12/')>=0)?1:0;
this.csi = (SiteUrl.indexOf('/primetime/csi/')>=0)?1:0;
this.csimi = (SiteUrl.indexOf('/primetime/csi_miami/')>=0)?1:0;
this.bb = (SiteUrl.indexOf('/primetime/bigbrother6/')>=0)?1:0;
this.dt = (SiteUrl.indexOf('/daytime/')>=0)?1:0;
this.jag = (SiteUrl.indexOf('/primetime/jag/')>=0)?1:0;
this.lateshow = (SiteUrl.indexOf('/latenight/lateshow/')>=0)?1:0;
this.joan  = (SiteUrl.indexOf('/primetime/joan_of_arcadia/')>=0)?1:0;
this.trace = (SiteUrl.indexOf('/primetime/without_a_trace/')>=0)?1:0;

return this;
}
var WhatSite = new WhichSection();
var ThisSite = 

WhatSite.ar?'ar7':WhatSite.sur?'sr12':WhatSite.csi?'csi':WhatSite.csimi?'csi_miami':WhatSite.bb?'bb6':WhatSite.dt?'daytime':WhatSite.jag?'jag':WhatSite.lateshow?'lateshow':WhatSite.joan?'joan':WhatSite.trace?'tarce':WhatSite.homepage?'homepage':0;

function PlaceHitBox()
{
	if(ThisSite == 0)
		{
			_acct=default_acct
		}
	else
		{
			switch(ThisSite)
			{
			case 'ar7':
			_acct="DM540121D4VA;"+default_acct;
			break;
			case 'sr12':
			_acct="DM5401077HBV;DM5309080EFN;"+default_acct;
			break;
			case 'csi':
			_acct="DM531103O8FR;"+default_acct;
			break;
			case 'csi_miami':
			_acct="DM530915APZW;"+default_acct;
			break;
			case 'bb6':
			_acct="DM540121F6SR;"+default_acct;
			break;
			case 'daytime':
			_acct="DM5401219PAB;"+default_acct;
			break;
			case 'jag':
			_acct="DM540121NIBF;"+default_acct;
			break;
			case 'lateshow':
			_acct="DM54011560EE;"+default_acct;
			break;
			case 'joan':
			_acct="DM540121O0AN;"+default_acct;
			break;
			case 'trace':
			_acct="DM540121GOMB;"+default_acct;
			break;
			}
		}
}
PlaceHitBox()


var _pn="PUT+PAGE+NAME+HERE"; //page name(s)
var _seg=""; // visitor segmentation
//var _cmp="CMP"; // campaign id
var _cmp=""; // campaign id
var _gp="";  // campaign goal
var _cmpn="";// campaign id in query
var _gpn=""; // campaign goal in query
var _fnl=""; // funnels
var _pec=""; // error codes
var _fv="";  // form validation function name
var _dcmp="";// dynamic campaign
var _dcmpn="DCMP";//dynamic campaign in query
var _hra=""; // response attribute
var _hcn=""; // conversion
var _hcv=""; // conversion value
var _hlt=""; // lead tracking
var _hla=""; // lead attribute
var _hqsr="";// response attribute in referrer query
var _hqsp="HQS";// response attribute in query
var _hc1=""; // custom 1
var _hc2=""; // custom 2
var _hc3=""; // custom 3
var _hc4=""; // custom 4
var _ci="";  // customer id
var _cp="null"; // campaign
var _cpd=""; // campaign domain
var _pndef="index.shtml"; //default page name
var _ctdef="full"; //default content category
var _dlf="n"; //download filter
var _elf="n"; //exit link filter
var _dft="n"; // download file tracker variable, set to y to use the name reference
var _epg="n"; //event page identifier
var _vpc="090000r";
var _gn="ehg-cbs.hitbox.com",_mn="we72"; //gateway & machine name

function hitboxSetContent(pageName,contentGroup)
{
 _hbSet("n",pageName);
 _hbSet("vcon",contentGroup);
 _hec = -1;
 _hbSend();
}
/*Hit Box Code*/

//launch innertube player
function innertube(cat, vid, format, auto, source) {
	if (vid == null) {
		vid = "";
	}

	if (cat == null) {
		cat = "";
	}

	if (format == null) {
		format = "";
	}

	if (auto == null) {
		auto = "0";
	}

	if (source == null) {
		pSource = "";
	} else {
		pSource = "&source=" + source;
	}
	innertubeWindow = window.open ("/innertube/player.php?cat=" + cat + "&vid=" + vid + "&format=" + format + "&auto=" + auto + pSource, "innertubePlayer", "status=1, toolbar=0, location=0, menubar=0, resizable=0, scrollbars=0, height=705, width=950"); 
	if (window.focus) {
		innertubeWindow.focus();
	}
}

//  swfObject include By Sang
document.write('<scr'+'ipt type="text/javascript" src="/Common/js/swfobject.js" ></scr'+'ipt>');


/**************Added By Alberto Araya added on 7-1-2004 ************************/
function lsShowStyle()
{
	if(document.getElementById('divAdTop')!=null)
	{
		var thiselement = document.getElementById('divAdTop');
		vAdTop = thiselement.offsetTop; 
	}
	if(vAdTop==null||vAdTop=="")
	{
		var vAdTop = 1;
	}
	
	vnav1 = eval(parseInt(vAdTop)+79+0);
	vnav2 = eval(parseInt(vAdTop)+79+0);
	vnav3 = eval(parseInt(vAdTop)+79+0);
	vnav4 = eval(parseInt(vAdTop)+79+0);
	vnav5 = eval(parseInt(vAdTop)+79+0);
	voops = eval(parseInt(vAdTop)+330+0);
	vwahoops = eval(parseInt(vAdTop)+310+0);
	vdavebg = eval(parseInt(vAdTop)+115+0);
	vwildcard = eval(parseInt(vAdTop)+145+0);
	vdtv = eval(parseInt(vAdTop)+295+0);
	vcontent = eval(parseInt(vAdTop)+400+0);
	vttdate = eval(parseInt(vAdTop)+180+0);
	vtenex = eval(parseInt(vAdTop)+206+0);

	dims = vnav1+":"+vnav2+":"+vnav3+":"+vnav4+":"+vnav5+":"+voops+":"+vwahoops+":"+vdavebg+":"+vwildcard+":"+vdtv+":"+vcontent+":"+vttdate+":"+vtenex;
	return dims;
}
var global_dims = "";

function lsNavInitialize()
{
global_dims = lsShowStyle();
dims1 = global_dims.split(':');

nav1Top = dims1[0];
nav2Top = dims1[1];
nav3Top = dims1[2];
nav4Top= dims1[3];
nav5Top = dims1[4];
oopsTop = dims1[5];
wahoopsTop = dims1[6];
davebgTop = dims1[7];
wildcardTop = dims1[8];
dtvTop= dims1[9];
contentTop = dims1[10];
ttdateTop = dims1[11];
tenexTop  = dims1[12];

var lnurl = presentUrl.toString();
var holdme;
lnurl.indexOf("/latenight/lateshow/")>=0?(holdme='true'):(holdme='false');
if(holdme=="true")
{
document.getElementById('navigation1').style.top = nav1Top;
document.getElementById('navigation2').style.top = nav2Top;
document.getElementById('navigation3').style.top = nav3Top;
document.getElementById('navigation4').style.top = nav4Top;
//document.getElementById('navigation5').style.top = nav5Top;
if (document.getElementById('davebg')) document.getElementById('davebg').style.top = davebgTop;
if (document.getElementById('content')) document.getElementById('content').style.top = contentTop;
if (document.getElementById('dtv')) document.getElementById('dtv').style.top = dtvTop;
if (document.getElementById('wildcard')) document.getElementById('wildcard').style.top = wildcardTop;
}
else if(holdme=="false")
{
document.getElementById('navigation1').style.top = nav1Top;
document.getElementById('navigation2').style.top = nav2Top;
document.getElementById('navigation3').style.top = nav3Top;
document.getElementById('navigation4').style.top = nav4Top;
document.getElementById('navigation5').style.top = nav5Top;
document.getElementById('oops').style.top = oopsTop;
document.getElementById('wahoops').style.top = wahoopsTop;
if (document.getElementById('davebg')) document.getElementById('davebg').style.top = davebgTop;
if (document.getElementById('wildcard')) document.getElementById('wildcard').style.top = wildcardTop;
if (document.getElementById('dtv')) document.getElementById('dtv').style.top = dtvTop;
if (document.getElementById('content')) document.getElementById('content').style.top = contentTop;
document.getElementById('ttdate').style.top = ttdateTop;
document.getElementById('tenex').style.top = tenexTop;
}}

/**************Added By Alberto Araya added on 7-1-2004 ************************/






