// JavaScript Document
jQuery(document).ready(function()
{
	jQuery(".tbl-list-news-style tbody tr:even,.ul-alternate li:even").addClass("even");
	jQuery(".random-box-style .box-style-random-c:even").removeClass("blue-title").addClass("green-title");
	jQuery(".random-box-style .box-style-random-c:odd").removeClass("green-title").addClass("blue-title");
	//jQuery(".tbl-post-news tr:even").removeClass("green-title").addClass("even");
	
//	jQuery("#left-cat-wrapper li a").hover(function(){
//			jQuery("#left-cat-wrapper li a").removeClass("current");
//			jQuery(this).addClass("current").stop().animate({
//				height:'62px',
//				lineHeight:'50px',
//				color:'#FFFFFF'
//				})
//		},function(){
//			jQuery(this).removeClass("current").stop().animate({
//				height:'35px',
//				lineHeight:'20px'
//				})
//			})
	
	jQuery("#left-cat-wrapper li a").hover(function(){
	jQuery("#left-cat-wrapper li a").removeClass("current").stop().animate({
				height:'35px',
				lineHeight:'20px'
		});
	jQuery(this).addClass("current").stop().animate({
			height:'62px',
			lineHeight:'50px'
		});
	
	})
	//reset submit replacer
	jQuery("a.submit-form").click( function(){
	// it submits the form it is contained within
	jQuery(this).parents("form").submit();
	});
	
	
	

	//slideshow
	jQuery('#slideshow').fadeSlideShow();
	
	
	
	//services
	jQuery('.services-block-wrapper a').append('<div class="overlay-logo"><img src="images/service-overlay-b.png" width="210" height="100"></div>');
	jQuery('.services-block-wrapper .overlay-logo').css({opacity:0})
	jQuery('.services-block-wrapper').hover(function(){
		
		jQuery(".overlay-logo",this).stop().animate({opacity:1})	
	},function(){
		jQuery(".overlay-logo",this).stop().animate({opacity:0})	
	})

	


	
});





	



