// OVER
       $().ready(function() {
              $('.hoverable').hover(
                   function() {
                       $(this).addClass('hovered');
              }, function() {
                    $(this).removeClass('hovered');
              }
           );
       });

$(document).ready(function(){
  var section = new Array('#section1 p','#section1 li'); 
  section = section.join(',');

  // Reset Font Size
  var originalFontSize = $(section).css('font-size');
  $(".resetFont").click(function(){
    $(section).css('font-size', originalFontSize); 
  });

  // Increase Font Size
  $(".increaseFont").click(function(){
    var currentFontSize = $(section).css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
	if (newFontSize<18){
    $(section).css('font-size', newFontSize);
	$(section).css('line-height',  '22px');
	}
    return false;
  });


  // Decrease Font Size
  $(".decreaseFont").click(function(){
    var currentFontSize = $(section).css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.9;
	if (newFontSize > 11){
    $(section).css('font-size', newFontSize);
	$(section).css('line-height',  '17px');
	}
    return false;
  });
});

function myprint()
{

window.print();
}


///////////

    $(document).ready(function(){
    $("#statut label").click(function () {
    $("#statut label").removeClass("myradio").removeClass("onactive");
    $(this).addClass("myradio").css({opacity: 1});
	
	var valoare = $(this).text();
	$(".RdSelect").text(title);

    var title = '<input type="hidden" name="stare" value="'+valoare+'" />';
    $(".RdStare").html(title);
    });

    $("#statut label").mouseover(
    function(){
    $(this).not(".myradio").addClass("onactive");
    });
    $("#statut label").mouseout(
    function(){
    $(this).removeClass("onactive");
    });
    });

////////
	
	$(document).ready(function(){
    $("#myradiobox label").click(function () {
    $("#myradiobox label").removeClass("myradio").removeClass("onactive");
    $(this).addClass("myradio").css({opacity: 1});
    var title = '<input type="hidden" name="bifat" value="bifat" />';
    $(".RdSelect").html(title);
    });

    $("#myradiobox label").mouseover(
    function(){
    $(this).not(".myradio").addClass("onactive");
    });
    $("#myradiobox label").mouseout(
    function(){
    $(this).removeClass("onactive");
    });
    });
	
	////padding submeniu
	$(document).ready(function(){
		$("div#nivelSub").css('display','block');
		
		var catmenuwidth = $("div#nivelPot").width();	
		//alert(catmenuwidth);
		var catmleft = Math.round(catmenuwidth);
		$("div#nivelPot").css('width',catmleft); 
		
		 if (catmenuwidth < 182) { $("div#nivelSub").css('width','670px'); }
		
	})
