jQuery.noConflict()
jQuery(document).ready(function(){
	jQuery('.thumbItem a').hover(function(e){
		var x = e.pageX;
		var y = e.pageY;
		var offset = jQuery(this).offset();
		var relLeft = x - offset.left;
		var relTop = y - offset.top;
		jQuery(this).children("p").css({height:'115px'});
		/*from the top    */	if(relTop<20&&20<relLeft&&relLeft<190) jQuery(this).children("p").css({top:'-135px',left:'0px'});
		/*from the left   */	else if(relLeft<20&&20<relTop<115) jQuery(this).children("p").css({top:'0px',left:'-135px'});
		/*from the right  */	else if(relLeft>115&&20<relTop<115) jQuery(this).children("p").css({top:'0px',left:'270px'});
		/*from the bottom */	else jQuery(this).children("p").css({top:'135px',left:'0px'});
		jQuery(this).children("p").stop().animate({top:'0px',left:'0px'},{queue:false,duration:300});
	}, function(e) {
		var x = e.pageX;
		var y = e.pageY;
		var offset = jQuery(this).offset();
		var relLeft = x - offset.left;
		var relTop = y - offset.top;
		/*from the top    */	if(relTop<1&&20<relLeft&&relLeft<190)jQuery(this).children("p").stop().animate({top:'-135px'},{queue:false,duration:300});
		/*from the left   */	else if(relLeft<1&&20<relTop&&relTop<115) jQuery(this).children("p").stop().animate({left:'-210px'},{queue:false,duration:300});
		/*from the right  */	else if(relLeft>209&&20<relTop&&relTop<115) jQuery(this).children("p").stop().animate({left:'210px'},{queue:false,duration:300});
		/*from the bottom */	else jQuery(this).children("p").stop().animate({top:'135px'},{queue:false,duration:300});
		
	});
	/* jQuery("#submeny li a").click(function(){
		jQuery("#submeny li").removeClass('current-cat');
		jQuery(this).parent().addClass('current-cat');
		var class = jQuery(this).parent().attr("class");
		jQuery("#main h4").html(class);
		jQuery("#content .thumbItem").each(function(){
			if(jQuery(this).hasClass(class[1])) jQuery(this).delay(800).fadeIn();
			else jQuery(this).fadeOut();
		});
		return false;
	});*/
});
 
