function SubmitVideoRating(requestHost,requestScript,titleId,rating,authentication)
{var obj=new AJAXRequest(requestHost,requestScript+"?videoId="+titleId+"&rating="+rating+"&auth="+authentication,"VerifyVideoRating('"+titleId+"')");obj.sendRequest();}
function VerifyVideoRating(titleId)
{if(xhttp.readyState==4)
{var nodes=xhttp.responseXML.getElementsByTagName("returnvalue");if(nodes.length>0)
{if(nodes[0].firstChild.nodeValue=='Success')
{}
else
{}}}}
function SubmitVote(entry,vote,campaign,host,auth)
{var obj=new AJAXRequest(host,"webservices/wsVote.asmx/Submit?campaignId="+campaign+"&vote="+vote+"&auth="+auth,"VerifyVote('"+entry+"')");obj.sendRequest();}
function VerifyVote(entry)
{var returnVal="-4";if(xhttp.readyState==4)
{var nodes=xhttp.responseXML.getElementsByTagName("returnvalue");if(nodes.length>0)
{returnVal=nodes[0].firstChild.nodeValue;}}
selectPlayer(-1,entry,returnVal);}
function SubmitVideoRequest(host,pageType,videoContent,numResults)
{var obj=new AJAXRequest(host,"PlaylistContentHolder.aspx?pageType="+pageType+"&videoContent="+videoContent+"&numberReturned="+numResults+"&nocache="+Math.random(),"VerifyVideoRequest()");obj.sendRequest();}
function VerifyVideoRequest()
{if(xhttp.readyState==4)
{var latestVideoDiv=document.getElementById('latestVideoDiv');latestVideoDiv.innerHTML=xhttp.responseText;}}
function SubmitVideoInfoBoxRequest(host,videoId)
{var obj=new AJAXRequest(host,"VideoInfo.aspx?video="+videoId,"VerifyVideoInfoBoxRequest()");obj.sendRequest();}
function VerifyVideoInfoBoxRequest()
{if(xhttp.readyState==4)
{var videoInfoDiv=document.getElementById('videoInfoDiv');videoInfoDiv.innerHTML=xhttp.responseText;}}
function AddVideoTag(host,userAuth,videoId)
{var inputTags=document.getElementById('inputTags');var strTags=inputTags.value;var obj=new AJAXRequest(host,"WebServices/wsVideo.asmx/AddTag?videoId="+videoId+"&auth="+userAuth+"&tags="+strTags,"VerifyAddVideoTag("+videoId+")");obj.sendRequest();}
function VerifyAddVideoTag(videoId)
{if(xhttp.readyState==4)
{var nodes=xhttp.responseXML.getElementsByTagName("returnvalue");if(nodes.length>0)
{if(nodes[0].firstChild.nodeValue=='Success')
{window.location.href=window.location.href;}
else
{}}}}
function referVideoHandler(){if(document.getElementById){document.getElementById('boxLobbyVideoPlayer_tdShareForm').innerHTML="<div style='width:350px;text-align:center;'>"+m_sSuccess+"</div>";}else{if(document.all){document.all['boxLobbyVideoPlayer_tdShareForm'].innerHTML="<div style='width:350px;text-align:center;'>"+m_sSuccess+"</div>";}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){document.layers['boxLobbyVideoPlayer_tdShareForm'].innerHTML="<div style='width:350px;text-align:center;'>"+m_sSuccess+"</div>";}}}};function referVideo(params,titleid){var serverPath,oi,iUserID,iTitleID,sEmail,tbEmail,sComment,tbComment,sFailed,sSport;args=params.split("|");if(args.length<5){return false;}
iTitleID=titleid;serverPath=args[0];oi=args[1];iUserID=args[2];sSport=args[3];tbEmail=args[4];tbComment=args[5];sFailed=args[6];sProcess=args[7];m_sSuccess=args[8];sEmail=document.getElementById(tbEmail).value;sComment=document.getElementById(tbComment).value;if(document.getElementById(tbEmail)==undefined||document.getElementById(tbEmail).value==''||checkEmail(sEmail)==false||iTitleID<1){if(document.getElementById){document.getElementById('boxLobbyVideoPlayer_tdShareForm').innerHTML="<div style='width:350px;text-align:center;'>"+sFailed+"</div>";}else{if(document.all){document.all['boxLobbyVideoPlayer_tdShareForm'].innerHTML="<div style='width:350px;text-align:center;'>"+sFailed+"</div>";}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){document.layers['boxLobbyVideoPlayer_tdShareForm'].innerHTML="<div style='width:350px;text-align:center;'>"+sFailed+"</div>";}}}
return;}
var origTrShareFormClientHeight=null;if(document.getElementById){origTrShareFormClientHeight=document.getElementById('boxLobbyVideoPlayer_trShareForm').clientHeight;}else{if(document.all){origTrShareFormClientHeight=document.all['boxLobbyVideoPlayer_trShareForm'].clientHeight;}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){origTrShareFormClientHeight=document.layers['boxLobbyVideoPlayer_trShareForm'].clientHeight;}}}
m_oi=oi;var obj=new AJAXRequest(serverPath,'webservices/Community/wsCommunity.asmx/ReferTitleCustom?iUserid='+iUserID+'&iTitleid='+iTitleID+'&sComment='+sComment+'&sReferedEmail='+sEmail+'&iTemplate=-1','referVideoHandler');obj.sendRequest();if(document.getElementById){document.getElementById('boxLobbyVideoPlayer_tdShareForm').innerHTML="<div style='width:350px;text-align:center;'>"+sProcess+"<br><img src='"+zipGlobal.BaseImagePath+"zip/en-CA/wait_transp.gif'></div>";}else{if(document.all){document.all['boxLobbyVideoPlayer_tdShareForm'].innerHTML="<div style='width:350px;text-align:center;'>"+sProcess+"<br><img src='"+zipGlobal.BaseImagePath+"zip/en-CA/wait_transp.gif'></div>";}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){document.layers['boxLobbyVideoPlayer_tdShareForm'].innerHTML="<div style='width:350px;text-align:center;'>"+sProcess+"<br><img src='"+zipGlobal.BaseImagePath+"zip/en-CA/wait_transp.gif'></div>";}}}
var newTrShareFormClientHeight=null;if(document.getElementById){newTrShareFormClientHeight=document.getElementById('boxLobbyVideoPlayer_trShareForm').clientHeight;}else{if(document.all){newTrShareFormClientHeight=document.all['boxLobbyVideoPlayer_trShareForm'].clientHeight;}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){newTrShareFormClientHeight=document.layers['boxLobbyVideoPlayer_trShareForm'].clientHeight;}}}
if(location.href.toUpperCase().match('LOBBYVIDEOPLAYER.ASPX'))
{window.resizeBy(0,-(Math.abs(origTrShareFormClientHeight-newTrShareFormClientHeight)));}}