function EBClassGlobal(A){this.add=A;this.getName=function(){var E="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var F=12;var D="";for(var C=0;C<F;C++){var B=Math.floor(Math.random()*E.length);D+=E.substring(B,B+1)}return"c"+this.add+D}}function EEvent(A){this.fire=function(B){if(B&&this.target==undefined){A(window[B.target.id],B)}else{if(this.target){if(B==undefined){B=window.event}A(window[this.target.id],B)}else{if(B==undefined){B=window.event}A(window[this.id],B)}}}}EEvent.unbind=function(A){if(document.removeEventListener){A.object.htmlElement.removeEventListener(A.event,A.fireFunc,false)}else{A.object.htmlElement["on"+A.event]=""}};EEvent.bind=function(B,E,H){var G=new EBClassGlobal("listener");var F=G.getName();var A=new EEvent(H);if(document.addEventListener){B.htmlElement.addEventListener(E,A.fire,false)}else{B.htmlElement["on"+E]=A.fire}var D=new function C(){this.fireFunc=A.fire;this.callback=H;this.object=B;this.name=F;this.event=E};return D};EEvent.fireEvent=function(D,B){if(document.addEventListener){var C=document.createEvent("MouseEvents");C.initEvent(D,true,true);B.htmlElement.dispatchEvent(C)}else{var A=new function A(){this.target=B.htmlElement};if(typeof B.htmlElement["on"+D]=="function"){B.htmlElement["on"+D](A)}}};EEvent.stop=function(A){if(typeof A.stopPropagation=="function"){A.stopPropagation()}else{A.cancelBubble=true}};var swfobject=function(){var Z="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;var a=function(){var l=typeof g.getElementById!=Z&&typeof g.getElementsByTagName!=Z&&typeof g.createElement!=Z&&typeof g.appendChild!=Z&&typeof g.replaceChild!=Z&&typeof g.removeChild!=Z&&typeof g.cloneNode!=Z,t=[0,0,0],n=null;if(typeof N.plugins!=Z&&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!=Z){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 e=function(){if(!a.w3cdom){return }J(I);if(a.ie&&a.win){try{g.write("<script id=__ie_ondomload defer=true src=//:><\/script>");var i=c("__ie_ondomload");if(i){i.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeof g.readyState!=Z){Q=setInterval(function(){if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeof g.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();function V(){if(S){return }if(a.ie&&a.win){var m=Y("span");try{var l=g.getElementsByTagName("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return }}S=true;if(Q){clearInterval(Q);Q=null}var j=f.length;for(var k=0;k<j;k++){f[k]()}}function J(i){if(S){i()}else{f[f.length]=i}}function M(j){if(typeof G.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeof g.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeof G.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeof G.onload=="function"){var i=G.onload;G.onload=function(){i();j()}}else{G.onload=j}}}}}function I(){var l=H.length;for(var j=0;j<l;j++){var m=H[j].id;if(a.pv[0]>0){var k=c(m);if(k){H[j].width=k.getAttribute("width")?k.getAttribute("width"):"0";H[j].height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O(H[j].swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if(H[j].expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D(H[j])}else{d(k)}}}}else{X(m,true)}}}function U(m){var k=m.getElementsByTagName(P)[0];if(k){var p=Y("embed"),r=k.attributes;if(r){var o=r.length;for(var n=0;n<o;n++){if(r[n].nodeName.toLowerCase()=="data"){p.setAttribute("src",r[n].nodeValue)}else{p.setAttribute(r[n].nodeName,r[n].nodeValue)}}}var q=k.childNodes;if(q){var s=q.length;for(var l=0;l<s;l++){if(q[l].nodeType==1&&q[l].nodeName.toLowerCase()=="param"){p.setAttribute(q[l].getAttribute("name"),q[l].getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}function F(i){if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function(){var k=c(i);if(k){for(var j in k){if(typeof k[j]=="function"){k[j]=function(){}}}k.parentNode.removeChild(k)}})}}function D(j){C=true;var o=c(j.id);if(o){if(j.altContentId){var l=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";var n=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+G.location+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){var i=Y("div");p+="SWFObjectNew";i.setAttribute("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function(){o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}function d(j){if(a.ie&&a.win&&j.readyState!=4){var i=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function(){j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}function b(n){var m=Y("div");if(a.win&&a.ie){m.innerHTML=n.innerHTML}else{var k=n.getElementsByTagName(P)[0];if(k){var o=k.childNodes;if(o){var j=o.length;for(var l=0;l<j;l++){if(!(o[l].nodeType==1&&o[l].nodeName.toLowerCase()=="param")&&!(o[l].nodeType==8)){m.appendChild(o[l].cloneNode(true))}}}}}return m}function R(AE,AC,q){var p,t=c(q);if(typeof AE.id==Z){AE.id=q}if(a.ie&&a.win){var AD="";for(var z in AE){if(AE[z]!=Object.prototype[z]){if(z=="data"){AC.movie=AE[z]}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+AE[z]+'"'}else{if(z!="classid"){AD+=" "+z+'="'+AE[z]+'"'}}}}}var AB="";for(var y in AC){if(AC[y]!=Object.prototype[y]){AB+='<param name="'+y+'" value="'+AC[y]+'" />'}}t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>";F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){var AA=Y("embed");AA.setAttribute("type",W);for(var x in AE){if(AE[x]!=Object.prototype[x]){if(x=="data"){AA.setAttribute("src",AE[x])}else{if(x.toLowerCase()=="styleclass"){AA.setAttribute("class",AE[x])}else{if(x!="classid"){AA.setAttribute(x,AE[x])}}}}}for(var w in AC){if(AC[w]!=Object.prototype[w]){if(w!="movie"){AA.setAttribute(w,AC[w])}}}t.parentNode.replaceChild(AA,t);p=AA}else{var s=Y(P);s.setAttribute("type",W);for(var v in AE){if(AE[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){s.setAttribute("class",AE[v])}else{if(v!="classid"){s.setAttribute(v,AE[v])}}}}for(var u in AC){if(AC[u]!=Object.prototype[u]&&u!="movie"){E(s,u,AC[u])}}t.parentNode.replaceChild(s,t);p=s}}return p}function E(k,i,j){var l=Y("param");l.setAttribute("name",i);l.setAttribute("value",j);k.appendChild(l)}function c(i){return g.getElementById(i)}function Y(i){return g.createElement(i)}function O(k){var j=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}function A(m,j){if(a.ie&&a.mac){return }var l=g.getElementsByTagName("head")[0],k=Y("style");k.setAttribute("type","text/css");k.setAttribute("media","screen");if(!(a.ie&&a.win)&&typeof g.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeof g.styleSheets!=Z&&g.styleSheets.length>0){var i=g.styleSheets[g.styleSheets.length-1];if(typeof i.addRule==P){i.addRule(m,j)}}}function X(k,i){var j=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k){if(!a.w3cdom||!l||!i){return }var j={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false;H[H.length]=j;X(l,false)},getObjectById:function(l){var i=null;if(a.w3cdom&&S){var j=c(l);if(j){var k=j.getElementsByTagName(P)[0];if(!k||(k&&typeof j.SetVariable!=Z)){i=j}else{if(typeof k.SetVariable!=Z){i=k}}}}return i},embedSWF:function(n,u,r,t,j,m,k,p,s){if(!a.w3cdom||!n||!u||!r||!t||!j){return }r+="";t+="";if(O(j)){X(u,false);var q=(typeof s==P)?s:{};q.data=n;q.width=r;q.height=t;var o=(typeof p==P)?p:{};if(typeof k==P){for(var l in k){if(k[l]!=Object.prototype[l]){if(typeof o.flashvars!=Z){o.flashvars+="&"+l+"="+k[l]}else{o.flashvars=l+"="+k[l]}}}}J(function(){R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function(){var i={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i){if(a.w3cdom&&S){return R(k,j,i)}else{return undefined}},createCSS:function(j,i){if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m){var l=g.location.search||g.location.hash;if(m==null){return l}if(l){var k=l.substring(1).split("&");for(var j=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==m){return k[j].substring((k[j].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(C&&L){var i=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();var funny15_player=null;var ytplayer=null;if(!funny15_player_autoinit){var funny15_player_autoinit=false}if(!funny15_player_autostart){var funny15_player_autostart=false}if(!funny15_player_element){var funny15_player_element=""}if(!funny15_player_bgcolor){var funny15_player_bgcolor="#ffffff"}if(!funny15_player_width){var funny15_player_width=100}if(!funny15_player_height){var funny15_player_height=100}function onYouTubePlayerReady(A){ytplayer=document.getElementById("funny15_myytplayer");ytplayer.setVolume(75);funny15_player.visualizeVolume();if(funny15_player.g_interval!=null){window.clearInterval(funny15_player.g_interval)}funny15_player.g_interval=setInterval(funny15_player.updateytplayerInfo,500);funny15_player.updateytplayerInfo();ytplayer.addEventListener("onStateChange","funny15_player.onytplayerStateChange");if(funny15_player.autostart==false){ytplayer.cueVideoById(funny15_player.g_id,funny15_player.g_startsAt)}else{ytplayer.loadVideoById(funny15_player.g_id,funny15_player.g_startsAt)}setTimeout("funny15_player.doStuffDelayed()",1000)}function funny15_embed(B,A,D){var C={allowScriptAccess:"always",bgcolor:D,wmode:"transparent"};var E={id:"funny15_myytplayer"};swfobject.embedSWF("http://www.youtube.com/apiplayerbeta?enablejsapi=1&amp;playerapiid=ytplayer","funny15_ytapiplayer",B,A,"8",null,null,C,E)}function funny15Player(){this.width=funny15_player_width;this.height=funny15_player_height;this.bgcolor=funny15_player_bgcolor;this.element=funny15_player_element;this.autostart=funny15_player_autostart;this.g_id=0;this.g_startsAt=0;this.g_durationSeconds=0;this.g_bytesTotal=0;this.g_interval=null;this.g_muted=false;this.g_seek=false;var B=document.createElement("div");B.id="funny15_get_video_r";document.body.appendChild(B);document.getElementById("funny15_get_video_r").style.display="none";this.htmlElement=document.getElementById("funny15_get_video_r");funny15_player=this;this.getRandomString=function(){var G="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var H=12;var F="";for(var E=0;E<H;E++){var D=Math.floor(Math.random()*G.length);F+=G.substring(D,D+1)}return"c"+F};this.rewriteVar=function(){funny15_player_width=this.width;funny15_player_height=this.height;funny15_player_bgcolor=this.bgcolor;funny15_player_element=this.element;funny15_player_autostart=this.autostart};this.init=function(){this.rewriteVar();if(document.getElementById("funny15_get_video")){document.body.removeChild(document.getElementById("funny15_get_video"))}var D=document.createElement("script");D.id="funny15_get_video";D.type="text/javascript";D.src="http://funny15.com/?json=true&Callback=funny15_player.start&r="+this.getRandomString()+"&captionx=1";document.body.appendChild(D)};this.start=function(E){var D=document.getElementById(funny15_player_element);D.innerHTML='<div><div id="funny15_ytapiplayer"><p>No Preview available at the moment</p></div></div>';this.embedPlayer(E.feed.entry.f15_yt_id,E.feed.entry.f15_yt_start)};this.flush_var=function(){this.g_id=0;this.g_startsAt=0;this.g_durationSeconds=0;this.g_bytesTotal=0;this.g_interval=null;this.firstframe=0;this.delta=0;this.g_seek=false;ytplayer=null};this.embedPlayer=function(G,D){this.flush_var();if(document.getElementById("funny15_myytplayer")){window.clearInterval(this.g_interval);var F=document.getElementById("funny15_myytplayer").parentNode;F.removeChild(document.getElementById("funny15_myytplayer"));var E=document.getElementById(funny15_player_element);E.innerHTML=""}this.g_id=G;this.g_startsAt=parseInt(D);this.g_endsAt=this.g_startsAt+15;if(this.g_startsAt!=0){this.g_seek=true}if(this.width==undefined){this.width=100}if(this.height==undefined){this.height=100}if(this.bgcolor==undefined){this.bgcolor="#ffffff"}funny15_embed(this.width,this.height,this.bgcolor)};this.doStuffDelayed=function(){if(ytplayer==null){if(this.g_interval){window.clearInterval(this.g_interval)}return }this.g_durationSeconds=ytplayer.getDuration();if(this.g_durationSeconds<0||this.g_durationSeconds>1000000){this.g_durationSeconds=0;setTimeout("funny15_player.doStuffDelayed()",1000)}else{this.showButton("pause");this.g_bytesTotal=ytplayer.getVideoBytesTotal()}};this.visualizeVolume=function(){var D=document.getElementById("funny15_volumeControlMainImage");if(ytplayer.isMuted()){D.className="off"}else{D.className="on"}};this.getVerboseState=function(){var D="";switch(ytplayer.getPlayerState()){case -1:D="unstarted";break;case 0:D="ended";break;case 1:D="playing";break;case 2:D="paused";break;case 3:D="buffering";break;case 4:D="videoCued";break}return D};this.showButton=function(E){var D=document.getElementById("funny15_playPauseButton");if(D){D.className=E}};function A(D){var D=this.getVerboseState(D);if(D=="ended"){EEvent.fireEvent("endVideo",this)}}this.updateytplayerInfo=function(){if(ytplayer){funny15_player.updateTimebar()}};this.setDuration=function(D){var E=document.getElementById("funny15_duration");if(E){E.innerHTML=D}};this.getDuration=function(){var D=document.getElementById("funny15_duration");if(D){return parseInt(D.innerHTML)}};this.updateTimebar=function(){var F=Math.round(ytplayer.getDuration()*10)/10;var E=Math.round(ytplayer.getCurrentTime()*10)/10;if(this.g_startsAt>0&&this.firstframe==0&&E>1&&this.g_seek==true){this.firstframe=E;this.delta=this.firstframe-this.g_startsAt}var D=Math.round(E-this.firstframe);D=Math.max(D,0);D=Math.min(D,15);if(this.getDuration()!=D){this.setDuration(D)}if(parseInt(F-E)<0.1&&E>1){window.clearInterval(this.g_interval);this.showButton("play");this.setDuration(15);EEvent.fireEvent("endVideo",this)}if(this.g_endsAt>0&&Math.floor(E)>this.g_endsAt+this.delta){window.clearInterval(this.g_interval);this.stopVideo();this.setDuration(15);EEvent.fireEvent("endVideo",this)}};function C(D){if(ytplayer.isMuted()){ytplayer.unMute()}ytplayer.setVolume(D);this.visualizeVolume()}this.toggleSound=function(){ytplayer.setVolume(90);if(ytplayer.isMuted()){ytplayer.unMute();ytplayer.setVolume(90)}else{ytplayer.mute()}this.visualizeVolume()};this.playPauseVideo=function(){var D=this.getVerboseState();if(D=="playing"){ytplayer.pauseVideo();if(this.g_interval!=null){window.clearInterval(this.g_interval)}this.g_interval=null;this.showButton("play");return }else{if(D=="ended"){if(this.g_startsAt!=0){ytplayer.seekTo(g_startsAt,true)}this.showButton("pause");this.g_bytesTotal=ytplayer.getVideoBytesTotal();if(this.g_muted){ytplayer.mute()}else{ytplayer.unMute()}ytplayer.setVolume(90);ytplayer.playVideo()}}window.clearInterval(this.g_interval);this.g_interval=setInterval(this.updateytplayerInfo,500);ytplayer.playVideo();this.showButton("pause")};this.stopVideo=function(){ytplayer.cueVideoById(this.g_id,this.g_startsAt);this.showButton("play")};this.reload=function(D){if(this.g_interval!=null){window.clearInterval(this.g_interval)}this.init()};this.destroy=function(){if(this.g_interval!=null){window.clearInterval(this.g_interval)}var D=document.getElementById(funny15_player_element);ytplayer=null;D.innerHTML=""}}if(funny15_player_autoinit==true){funny15_player=new funny15Player();funny15_player.init()};