/*
 * main - default Javascript document
 *
 * FG Forrest, a. s. (fg.cz)
 *
 * $Date: 2009/06/25 08:27:12 $
 * $Rev: 1 $
 */
/*eval("try {document.execCommand('BackgroundImageCache', false, true);} catch(e) {}");*/

/* Obecné funkce */
function a_href(url) {
	if (url == "#") return false;
	var w = window.self;
	w.location.href = url;
	return true;
}
function targetBlank(url) {
	window.open(url);
}
function clearInput(o,defaultValue) {
	if (o.value == defaultValue ) o.value = "";
	focusObj = o;
}
function defaultInput(o,defaultValue) {
	if (o.value == "" ) o.value = defaultValue;
}
ddsmoothmenu.init({
	mainmenuid: "p-menu", //Menu DIV id
	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
	//classname: '', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

/* Aktuální projekty  - mapa */
function hideRegion() {
	if(!actRegion){
		actRegion = 0;	
	}
	$("#region").css({'background-position' : '0px -'+(actRegion*195)+'px'});
	return false;
}
	
function showRegion(regionIndex) {
	$("#region").css({'background-position' : '0px -'+(regionIndex*195)+'px'});
	return false;
}
