$(document).ready(function() {
	$("#searchField").val("Search...");
	$("#searchField").bind("focus", function() {
		if(this.value=="Search...") {
			this.value = "";
		}			
	});
	$("#searchField").bind("blur", function() {
		if(this.value=="") {
			this.value = "Search...";
		}			
	});
	
	$(".bookmark a").attr("href", "javascript:void(0)");
	$(".bookmark a").bind("click", function() {
		if(document.all) window.external.AddFavorite(location.href,document.title);
		else if(window.sidebar)window.sidebar.addPanel(document.title,location.href,'');
	});
	
	$(".print a").attr("href", "javascript:void(0)");
	$(".print a").bind("click", function() {
		window.print();
	});
	
	$(".sendtofriend a").attr("href", "javascript:void(0)");
	$(".sendtofriend a").bind("click", function() {	
		addthis_sendto('email');
	});
});

$(document).ready(function() {
	$("#header .container .navBar ul").attr("id", "mainNav");
});

sfHover = function() {
	var sfEls = document.getElementById("mainNav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);