/**
 * @author Wasyl
 */
$(document).ready
(
	function()
	{
		$("a[rel^='prettyPhoto']").prettyPhoto();
		
		$('#omnieMenu').hover(function(){
			$(this).attr({'src' : '/media/images/templates/site/o_mnie_hv.png'});
		},
		function()
		{
			$(this).attr({'src' : '/media/images/templates/site/o_mnie.png'});
		});
		
		$('#portfolioMenu').hover(function(){
			$(this).attr({'src' : '/media/images/templates/site/portfolio_hv.png'});
		},
		function()
		{
			$(this).attr({'src' : '/media/images/templates/site/portfolio.png'});
		});
		
		$('#systemcmsMenu').hover(function(){
			$(this).attr({'src' : '/media/images/templates/site/system_cms_hv.png'});
		},
		function()
		{
			$(this).attr({'src' : '/media/images/templates/site/system_cms.png'});
		});
		
		$('#kontaktMenu').hover(function(){
			$(this).attr({'src' : '/media/images/templates/site/kontakt_hv.png'});
		},
		function()
		{
			$(this).attr({'src' : '/media/images/templates/site/kontakt.png'});
		});
		
		$('#contactMenu').hover(function(){
			$(this).attr({'src' : '/media/images/templates/site/contact_hv.png'});
		},
		function()
		{
			$(this).attr({'src' : '/media/images/templates/site/contact.png'});
		});
		
		$('#aboutmeMenu').hover(function(){
			$(this).attr({'src' : '/media/images/templates/site/about_me_hv.png'});
		},
		function()
		{
			$(this).attr({'src' : '/media/images/templates/site/about_me.png'});
		});	
			
		$('.portfolio_left').hover(function(){
			$(this).attr({'style':'color:black'});
			$('#' + $(this).attr('id') + ' > div > a').css({'color':'red'});
			$('#' + $(this).attr('id') + ' > .portfolioImg').hide();
			$('#' + $(this).attr('id') + ' > .corner').show();
			$('#' + $(this).attr('id') + ' > a > .portfolioImg_color').show();
			$('a').hover(function()
			{
				$('#' + $(this).attr('id') + ' > .portfolioImg_color').css({'border':'1px solid gray','padding':'2px'});
			},function()
			{
				$('#' + $(this).attr('id') + ' > .portfolioImg_color').css({'border':'1px solid white','padding':'2px'});
			});
			
		},
		function()
		{
			$(this).attr({'style':'color:gray'});
			$('#' + $(this).attr('id') + ' > div > a').css({'color':'gray'});
			$('#' + $(this).attr('id') + ' > .portfolioImg').show();
			$('#' + $(this).attr('id') + ' > .corner').hide();
			$('#' + $(this).attr('id') + ' > a > .portfolioImg_color').hide();
			
		});
		
		$('.portfolio_right').hover(function(){
			$(this).attr({'style':'color:black'});
			$('#' + $(this).attr('id') + ' > div > a').css({'color':'red'});
			$('#' + $(this).attr('id') + ' > .portfolioImg').hide();
			$('#' + $(this).attr('id') + ' > .corner').show();
			$('#' + $(this).attr('id') + ' > a > .portfolioImg_color').show();
		},
		function()
		{
			$(this).attr({'style':'color:gray'});
			$('#' + $(this).attr('id') + ' > div > a').css({'color':'gray'});
			$('#' + $(this).attr('id') + ' > .portfolioImg').show();
			$('#' + $(this).attr('id') + ' > .corner').hide();
			$('#' + $(this).attr('id') + ' > a > .portfolioImg_color').hide();
		});
		
		

	}
);

