
function clearOnFocus(elementId){
	var x = document.getElementById(elementId);
	var xstring = x.value;var ystring = "";
	x.value = xstring;x.onfocus = function(){if(this.value == xstring) {this.value = ystring;}};
	x.onblur = function(){if(this.value == ystring) {this.value = xstring;}};
}

var msie = false; if(String(navigator.userAgent).indexOf("MSIE")>-1){msie=true;}

$(document).ready(function(){
	$('a._blank"').click(function(){window.open(this.href); return false;});

	$('.datepick').datepicker({inline: true, dateFormat: 'dd/mm/yy'});

	$("a.youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
	$("a.iframe").colorbox({iframe:true, innerWidth:"80%", innerHeight:"80%"});
	$('a[rel*=lightbox]').colorbox({transition:"fade",slideshow:true,slideshowAuto:false,slideshowSpeed:4000});


});
