var conf={configxml:'flv.xml',flv:'',skin:0,margin:0,width:326,height:260,showstop:1,showvolume:1,showvolume:1,showfullscreen:1,showtime:1,buttonovercolor:999999,sliderovercolor:999999,loadingcolor:0};
$(document).ready(function(){  
	var playClik=false;		
	$("#arPlayer").css("opacity","0.6");
	$("div.scrollable").scrollable({ 
		next:".nextIndex",
		prev:".prevIndex",
        size: 3          
    }).mousewheel(); 
	
	$(".nextIndex").trigger("click");
	$(".items img:eq(0)").addClass("active");

	$(".items img").mouseover(function(){
		$("#textPlayer").html($(this).attr("longdesc"));
		$("#textPlayer").css("display","block");
		$("#arPlayer").css("display","block");
	});
	$(".items img").mouseout(function(){
		if(playClik){
			$("#textPlayer").css("display","none");
			$("#arPlayer").css("display","none");
		}
	});
	$(".items img").click(function(){
		$(".play").css("display","none");
		$("#textPlayer").css("display","none");
		$("#arPlayer").css("display","none");
		playClik=true;
		p.getApi().SetVariable("player:jsStop", "");
		p.getApi().SetVariable("player:jsUrl", $(this).data("viewUrl"));
		p.getApi().SetVariable('player:jsPlay', '');
	});	
	$(".play").click(function(){
		p.getApi().SetVariable('player:jsPlay', '');
		$(this).css("display","none");
		$("#textPlayer").css("display","none");
		$("#arPlayer").css("display","none");
		playClik=true;
	});	
});
