var controls='hidden'
function fbPlayVideo(){video.play();}
function fbEmbedVideo(src,nr){if(winh>switchHeight){videow=720;}else{videow=600;}
var pts1=src.split(".");var pts2=pts1.pop();if(pts1.length>2){var filename=pts1.join(".");}else{var filename=pts2;}
if(!!document.createElement('video').canPlayType&&browser.indexOf("Firefox")==-1){embedStrg='<video controls autobuffer autoplay="true" class="videofb" id="videofb-'+nr+'">'+'<!-- MP4 must be first for iPad! you must use `</source>` to avoid a closure bug in Firefox 3.0 / Camino 2.0! -->'+'<source src="'+filename+'.mp4" type="video/mp4"></source>'+'</video>';}else{embedStrg='<object id="videofb-flash-'+nr+'" class="videofb-flash" type="application/x-shockwave-flash" data="'+base+'/js/videofb/flash/videofb.swf">'+'<param name="movie" value="'+base+'/js/videofb/flash/videofb.swf" />'+'<param name="allowScriptAccess" value="sameDomain" />'+'<param name="flashvars" value="file='+filename+'.mp4" />'+'<embed href="'+base+'/js/videofb/flash/videofb.swf" allowScriptAccess="sameDomain" width="720" height="100%" quality="high" name="videofb" class="videofb" type="application/x-shockwave-flash" pluginspage="http://get.adobe.com/de/flashplayer/" flashvars="file='+filename+'.mp4"></embed>'+'</object>';}
$(embedStrg).appendTo("#video-wrapper-"+nr);$("#loading").css("display","none");}
function fbDetectBrowser(){}
$(document).ready(function(){});
