/*
VIPER'S VIDEO QUICKTAGS
http://www.viper007bond.com/wordpress-plugins/vipers-video-quicktags/
This file contains some wrappers for SWFObject as well as SWFObject itself.
*/
function vvq_youtube(objectID, videoWidth, videoHeight, videoID) {
swfobject.embedSWF("http://www.youtube.com/v/" + videoID, objectID, videoWidth, videoHeight, "9.0.0", "", "", {wmode:"transparent"});
}
function vvq_googlevideo(objectID, videoWidth, videoHeight, videoID) {
swfobject.embedSWF("http://video.google.com/videofeed?fgvns=1&fai=1&docid=" + videoID, objectID, videoWidth, videoHeight, "9.0.0", "", "", {wmode:"transparent"});
}
// Stage6 is dead. This is only here for backwards compatibility.
function vvq_stage6(objectID, videoWidth, videoHeight, videoID) {
return false;
}
function vvq_ifilm(objectID, videoWidth, videoHeight, videoID) {
swfobject.embedSWF("http://www.ifilm.com/efp", objectID, videoWidth, videoHeight, "9.0.0", "", {flvbaseclip:videoID}, {wmode:"transparent"});
}
function vvq_metacafe(objectID, videoWidth, videoHeight, videoID, videoName) {
swfobject.embedSWF("http://www.metacafe.com/fplayer/" + videoID + "../" + videoName + ".swf", objectID, videoWidth, videoHeight, "9.0.0", "", {playerVars:"playerVars",showStats:"yes",autoPlay:"no"}, {wmode:"transparent"});
}
function vvq_myspace(objectID, videoWidth, videoHeight, videoID) {
swfobject.embedSWF("../../lads.myspace.com/videos/vplayer.swf", objectID, videoWidth, videoHeight, "9.0.0", "", {m:videoID,type:"video"}, {wmode:"transparent"});
}
function vvq_vimeo(objectID, videoWidth, videoHeight, videoID) {
swfobject.embedSWF("../../www.vimeo.com/moogaloop.swf@clip_id=" + videoID + "&server=vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=01AAEA", objectID, videoWidth, videoHeight, "9.0.0", "", {allowfullscreen:"true",scale:"showAll"}, {wmode:"transparent"});
}
function vvq_flv(objectID, videoWidth, videoHeight, SWFURL, FLVFileURL, PreviewImageURL) {
swfobject.embedSWF(SWFURL, objectID, videoWidth, videoHeight, "9.0.0", "", {file:FLVFileURL,usefullscreen:"false",image:PreviewImageURL}, {wmode:"transparent",allowFullScreen:"true"});
}
// Get around Internet Explorer's retarded click-to-activate thing by writing the HTML via Javascript
function vvq_quicktime(objectID, videoWidth, videoHeight, videoURL) {
document.getElementById(objectID).innerHTML = '';
}
function vvq_videoWMP(objectID, videoWidth, videoHeight, videoURL) {
document.getElementById(objectID).innerHTML = '';
}
function vvq_videoNoWMP(objectID, videoWidth, videoHeight, videoURL, mimeType) {
document.getElementById(objectID).innerHTML = '';
}
/* SWFObject v2.0 rc4
Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
This software is released under the MIT License
*/
var swfobject=function(){var X="undefined",P="object",a="visibility:visible",e="visibility:hidden",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",V="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,S=false,C=false;var Y=function(){var l=typeof g.getElementById!=X&&typeof g.getElementsByTagName!=X&&typeof g.createElement!=X&&typeof g.appendChild!=X&&typeof g.replaceChild!=X&&typeof g.removeChild!=X&&typeof g.cloneNode!=X,t=[0,0,0],n=null;if(typeof N.plugins!=X&&typeof N.plugins[B]==P){n=N.plugins[B].description;if(n){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);t[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof G.ActiveXObject!=X){var o=null,s=false;try{o=new ActiveXObject(h+".7")}catch(k){try{o=new ActiveXObject(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=new ActiveXObject(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}var v=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();var d=function(){if(!Y.w3cdom){return }J(I);if(Y.ie&&Y.win){try{g.write("