$(document).ready(function () {
	
	$('.slideshow_right').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	
	//Portofoliu index
	$('#ext').scrollTo('0px', 600, { axis:'x' });
	$('#urmatorul').click(function(){
		$('#ext').scrollTo('+=297px', 600, { axis:'x' });
		return false;
   });
	
	$('#precedentul').click(function(){
		$('#ext').scrollTo('-=297px', 600, { axis:'x' });
		return false;
   });
	
	$('.description').mouseover(function(){
		$('.description').removeClass("description_over");
		$('.img').removeClass("img_over");
		
		$(this).addClass("description_over");
		$(this).children($('.img')).addClass("img_over");
    });
	/*$('.description').mouseout(function(){
	   $(this).removeClass("description_over");
	   $(this).children($('.img')).removeClass("img_over");
    });
	*/
	//================================
	
	
	//=========top menu===============
	$('.ul>li>.sub_menu').hide();
	$('.ul>li').mouseover(function(){
	   $(this).addClass("tab");
	   // Cufon.replace($(this).children("a"), { hover: true, color:'#000' });
	   $(this).children(".sub_menu").show();
	   $(this).children("a").addClass("over");
	   
    });
	$('.ul>li').mouseout(function(){
       $('.ul>li>.sub_menu').hide();
	   $(this).removeClass("tab");
	   $(this).children("a").removeClass("over");
	   if ($(this).children("a").hasClass("selected") != true) {
		  // Cufon.replace($(this).children("a"), { hover: true, color:'#515151' });
	   }else{
	   	  // Cufon.replace($(this).children("a"), { hover: true, color:'#000' });  
	   }
    });
	//=========top menu===============
	
	
	
	$("#tip").change(function() {
       var src = $("option:selected", this).val();
	   if(src == "Radio nationale"){
		   $('#radio_1').hide();
		   $('#radio_2').hide();
		   $('#radio_3').height(105);
	   }else{
		   $('#radio_1').show();
		   $('#radio_2').show();
		   $('#radio_3').height(29);
	   }
    });
	
	
	$("#tip_2").change(function() {
       var src = $("option:selected", this).val();
	   if(src == "Presa nationala"){
		   $('#radio_1').hide();
		   $('#radio_3').height(107);
	   }else{
		   $('#radio_1').show();
		   $('#radio_3').height(69);
	   }
    });
	
	
});