$(document).ready(function() {
	$('input.default-value').each(function() {
		$(this).focus(function() {
			if ($(this).attr('title') == $(this).attr('value')) {
				$(this).attr('value', '');
				$(this).removeClass('default-value');
			}
		});
		$(this).blur(function() {
			if (!$(this).attr('value')) {
				$(this).attr('value', $(this).attr('title'));
				$(this).addClass('default-value');
			}
		});
	});
	
	jQuery('#menu-outstanding').jcarousel({
		scroll: 5
	});
	
	$('a[@rel*=lightbox]').lightBox();
});

function openTargetBlank(e){

   var className = 'external';

   if (!e) var e = window.event;
   var clickedObj = e.target ? e.target : e.srcElement;

   if(clickedObj.nodeName == 'A' )
    {
      r=new RegExp("(^| )"+className+"($| )");
      if(r.test(clickedObj.className)){
         window.open(clickedObj.href);
         return false;

      }
    }
}

function goBack() {
	var volver = document.getElementById("volver");
	if (volver != null) {
	  volver.onclick = function(){
	    window.history.go(-1);
	    return false;
 	  }
	}
}
