﻿function vPIPPlay(e,d,b,c,f){if(vPIPPlayerRef==undefined||vPIPPlayerRef==null){var a=new a(e,d,b,c,f);vPIPPlayerRef=a}else{var a=vPIPPlayerRef;a.setStartup(e,d,b,c,f)}if(a.init()){a.show();return false}else{if(a.oLink.href.toLowerCase().indexOf("http://")>-1)window.open(a.oLink.href,"_self");return true}}vPIPPlayer.DIVPOS=0;vPIPPlayer.DIVIDPOS=1;vPIPPlayer.ORIGHTMLPOS=2;vPIPPlayer.LINKSARRAYPOS=3;vPIPPlayer.OPENPOS=0;vPIPPlayer.HREFPOS=1;vPIPPlayer.WIDTHPOS=2;vPIPPlayer.HEIGHTPOS=3;vPIPPlayer.FLASHWIDTH=320;vPIPPlayer.FLASHHEIGHT=300;vPIPPlayer.AUTOSTARTPOS=4;vPIPPlayer.CONTROLLERPOS=5;vPIPPlayer.NAMEPOS=6;vPIPPlayer.QUALITYPOS=7;vPIPPlayer.BGCOLORPOS=8;vPIPPlayer.FLVPOS=9;vPIPPlayer.REVERTPOS=10;vPIPPlayer.SHOWCLOSEBTNPOS=11;vPIPPlayer.LINKIDPOS=12;vPIPPlayer.WIDTH=320;vPIPPlayer.HEIGHT=260;vPIPPlayer.AUTOSTART="true";vPIPPlayer.CONTROLLER="true";vPIPPlayer.NAME="";vPIPPlayer.QUALITY="high";vPIPPlayer.BGCOLOR="#FFFFFF";vPIPPlayer.FLV="false";vPIPPlayer.REVERT="true";vPIPPlayer.SHOWCLOSEBTN="true";vPIPPlayer.FLVPLAYER450x340="cirneViewer450x340-025c.swf";vPIPPlayer.FLVPLAYER320x300="cirneViewer320x300-025c.swf";vPIPPlayer.WORKINGSAFARIBUILD=420;var vPIPPlayerRef,vPIPThickBoxCloseItem="close";function vPIPPlayer(d,c,a,b,e){this.setStartup(d,c,a,b,e);this.aDIVs=[];this.iInitiator=0;this.vPIPpath=this.getvPIPPath()}vPIPPlayer.prototype.setStartup=function(d,c,a,b,e){this.oLink=d;this.sParams=c;this.sFlashVars=a;this.sThickBox=b;this.sJump=e};vPIPPlayer.prototype.init=function(){this.oDiv=this.oLink.parentNode;while(this.oDiv!=undefined&&this.oDiv!=null&&this.oDiv.nodeName.toLowerCase()!="div"&&(vPIPPlayer.findAttribute(this.oDiv,"class")==null||vPIPPlayer.findAttribute(this.oDiv,"class").toLowerCase()!="hvlog"))this.oDiv=this.oDiv.parentNode;if(this.oDiv==undefined||this.oDiv==null||this.oDiv.nodeName.toLowerCase()!="div"||vPIPPlayer.findAttribute(this.oDiv,"class")==null||vPIPPlayer.findAttribute(this.oDiv,"class").toLowerCase()!="hvlog"){this.oDiv=this.constructDiv(this.oLink);if(this.oDiv!=undefined&&this.oDiv!=null&&this.oDiv.nodeName.toLowerCase()=="div"&&vPIPPlayer.findAttribute(this.oDiv,"class")!=null&&vPIPPlayer.findAttribute(this.oDiv,"class").toLowerCase()=="hvlog"){this.oLink.parentNode.replaceChild(this.oDiv,this.oLink);this.oLink=this.oDiv.firstChild}}if(this.oDiv==undefined||this.oDiv==null||this.oDiv.nodeName.toLowerCase()!="div"||vPIPPlayer.findAttribute(this.oDiv,"class")==null||vPIPPlayer.findAttribute(this.oDiv,"class").toLowerCase()!="hvlog")this.byDivExists=false;else this.byDivExists=true;if(this.byDivExists){var a=false;this.iNextPos=this.findDIV(this.oDiv);if(this.iNextPos==-1)this.iNextPos=this.aDIVs.length;else a=true;this.sLinkid="";this.sHREF=vPIPPlayer.toAlphaNum(this.oLink.href,"~");if(!a){this.oDiv.setAttribute("id","vPIP"+this.iNextPos);this.sOnClick=vPIPPlayer.toAlphaNum(this.oLink.onclick.toString());this.sLinkid="vPIPMovie"+this.iInitiator;this.oLink.setAttribute("id",this.sLinkid);this.aDIVs[this.iNextPos]=new Array(3);this.aDIVs[this.iNextPos][vPIPPlayer.DIVPOS]=this.oDiv;this.aDIVs[this.iNextPos][vPIPPlayer.DIVIDPOS]="vPIP"+this.iNextPos;this.aDIVs[this.iNextPos][3]=new Array(vPIPPlayer.LINKIDPOS+1);this.aDIVs[this.iNextPos][3][vPIPPlayer.OPENPOS]=false;this.aDIVs[this.iNextPos][3][vPIPPlayer.HREFPOS]=this.sHREF;this.aDIVs[this.iNextPos][3][vPIPPlayer.LINKIDPOS]=parseInt(this.sLinkid.substring(9));this.iInitiator++}else{this.byLinkFound=false;this.iNextLinkPos=-1;this.sLinkid=this.oLink.id;if(this.sLinkid!=undefined&&this.sLinkid!=null&&this.sLinkid.length>9){this.iLinkid=parseInt(this.sLinkid.substring(9));this.iNextLinkPos=this.findLinkInDiv(this.aDIVs[this.iNextPos],this.iLinkid);if(this.iNextLinkPos<3)this.iNextLinkPos=3;else this.byLinkFound=true}else{this.iNextLinkPos=this.aDIVs[this.iNextPos].length;if(this.iNextLinkPos<3)this.iNextLinkPos=3;this.sLinkid="vPIPMovie"+this.iInitiator;this.oLink.setAttribute("id",this.sLinkid);this.iInitiator++}if(!this.byLinkFound){this.aDIVs[this.iNextPos][this.iNextLinkPos]=new Array(vPIPPlayer.LINKIDPOS+1);this.aDIVs[this.iNextPos][this.iNextLinkPos][vPIPPlayer.OPENPOS]=false;this.aDIVs[this.iNextPos][this.iNextLinkPos][vPIPPlayer.HREFPOS]=this.sHREF;this.aDIVs[this.iNextPos][this.iNextLinkPos][vPIPPlayer.LINKIDPOS]=parseInt(this.sLinkid.substring(9))}}}return true};vPIPPlayer.prototype.show=function(){this.iWidth=vPIPPlayer.WIDTH;this.iHeight=vPIPPlayer.HEIGHT;this.byAutostart=vPIPPlayer.AUTOSTART;this.byController=vPIPPlayer.CONTROLLER;this.sName=vPIPPlayer.NAME;this.sQuality=vPIPPlayer.QUALITY;this.sBGColor=vPIPPlayer.BGCOLOR;this.byFLV=vPIPPlayer.FLV;this.byRevert=vPIPPlayer.REVERT;this.byShowCloseBtn=vPIPPlayer.SHOWCLOSEBTN;var l;if(this.byDivExists)if(this.oLink!=undefined&&this.oLink!=null&&this.oLink.nodeName.toLowerCase()=="a"){this.iCurrDIVid=parseInt(this.oDiv.id.substring(4));this.iCurrLinkid=parseInt(this.oLink.id.substring(9));this.iCurrLink=this.findLinkID(this.aDIVs[this.iCurrDIVid],this.iCurrLinkid);this.sHREF=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.HREFPOS];if(this.sHREF==undefined||this.sHREF==null)this.sHREF=this.oLink.href;if(this.sHREF!=undefined&&this.sHREF!=null){var e=vPIPPlayer.isMovieFile(this.oLink);this.sMimeType=e.sMimeType;this.sType=e.sType;this.sMediaFormat=e.sMediaFormat;this.sFileExt=e.sFileExt;if(this.sMediaFormat=="flash"){this.iWidth=vPIPPlayer.FLASHWIDTH;this.iHeight=vPIPPlayer.FLASHHEIGHT;if(this.sFileExt==".flv")this.byFLV="true"}var j=true;if(this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.WIDTHPOS]!=undefined){this.iWidth=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.WIDTHPOS];this.iHeight=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.HEIGHTPOS];this.byAutostart=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.AUTOSTARTPOS];this.byController=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.CONTROLLERPOS];this.sName=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.NAMEPOS];this.sQuality=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.QUALITYPOS];this.sBGColor=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.BGCOLORPOS];this.byFLV=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.FLVPOS];this.byRevert=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.REVERTPOS];this.byShowCloseBtn=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.SHOWCLOSEBTNPOS];j=false}else if(this.sParams!=undefined&&this.sParams!=null){var c=this.sParams.split(","),a;for(var b=0;b<c.length;b++)if(a=c[b].match(/(width\s*=\s*)(\d*)/i))this.iWidth=a[2];else if(a=c[b].match(/(height\s*=\s*)(\d*)/i))this.iHeight=a[2];else if(a=c[b].match(/(autostart\s*=\s*)(\w*)/i))this.byAutostart=a[2].toLowerCase()==="true";else if(a=c[b].match(/(controller\s*=\s*)(\w*)/i))this.byController=a[2].toLowerCase()==="true";else if(a=c[b].match(/(name\s*=\s*)(\w*)/i))this.sName=a[2];else if(a=c[b].match(/(quality\s*=\s*)(\w*)/i))this.sQuality=a[2];else if(a=c[b].match(/(bgcolor\s*=\s*)(\w*)/i))this.sBGColor=a[2];else if(a=c[b].match(/(flv\s*=\s*)(\w*)/i))this.byFLV=a[2];else if(a=c[b].match(/(revert\s*=\s*)(\w*)/i))this.byRevert=a[2].toLowerCase()==="true";else if(a=c[b].match(/(showclose\s*=\s*)(\w*)/i))this.byShowCloseBtn=a[2].toLowerCase()==="true"}this.closeThisDiv(this.aDIVs,this.iCurrDIVid);var k=this.oDiv.innerHTML;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.OPENPOS]=false;if(this.sName==undefined||this.sName==null||this.sName=="")this.sName="Embed"+this.iCurrLinkid;if(j){this.aDIVs[this.iCurrDIVid][vPIPPlayer.ORIGHTMLPOS]=k;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.WIDTHPOS]=this.iWidth;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.HEIGHTPOS]=this.iHeight;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.AUTOSTARTPOS]=this.byAutostart;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.CONTROLLERPOS]=this.byController;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.NAMEPOS]=this.sName;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.QUALITYPOS]=this.sQuality;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.BGCOLORPOS]=this.sBGColor;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.FLVPOS]=this.byFLV;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.REVERTPOS]=this.byRevert;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.SHOWCLOSEBTNPOS]=this.byShowCloseBtn}this.sReplace="";if(this.sType=="video"||this.sType=="application"){if(this.sMediaFormat=="quicktime"){this.sReplace='<object class="vPIPEmbed" width="'+this.iWidth+'" height="'+this.iHeight+'" id="'+this.sName+'" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ';if(this.sMimeType=="smil")this.sReplace+='codebase="http://www.apple.com/qtactivex/qtplugin.cab"> <param name="src" value="'+this.vPIPpath+'InitSMIL.mov"><param name="qtsrc" value="'+this.sHREF;else this.sReplace+='codebase="http://www.apple.com/qtactivex/qtplugin.cab"> <param name="src" value="'+this.sHREF;this.sReplace+='"><param name="autoplay" value="'+this.byAutostart+"\"><param name='scale' value='tofit' /><param name=\"controller\" value=\"";if(this.sMimeType=="smil")this.sReplace+=this.byController+'"><embed src="'+this.vPIPpath+'InitSMIL.mov" qtsrc="'+this.sHREF+'" width="'+this.iWidth+'" height="'+this.iHeight;else this.sReplace+=this.byController+'"><embed src="'+this.sHREF+'" width="'+this.iWidth+'" height="'+this.iHeight;this.sReplace+='" name="'+this.sName+'" autoplay="'+this.byAutostart+'" controller="'+this.byController;this.sReplace+='"  scale="tofit" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>'}else if(this.sMediaFormat=="windowsmedia"){this.sReplace="<OBJECT class=\"vPIPEmbed\" CLASSID='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'  ";this.sReplace+="codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' ";this.sReplace+="standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'  ";this.sReplace+="width='"+this.iWidth+"' height='"+this.iHeight+"' id='"+this.sName+"' >";this.sReplace+="<PARAM NAME='fileName' VALUE='"+this.sHREF+"' ><PARAM NAME='autoStart' VALUE='"+this.byAutostart;this.sReplace+="'><PARAM NAME='showControls' VALUE='"+this.byController+"'>";this.sReplace+="<EMBED type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' id='";this.sReplace+=this.sName+"' name='"+this.sName+"' showcontrols='"+this.byController+"' width='"+this.iWidth+"' height='";this.sReplace+=this.iHeight+"' src='"+this.sHREF+"' autostart='"+this.byAutostart+"'></EMBED></OBJECT>"}else if(this.sMediaFormat=="flash"){this.sReplace="<OBJECT class=\"vPIPEmbed\" classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ";this.sReplace+="codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' ";this.sReplace+="WIDTH='"+this.iWidth+"' HEIGHT='"+this.iHeight+"' id='"+this.sName+"' >";this.sReplace+="<PARAM NAME='movie' VALUE='";if(this.byFLV=="true"){if(Number(this.iWidth)>320)this.sFLVPlayer=this.vPIPpath+vPIPPlayer.FLVPLAYER450x340;else this.sFLVPlayer=this.vPIPpath+vPIPPlayer.FLVPLAYER320x300;var f="";if(this.sJump!=null&&this.sJump.length>0){var c=this.sJump.split(","),a;for(var b=0;b<c.length;b++)if(a=c[b].match(/(\w*)(\s*=\s*)(.*)/))f+="&"+a[1]+"="+a[3]}this.sReplace+=this.sFLVPlayer+"'> <PARAM NAME='quality' VALUE='"+this.sQuality+"' > <PARAM NAME='bgcolor' VALUE='"+this.sBGColor+"'> ";this.sReplace+="<PARAM NAME='FlashVars' VALUE='flvURL="+this.sHREF+"&cvhome="+this.vPIPpath;if(this.sFlashVars!=undefined&&this.sFlashVars!=null&&this.sFlashVars.length>0)this.sReplace+="&"+this.sFlashVars;this.sReplace+=f+"' > <EMBED src='"+this.sFLVPlayer+"' quality='"+this.sQuality+"' bgcolor='"+this.sBGColor+"' width='"+this.iWidth+"' height='"+this.iHeight+"' ";this.sReplace+="FlashVars='flvURL="+this.sHREF+"&cvhome="+this.vPIPpath;if(this.sFlashVars!=undefined&&this.sFlashVars!=null&&this.sFlashVars.length>0)this.sReplace+="&"+this.sFlashVars;this.sReplace+=f+"' NAME='' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'> "}else{this.sReplace+=this.sHREF+"'> <PARAM NAME='quality' VALUE='"+this.sQuality+"' > <PARAM NAME='bgcolor' VALUE='"+this.sBGColor+"'> ";if(this.sFlashVars!=undefined&&this.sFlashVars!=null&&this.sFlashVars.length>0)this.sReplace+="<PARAM NAME='FlashVars' VALUE='"+this.sFlashVars+"' > ";this.sReplace+="<EMBED src='"+this.sHREF+"' quality='"+this.sQuality+"' bgcolor='"+this.sBGColor+"' width='"+this.iWidth+"' height='"+this.iHeight+"' ";if(this.sFlashVars!=undefined&&this.sFlashVars!=null&&this.sFlashVars.length>0)this.sReplace+="FlashVars='"+this.sFlashVars+"' ";this.sReplace+="NAME='' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'> "}this.sReplace+="</EMBED> </OBJECT>"}if(this.sReplace.length>0){var d=navigator.userAgent;this.bySafari=d.indexOf("Safari")>-1;this.byOpera=d.indexOf("Opera")>-1;this.byIE7=d.indexOf("MSIE 7")>-1;this.byIE6=d.indexOf("MSIE 6")>-1;this.nSafariBuild=-1;if(this.bySafari)this.nSafariBuild=Number(d.substring(d.indexOf("Safari")+7));this.byThickBox=false;if(this.sThickBox!=undefined&&this.sThickBox!=null&&this.sThickBox.length>0&&!this.bySafari&&!this.byIE6){var c=this.sThickBox.split(","),a,i="true",h="",g="#E1E1E1";for(var b=0;b<c.length;b++)if(a=c[b].match(/(active\s*=\s*)(\w*)/i))i=a[2];else if(a=c[b].match(/(caption\s*=\s*)(.*)/i))h=a[2];else if(a=c[b].match(/(background\s*=\s*)(\d*)/i))g=a[2];if(i.toLowerCase()=="true")this.byThickBox=true}if(this.byThickBox){this.revert(this.aDIVs);this.thickBox_show(h,this.sReplace,Number(this.iWidth),Number(this.iHeight),g)}else{if(this.byShowCloseBtn)this.sReplace='<div style="padding-right: '+(this.iWidth-49)+'px" ><a href="javascript: vPIPClose('+this.iCurrDIVid+", "+this.iCurrLink+');" title="Close Movie" onMouseOver="document.vPIPImage'+this.iCurrDIVid*10+this.iCurrLink+".src='"+this.vPIPpath+'close_hover.gif\';" onMouseOut="document.vPIPImage'+this.iCurrDIVid*10+this.iCurrLink+".src='"+this.vPIPpath+'close_grey.gif\';" style=" background: transparent;" ><img src="'+this.vPIPpath+'close_grey.gif" name="vPIPImage'+this.iCurrDIVid*10+this.iCurrLink+'" style="border: none;"  /></a></div>'+this.sReplace;if(!(this.bySafari&&this.nSafariBuild<vPIPPlayer.WORKINGSAFARIBUILD))this.revert(this.aDIVs);this.sReplace=this.addOutsideTarget(k,this.sReplace);this.oDiv.innerHTML=this.sReplace;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.OPENPOS]=true}}}else if(this.sMimeType!=undefined&&this.sMimeType!=null){setTimeout('Unsuported mime type: "'+this.sMimeType+'".',0);if(this.oLink.href.toLowerCase().indexOf("http://")>-1)window.open(this.oLink.href,"_self");else if(this.sHREF!=undefined&&this.sHREF!=null)window.open(this.sHREF,"_self")}else{setTimeout('Unsuported file extension: "'+this.sFileExt+'".',0);if(this.oLink.href.toLowerCase().indexOf("http://")>-1)window.open(this.oLink.href,"_self");else if(this.sHREF!=undefined&&this.sHREF!=null)window.open(this.sHREF,"_self")}}else{setTimeout('Missing href="..." attribute.',0);if(this.oLink.href.toLowerCase().indexOf("http://")>-1)window.open(this.oLink.href,"_self");else if(this.sHREF!=undefined&&this.sHREF!=null)window.open(this.sHREF,"_self")}}else{setTimeout("video Playing In Place cannot execute because the link is not identified.",0);if(this.sHREF!=undefined&&this.sHREF!=null)window.open(this.sHREF,"_self")}else{setTimeout("video Playing In Place cannot execute because the hVlog DIV is not identified.",0);if(this.oLink.href.toLowerCase().indexOf("http://")>-1)window.open(this.oLink.href,"_self");else if(this.sHREF!=undefined&&this.sHREF!=null)window.open(this.sHREF,"_self")}return};function MovieType(b,d,a,c){this.sMimeType=b;this.sType=d;this.sMediaFormat=a;this.sFileExt=c}vPIPPlayer.isMovieFile=function(d){var h=null;if(d!=undefined&&d!=null&&d.nodeName.toLowerCase()=="a"){var a=d.type;if(a!=undefined&&a!=null&&a.length>0){var j=a.search(/\//);if(j>-1)a=a.substring(j+1);else a=null}var c="false",b="",f,e=vPIPPlayer.toAlphaNum(d.href,"~"),g=e.indexOf("?");if(g>-1){var i=e.substring(0,g);f=i.substring(i.lastIndexOf("."),g).toLowerCase()}else f=e.substring(e.lastIndexOf("."),e.length).toLowerCase();if(a!=undefined&&a!=null&&a.length>0)switch(a.toLowerCase()){case "quicktime":case "mp4":case "x-m4v":case "x-mp3":case "mp3":case "mpeg":case "smil":case "3gpp":case "3g2":case "3gp":b="quicktime";c="video";break;case "x-msvideo":case "x-ms-wmv":case "x-ms-asf":case "x-ms-wma":b="windowsmedia";c="video";break;case "x-shockwave-flash":case "x-flv":b="flash";c="application"}else{a="";switch(f.toLowerCase()){case ".mov":case ".mp4":case ".m4v":case ".mp3":case ".3gp":case ".3g2":b="quicktime";c="video";break;case ".smi":case ".smil":b="quicktime";c="video";a="smil";break;case ".avi":case ".wmv":case ".asf":case ".wma":b="windowsmedia";c="video";break;case ".swf":case ".flv":b="flash";c="application"}}h=new MovieType(a,c,b,f)}return h};vPIPPlayer.prototype.revert=function(b){for(var a=0;a<b.length;a++)for(var c=vPIPPlayer.LINKSARRAYPOS;c<b[a].length;c++)if(b[a][c][vPIPPlayer.REVERTPOS]){b[a][vPIPPlayer.DIVPOS].innerHTML=b[a][vPIPPlayer.ORIGHTMLPOS];b[a][c][vPIPPlayer.OPENPOS]=false}};vPIPPlayer.prototype.closeThisDiv=function(b,a){for(var c=vPIPPlayer.LINKSARRAYPOS;c<b[a].length;c++)if(b[a][c][vPIPPlayer.REVERTPOS]){b[a][vPIPPlayer.DIVPOS].innerHTML=b[a][vPIPPlayer.ORIGHTMLPOS];b[a][c][vPIPPlayer.OPENPOS]=false}};vPIPPlayer.prototype.constructDiv=function(a){var c=document.createElement("div");c.setAttribute("class","hVlog");var b=document.createElement("a");b.setAttribute("href",a.href);if(a.type!="")b.setAttribute("type",a.type);if(a.name!="")b.setAttribute("name",a.type);if(a.href!="")b.setAttribute("href",a.href);if(a.rel!="")b.setAttribute("rel",a.rel);if(a.onclick.toString()!="")b.onclick=a.onclick;if(a.hasChildNodes()){var e=a.childNodes;for(var d=0;d<e.length;d++)b.appendChild(e[d])}if(a.innerHTML!="")b.innerHTML=a.innerHTML;c.appendChild(b);return c};vPIPPlayer.prototype.addOutsideTarget=function(a,d){var b=a.toLowerCase().indexOf("hvlogtarget");if(b>-1){b=a.toLowerCase().substring(0,b).lastIndexOf("<");var c=a.toLowerCase().indexOf("</a",b);c=a.toLowerCase().indexOf(">",c);if(c>-1){var f=a.substring(0,b),e=a.substring(c+1);d=f+d+e}}return d};function vPIPClose(f,e){var a=navigator.userAgent,d=a.indexOf("Safari")>-1,c=-1;if(d)c=Number(a.substring(a.indexOf("Safari")+7));if(d&&c<vPIPPlayer.WORKINGSAFARIBUILD)document.location.reload();else if(Number(f)!=NaN&&Number(e)!=NaN){var b=Number(f),g=Number(e);vPIPPlayerRef.aDIVs[b][vPIPPlayer.DIVPOS].innerHTML=vPIPPlayerRef.aDIVs[b][vPIPPlayer.ORIGHTMLPOS];vPIPPlayerRef.aDIVs[b][g][vPIPPlayer.OPENPOS]=false;if(typeof vPIPIt=="function")vPIPIt()}}vPIPPlayer.prototype.findDIV=function(b){var a,c=-1;if(b.id!=undefined&&b.id!=null&&b.id.length>0)for(a=0;a<this.aDIVs.length;a++)if(this.aDIVs[a][vPIPPlayer.DIVIDPOS]===this.oDiv.id){c=a;break}return c};vPIPPlayer.prototype.findLinkID=function(c,d){var b=-1;for(var a=3;a<c.length;a++)if(c[a][vPIPPlayer.LINKIDPOS]==d){b=a;break}return b};vPIPPlayer.prototype.findLinkInDiv=function(b,d){var c=-1;for(var a=3;a<b.length;a++)if(b[a][vPIPPlayer.LINKIDPOS]!=undefined)if(b[a][vPIPPlayer.LINKIDPOS]==d){c=a;break}return c};vPIPPlayer.prototype.addEvent=function(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false);return true}else if(a.attachEvent){var d=a.attachEvent("on"+b,c);return d}else return false};vPIPPlayer.prototype.getvPIPPath=function(){var e=document.getElementsByTagName("script"),a,b,d="";for(var c=0;c<e.length;c++){a=e[c].getAttribute("src");if(a!=undefined&&a!=null){b=a.search(/vPIP.js/i);if(b>-1){d=a.substring(0,b);break}}}return d};vPIPPlayer.findAttribute=function(e,d){var c=null,a=e.attributes;if(a!=undefined&&a!=null)for(var b=a.length-1;b>=0;b--)if(a[b].name.toLocaleLowerCase()==d.toLocaleLowerCase()){c=a[b].value;break}return c};vPIPPlayer.toAlphaNum=function(a,d){var b,c="";if(a==undefined||a==null)return a;else{for(b=0;b<a.length;b++){ch=a.charAt(b);if(ch>=" "&&ch<="z")c+=a.charAt(b);else if(d!=undefined&&d!=null&&d.indexOf(ch)>-1)c+=a.charAt(b)}return c}};vPIPPlayer.prototype.thickBox_show=function(a,e,c,b,d){try{jQuery("body").append("<div id='vPIP_TB_overlay'></div><div id='vPIP_TB_window'></div>");jQuery("#vPIP_TB_overlay").click(this.thickBox_remove);jQuery(window).scroll(this.thickBox_position);if(a==undefined||a==null)a="";c+=30;b+=60;var f="<div id='vPIP_TB_caption'>"+a+"</div><div id='vPIP_TB_closeWindow'><a href='javascript: none' id='vPIP_TB_closeWindowButton'>"+vPIPThickBoxCloseItem+"</a></div><div id='vPIP_Object'>"+e+"</div>";jQuery("#vPIP_TB_window").html(f);document.getElementById("vPIP_TB_window").style.backgroundColor=d;document.getElementById("vPIP_TB_window").style.backgroundColor=d;jQuery("#vPIP_TB_closeWindowButton").click(this.thickBox_remove);this.thickBox_position(c,b);jQuery("#vPIP_TB_window").show()}catch(g){setTimeout(g,0)}};vPIPPlayer.prototype.thickBox_remove=function(){jQuery("#vPIP_TB_window").html("");jQuery("#vPIP_TB_window").fadeOut("fast",function(){jQuery("#vPIP_TB_window,#vPIP_TB_overlay").remove()});if(typeof vPIPIt=="function")vPIPIt();return false};vPIPPlayer.prototype.thickBox_position=function(c,b){var a=document.documentElement,e=self.innerWidth||a&&a.clientWidth||document.body.clientWidth,d=self.innerHeight||a&&a.clientHeight||document.body.clientHeight;if(window.innerHeight&&window.scrollMaxY)yScroll=window.innerHeight+window.scrollMaxY;else if(document.body.scrollHeight>document.body.offsetHeight)yScroll=document.body.scrollHeight;else yScroll=document.body.offsetHeight;jQuery("#vPIP_TB_window").css({width:c+"px",height:b+"px",left:(e-c)/2+"px",top:(d-b)/2+"px"});jQuery("#vPIP_TB_overlay").css("height",yScroll+"px")}