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";
 }
}

function fullScreen(theURL) {
	window.open(theURL, '', 'fullscreen=yes, resizable=yes, scrollbars=yes');
}


function openWindow(path, name, width, height) {

   var winl = (screen.width - width) / 2;
   var wint = (screen.height - height) / 2;

   style = eval("'status=no,width="+width+",height="+height+",left="+winl+",top="+wint+",resizable=no,menubar=no,scrollbars=yes,toolbar=no'");
   window.open(path, name, style) ;
}

window.onload = function() { 

	/*$(".vtour").click( function() {
		$(this).attr("target","");
		openWindow($(this).attr("rel"),'vt',800,600);
		return 0;			
	});
	$(".vtour").attr("href","javascript:void(0);");*/

	externalLinks(); 

    jQuery(function($){
		$(".book").find("li").hover(function() { $(this).addClass('over'); },function() { $(this).removeClass('over'); });
        $(".terminS").datepicker({tipSobota: 'true', showOn: 'both', 
			buttonImage: '/img/kalendar.gif', buttonImageOnly: true}); 
		$(".terminSB").datepicker({tipSobota: 'true'});       

		$("div#left").find("li").hover(function() { $(this).addClass('over'); },function() { $(this).removeClass('over'); });
 
    });
}


function checkEmail(val) {

    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(val)){
         return (true)
    }
    return (false)
}