﻿function changeFontSize(letterSize){
	switch(letterSize){
		case 'small': $('#center').css('font-size','11px');
		break;
		
		case 'medium': $('#center').css('font-size','13px') ;
		break;
		
		case 'big': $('#center').css('font-size','15px');
		break;
	}
}
$(function(){
	/*HOVER BELKA*/
	$("#features li a img.ft").hover(function(){
		if($(this).attr("src").indexOf("_hover") == -1) {
			var newSrc = $(this).attr("src").replace(".jpg","_hover.jpg#hover");
			$(this).attr("src",newSrc);
		}
	},
	function(){
		if($(this).attr("src").indexOf("_hover.jpg#hover") != -1) {
			var oldSrc = $(this).attr("src").replace("_hover.jpg#hover",".jpg");
			$(this).attr("src",oldSrc);
		}
	});
	
	/*MENU TOP hovery*/
	$('#menu ul li a img').hover(function(){
		$(this).css('opacity','0.7')
	},function(){
		$(this).css('opacity','1')
	});
	
	$("#careerForm").validate();
	$("#contactForm").validate();
});
			
			
