// 

jQuery(function(){var cflowclip;var cflowplayer;var cflowid;var cflowindex;jQuery(".cflow_link").hover(function(){cflowindex=jQuery(".cflow_link").index(this);cflowclip=jQuery(".cflow_link").eq(cflowindex).attr("name");cflowid=jQuery(".cflow_link").eq(cflowindex).attr("rel");});jQuery('.cflow_link').fancybox({hideOnContentClick:false,'zoomSpeedIn':400,'zoomSpeedOut':400,easingIn:'easeOutBack',easingOut:'easeInBack',frameWidth:640,frameHeight:426,'overlayOpacity':.6,hideOnOverlayClick:true,hideOnContentClick:false,callbackOnShow:function(){if(cflowclip=='image'){jQuery("#fancy_right,#fancy_left").css({height:jQuery("#fancy_div").height(),bottom:0});}
else{jQuery.get("services/getvideoplay.ashx",{'data':cflowid},function(data,textStatus){if(data=='')
{jQuery('#fancy_close').trigger('click');return false;}
if(textStatus=='success')
{var cflow_player=flowplayer("fancy_content","flowplayer/flowplayer-3.1.5.swf",{wmode:"opaque",clip:{autoPlay:true,autoBuffering:true,url:data,onStart:function(clip){var wrqp=jQuery(this.getParent());var clipwidth=clip.metaData.width;var clipheight=clip.metaData.height;var pos=jQuery.fn.fancybox.getViewport();jQuery("#fancy_outer").css({width:clipwidth+20,height:clipheight+20});jQuery("#fancy_outer").css('left',((clipwidth+36)>pos[0]?pos[2]:pos[2]+Math.round((pos[0]-clipwidth-36)/2)));jQuery("#fancy_outer").css('top',((clipwidth+50)>pos[1]?pos[3]:pos[3]+Math.round((pos[1]-clipheight-50)/2)));jQuery.fn.fancybox.scrollBox();},onFinish:function(){jQuery('#fancy_close').trigger('click');}}});cflow_player.load();}
else
{alert('Service is busy!');jQuery('#fancy_close').trigger('click');}});}}});});