// JavaScript Document

// make all links with the 'rel' attribute open overlays 
$(function(){	
	$("a[rel]").overlay({ expose: {color: 'black', opacity: '0.6'} });
});


/* activate drop-down menus */
$(function(){
    $("ul.dropdown li").hover(function()
	{
        $(this).addClass("hover");
        $('ul:first',this).css('visibility', 'visible');
    }, function(){
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
    });
});

//popup windows for edgework on products page
function openNewWin (url) {
	window.open (url, 'profilesWin', "width=580,height=580,scrollbars=1,menubar=1,toolbar=1,resizable=1");
}

// Google Analytics

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-9969205-1");
pageTracker._trackPageview();
} catch(err) {}
