jQuery(document).ready(function() {
	jQuery(".tellfriendlink").hoverIntent({
		over: tellfover, 
		interval: 50, 
		out: tellfout
	});
	jQuery(".products-grid img").css({ opacity: 1 });
	jQuery(".products-grid img").hoverIntent({
		over: mover, 
		interval: 50, 
		out: mout
	});

	/*var curPage = window.location.pathname;//jQuery.url.attr("file");
	if(!curPage) {
		curPage = 'index.html';
	jQuery('#sidenav li a').each(function(){
		var thehref = jQuery(this).attr('href');
		if ( (thehref == curPage) || (thehref == '') ) {
			jQuery(this).addClass('on');
		} else {
			jQuery(this).removeClass('on');
		}
	});*/

	//check if Safari
	//isSafari3 = false;
	/*if(window.devicePixelRatio) {
		jQuery("#mainnav li a").css('padding-top', '6px');
	}*/

});

function tellfover(){ jQuery(".tellafriendover").fadeIn("slow") };
function tellfout(){ jQuery(".tellafriendover span").click(function () { jQuery(".tellafriendover").fadeOut("fast"); }); };
function mover(){ jQuery(this).css({ opacity: 1 }) };
function mout(){ jQuery(this).css({ opacity: 1 }) };


