$f("player",tempLib+"/lib/flash/flowplayer.commercial-3.1.5.swf",{key:'#$7298e9eafe0959b2788',clip:{scaling:'fit',autoPlay:false,autoBuffering:true},plugins:{controls:{bufferGradient:'none',buttonColor:'#000000',sliderGradient:'none',volumeSliderGradient:'none',volumeSliderColor:'#000000',timeBgColor:'#000',timeColor:'#ffffff',progressColor:'#112233',backgroundGradient:'none',bufferColor:'#445566',sliderColor:'#000000',progressGradient:'medium',borderRadius:'0',tooltipTextColor:'#ffffff',backgroundColor:'#666666',buttonOverColor:'#728B94',tooltipColor:'#000000',durationColor:'#5a962d',backgroundGradient:'none',height:20,opacity:1.0}}});$(document).ready(function(){var href="";$("#videoWindow").css("left",$(document).width()/2-$("#videoWindow").width()/2).css("top",-500);$("a.aboutLink").click(function(){$('#aboutPage').html("");$.get($(this).attr("href"),function(data){$('#aboutPage').html(data)});$("#aboutPage").css("left",($(document).width()/2)-($("#aboutPage").width()/2)-10).css("top",'120px').fadeIn();$("#closeBTN").css("cursor","pointer").css("left",($(document).width()/2-$("#aboutPage").width()/2)+$("#aboutPage").width()-8+'px').css("top",120-18).fadeIn();return false},function(){return false});$("a.addVideo").prepend("<div class='boxcaption'><img src="+tempLib+"'/lib/images/ajax-loader.gif' alt='loading' border='0' /></div>").each(function(id){href=$("a.addVideo:eq("+id+")").attr("href");$.ajax({type:'POST',url:tempLib+'/lib/getVideoContent.php',dataType:'json',data:{href:href},success:function(data){$(".boxcaption:eq("+id+")").text(data.title)},error:function(XMLHttpRequest,textStatus,errorThrown){}})});$("a.addVideo").click(function(){href=$(this).attr("href");$("#loadingIcon").css("left",($(document).width()/2-$("#loadingIcon").width()/ 2) + 'px').css("top", (($(document).height()/2)-($("#loadingIcon").height()/2))-18).fadeIn();$("#lightsOut").width($(document).width()).height($(document).height()).animate({opacity:0.75},0).fadeIn();$.ajax({type:'POST',url:tempLib+'/lib/getVideoContent.php',dataType:'json',data:{href:href},success:function(data){$("#loadingIcon").fadeOut();$("#videoTitles").text(""+data.title);$("#videoCaptionsP").html(data.caption);$("#videoCaptions").html(data.description);$("#videoWindow").animate({top:($(document).height()/2)-($("#videoWindow").height()/2)},0).show();$("#closeBTN").css("cursor","pointer").css("left",($(document).width()/2-$("#videoWindow").width()/ 2) + $("#videoWindow").width() - 18 + 'px').css("top", (($(document).height()/2)-($("#videoWindow").height()/2))-18).fadeIn();$f().play(href)},error:function(XMLHttpRequest,textStatus,errorThrown){$("#loadingIcon, #lightsOut").fadeOut()}});return false},function(){$("#loadingIcon").fadeOut();return false}).hover(function(){$(".boxcaption:eq("+$("a.addVideo").index(this)+")").css("top",0)},function(){$(".boxcaption:eq("+$("a.addVideo").index(this)+")").css("top",-250)});$("#closeBTN, #lightsOut").click(function(){$f().pause();$("#lightsOut, #closeBTN, #aboutPage").fadeOut();$("#videoWindow").animate({top:0-$("#videoWindow").height()-200})})});