<!--
	var processing = 'Preverjam podatke<br /><img src="img/processing.gif" />';
	var mapHolder = document.getElementById('mapHolder');
	$(mapHolder).hide();

	var mapWidt  = 500;
	var mapHeight= 450;
	function showCenterMap(point){
		mapHolder.style.top = point.y + "px";
		mapHolder.style.left = point.x + "px";
		mapHolder.style.width = mapWidt+"px";
		mapHolder.style.height = mapHeight+"px";
	}
	showCenterMap(window.center({width:mapWidt,height:mapHeight}));
	function showMap(){
		$(bgProcess).fadeIn("slow",function(){
 			$(mapHolder).fadeIn("slow");
		});
	}
	function closeMap(){
		$(mapHolder).fadeOut("slow",function(){
			$(bgProcess).fadeOut("fast");
		});	
	}
	function closeMsg(){
		$(mailMsg).fadeOut("slow",function(){
			$(bgProcess).fadeOut("fast",function(){
				mailMsgTxt.innerHTML = processing;
			});
		});
	}
	function showProcessing(){
		$(bgProcess).fadeIn("fast",function(){
			$(mailMsg).fadeIn("slow");
		});
	}
	function showMsg(msg){
		$(mailMsgTxt).fadeOut("fast",function(){
			mailMsgTxt.innerHTML = msg;
			$(mailMsgTxt).fadeIn("slow");
		
		});
	}
	var bgProcess = document.getElementById('bgProcess');
	var mailMsg   = document.getElementById('mailMsg');
	var mailMsgTxt= document.getElementById('mailMsgText');
	mailMsgTxt.innerHTML = processing;
	$(bgProcess).hide();
	$(mailMsg).hide();
	var mailMsgWidt  = 593;
	var mailMsgHeight= 323;
	function showCenter(point){
		mailMsg.style.top = point.y + "px";
		mailMsg.style.left = point.x + "px";
		mailMsg.style.width = mailMsgWidt+"px";
		mailMsg.style.height = mailMsgHeight+"px";
	}
	showCenter(window.center({width:mailMsgWidt,height:mailMsgHeight}));
	var leftContBottomHome    = document.getElementById('leftContBottomHome');
	var leftContBottomContact = document.getElementById('leftContBottomContact');
	var rigthContHome         = document.getElementById('rigthContHome');
	var rigthContContact      = document.getElementById('rigthContContact');
	var content               = document.getElementById('content');
	$(leftContBottomContact).hide();
	$(rigthContContact).hide();
	$("#domovBtn").hide();
	$("#contactBtnSel").hide();
//photos
	var photo_1 = document.getElementById('photo_1');
	var photo_2 = document.getElementById('photo_2');
	var photo_3 = document.getElementById('photo_3');
	var thumb_1 = document.getElementById('thumb_1');
	var thumb_2 = document.getElementById('thumb_2');
	var thumb_3 = document.getElementById('thumb_3');
	$(photo_2).hide();
	$(photo_3).hide();
	var curPhoto = 1;
	var maxPhoto = 3;
	function animate(){
		if(interval){
			for(var i=1; i < 4; i++){
				if(i == curPhoto){
					$("#photo_"+i).fadeOut(500);
					eval("thumb_"+i).src='img/thumb.gif';	
				}
			}
			if(curPhoto < maxPhoto)
				curPhoto = parseInt(curPhoto+1);
			else
				curPhoto = 1;
			$("#photo_"+curPhoto).fadeIn(2000);
			eval("thumb_"+curPhoto).src='img/thumb_sel.gif';	
		}
	}
	function animateThis(no){
		var no = parseInt(no);
		if(no != curPhoto){
			$("#photo_"+curPhoto).fadeOut(500);
			eval("thumb_"+curPhoto).src='img/thumb.gif';
			$("#photo_"+no).fadeIn(2000);
			eval("thumb_"+no).src='img/thumb_sel.gif';
			curPhoto = no;
			var interval = false;
			ticker();
		}
	}
	var interval = false;
	function ticker(){
		if(!interval){
			interval = window.setInterval('animate()',5000);
		}
	}
	ticker();
//photos
	function goHome(e){
		e.blur();
		$(rigthContContact).fadeOut("slow", function(){
			$("#domovBtnSel").fadeIn(1000);
			$("#contactBtn").fadeIn(1000);			
			$(leftContBottomHome).fadeIn(1000);
			$(rigthContHome).fadeIn("slow");
			$(".personContainer").fadeIn(1000);
		});
		$("#domovBtn").fadeOut(100);
		$("#contactBtnSel").fadeOut();	
		$(leftContBottomContact).fadeOut();
		$("#formBtns").fadeOut();
	}
	function goContact(){
		$(rigthContHome).fadeOut("slow", function(){
			$("#domovBtn").fadeIn(1000);
			$("#contactBtnSel").fadeIn(1000);	
			$(leftContBottomContact).fadeIn(1000);
			$(rigthContContact).fadeIn(1000);
			$("#formBtns").fadeIn(1000);
		});
		$("#contactBtn").fadeOut(100);
		$("#domovBtnSel").fadeOut(100);
		$(leftContBottomHome).fadeOut();
		$(".personContainer").fadeOut();
	}
	function bookmark()
	{
		var title = 'Zavarovanje Libra in Aries'
		var url   = 'http://www.zavarovanjelibra.si';
		if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		}
		else 
		if( window.external ) { // IE Favorite
			window.external.AddFavorite( url, title); }
		else 
		if(window.opera && window.print) { // Opera Hotlist
			return true; 
		}
	}
//email
	var email     = document.getElementById("email"); 
	var zadeva    = document.getElementById("zadeva");
	var sporocilo = document.getElementById("sporocilo");
	function resetForm(){
		email.value='E-mail:';
		zadeva.value='Zadeva:';
		sporocilo.value='Sporočilo:';
	}
	function submitForm(){
		showProcessing();
		var msg = '';
		if(email.value.length < 4 || email.value=='E-mail:'){
			msg+="Vpišite E-mail!<br /><br />";
		}
		else
		if (echeck(email.value)==false)
			msg = 'Vpišite pravilen E-mail!!<br /><br />';
		if(sporocilo.value.length < 11)
			msg+="Vpišite sporočilo!";
		if(msg != '')
			setTimeout('showMsg(\''+msg+'\')',2000);
		else{
			msg = 'Pošiljam...<br /><img src="img/processing.gif" />'
			setTimeout('showMsg(\''+msg+'\')',2000);
			document.myForm.submit();
			setTimeout('doIt_recheck()',2500);
		}			
	}
	function doIt_recheck(){
		var iframeResp = getContentFromIframe('myIframe');
		if(iframeResp == '')
			setTimeout('doIt_recheck()',500);
		else
		if(iframeResp == 'OK')
			showMsg('Vaše sporočilo je bilo poslano.');
		else
		if(iframeResp == 'ERROR-1')
			showMsg('Vpišite pravilen Email!');
		else
			showMsg('Prišlo je do nepričakovane napake,<br/>poizkusite ponovno!');
	}
//email
-->
