// JavaScript Document
$(document).ready(function() {
	externalLinks();
	$('#bottomnav a.thickbox').each(function(){
		this.href = (this.href + "?KeepThis=true&amp;TB_iframe=true&amp;height=400&amp;width=600").replace(/spages/,"ispages");	
	});
	$('.required').focus(
		function(){
			clearDefault(this);
		}
	);
});


function clearDefault(el) {
  if (el.value=="Required" | el.value=="Search" | el.value=="Product search") {el.value = ""}
}

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
