function clearDefault(el) {
  if (el.defaultValue==el.value) 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";
   }
 }
}


$(document).ready(function() {


    $('#lbgallery dd a').lightBox({fixedNavigation:true});
	
    $('body#surfboardspage #content a[@rel*=lightbox]').lightBox();
	$('body#surfboardspage #content a.lightbox').lightBox();
	$('body#infopage #content dd a.lightbox').lightBox();
	$("#tabs a").each(function() {
		$(this).addClass("exclude");
	});

	$(".striped tr:not(.exclude)").mouseover(function() {
		$(this).addClass("over");
	});

	$(".striped tr").mouseout(function() {
		$(this).removeClass("over");

	});


});



