\n");
/*test to see if user has real or not*/
if (RealPlayer || RealPlayer8 || RealPlayerMode) /*RealPlayer || RealPlayer8 || RealPlayerG2 || || RealPlayer7*/
{
isRPlayer=true;
}
else
{
isRPlayer=false;
}
/*returns the mlc for the video*/
function themlc(video){if(video.indexOf('&hitboxMLC')!=-1){var me = video.split('&hitboxMLC=');thismlc = me[1];}else{thismlc = 'cbsnews/i_video';}return thismlc;}
/*this function returns the video section Id*/
function getVidId(video){
if(video.indexOf('.')!=-1){var me = video.split('/');first=me[5].split('o');/*alert(me[5]);*/vididpart=first[1].split('.');thisvidid = vididpart[0];}else{thisvidid='LiveWebCast'}
return thisvidid;
}
/*End video sectionID*/
/*Fullscreen function: Creates fullscreen video*/
function full()
{
document.video.AllowChangeDisplaySize = true;
if(video.playState == 3){alert("Please Press the 'Esc' key to return. \nThanks");document.video.fullScreen = 'true';}
}
/*End Fullscreen function:*/
/*this function returns the videotitle*/
function vcliptitle(video){//alert("video: "+ video);
if(video.indexOf('title')!=-1){var two = video.split('title=');
if(two[1].indexOf('hitboxMLC')!=-1){var three = two[1].split('&hitboxMLC=');thisvideotitle=three[0];}else{thisvideotitle = two[1];}
}else{thisvideotitle="CBSNews Video"}
return thisvideotitle
}
/*End video title*/
/*this function returns the videourl for the videoplayer and hitbox*/
function videourl(video){
if(video.indexOf('clip')!=-1){var one = video.split('clip=')}else{var one = video.split('?')}
if(one[1].indexOf('&')!=-1){var vid_str = one[1].split('&');
for(i=0;i';
if(video.indexOf('.wmv')!=-1 || video.indexOf('.asx')!=-1 || video.indexOf('.php')!=-1)
{
fullhtml += '
Full Screen';
}
fullhtml += '
Help';
if(!ns7 && !ns6 && !Mac){document.getElementById('prefs').innerHTML = fullhtml;}else{document.getElementById('prefs').innerHTML = '
Help';}
}
/*This creates the video player*/
function createMediaVideo(video)
{
document.getElementById('thisvideo').innerHTML = "";
var videoClassId = mediaclass(video);
if(video.indexOf('.php')!=-1)
{
var vFile = video.split('clip=');
var videoFile = vFile[1];
}
else
{
var videoFile = playback + videourl(video);
}
printfulltab(video);
videoHTML=('
'); document.getElementById('thisvideo').innerHTML = videoHTML;
title = vcliptitle(video);
/***********************************Hitbox variables******************************/
cbshpn = title.replace(/\$@\$/ig, "+"); /*clip title*/
hitboxVidId = getVidId(video); /*Video Asset Id*/
hitboxPN = cbshpn+"+-+"+hitboxVidId; /*_pn variable*/
hitboxMLC = "/media/"+themlc(video); /*_mlc variable*/
hitboxHC3 = hitboxVidId + "+-+" + cbshpn; /*_hc3 variable*/
hitboxHC2 = "000000+-+section/i_video"; /*_hc2 variable*/
/***********************************End Hitbox variables***************************/
cbsnewsHitbox(hitboxPN,hitboxMLC,hitboxHC1,hitboxHC2,hitboxHC3,"");
}
function cbsnewsHitbox(hitboxPN, hitboxMLC, hitboxHC1, hitboxHC2, hitboxHC3, hitboxHC4)
{
');
/*alert(videoFile);*/
if(video.indexOf('.wmv')!=-1 || video.indexOf('.asx')!=-1 || video.indexOf('.php')!=-1)
{
if(playerVersion)
{
if(!Mac || !ns6 || !ns7){
videoHTML+= ('');}
}
else
{
document.location.href="help_win.html";//videoHTML+=('You will Need Windows Media Player 9 in order to play this video.
Click the following link to download Windows');
}
}
else if(video.indexOf('.rm')!=-1)
{
if(isRPlayer)
{
videoHTML+=('