
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - ++resource++vPIP/vpip.js - */
// http://peter.baumgartner.name/portal_javascripts/++resource++vPIP/vpip.js?original=1
function vPIPPlay(_oLink,_sParams,_sFlashVars,_sThickBox,_sJump,_byDebug){if(vpipPlayerRef==undefined||vpipPlayerRef==null){var vpipPlayer=new vPIPPlayer(_oLink,_sParams,_sFlashVars,_sThickBox,_sJump,_byDebug);vpipPlayerRef=vpipPlayer}
else{var vpipPlayer=vpipPlayerRef;vpipPlayer.setStartup(_oLink,_sParams,_sFlashVars,_sThickBox,_sJump,_byDebug)}
if(vpipPlayer.init()){vpipPlayer.show();return false}
else{if(vpipPlayer.oLink.href.toLowerCase().indexOf("http://")>-1)
window.open(vpipPlayer.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=240;vPIPPlayer.FLASHCONTROLBARHEIGHT=20;vPIPPlayer.QTCONTROLBARHEIGHT=16;vPIPPlayer.WMCONTROLBARHEIGHT=16;vPIPPlayer.AUTOSTARTPOS=4;vPIPPlayer.CONTROLLERPOS=5;vPIPPlayer.NAMEPOS=6;vPIPPlayer.KIOSKMODEPOS=7;vPIPPlayer.TARGETPOS=8;vPIPPlayer.LOOPPOS=9;vPIPPlayer.QUALITYPOS=10;vPIPPlayer.BGCOLORPOS=11;vPIPPlayer.FLASHMEDIAPOS=12;vPIPPlayer.SCALEPOS=13;vPIPPlayer.ADDCONTROLHEIGHTPOS=14;vPIPPlayer.REVERTPOS=15;vPIPPlayer.SHOWCLOSEBTNPOS=16;vPIPPlayer.LINKIDPOS=17;vPIPPlayer.WIDTH=320;vPIPPlayer.HEIGHT=240;vPIPPlayer.AUTOSTART="true";vPIPPlayer.CONTROLLER="true";vPIPPlayer.NAME=""
vPIPPlayer.KIOSKMODE="false"
vPIPPlayer.TARGET="embed"
vPIPPlayer.LOOP="false"
vPIPPlayer.QUALITY="high"
vPIPPlayer.BGCOLOR="#FFFFFF";vPIPPlayer.FLASHMEDIA="false"
vPIPPlayer.SCALE="noScale"
vPIPPlayer.ADDCONTROLHEIGHT="true";vPIPPlayer.REVERT="true";vPIPPlayer.SHOWCLOSEBTN="true";vPIPPlayer.FLASHMEDIAPLAYER="cineViewer-002a.swf";vPIPPlayer.WORKINGSAFARIBUILD=420;vPIPPlayer.prototype.isOpen=false;vPIPPlayer.glDivs;var vpipPlayerRef;var vPIPThickBoxCloseItem="close";
function vPIPPlayer(_oLink,_sParams,_sFlashVars,_sThickBox,_sJump,_byDebug){this.setStartup(_oLink,_sParams,_sFlashVars,_sThickBox,_sJump,_byDebug);this.aDIVs=new Array();this.iInitiator=0;aParams=_sParams.split(",");iIDPos=aParams.findFirst(/id=/i);if(iIDPos!=null){sID=aParams[iIDPos];var iPos=sID.indexOf("=");if(iPos>-1){sID=sID.substr(iPos+1)}}
else
sID=null;this.vPIPpath=vPIP_getPath(sID)}
vPIPPlayer.prototype.setStartup=function(_oLink,_sParams,_sFlashVars,_sThickBox,_sJump,_byDebug){this.oLink=_oLink;this.sParams=_sParams;this.sFlashVars=_sFlashVars;this.sThickBox=_sThickBox;this.sJump=_sJump;if(_byDebug!=undefined)
this.byDebug=_byDebug
else if(this.byDebug==undefined)
this.byDebug=false
if(this.byDebug){if(this.sFlashVars.length==0)
this.sFlashVars+="byDebug=true";else
this.sFlashVars+="&byDebug=false"}}
vPIPPlayer.prototype.init=function(){this.oDiv=vPIP_getContainer("hVlog",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.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 byDivFound=false;this.iNextPos=this.findDIV(this.oDiv);if(this.iNextPos==-1)
this.iNextPos=this.aDIVs.length;else
byDivFound=true;this.sLinkid="";this.sHREF=vPIPPlayer.toAlphaNum(this.oLink.href,"~");if(!byDivFound){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.sKioskMode=vPIPPlayer.KIOSKMODE;this.sTarget=vPIPPlayer.TARGET;this.sLoop=vPIPPlayer.Loop;this.sQuality=vPIPPlayer.QUALITY;this.sBGColor=vPIPPlayer.BGCOLOR;this.byFlashMedia=vPIPPlayer.FLASHMEDIA;this.sScale=vPIPPlayer.SCALE;this.byAddControlHeight=vPIPPlayer.ADDCONTROLHEIGHT;this.byRevert=vPIPPlayer.REVERT;this.byShowCloseBtn=vPIPPlayer.SHOWCLOSEBTN;var iPos;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 movieType=vPIPPlayer.isMovieFile(this.oLink);this.sMimeType=movieType.sMimeType;this.sType=movieType.sType;this.sMediaFormat=movieType.sMediaFormat;this.sFileExt=movieType.sFileExt;if(this.sMediaFormat=="flash"){this.iWidth=vPIPPlayer.FLASHWIDTH;if(this.byAddControlHeight=="true"){this.iHeight=vPIPPlayer.FLASHHEIGHT+vPIPPlayer.FLASHCONTROLBARHEIGHT}
else{this.iHeight=vPIPPlayer.FLASHHEIGHT}
if(this.sFileExt==".flv")
this.byFlashMedia="true"}
var byInitArray=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.sKioskMode=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.KIOSKMODEPOS];this.sTarget=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.TARGETPOS];this.sLoop=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.LOOPPOS];this.sQuality=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.QUALITYPOS];this.sBGColor=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.BGCOLORPOS];this.byFlashMedia=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.FLASHMEDIAPOS];this.sScale=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.SCALEPOS];this.byAddControlHeight=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.ADDCONTROLHEIGHTPOS];this.byRevert=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.REVERTPOS];this.byShowCloseBtn=this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.SHOWCLOSEBTNPOS];byInitArray=false}
else{if(this.sParams!=undefined&&this.sParams!=null){var aParams=this.sParams.split(",");var aMatch;for(var i=0;i<aParams.length;i++){if(aMatch=aParams[i].match(/(\bwidth\b\s*=\s*)(\d*)/i)){this.iWidth=aMatch[2]}
else if(aMatch=aParams[i].match(/(\bheight\b\s*=\s*)(\d*)/i)){this.iHeight=aMatch[2]}
else if(aMatch=aParams[i].match(/(\bautostart\b\s*=\s*)(\w*)/i)){this.byAutostart=(aMatch[2].toLowerCase()==="true")}
else if(aMatch=aParams[i].match(/(\bcontroller\b\s*=\s*)(\w*)/i)){this.byController=(aMatch[2].toLowerCase()==="true")}
else if(aMatch=aParams[i].match(/(\bname\b\s*=\s*)(\w*)/i)){this.sName=aMatch[2]}
else if(aMatch=aParams[i].match(/(\bkioskmode\b\s*=\s*)(\w*)/i)){this.sKioskMode=aMatch[2]}
else if(aMatch=aParams[i].match(/(\btarget\b\s*=\s*)(\w*)/i)){this.sTarget=aMatch[2]}
else if(aMatch=aParams[i].match(/(\bloop\b\s*=\s*)(\w*)/i)){this.sLoop=aMatch[2]}
else if(aMatch=aParams[i].match(/(\bquality\b\s*=\s*)(\w*)/i)){this.sQuality=aMatch[2]}
else if(aMatch=aParams[i].match(/(\bbgcolor\b\s*=\s*)(\w*)/i)){this.sBGColor=aMatch[2]}
else if(aMatch=aParams[i].match(/(\bflv\b\s*=\s*)(\w*)/i)){this.byFlashMedia=aMatch[2]}
else if(aMatch=aParams[i].match(/(\bscale\b\s*=\s*)(\w*)/i)){this.sScale=aMatch[2]}
else if(aMatch=aParams[i].match(/(\baddcontrolheight\b\s*=\s*)(\w*)/i)){this.byAddControlHeight=aMatch[2]}
else if(aMatch=aParams[i].match(/(\brevert\b\s*=\s*)(\w*)/i)){this.byRevert=(aMatch[2].toLowerCase()==="true")}
else if(aMatch=aParams[i].match(/(\bshowclose\b\s*=\s*)(\w*)/i)){this.byShowCloseBtn=(aMatch[2].toLowerCase()==="true")}}
if(this.sType=="video"||this.sType=="application"){if(this.byAddControlHeight=="true"){if(this.sMediaFormat=="quicktime"){this.iHeight=(Number(this.iHeight)+vPIPPlayer.QTCONTROLBARHEIGHT).toString()}
else if(this.sMediaFormat=="windowsmedia"){this.iHeight=(Number(this.iHeight)+vPIPPlayer.WMCONTROLBARHEIGHT).toString()}
else if(this.sMediaFormat=="flash"){this.iHeight=(Number(this.iHeight)+vPIPPlayer.FLASHCONTROLBARHEIGHT).toString()}}}}}
this.closeThisDiv(this.aDIVs,this.iCurrDIVid);var sInnerHTML=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(byInitArray){this.aDIVs[this.iCurrDIVid][vPIPPlayer.ORIGHTMLPOS]=sInnerHTML;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.KIOSKMODEPOS]=this.sKioskMode;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.TARGETPOS]=this.sTarget;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.LOOPPOS]=this.sLoop;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.FLASHMEDIAPOS]=this.byFlashMedia;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.SCALEPOS]=this.sScale;this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.ADDCONTROLHEIGHTPOS]=this.byAddControlHeight;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"){if(this.sTarget.toLowerCase()=="quicktimeplayer"){this.sReplace+="codebase='http://www.apple.com/qtactivex/qtplugin.cab'> <param name='src' value='"+this.vPIPpath+"InitSMIL.mov'><param name='qtsrc' value='"+this.sHREF;this.sReplace+="'><param name='href' value='"+this.sHREF+"' /><param name='autohref' value='true"}
else
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{if(this.sTarget.toLowerCase()=="quicktimeplayer"){this.sReplace+="codebase='http://www.apple.com/qtactivex/qtplugin.cab'> <param name='src' value='"+this.vPIPpath+"InitSMIL.mov' >";this.sReplace+="<param name='href' value='"+this.sHREF+"' /><param name='autohref' value='true"}
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' />";if(this.sTarget.toLowerCase()=="quicktimeplayer")
this.sReplace+="<param name='target' value='quicktimeplayer'><param name='loop' value='"+this.sLoop+"'>";else
this.sReplace+="<param name='loop' value='"+this.sLoop+"'>";this.sReplace+="<param name='kioskmode' value='"+this.sKioskMode+"'><param name='controller' value='";if(this.sMimeType=="smil")
if(this.sTarget.toLowerCase()=="quicktimeplayer"){this.sReplace+=this.byController+"'><embed src='"+this.vPIPpath+"InitSMIL.mov' width='"+this.iWidth+"' height='"+this.iHeight;this.sReplace+="' href='"+this.sHREF+"' autohref='true"}
else
this.sReplace+=this.byController+"'><embed src='"+this.vPIPpath+"InitSMIL.mov' qtsrc='"+this.sHREF+"' width='"+this.iWidth+"' height='"+this.iHeight;else{if(this.sTarget.toLowerCase()=="quicktimeplayer"){this.sReplace+=this.byController+"'><embed src='"+this.vPIPpath+"InitSMIL.mov' width='"+this.iWidth+"' height='"+this.iHeight;this.sReplace+="' href='"+this.sHREF+"' autohref='true"}
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;if(this.sTarget.toLowerCase()=="quicktimeplayer")
this.sReplace+="' target='quicktimeplayer'  loop='"+this.sLoop;else
this.sReplace+="' loop='"+this.sLoop;this.sReplace+="' kioskmode='"+this.sKioskMode+"' 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.byFlashMedia=="true"){this.sFlashMediaPlayer=this.vPIPpath+vPIPPlayer.FLASHMEDIAPLAYER;var sJumpFlashVars="";if(this.sJump!=null&&this.sJump.length>0){var aParams=this.sJump.split(",");var aMatch;for(var i=0;i<aParams.length;i++){if(aMatch=aParams[i].match(/(\w*)(\s*=\s*)(.*)/))
sJumpFlashVars+="&"+aMatch[1]+"="+aMatch[3]}}
this.sReplace+=this.sFlashMediaPlayer+"\"> <PARAM NAME=\"quality\" VALUE=\""+this.sQuality+"\" > <PARAM NAME=\"bgcolor\" VALUE=\""+this.sBGColor+"\"> ";this.sReplace+="<param name=\"scale\" value=\""+this.sScale+"\" ><param name=\"salign\" value=\"TL\" ><param name=\"allowfullscreen\" value=\"true\" >";this.sReplace+="<PARAM NAME=\"FlashVars\" VALUE=\"file="+this.sHREF+"&cvhome="+this.vPIPpath+"&width="+this.iWidth+"&height="+this.iHeight;this.sReplace+="&autostart="+this.byAutostart;if(this.sFlashVars!=undefined&&this.sFlashVars!=null&&this.sFlashVars.length>0)
this.sReplace+="&"+this.sFlashVars;this.sReplace+=sJumpFlashVars+"\" > <EMBED src=\""+this.sFlashMediaPlayer+"\" quality=\""+this.sQuality+"\" bgcolor=\""+this.sBGColor+"\" width=\""+this.iWidth+"\" height=\""+this.iHeight+"\" ";this.sReplace+="  scale=\""+this.sScale+"\" salign=\"TL\" allowfullscreen=\"true\" FlashVars=\"file="+this.sHREF+"&cvhome="+this.vPIPpath+"&width="+this.iWidth+"&height="+this.iHeight+"&autostart="+this.byAutostart;if(this.sFlashVars!=undefined&&this.sFlashVars!=null&&this.sFlashVars.length>0){this.sReplace+="&"+this.sFlashVars}
this.sReplace+=sJumpFlashVars+"\" NAME=\""+this.sName+"\" 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=\"scale\" value=\""+this.sScale+"\" ><param name=\"salign\" value=\"TL\" ><param name=\"allowfullscreen\" value=\"true\" >";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+="  scale=\""+this.sScale+"\" salign=\"TL\" allowfullscreen=\"true\" FlashVars=\""+this.sFlashVars+"\" ";this.sReplace+="NAME=\""+this.sName+"\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"> "}
this.sReplace+="</EMBED> </OBJECT>"}
else if(this.sMediaFormat=="ogg"){this.sReplace+="<applet code='com.fluendo.player.Cortado.class'  \n";this.sReplace+="   archive='"+this.vPIPpath+"cortado.jar' \n";this.sReplace+="   width='"+this.iWidth+"' height='"+this.iHeight+"'>\n";this.sReplace+=" <PARAM NAME='url' VALUE='"+this.sHREF+"' />\n";this.sReplace+=" <param name='local' value='false' />\n";this.sReplace+=" <PARAM NAME='keepAspect' VALUE='true' />\n";this.sReplace+=" <PARAM NAME='video' VALUE='true' />\n";this.sReplace+=" <PARAM NAME='audio' VALUE='true' />\n";this.sReplace+=" <PARAM NAME='bufferSize' VALUE='200' />\n";this.sReplace+="</applet>\n"}
if(this.sReplace.length>0){if(this.byDebug)
alert(this.sReplace);var sUserAgent=navigator.userAgent;this.bySafari=sUserAgent.indexOf('Safari')>-1;this.byOpera=sUserAgent.indexOf('Opera')>-1;this.byIE7=sUserAgent.indexOf("MSIE 7")>-1;this.byIE6=sUserAgent.indexOf("MSIE 6")>-1;this.nSafariBuild=-1;if(this.bySafari){this.nSafariBuild=Number(sUserAgent.substring(sUserAgent.indexOf('Safari')+7))}
this.byThickBox=false;if(this.sThickBox!=undefined&&this.sThickBox!=null&&this.sThickBox.length>0){var aParams=this.sThickBox.split(",");var aMatch;var sThickBoxActive="true";var sThickBoxCaption="";var sThickBoxBackground="#E1E1E1";for(var i=0;i<aParams.length;i++){if(aMatch=aParams[i].match(/(active\s*=\s*)(\w*)/i)){sThickBoxActive=aMatch[2]}
else if(aMatch=aParams[i].match(/(caption\s*=\s*)(.*)/i)){sThickBoxCaption=unescape(aMatch[2])}
else if(aMatch=aParams[i].match(/(background\s*=\s*)(\d*)/i)){sThickBoxBackground=aMatch[2]}}
if(sThickBoxActive.toLowerCase()=="true")
this.byThickBox=true}
if(this.byThickBox){this.revert(this.aDIVs);this.thickBox_show(sThickBoxCaption,this.sReplace,Number(this.iWidth),Number(this.iHeight),sThickBoxBackground)}
else{if(this.byShowCloseBtn){this.sReplace="<div style=\"padding-right: "+(this.iWidth-49)+"px\" ><a href=\"javascript: vPIPClose("+this.iCurrDIVid+", "+this.iCurrLink+", '"+this.sMediaFormat+"');\" 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(sInnerHTML,this.sReplace);this.oDiv.innerHTML=this.sReplace;var sReplaceShow=this.sReplace.replace(/</g,"&lt;");sReplaceShow=sReplaceShow.replace(/>/g,"&gt;");if(window.trace)
trace("sReplaceShow: <PRE><CODE>"+sReplaceShow+"</PRE></CODE>");this.aDIVs[this.iCurrDIVid][this.iCurrLink][vPIPPlayer.OPENPOS]=true;this.isOpen=true}
if(this.sMediaFormat=="quicktime"&&this.sTarget.toLowerCase()=="quicktimeplayer"){vPIPPlayer.glDivs=this.aDIVs;var sCloseDiv="vPIPPlayer.glDivs["+this.iCurrDIVid+"][vPIPPlayer.DIVPOS].innerHTML = vPIPPlayer.glDivs["+this.iCurrDIVid+"][vPIPPlayer.ORIGHTMLPOS];vPIPPlayer.glDivs["+this.iCurrDIVid+"]["+this.iCurrLink+"][vPIPPlayer.OPENPOS] = false;vPIPPlayer.glDivs=null";setTimeout(sCloseDiv,2000)}}}
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(_MimeType,_sType,_sMediaFormat,_sFileExt){this.sMimeType=_MimeType;this.sType=_sType;this.sMediaFormat=_sMediaFormat;this.sFileExt=_sFileExt}
vPIPPlayer.isMovieFile=function(oLink){var movieType=null;if(oLink!=undefined&&oLink!=null&&oLink.nodeName.toLowerCase()=="a"){var sMimeType=oLink.type;if(sMimeType!=undefined&&sMimeType!=null&&sMimeType.length>0){var iPos=sMimeType.search(/\//);if(iPos>-1)
sMimeType=sMimeType.substring(iPos+1);else
sMimeType=null}
var sType="false";var sMediaFormat="";var sFileExt;var sHREF=vPIPPlayer.toAlphaNum(oLink.href,"~");var iURLGET=sHREF.indexOf('?');if(iURLGET>-1){var sHREFFile=sHREF.substring(0,iURLGET);sFileExt=sHREFFile.substring(sHREFFile.lastIndexOf('.'),iURLGET).toLowerCase()}
else{sFileExt=sHREF.substring(sHREF.lastIndexOf('.'),sHREF.length).toLowerCase()}
if(sMimeType!=undefined&&sMimeType!=null&&sMimeType.length>0){switch(sMimeType.toLowerCase()){case "quicktime":case "mp4":case "x-m4v":case "x-mp3":case "mp3":case "mpeg":case "smil":case "3gpp":sMediaFormat="quicktime";sType="video";break;case "x-msvideo":case "x-ms-wmv":case "x-ms-asf":case "x-ms-wma":sMediaFormat="windowsmedia";sType="video";break;case "x-shockwave-flash":case "x-flv":sMediaFormat="flash";sType="application";break;case "ogg":sMediaFormat="ogg";sType="application";break}}
else{sMimeType="";switch(sFileExt.toLowerCase()){case ".mov":case ".mp4":case ".m4v":case ".mp3":case ".3gp":sMediaFormat="quicktime";sType="video";break;case ".smi":case ".smil":sMediaFormat="quicktime";sType="video";sMimeType="smil";break;case ".avi":case ".wmv":case ".asf":case ".wma":sMediaFormat="windowsmedia";sType="video";break;case ".swf":case ".flv":sMediaFormat="flash";sType="application";break;case ".ogg":case ".ogv":case ".oga":sMediaFormat="ogg";sType="application";break}}
movieType=new MovieType(sMimeType,sType,sMediaFormat,sFileExt)}
return movieType}
vPIPPlayer.prototype.revert=function(aDIVs){for(var j=0;j<aDIVs.length;j++){for(var k=vPIPPlayer.LINKSARRAYPOS;k<aDIVs[j].length;k++){if(aDIVs[j][k][vPIPPlayer.REVERTPOS]){aDIVs[j][vPIPPlayer.DIVPOS].innerHTML=aDIVs[j][vPIPPlayer.ORIGHTMLPOS];aDIVs[j][k][vPIPPlayer.OPENPOS]=false}}}
this.isOpen=false}
vPIPPlayer.prototype.closeThisDiv=function(aDIVs,iCurrDIVid){for(var k=vPIPPlayer.LINKSARRAYPOS;k<aDIVs[iCurrDIVid].length;k++){if(aDIVs[iCurrDIVid][k][vPIPPlayer.REVERTPOS]){aDIVs[iCurrDIVid][vPIPPlayer.DIVPOS].innerHTML=aDIVs[iCurrDIVid][vPIPPlayer.ORIGHTMLPOS];aDIVs[iCurrDIVid][k][vPIPPlayer.OPENPOS]=false}}
this.isOpen=false}
vPIPPlayer.prototype.isOpen=function(){return this.isOpen}
vPIPPlayer.prototype.getInnerHTML=function(){return this.aDIVs[this.iCurrDIVid][vPIPPlayer.ORIGHTMLPOS]}
vPIPPlayer.prototype.constructDiv=function(oLink){var oDiv=document.createElement("div");oDiv.setAttribute("class","hVlog");var oReplaceLink=document.createElement("a");oReplaceLink.setAttribute("href",oLink.href);if(oLink.type!=""){oReplaceLink.setAttribute("type",oLink.type)}
if(oLink.name!=""){oReplaceLink.setAttribute("name",oLink.type)}
if(oLink.href!=""){oReplaceLink.setAttribute("href",oLink.href)}
if(oLink.rel!=""){oReplaceLink.setAttribute("rel",oLink.rel)}
if(oLink.onclick.toString()!=""){oReplaceLink.onclick=oLink.onclick}
if(oLink.hasChildNodes()){var oLinkChildren=oLink.childNodes;for(var i=0;i<oLinkChildren.length;i++){oReplaceLink.appendChild(oLinkChildren[i])}}
if(oLink.innerHTML!=""){oReplaceLink.innerHTML=oLink.innerHTML}
oDiv.appendChild(oReplaceLink);return oDiv}
vPIPPlayer.prototype.addOutsideTarget=function(sInnerHTML,sRevert){var iTargetStart=sInnerHTML.toLowerCase().indexOf("hvlogtarget");if(iTargetStart>-1){iTargetStart=sInnerHTML.toLowerCase().substring(0,iTargetStart).lastIndexOf("<");var iTargetEnd=sInnerHTML.toLowerCase().indexOf("</a",iTargetStart);iTargetEnd=sInnerHTML.toLowerCase().indexOf(">",iTargetEnd);if(iTargetEnd>-1){var sPrior=sInnerHTML.substring(0,iTargetStart);var sAfter=sInnerHTML.substring(iTargetEnd+1);sRevert=sPrior+sRevert+sAfter}}
return sRevert}
function vPIPClose(sDivLoc,sLinkLoc,sMediaFormat){var sUserAgent=navigator.userAgent;var byOpera=sUserAgent.indexOf('Opera')>-1;var bySafari=sUserAgent.indexOf('Safari')>-1;var nSafariBuild=-1;if(bySafari){nSafariBuild=Number(sUserAgent.substring(sUserAgent.indexOf('Safari')+7))}
if((bySafari&&nSafariBuild<vPIPPlayer.WORKINGSAFARIBUILD)||(sMediaFormat=="flash"&&byOpera)){document.location.reload()}
else{if(Number(sDivLoc)!=NaN&&Number(sLinkLoc)!=NaN){var iDivLoc=Number(sDivLoc);var iLinkLoc=Number(sLinkLoc);vpipPlayerRef.aDIVs[iDivLoc][vPIPPlayer.DIVPOS].innerHTML=vpipPlayerRef.aDIVs[iDivLoc][vPIPPlayer.ORIGHTMLPOS];vpipPlayerRef.aDIVs[iDivLoc][iLinkLoc][vPIPPlayer.OPENPOS]=false;if(typeof vPIPIt=="function"){vPIPIt()}}}
vpipPlayerRef.isOpen=false}
vPIPPlayer.prototype.findDIV=function(oDiv){var i;var iFound=-1;if(oDiv.id!=undefined&&oDiv.id!=null&&oDiv.id.length>0){for(i=0;i<this.aDIVs.length;i++){if(this.aDIVs[i][vPIPPlayer.DIVIDPOS]===this.oDiv.id){iFound=i;break}}}
return iFound}
vPIPPlayer.prototype.findLinkID=function(aDIV,iCurrLinkid){var iFound=-1;for(var i=3;i<aDIV.length;i++){if(aDIV[i][vPIPPlayer.LINKIDPOS]==iCurrLinkid){iFound=i;break}}
return iFound}
vPIPPlayer.prototype.findLinkInDiv=function(aDiv,iLinkid){var iLinkPosInDiv=-1;for(var i=3;i<aDiv.length;i++){if(aDiv[i][vPIPPlayer.LINKIDPOS]!=undefined){if(aDiv[i][vPIPPlayer.LINKIDPOS]==iLinkid){iLinkPosInDiv=i;break}}}
return iLinkPosInDiv}
vPIPPlayer.prototype.addEvent=function(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true} else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r} else{return false}}
vPIPPlayer.findElementbyAttrValue=function(oElementStart,sNodeName,sAttrName,sAttrValue){var oElement=null;return oElement}
vPIPPlayer.findAttribute=function(oElement,sAttribute){var oValue=null;var attrs=oElement.attributes;if(attrs!=undefined&&attrs!=null){for(var i=attrs.length-1;i>=0;i--){if(attrs[i].name.toLocaleLowerCase()==sAttribute.toLocaleLowerCase()){oValue=attrs[i].value;break}}}
return oValue}
vPIPPlayer.toAlphaNum=function(sString,sAllowed){var i;var sNewString="";if(sString==undefined||sString==null){return sString}
else{for(i=0;i<sString.length;i++){ch=sString.charAt(i);if(ch>=" "&&ch<="z"){sNewString+=sString.charAt(i)}
else if(sAllowed!=undefined&&sAllowed!=null&&sAllowed.indexOf(ch)>-1){sNewString+=sString.charAt(i)}}
return sNewString}}
vPIPPlayer.isDebugging=function(byDebugging){if(vpipPlayerRef!=undefined&&vpipPlayerRef!=null){vpipPlayerRef.byDebug=byDebugging;if(vpipPlayerRef.byDebug){alert("Debugging turned on.")}}}
vPIPPlayer.prototype.thickBox_show=function(sCaption,sEmbed,vPIP_TB_WIDTH,vPIP_TB_HEIGHT,sBackground){try{var sUserAgent=navigator.userAgent;var bySafari=sUserAgent.indexOf('Safari')>-1;var nSafariBuild=-1;if(bySafari){nSafariBuild=Number(sUserAgent.substring(sUserAgent.indexOf('Safari')+7))}
if(typeof document.body.style.maxHeight==="undefined"){jQuery("body","html").css({height:"100%",width:"100%"});jQuery("html").css("overflow","hidden");if(document.getElementById("vPIP_TB_HideSelect")===null){jQuery("body").append("<iframe id='vPIP_TB_HideSelect'></iframe><div id='vPIP_TB_overlay' onclick='vPIPthickBox_remove();' ></div><div id='vPIP_TB_window'></div>")}}else{if(document.getElementById("vPIP_TB_overlay")===null){jQuery("body").append("<div id='vPIP_TB_overlay' onclick='vPIPthickBox_remove();' ></div><div id='vPIP_TB_window'></div>")}}
if(sCaption===null){sCaption=""}
vPIP_TB_WIDTH+=30;vPIP_TB_HEIGHT+=60;var sEntry="<div id='vPIP_TB_caption'>"+sCaption+"</div><div id='vPIP_TB_closeWindow'><a href='javascript: none' id='vPIP_TB_closeWindowButton' title='Close'>"+vPIPThickBoxCloseItem+"</a></div><div id='vPIP_Object'>"+sEmbed+"</div>";document.getElementById("vPIP_TB_window").innerHTML=sEntry;document.getElementById("vPIP_TB_window").style.backgroundColor=sBackground;jQuery("#vPIP_TB_closeWindowButton").click(vPIPthickBox_remove);document.onkeydown=function(e){if(e==null){keycode=event.keyCode} else{keycode=e.which}
if(keycode==27){vPIPthickBox_remove()}};this.thickBox_position(vPIP_TB_WIDTH,vPIP_TB_HEIGHT);jQuery("#vPIP_TB_window").css({display:"block"});if(bySafari&&nSafariBuild<vPIPPlayer.WORKINGSAFARIBUILD){vPIPSetThickBoxID=setTimeout(this.thickBox_refresh,500)}} catch(e){setTimeout(e,0)}}
function vPIPthickBox_remove(){var sUserAgent=navigator.userAgent;var bySafari=sUserAgent.indexOf('Safari')>-1;var nSafariBuild=-1;if(bySafari){nSafariBuild=Number(sUserAgent.substring(sUserAgent.indexOf('Safari')+7))}
if(bySafari&&nSafariBuild<vPIPPlayer.WORKINGSAFARIBUILD){document.location.reload()}
else{jQuery("#vPIP_TB_closeWindowButton").unbind("click");jQuery("#vPIP_TB_window").html("");jQuery("#vPIP_TB_window").fadeOut("fast",function(){jQuery('#vPIP_TB_window,#vPIP_TB_overlay,#vPIP_TB_HideSelect').remove()});if(typeof document.body.style.maxHeight=="undefined"){jQuery("body","html").css({height:"auto",width:"auto"});jQuery("html").css("overflow","")}
document.onkeydown="";if(typeof vPIPIt=="function"){vPIPIt()}}
return false}
vPIPPlayer.prototype.thickBox_position=function(vPIP_TB_WIDTH,vPIP_TB_HEIGHT){jQuery("#vPIP_TB_window").css({marginLeft:'-'+parseInt((vPIP_TB_WIDTH/2),10)+'px',width:vPIP_TB_WIDTH+'px'});if(!(jQuery.browser.msie&&typeof XMLHttpRequest=='function')){jQuery("#vPIP_TB_window").css({marginTop:'-'+parseInt((vPIP_TB_HEIGHT/2),10)+'px'})}}
vPIPPlayer.prototype.thickBox_refresh=function(){jQuery("#vPIP_TB_window").css({display:"block"})}
vPIPPlayer.prototype.gen_hVlog=function(aEntries){}
function vPIP_copyToClipBrd(oElement){oElement.select();if(window.clipboardData){var rtn=clipboardData.setData('Text',oElement.value);return 1}
else
return 0}
function vPIP_getContainer(sClassName,oElement){var oContain=oElement.parentNode;while(oContain!=undefined&&oContain!=null&&(vPIPPlayer.findAttribute(oContain,"class")==null||vPIPPlayer.findAttribute(oContain,"class").toLowerCase()!=sClassName.toLowerCase())){oContain=oContain.parentNode}
return oContain}
function vPIP_CloseMe(aDIVs,iCurrDIVid){}
function vPIP_getPath(sID){var scripts=document.getElementsByTagName("script");var src;var index;var sVPIPpath="";if(sID!=null){for(var i=0;i<scripts.length;i++){src=scripts[i].getAttribute("src");if(src!=undefined&&src!=null){index=src.indexOf(sID);if(index>-1){sVPIPpath=src.substring(0,index);sVPIPpath=sVPIPpath.substr(0,sVPIPpath.lastIndexOf("/")+1);return sVPIPpath}}}}
for(var i=0;i<scripts.length;i++){src=scripts[i].getAttribute("src");if(src!=undefined&&src!=null){index=src.search(/vpip.js/i);if(index>-1){sVPIPpath=src.substring(0,index);sVPIPpath=sVPIPpath.substr(0,sVPIPpath.lastIndexOf("/")+1);return sVPIPpath}}}
return sVPIPpath}
function vPIP_setEmbedFormat(oSelect,sEmbedCodeArea,sScripts,aEmbeds){oEmbedCodeArea=document.getElementById(sEmbedCodeArea);if(oSelect.options[oSelect.selectedIndex].text!="All"){oEmbedCodeArea.value=unescape(sScripts)+"<div class=\"hVlog\" style=\"text-align: center\">"+aEmbeds[oSelect.selectedIndex]+"</div>"}
else{oEmbedCodeArea.value=unescape(sScripts)+aEmbeds[oSelect.selectedIndex]+"</div>"}}
function vPIP_setEmbed(oElement,sEmbedCodeArea,byIncludePosterImage,byInsertCustomCSS){var sUserAgent=navigator.userAgent;var bySafari=sUserAgent.indexOf('Safari')>-1;var byOpera=sUserAgent.indexOf('Opera')>-1;var byIE7=sUserAgent.indexOf("MSIE 7")>-1;var byIE6=sUserAgent.indexOf("MSIE 6")>-1;if(byIncludePosterImage==undefined||byIncludePosterImage==null)
byIncludePosterImage=true;if(byInsertCustomCSS==undefined||byInsertCustomCSS==null)
byInsertCustomCSS=true;oEmbedCodeArea=document.getElementById(sEmbedCodeArea);if(oEmbedCodeArea.value.trim().length==0){var oDiv=vPIP_getContainer("hVlog",oElement)
if(oDiv!=undefined&&oDiv!=null){var byIDIsThere=false;var sID=null;var anchors=oDiv.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var sOnclick=anchors[i].getAttribute("onclick");if(typeof sOnclick=='function'){sOnclick=sOnclick.toString()}
if(sOnclick!=undefined&&sOnclick!=null){var iStart=sOnclick.indexOf("id=");if(iStart>-1){var iEnd=sOnclick.indexOf(",",iStart);sID=sOnclick.substring(iStart+3,iEnd);byIDIsThere=true;break}}}
if(sID==null){sID=escape(window.location.href+"-"+(new Date()).getTime())}
sScripts=" 	<script src=\""+vPIP_getPath(sID)+"vpip.js?id="+sID+"\" type=\"text/javascript\"></script>";aDivAttribs=oDiv.attributes;sDiv="<div ";for(i=0;i<aDivAttribs.length;i++){if(aDivAttribs[i].value!=null&&aDivAttribs[i].value!=undefined&&aDivAttribs[i].value!="null"&&aDivAttribs[i].value.length>0)
sDiv+=aDivAttribs[i].name+"=\""+aDivAttribs[i].value+"\" "}
sDiv+=">"
if(vpipPlayerRef!=undefined&&vpipPlayerRef.isOpen)
var sEmbed=vpipPlayerRef.getInnerHTML();else
var sEmbed=oDiv.innerHTML;sEmbed=sEmbed.replace(/\n/g,"");if(!byIDIsThere){var sReplace="vPIPPlay(this,'id="+sID+",";sEmbed=sEmbed.replace(/vPIPPlay\(this\,\'/ig,sReplace)}
iDivIDStart=sEmbed.indexOf("divEmbedCodeShare")+17;if(iDivIDStart>-1){iDivIDEnd=sEmbed.indexOf("\"",iDivIDStart);sOldDivID=sEmbed.substring(iDivIDStart,iDivIDEnd);sNewDivID=String((new Date()).getTime());sFind=sOldDivID+"\"";sReplace=sNewDivID+"\"";sEmbed=sEmbed.replace(sFind,sReplace,"gi");sFind=sOldDivID+"\'";sReplace=sNewDivID+"\'";sEmbed=sEmbed.replace(sFind,sReplace,"gi")}
if(!byIncludePosterImage){iImgPos=sEmbed.toLowerCase().indexOf("<img ");if(iImgPos>-1){sEmbedImgSrchStart=sEmbed.substr(0,iImgPos);sEmbedImgSrchEnd=sEmbed.substr(iImgPos);iLinkStart=sEmbedImgSrchStart.toLowerCase().lastIndexOf("<a ");iLinkEnd=sEmbedImgSrchEnd.toLowerCase().indexOf("</a")+iLinkStart;sEmbed=sEmbed.substr(0,iLinkStart-1)+sEmbed.substr(iLinkEnd+1)}}
if(byInsertCustomCSS){if(!byIE6&&!byIE7){try{sDiv=insertCustomCSS(sDiv,false);sEmbed=insertCustomCSS(sEmbed)}
catch(err){}}}
oEmbedCodeArea.value=sScripts+sDiv+sEmbed+"</div>"}}}
function insertCustomCSS(sHTML,byCheckIE){if(byCheckIE==null||byCheckIE==undefined)
byCheckIE=true;var sUserAgent=navigator.userAgent;var bySafari=sUserAgent.indexOf('Safari')>-1;var byOpera=sUserAgent.indexOf('Opera')>-1;var byIE7=sUserAgent.indexOf("MSIE 7")>-1;var byIE6=sUserAgent.indexOf("MSIE 6")>-1;var sClass="";var sCSS="";var sQuoteType="D";var sHTMLSub=sHTML;var iClassStart=0;var iClassSubStart=sHTMLSub.search(/\bclass\b\s*=/i);if(iClassSubStart>-1){sHTMLSub=sHTML.substr(iClassSubStart)}
while(iClassSubStart>-1){var iClassNameEnd=-1;if(byCheckIE&&(byIE6||byIE7)){var iClassNameStart=sHTMLSub.indexOf("=");iClassNameEnd=vPIP_GetFirstNonAlphaNum(sHTMLSub,iClassNameStart+1);sQuoteType="D"}
else{var iClassNameStart=vPIP_GetFirstQuote(sHTMLSub,0);if(sHTMLSub.substr(iClassNameStart,1)=="'"){iClassNameEnd=sHTMLSub.indexOf("'",iClassNameStart+1);sQuoteType="S"}
else{iClassNameEnd=sHTMLSub.indexOf("\"",iClassNameStart+1);sQuoteType="D"}}
sClass=sHTMLSub.substring(iClassNameStart+1,iClassNameEnd);var oStyle=(vPIP_getCSSRule("."+sClass));if(oStyle&&oStyle.style!=undefined){sCSS=(vPIP_getCSSRule("."+sClass)).style.cssText;var iTagStart=sHTML.substr(0,iClassStart+iClassSubStart).lastIndexOf("<");var iTagEnd=sHTML.substr(iTagStart).indexOf(">");var iStyleStart=sHTML.substr(iTagStart,iTagEnd).search(/\bstyle\bs*=/i);if(iStyleStart>-1){var iStyleEnd=vPIP_GetFirstQuote(sHTML,iTagStart+iStyleStart+1);iStyleEnd=vPIP_GetFirstQuote(sHTML,iStyleEnd+1);var sCSSCompare="";if(sCSS.length>50)
sCSSCompare=sCSS.toLowerCase().substr(0,50);else
sCSSCompare=sCSS.toLowerCase();if(sHTML.substring(iTagStart+iStyleStart,iStyleEnd).toLowerCase().indexOf(sCSSCompare)==-1){sHTML=sHTML.substring(0,iStyleEnd)+"; "+sCSS+sHTML.substring(iStyleEnd);iClassStart=iTagStart+iTagEnd+sCSS.length}
else{iClassStart=iTagStart+iTagEnd}}
else{iClassStart+=iClassNameEnd+iClassSubStart;if(sQuoteType=="D"){sHTML=sHTML.substring(0,iClassStart+1)+" style=\""+sCSS+"\" "+sHTML.substring(iClassStart+1)}
else{sHTML=sHTML.substring(0,iClassStart+1)+" style='"+sCSS+"' "+sHTML.substring(iClassStart+1)}
iClassStart+=sCSS.length+9}
iClassSubStart=sHTML.substr(iClassStart).search(/\bclass\b\s*=/i);if(iClassSubStart>-1)
sHTMLSub=sHTML.substr(iClassStart+iClassSubStart)}
else{if(iClassSubStart>0)
iClassStart+=iClassSubStart;else
iClassStart+=10;iClassSubStart=sHTML.substr(iClassStart).search(/\bclass\b\s*=/i);if(iClassSubStart>-1)
sHTMLSub=sHTML.substr(iClassStart+iClassSubStart)}}
return sHTML}
function vPIP_GetFirstQuote(sText,iIndexStart){if(iIndexStart==null||iIndexStart==undefined)
iIndexStart=0;for(var i=iIndexStart;i<sText.length;i++){ch=sText.charAt(i);if(ch=="\""||ch=="'")
return i}
return-1}
function vPIP_GetFirstNonAlphaNum(sText,iIndexStart){if(iIndexStart==null||iIndexStart==undefined)
iIndexStart=0;for(var i=iIndexStart;i<sText.length;i++){ch=sText.charAt(i);if(!(ch>="0"&&ch<="9")&&!(ch>="A"&&ch<="z")){return i}}
return-1}
function vPIP_getCSSRule(ruleName,deleteFlag){if(deleteFlag==undefined||deleteFlag==null)
deleteFlag="";ruleName=ruleName.toLowerCase();if(document.styleSheets){for(var i=0;i<document.styleSheets.length;i++){var styleSheet=document.styleSheets[i];var ii=0;var cssRule=false;do{if(styleSheet.cssRules){cssRule=styleSheet.cssRules[ii]} else{cssRule=styleSheet.rules[ii]}
if(cssRule&&cssRule.selectorText!=undefined){if(cssRule.selectorText.toLowerCase()==ruleName){if(deleteFlag=='delete'){if(styleSheet.cssRules){styleSheet.deleteRule(ii)} else{styleSheet.removeRule(ii)}
return true} else{return cssRule}}}
ii++} while(cssRule)}}
return false}
function vPIP_getStyle(el,styleProp){var x=document.getElementById(el);if(x.currentStyle)
var y=x.currentStyle[styleProp];else if(window.getComputedStyle)
var y=document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);return y}
function vPIP_setVisible(sElement,byShow){if(document.layers){vista=byShow?'show':'hide'
document.layers[sElement].visibility=vista;if(byShow)
document.layers[sElement].display='block';else
document.layers[sElement].display='none'}
else if(document.all){vista=byShow?'visible':'hidden';document.all[sElement].style.visibility=vista;if(byShow)
document.all[sElement].style.display='block';else
document.all[sElement].style.display='none'}
else if(document.getElementById){oElement=document.getElementById(sElement);vista=byShow?'visible':'hidden';oElement.style.visibility=vista;if(byShow)
oElement.style.display='block';else
oElement.style.display='none'}}
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}
String.prototype.ltrim=function(){return this.replace(/^\s+/,"")}
String.prototype.rtrim=function(){return this.replace(/\s+$/,"")}
Array.prototype.find=function(searchStr){var returnArray=false;for(i=0;i<this.length;i++){if(typeof(searchStr)=='function'){if(searchStr.test(this[i])){if(!returnArray){returnArray=[]}
returnArray.push(i)}} else{if(this[i]===searchStr){if(!returnArray){returnArray=[]}
returnArray.push(i)}}}
return returnArray}
Array.prototype.findFirst=function(searchStr){for(i=0;i<this.length;i++){if(typeof(searchStr)=='function'){if(searchStr.test(this[i])){return i}} else{if(this[i]===searchStr){return i}}}
return null}


/* - ++resource++vPIP/vpipit.js - */
// http://peter.baumgartner.name/portal_javascripts/++resource++vPIP/vpipit.js?original=1
function vPIPIt(){if(typeof vPIPPlayer.isMovieFile=="function"){var oLinks;var i,j;oLinks=document.getElementsByTagName("a");for(i=0;i<oLinks.length;i++){if(oLinks[i].onclick==undefined||oLinks[i].onclick==null){var movieType=vPIPPlayer.isMovieFile(oLinks[i]);if(movieType!=null){if(movieType.sMediaFormat.length>0){var byImage=false;var children=oLinks[i].childNodes;var imgChild;for(j=0;j<children.length;j++){if(children[j].nodeName.toLowerCase()=="img"){imgChild=children[j];byImage=true;break}}
if(byImage){var videoWidth=imgChild.width;var videoHeight=imgChild.height;oLinks[i].onclick=new Function("vPIPPlay(this,'width="+videoWidth+",height="+videoHeight+"'); return false;")}
else{oLinks[i].onclick=new Function("vPIPPlay(this, '', '', 'active=true'); return false;")}}}}}}}
function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true} else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r} else{return false}}
addEvent(window,'load',vPIPIt);

/* - ++resource++flowplayer-html/flowplayer-3.2.2.min.js - */
// http://peter.baumgartner.name/portal_javascripts/++resource++flowplayer-html/flowplayer-3.2.2.min.js?original=1
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E},isLoaded:function(){return(v!==null&&v.fp_play!=undefined&&!D)},getParent:function(){return q},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&&!flashembed.isSupported(G.version)){q.innerHTML=""}flashembed(q,G,{config:t});if(J){J.cached=true;j(x,"onLoad",J)}};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&&w.isLoaded()){var I=w._api().fp_getPlugin(H);if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.0";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);return w}}w[H]=function(J){j(x,H,J);return w}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){g(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||c(r);o=v.clientHeight;m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;K<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<F.length){C=O;var J=F[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&&!t.clip.url){t.clip.url=q.getAttribute("href",2)}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var H=0;m(t.playlist,function(){var J=this;if(typeof J=="object"&&J.length){J={url:""+J}}m(t.clip,function(K,L){if(L!==undefined&&J[K]===undefined&&typeof L!="function"){J[K]=L}});t.playlist[H]=J;J=new h(J,H,w);F.push(J);H++});m(t,function(J,K){if(typeof K=="function"){if(s[J]){s[J](K)}else{j(x,J,K)}delete t[J]}});m(t.plugins,function(J,K){if(K){y[J]=new l(J,K,w)}});if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)}y.canvas=new l("canvas",null,w);function I(J){if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return f(J)}u=q.innerHTML;if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",I,false)}else{if(q.attachEvent){q.attachEvent("onclick",I)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)}w.load()}}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q}else{q=z;B()}}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var h=document.all,j="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function i(l,f){if(f){for(key in f){if(f.hasOwnProperty(key)){l[key]=f[key]}}}return l}function a(f,n){var m=[];for(var l in f){if(f.hasOwnProperty(l)){m[l]=n(f[l])}}return m}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(!f){return}if(typeof m=="string"){m={src:m}}return new d(f,i(i({},b),m),l)};var g=i(window.flashembed,{conf:b,getVersion:function(){var f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(n){try{var l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=l&&l.GetVariable("$version")}catch(m){}}f=e.exec(f);return f?[f[1],f[3]]:[0,0]},asString:function(l){if(l===null||l===undefined){return null}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new RegExp('(["\\\\])',"g"),"\\$1");l=l.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+l+'"';case"array":return"["+a(l,function(o){return g.asString(o)}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasOwnProperty(n)){m.push('"'+n+'":'+g.asString(l[n]))}}return"{"+m.join(",")+"}"}return String(l).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(o,l){o=i({},o);var n='<object width="'+o.width+'" height="'+o.height+'" id="'+o.id+'" name="'+o.id+'"';if(o.cachebusting){o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(o.w3c||!h){n+=' data="'+o.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(o.w3c||h){n+='<param name="movie" value="'+o.src+'" />'}o.width=o.height=o.id=o.w3c=o.src=null;o.onFail=o.version=o.expressInstall=null;for(var m in o){if(o[m]){n+='<param name="'+m+'" value="'+o[m]+'" />'}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];p+=f+"="+(/function|object/.test(typeof q)?g.asString(q):q)+"&"}}p=p.slice(0,-1);n+='<param name="flashvars" value=\''+p+"' />"}n+="</object>";return n},isSupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]}});var k=g.getVersion();function d(f,n,m){if(g.isSupported(n.version)){f.innerHTML=g.getHTML(n,m)}else{if(n.expressInstall&&g.isSupported([6,65])){f.innerHTML=g.getHTML(i(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+j+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=j}}}if(n.onFail){var l=n.onFail.call(this);if(typeof l=="string"){f.innerHTML=l}}}}if(h){window[n.id]=document.getElementById(n.id)}i(this,{getRoot:function(){return f},getOptions:function(){return n},getConf:function(){return m},getApi:function(){return f.firstChild}})}if(c){jQuery.tools=jQuery.tools||{version:"3.2.0"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}})();

/* - ++resource++collective.flowplayer/flowplayer.min.js - */
/* 
 * flowplayer.js 3.1.4. The Flowplayer API
 * 
 * Copyright 2009 Flowplayer Oy
 * 
 * This file is part of Flowplayer.
 * 
 * Flowplayer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Flowplayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Date: 2009-02-25 21:24:29 +0000 (Wed, 25 Feb 2009)
 * Revision: 166 
 */
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.substring(0,q)||"*";var o=s.substring(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).substring(2,10)}var h=function(t,r,s){var q=this;var p={};var u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.substring(0,v.length-1);var w="onBefore"+v.substring(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var s={};var o=this;var u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var y=q._api().fp_getPlugin(p);if(!y){return}i(o,y);delete o.methods;if(!u){m(y.methods,function(){var A=""+this;o[A]=function(){var B=[].slice.call(arguments);var C=q._api().fp_invoke(p,A,B);return C==="undefined"||C===undefined?o:C}});u=true}}var z=s[w];if(z){z.apply(o,v);if(w.substring(0,1)=="_"){delete s[w]}}}})};function b(o,t,z){var E=this,y=null,x,u,p=[],s={},B={},r,v,w,D,A,q;i(E,{id:function(){return r},isLoaded:function(){return(y!==null)},getParent:function(){return o},hide:function(F){if(F){o.style.height="0px"}if(y){y.style.height="0px"}return E},show:function(){o.style.height=q+"px";if(y){y.style.height=A+"px"}return E},isHidden:function(){return y&&parseInt(y.style.height,10)===0},load:function(F){if(!y&&E._fireEvent("onBeforeLoad")!==false){m(a,function(){this.unload()});x=o.innerHTML;if(x&&!flashembed.isSupported(t.version)){o.innerHTML=""}flashembed(o,t,{config:z});if(F){F.cached=true;j(B,"onLoad",F)}}return E},unload:function(){if(x.replace(/\s/g,"")!==""){if(E._fireEvent("onBeforeUnload")===false){return E}try{if(y){y.fp_close();E._fireEvent("onUnload")}}catch(F){}y=null;o.innerHTML=x}return E},getClip:function(F){if(F===undefined){F=D}return p[F]},getCommonClip:function(){return u},getPlaylist:function(){return p},getPlugin:function(F){var H=s[F];if(!H&&E.isLoaded()){var G=E._api().fp_getPlugin(F);if(G){H=new l(F,G,E);s[F]=H}}return H},getScreen:function(){return E.getPlugin("screen")},getControls:function(){return E.getPlugin("controls")},getConfig:function(F){return F?k(z):z},getFlashParams:function(){return t},loadPlugin:function(I,H,K,J){if(typeof K=="function"){J=K;K={}}var G=J?e():"_";E._api().fp_loadPlugin(I,H,K,G);var F={};F[G]=J;var L=new l(I,null,E,F);s[I]=L;return L},getState:function(){return y?y.fp_getState():-1},play:function(G,F){function H(){if(G!==undefined){E._api().fp_play(G,F)}else{E._api().fp_play()}}if(y){H()}else{E.load(function(){H()})}return E},getVersion:function(){var G="flowplayer.js 3.1.4";if(y){var F=y.fp_getVersion();F.push(G);return F}return G},_api:function(){if(!y){throw"Flowplayer "+E.id()+" not loaded when calling an API method"}return y},setClip:function(F){E.setPlaylist([F]);return E},getIndex:function(){return w}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var F="on"+this;if(F.indexOf("*")!=-1){F=F.substring(0,F.length-1);var G="onBefore"+F.substring(2);E[G]=function(H){j(B,G,H);return E}}E[F]=function(H){j(B,F,H);return E}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed").split(","),function(){var F=this;E[F]=function(H,G){if(!y){return E}var I=null;if(H!==undefined&&G!==undefined){I=y["fp_"+F](H,G)}else{I=(H===undefined)?y["fp_"+F]():y["fp_"+F](H)}return I==="undefined"||I===undefined?E:I}});E._fireEvent=function(O){if(typeof O=="string"){O=[O]}var P=O[0],M=O[1],K=O[2],J=O[3],I=0;if(z.debug){g(O)}if(!y&&P=="onLoad"&&M=="player"){y=y||c(v);A=y.clientHeight;m(p,function(){this._fireEvent("onLoad")});m(s,function(Q,R){R._fireEvent("onUpdate")});u._fireEvent("onLoad")}if(P=="onLoad"&&M!="player"){return}if(P=="onError"){if(typeof M=="string"||(typeof M=="number"&&typeof K=="number")){M=K;K=J}}if(P=="onContextMenu"){m(z.contextMenu[M],function(Q,R){R.call(E)});return}if(P=="onPluginEvent"){var F=M.name||M;var G=s[F];if(G){G._fireEvent("onUpdate",M);G._fireEvent(K,O.slice(3))}return}if(P=="onPlaylistReplace"){p=[];var L=0;m(M,function(){p.push(new h(this,L++,E))})}if(P=="onClipAdd"){if(M.isInStream){return}M=new h(M,K,E);p.splice(K,0,M);for(I=K+1;I<p.length;I++){p[I].index++}}var N=true;if(typeof M=="number"&&M<p.length){D=M;var H=p[M];if(H){N=H._fireEvent(P,K,J)}if(!H||N!==false){N=u._fireEvent(P,K,J,H)}}m(B[P],function(){N=this.call(E,M,K);if(this.cached){B[P].splice(I,1)}if(N===false){return false}I++});return N};function C(){if($f(o)){$f(o).getParent().innerHTML="";w=$f(o).getIndex();a[w]=E}else{a.push(E);w=a.length-1}q=parseInt(o.style.height,10)||o.clientHeight;if(typeof t=="string"){t={src:t}}r=o.id||"fp"+e();v=t.id||r+"_api";t.id=v;z.playerId=r;if(typeof z=="string"){z={clip:{url:z}}}if(typeof z.clip=="string"){z.clip={url:z.clip}}z.clip=z.clip||{};if(o.getAttribute("href",2)&&!z.clip.url){z.clip.url=o.getAttribute("href",2)}u=new h(z.clip,-1,E);z.playlist=z.playlist||[z.clip];var F=0;m(z.playlist,function(){var H=this;if(typeof H=="object"&&H.length){H={url:""+H}}m(z.clip,function(I,J){if(J!==undefined&&H[I]===undefined&&typeof J!="function"){H[I]=J}});z.playlist[F]=H;H=new h(H,F,E);p.push(H);F++});m(z,function(H,I){if(typeof I=="function"){if(u[H]){u[H](I)}else{j(B,H,I)}delete z[H]}});m(z.plugins,function(H,I){if(I){s[H]=new l(H,I,E)}});if(!z.plugins||z.plugins.controls===undefined){s.controls=new l("controls",null,E)}s.canvas=new l("canvas",null,E);t.bgcolor=t.bgcolor||"#000000";t.version=t.version||[9,0];t.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function G(H){if(!E.isLoaded()&&E._fireEvent("onBeforeClick")!==false){E.load()}return f(H)}x=o.innerHTML;if(x.replace(/\s/g,"")!==""){if(o.addEventListener){o.addEventListener("click",G,false)}else{if(o.attachEvent){o.attachEvent("onclick",G)}}}else{if(o.addEventListener){o.addEventListener("click",f,false)}E.load()}}if(typeof o=="string"){flashembed.domReady(function(){var F=c(o);if(!F){throw"Flowplayer cannot access element: "+o}else{o=F;C()}})}else{C()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var r=arguments[1];var q=(arguments.length==3)?arguments[2]:{};if(typeof o=="string"){if(o.indexOf(".")!=-1){var t=[];m(n(o),function(){t.push(new b(this,k(r),k(q)))});return new d(t)}else{var s=c(o);return new b(s!==null?s:o,r,q)}}else{if(o){return new b(o,r,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.prototype.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})();

/* - ++resource++collective.flowplayer/flowplayer.playlist.min.js - */
/*
 * flowplayer.playlist 3.0.7. Flowplayer JavaScript plugin.
 * 
 * This file is part of Flowplayer, http://flowplayer.org
 *
 * Author: Tero Piirainen, <info@flowplayer.org>
 * Copyright (c) 2008 Flowplayer Ltd
 *
 * Dual licensed under MIT and GPL 2+ licenses
 * SEE: http://www.opensource.org/licenses
 * 
 * Date: 2009-09-03 09:44:40 +0000 (Thu, 03 Sep 2009)
 * Revision: 2090 
 */
(function(a){$f.addPlugin("playlist",function(d,o){var n=this;var b={playingClass:"playing",pausedClass:"paused",progressClass:"progress",template:'<a href="${url}">${title}</a>',loop:false,playOnClick:true,manual:false};a.extend(b,o);d=a(d);var j=n.getPlaylist().length<=1||b.manual;var k=null;function e(q){var p=m;a.each(q,function(r,s){if(!a.isFunction(s)){p=p.replace("${"+r+"}",s).replace("$%7B"+r+"%7D",s)}});return p}function i(){k=d.children().unbind("click.playlist").bind("click.playlist",function(){return h(a(this),k.index(this))})}function c(){d.empty();a.each(n.getPlaylist(),function(){d.append(e(this))});i()}function h(p,q){if(p.hasClass(b.playingClass)||p.hasClass(b.pausedClass)){n.toggle()}else{p.addClass(b.progressClass);n.play(q)}return false}function l(){if(j){k=d.children()}k.removeClass(b.playingClass);k.removeClass(b.pausedClass);k.removeClass(b.progressClass)}function f(p){return(j)?k.filter("[href="+p.originalUrl+"]"):k.eq(p.index)}if(!j){var m=d.is(":empty")?b.template:d.html();c()}else{k=d.children();if(a.isFunction(k.live)){a(d.selector+"> *").live("click",function(){var p=a(this);return h(p,p.attr("href"))})}else{k.click(function(){var p=a(this);return h(p,p.attr("href"))})}var g=n.getClip(0);if(!g.url&&b.playOnClick){g.update({url:k.eq(0).attr("href")})}}n.onBegin(function(p){l();f(p).addClass(b.playingClass)});n.onPause(function(p){f(p).removeClass(b.playingClass).addClass(b.pausedClass)});n.onResume(function(p){f(p).removeClass(b.pausedClass).addClass(b.playingClass)});if(!b.loop&&!j){n.onBeforeFinish(function(p){if(!p.isInStream&&p.index<k.length-1){return false}})}if(j&&b.loop){n.onBeforeFinish(function(q){var p=f(q);if(p.next().length){p.next().click()}else{k.eq(0).click()}return false})}n.onUnload(function(){l()});if(!j){n.onPlaylistReplace(function(){c()})}n.onClipAdd(function(q,p){k.eq(p).before(e(q));i()});return n})})(jQuery);

/* - collective.flowplayer.js - */
(function($) {
        $(function() { 
            $('.autoFlowPlayer').each(function() {
                var config = {
    "controlsOverVideo": "ease", 
    "controlBarBackgroundColor": -1, 
    "showVolumeSlider": false, 
    "controlBarGloss": "low", 
    "useNativeFullScreen": true, 
    "autoBuffering": false, 
    "clip": {
        "scaling": "fit", 
        "autoBuffering": false, 
        "autoPlay": false
    }, 
    "autoHide": "false", 
    "initialScale": "fit", 
    "plugins": {
        "audio": {
            "url": "http%3A//peter.baumgartner.name/%2B%2Bresource%2B%2Bcollective.flowplayer/flowplayer.audio.swf"
        }, 
        "controls": {
            "url": "http%3A//peter.baumgartner.name/%2B%2Bresource%2B%2Bcollective.flowplayer/flowplayer.controls.swf", 
            "volume": true
        }
    }, 
    "usePlayOverlay": true, 
    "autoPlay": false
};
                var $self = $(this);
                if ($self.is('.minimal')) { 
                    config.plugins.controls = null; 
                };
                var audio = $self.is('.audio');
                if (audio && !$self.is('.minimal')) {
                    if ($self.is('.image-left') || $self.is('.image-right'))
                        $self.width(230)
                    else
                        $self.width(500);
                    config.plugins.controls.all = false;
                    config.plugins.controls.play = true;
                    config.plugins.controls.scrubber = true;
                    config.plugins.controls.mute = true;
                    config.plugins.controls.volume = true;
                    config.plugins.controls.time = true;
                }
                if ($self.is('div')) {
                    // comming from Kupu, there are relative urls
                    config.clip.baseUrl = $('base').attr('href');
                    config.clip.url = $self.find('a').attr('href');
                    if (audio) {
                      // force .mp3 extension
                      config.clip.url = config.clip.url + '?e=.mp3';
                    };
                    // Ignore global autoplay settings
                    if ($self.find('img').length == 0) {
                        // no image. Don't autoplay, remove all elements inside the div to show player directly.
                        config.clip.autoPlay = false;
                        $self.empty();
                    } else {
                        // Clip is probably linked as image, so autoplay the clip after image is clicked
                        config.clip.autoPlay = true;
                    }
                }
                flowplayer(this, {"src": "http://peter.baumgartner.name/++resource++collective.flowplayer/flowplayer.swf"}, config).onLoad( function() { this.setVolume(50); });
                $('.flowPlayerMessage').remove();
            });
            $('.playListFlowPlayer').each(function() {
                var config = {
    "controlsOverVideo": "ease", 
    "controlBarBackgroundColor": -1, 
    "showVolumeSlider": false, 
    "controlBarGloss": "low", 
    "useNativeFullScreen": true, 
    "autoBuffering": false, 
    "clip": {
        "scaling": "fit", 
        "autoBuffering": false, 
        "autoPlay": false
    }, 
    "autoHide": "false", 
    "initialScale": "fit", 
    "plugins": {
        "audio": {
            "url": "http%3A//peter.baumgartner.name/%2B%2Bresource%2B%2Bcollective.flowplayer/flowplayer.audio.swf"
        }, 
        "controls": {
            "url": "http%3A//peter.baumgartner.name/%2B%2Bresource%2B%2Bcollective.flowplayer/flowplayer.controls.swf", 
            "volume": true
        }
    }, 
    "usePlayOverlay": true, 
    "autoPlay": false
};
                var $self = $(this);
                var audio = $self.is('.audio');
                if (audio) { config.plugins.controls.fullscreen = false; }
                if ($self.is('.minimal')) { config.plugins.controls = null; }
                if ($self.find('img').length > 0) { 
                    // has splash
                    config.clip.autoPlay = true;
                }
                portlet_parents = $self.parents('.portlet');
                var playlist_selector = 'div#flowPlaylist';
                if (portlet_parents.length > 0) {
                    var portlet = true;
                    // playlist has to be bound to unique item
                    playlist_selector_id = portlet_parents.parent().attr('id')+'-playlist';
                    $self.parent().find('.flowPlaylist-portlet-marker').attr('id', playlist_selector_id);
                    playlist_selector = '#'+playlist_selector_id;
                    if (audio && !$self.is('.minimal')) {
                        config.plugins.controls.all = false;
                        config.plugins.controls.play = true;
                        config.plugins.controls.scrubber = true;
                        config.plugins.controls.mute = true;
                        config.plugins.controls.volume = false;
                    }
                } else {
                    var portlet = false;
                }
                if (!portlet) {
                    $("#pl").scrollable({items:playlist_selector, size:4, clickable:false});
                }
                // manual = playlist is setup using HTML tags, not using playlist array in config
                flowplayer(this, {"src": "http://peter.baumgartner.name/++resource++collective.flowplayer/flowplayer.swf"}, config).playlist(playlist_selector, {loop: true, manual: true}).onLoad( function() { this.setVolume(50); });
                $self.show();
                $('.flowPlayerMessage').remove();

            });
        });
})(jQuery);


