$(document).ready(function(){ 
$("#right_slider_1").easySlider({	
prevId: 		'prevBtn_right_1',
prevIdIn: 		'prevBtnin_right_1',
nextId: 		'nextBtn_right_1',	
nextIdIn: 		'nextBtnin_right_1',
ulId:			'ul_right_container_1'		
});
$("#nextBtn_right_1").click(function(){
var next = $("#first_li_right_1").attr('class');
next = parseInt(next);		
id=next + 1;
if($("#right_1_li_"+id).is('*')){

$("#right_1_li_"+id).load('http://webtv.am/ajax-page/?offset='+next+'&cur_cat=10&state=slider');
next += 1;
$("#first_li_right_1").attr('class',next);
}
});
$("#right_slider_2").easySlider({	
prevId: 		'prevBtn_right_2',
prevIdIn: 		'prevBtnin_right_2',
nextId: 		'nextBtn_right_2',	
nextIdIn: 		'nextBtnin_right_2',
ulId:			'ul_right_container_2'		
});
$("#nextBtn_right_2").click(function(){
var next = $("#first_li_right_2").attr('class');
next = parseInt(next);		
id=next + 1;
if($("#right_2_li_"+id).is('*')){

$("#right_2_li_"+id).load('http://webtv.am/ajax-page/?offset='+next+'&cur_cat=9&state=slider');
next += 1;
$("#first_li_right_2").attr('class',next);
}
});

$("#wide_slider_1").easySlider({	
prevId: 		'prevBtn_right_111',
prevIdIn: 		'prevBtnin_right_111',
nextId: 		'nextBtn_right_111',	
nextIdIn: 		'nextBtnin_right_111',
ulId:			'ul_wide_container_111'		
});
$("#nextBtn_right_111").click(function(){
var next = $("#first_li_right_111").attr('class');
next = parseInt(next);		
id=next + 4;
if($("#right_111_li_"+id).is('*')){

$("#right_111_li_"+id).load('http://webtv.am/ajax-page/?offset='+next+'&cur_cat=17&state=slidersmall');
next += 4;
$("#first_li_right_111").attr('class',next);
}
});


$("#drop1").click(function(){
$("#drop2div").hide(500);
$("#drop3div").hide(500);
$("#drop1div").toggle(500);

});
$("#drop2").click(function(){
$("#drop3div").hide(500);
$("#drop1div").hide(500);
$("#drop2div").toggle(500);

});
$("#drop3").click(function(){
$("#drop2div").hide(500);
$("#drop1div").hide(500);
$("#drop3div").toggle(500);

});
$("#drop1div").mouseleave(function(){
$("#drop1div").hide(500);
});
$("#drop2div").mouseleave(function(){
$("#drop2div").hide(500);
});
$("#drop3div").mouseleave(function(){
$("#drop3div").hide(500);
});
});


$(document).ready(function() {


$('.tl').hover(function() {

$(this).addClass("tl_blue");
$(this).find('div.tr').addClass("tr_blue");
$(this).find('div.br').addClass("br_blue");
$(this).find('div.bl').addClass("bl_blue");
$(this).find('a.brends').hide();
$(this).find('div.moveText').hide();
$(this).find('div.moveText_blue').show();
//$("#moveText_"+id).html(bigtext + liks);
},
function() {
$(this).removeClass("tl_blue");
$(this).find('div.tr').removeClass("tr_blue");
$(this).find('div.br').removeClass("br_blue");
$(this).find('div.bl').removeClass("bl_blue");

$(this).find('a.brends').show();
$(this).find('div.moveText').show();
$(this).find('div.moveText_blue').hide();
});

});


$(function() {
$('#horisontal-slider-list').carouFredSel({
scroll: 3,
width:615,
next: 'a.horisontal-prev',
prev: 'a.horisontal-next'
});
});

