$(document).ready(function(){
$('ul#slide_emisiuni_tv').innerfade({
		speed: 750,
		timeout: 7500,
		type: 'sequence',
		containerheight: '250px'
}); 

$('ul#slide_radio_fm').innerfade({
		speed: 750,
		timeout: 7500,
		type: 'sequence',
		containerheight: '398px'
}); 

$('#scrollbar1').tinyscrollbar();

$(".lightbox").lightbox({fitToScreen: true, imageClickClose: false});

});

$(function(){
	$('#cancan-news-container').vTicker({ 
		speed: 500,
		pause: 5000,
		animation: 'fade',
		mousePause: true,
		showItems: 3
	});
});

function swTabGPTV(x){
$("ul#gpTVBox > li").attr('class','norm');
$("li#gpTab"+x).attr('class','act');
$("div.GPDay-Items").hide();
$("div#GPDay_"+x).show();
}

function swTabBox(x){
$("ul#xTabBox > li").attr('class','norm');
$("li#xTab"+x).attr('class','act');
$("div.xTabBCT").hide();
$("div#xTabB"+x+"CT").show();
}

function getEmisVideoArhiva(xID){
$.post("scripts/html_videoclip_arhiva_emisiune.php",{id:xID},function(data){
$("div#divPreviewArhivaVideo").html(data);
});	
}

function LoadSecVideo(xID){
$.post("./scripts/loading_secventa_video.php",{id:xID},function(data){
$("#TV-LIVE-ZONE").html(data);															 
});	
}

  
function swTabZN(x){
 counter = x;	
 $("ul#xTabBox > li").attr('class','norm');
 $("li#xTab"+x).attr('class','act');
 $("div.xTabBCT").hide();
 $("div#xTabB"+x+"CX").show();
};  


function openChatWindow(){
 var width  = 680;
 var height = 510;
 var left   = (screen.width - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open('http://www.baricada.ro/chat/','ChatWindow', params);
 if (window.focus) {newwin.focus()}
 return false;	
}



