jQuery.fn.exists = function(){return jQuery(this).length>0;}

$(function(){
	// hover animation
	$('.gallery_list .row .item .i a, .banners a').hover(function(){
		$(this).find('img').fadeTo(300, 0.75)
	}, function(){
		$(this).find('img').fadeTo(300, 1)
	})

	if ($('.select').exists()) {
  		$('.select').jqTransform({imgPath:'images'});
	} 	
	
	
	$('#gallery #thumbs a').click(function(){
		$('#big img').attr('src', $(this).find('img').attr('data-img') )
		return false;
	})
		
		
		
   $('table tr:even').addClass('even')
	
	$('#link_open').click(function(){
	
	if($('.spec_hidden').is(":hidden")){
		$('.spec_hidden').show(300)
		$(this).html('read less')
	}else{
		$('.spec_hidden').hide(300)
		$(this).html('read more')
		}
	return false
})
	
	
	$('.mmg_breadcrumbs').addClass('clrf');
	
	
})
