var pageTracker;


;(function($) {
$(document).ready( function() {
	gaTrack();

	$(".dropmenu li.top").hover( function() {
		//$(this).css('background', 'url(\'/themes/graphlogic/images/topmenu-sel.png\') repeat-x');
		$(this).addClass('highlight');
                $('ul', this).css('display', 'block');
        }, function() {
		$(this).removeClass('highlight');
                $('ul', this).css('display', 'none');
        });

	$(".dropmenu li li").hover( function() {
		$(this).css('background-color', '#004681');
		$(this).css('cursor', 'pointer');
	}, function() {
		$(this).css('background-color', '#003867');
		$(this).css('cursor', 'auto');
	});

	$(".dropmenu li li").click( function() {
		window.location = $(this).find("a").attr("href");
	});	

	$(".sidebar_image").hover( function() {
                $(this).css('cursor', 'pointer');
        }, function() {
                $(this).css('cursor', 'auto');
        });

	$(".sidebar_image").click( function() {
		window.location = $(this).find("p > a").attr("href");
	});
})
})(jQuery);

function gaTrack() {
	try {
		pageTracker = _gat._getTracker("UA-9496058-1");
		pageTracker._trackPageview();
	} catch(err) {}
}
