// JavaScript Document

function Click(url,param) {
	if (param == 1) { // If console
		//OpenWindow(url,800,600);
		$.fn.colorbox({width:"850px", height:"600px", opacity: "0.5", href:url+'&console=1', open:true, iframe:true}); 	

	} else {
		//OpenWindow(url,0,0)
		//window.location.href = url
		window.open(url,'new_win');
	}
}

function OpenWindow(url,w,h) {
	var left = parseInt((screen.availWidth/2) - (w/2));
	var top = parseInt((screen.availHeight/2) - (h/2));
	if (w != 0 && h != 0) {
		var windowSize = "width=" + w + ",height=" + h + ",left=" + left + ",top=" + top + ",screenX=" + left + ",screenY=" + top + ",";
	} else {
		var windowSize = "";
	}
	var windowFeatures = windowSize + "scrollbars,resizable";
	console = window.open(url, "console", windowFeatures); 
	console.focus();
}

function Newsletter() {
	$.fn.colorbox({width:"650px", height:"550px", opacity: "0.5", href:"/modules/contacts/registration.php", open:true, iframe:true}); 	
}

function Reservations() {
	$.fn.colorbox({width:"550px", height:"450px", opacity: "0.5", href:"/modules/reservations/reservation.php", open:true, iframe:true}); 	
}
	

