jQuery(document).ready(function(){
	jQuery("#email").focus(function(){
		if(jQuery(this).val()==="enter your email address"){
			jQuery(this).val("");
		}
	});
	jQuery("#print").click(function(){
		window.print();
		return false;
	});
	if((jQuery.browser.msie)&&(parseInt(jQuery.browser.version,10) < 7)){
		jQuery("ul#menu > li").hover(function(){
			jQuery(this).addClass("sfhover");
		},function(){
			jQuery(this).removeClass("sfhover");
		});
	}
	
/*
	var $sidebarad = jQuery("#sidebarad");
	var $homead = jQuery("#homead");
	var theads=[];
	theads.push('<a href="http://www.mentor.com/products/mechanical/multimedia/heatsink-design-webseminar?cmpid=5678" target="_blank" class="tracklink" rel="/bannerads/mentorgraphics/on-demand-webinar/heatsink201"><img src="/wp-content/themes/ecooling/images/ad-heatsink201.png" alt="ad-sidebar" width="300" height="250" /></a>');
	theads.push('<a href="http://www.mentor.com/products/mechanical/products/floefd/floefd-pro-trial-eval?cmpid=5678" target="_blank" class="tracklink" rel="/bannerads/mentorgraphics/eval/floefd"><img src="/wp-content/themes/ecooling/images/ad-floefd.png" alt="ad-sidebar" width="300" height="250" /></a>');
	
	var adlength = theads.length;
	var randomnumber=Math.floor(Math.random()*(adlength));
	$sidebarad.html(theads[randomnumber]);
	if(document.getElementById("homead")){
		$homead.html(theads[randomnumber]);
	}
*/

	jQuery("a.tracklink").live("click",function(){
		var therel = jQuery(this).attr("rel");
		if(therel.length>0){
			if(typeof pageTracker==="object"){
				pageTracker._trackPageview(therel);
			}
		}
	});

});
