﻿			//<!--
			
			
			function showMenu (menuId) {
				var d=document;
				
				if (d.currentMenu == 'undefined') {
					d.currentMenu = menuId;
				}
				// hide previous menu
				hideMenu(d.currentMenu);
				
				// show/hide the desired menu layer
				MM_showHideLayers(menuId+'MenuLayer','','show');
				
				// set current menu
				d.currentMenu = menuId;
			}
			
			function hideMenu (menuId) {
				MM_showHideLayers(menuId+'MenuLayer','','hide');
			}
			
			function setClassName(id, newClass) {
				// return true;
				var oElem = MM_findObj(id);

				//alert(oElem.id);

				if ((oElem != null) && (oElem != 'undefined') && (oElem != '')) {
//alert('here');
					// switch color
					oElem.className=newClass;
				}
			}
		
			function hoverTextOn(menuId) {
				// return true;
				var oElem = MM_findObj(menuId);
				
				var d=document;
				
				if (d.currentId == 'undefined') {
					d.currentId = menuId;m 
				}
				d.curStyle = oElem.style.color;
				
				// switch color
				oElem.style.color= 'red';

				// set menuId
				d.currentId = menuId;
			}
			
			function hoverTextOff() {
				//return true;
				var d=document;
				if (d.currentId != 'undefined') {
					var oElem = MM_findObj(d.currentId);
				}
				// switch color
				oElem.style.color= d.curStyle;

				// set menuId
				d.currentId = '';
				d.curStyle='';
			}
			
			function setStatus() {
				// cancel multiple event raising
				window.event.cancelBubble=false;
// debug
//alert('');
//end debug
				// display status text
				window.status='';				
						
				// return true, so text is displayed until next event
				window.event.returnValue=true;
				window.focus();
				
				//alert(window.status);
			}

			function showTextLayer(textId) {
				var d=document;
				
				if (d.currentTextId == 'undefined') {
					d.currentTextId = textId;
				}
				
				// hide previous layer and show current layer
				MM_showHideLayers(d.currentTextId+'TextLayer', '', 'hide', textId+'TextLayer', '', 'show');

				// set menuId
				d.currentTextId = textId;
			}
			
			function showElem(elemId) {
				// return true;
				var oElem = MM_findObj(elemId);
				
				var d=document;
				
				if (d.currentElemId == null) {
					d.currentElemId = elemId;
				}
				var oStyle= oElem.style;
				
				// switch color
				oStyle.visibility = 'visible';

				// set menuId
				d.currentElemId = elemId;
			}
				
			function hideElem() {
				//return true;
				var d=document;
				
				if (d.currentElemId != null) {
					var oElem = MM_findObj(d.currentElemId);
				
					// switch color
					var oStyle = oElem.style;
					oStyle.visibility = 'hidden';
				}
				
				// set menuId
				d.currentElemId = null;
			}
			
			
			function showHideElem(elemId) {
				// return true;
				var oElem = MM_findObj(elemId);
				
				var oStyle= oElem.style;
				
				if (oStyle.display == '') {
					oStyle.display='none';
					return ('');
				} else {
					oStyle.display='';
					return ('up');
				}
			}
						
			function setCurrentElem() {
				var d=document;
				var oldElemId=d.currentElemId; // save element id for later use
				
				// set the current element id to static element id
				if (d.staticElemId != null) {
					d.currentElemId = d.staticElemId;
					// set the class of the link to black
					var oElem = MM_findObj(d.currentElemId + 'link');
				
					oElem.className='certlink';
				}
				// hide the element
				hideElem();
				
				if (oldElemId != null) {
					// switch back to original element
					d.currentElemId = oldElemId;
				}
				// show the line
				showElem(d.currentElemId);
				
				// set static element to current element
				if (d.currentElemId != null) {
					d.staticElemId = d.currentElemId;
					
					// set the class of the link to black
					var oElem = MM_findObj(d.currentElemId + 'link');
					
					// switch color
					oElem.className = 'certaltlink';
				}
			}
			
			function setElem(elemId) {
					var d=document;
					d.currentElemId = elemId;
					setCurrentElem();
			}
			
			function hideCertElem() {
				//return true;
				var d=document;
				
				if ((d.staticElemId == null) || (d.staticElemId == '') || (d.staticElemId == 'undefined')) {
					hideElem();
				} else {
					if (d.currentElemId != d.staticElemId) {
						hideElem();
					}					
				}
				
				// set menuId
				d.currentElemId = null;
			}

			function hideCopy () {
				MM_showHideLayers('c'+iCount, '', 'hide');
				iCount +=1; 
				if (iCount >2) {
					iCount=1;
					showTimer = setTimeout("showCopy()", 20000);
				} else {
					showTimer = setTimeout("showCopy()", 2000);
				}
			}
			
			function showCopy () {
				MM_showHideLayers('c'+iCount, '', 'show');
			  showTimer = setTimeout("hideCopy()", 4000);
			}
			
			function showCLine(linenum) {
					var oElem = MM_findObj('c');
					oElem.innerHtml
			}

			function verScroll(id, dir, spd) {
				
				var oLayer = MM_findObj(id);
				spd = parseInt(spd);
				
				var page = oLayer.style;
				
				
				var y_pos=parseInt(page.top);
				var x_pos=page.left;
				alert('04-'+page.left);
				
				switch (dir) {
					case "dn": {
						page.top = (y_pos - spd);
						break;
					}
					case "up": {
						break;
						if (y_pos < 10) {
							page.top = (y_pos + spd);
						}
					}
					case "top": {
						page.top = 10;
						break;
					}
					case "left": {
						page.left=10;
						break;
					}
					case "rt": {
						if (x_pos < 10) {
							page.left = (x_pos - spd);
						}				
						break;
					}
					case "lt": 
						page.left = (x_pos + spd);
						break;
					default:{
						break;
					}
				}
			}
			
			function startScroll(id, direction, speed) {
				var d=document;

				// start scrolling and save scrolltimer value
				d.scrolltimer = setTimeout("verScroll('" + id + "', '" + direction + "'," + speed + ")", 50);
			}
			
			function stopScroll() {
				
				var d=document;
				
				// stop scrolling
				clearTimeout(d.scrolltimer);
				
				// clear scrolltimer value
				d.scrolltimer=null;
			}
			
			function addHtml(form) {
				var oForm = MM_findObj(form);
				
				iNumAdds++;
				
				var sHtml='';
				sHtml+='<table class="feed" border="0" cellpadding="0" cellspacing="0">';
				sHtml+='<tr><td colspan="2" height="10" style="height:10px"></td></tr>';
				sHtml+='<tr><td colspan="2">Sovoznica '+iNumAdds+':</td><td>';
				sHtml+='<tr><td colspan="2" height="10" style="height:10px"></td></tr>';
				sHtml+='<tr>';
				sHtml+='	<td width="160" style="width:160px; padding-left:5px">Ime:</td>';
				sHtml+='	<td width="120" style="width:120px" align="right"><input type="text" name="sovoznica'+iNumAdds+'_ime" class="box" style="position:relative; top:-1px;" /></td>';
				sHtml+='</tr>';
				sHtml+='<tr>';
				sHtml+='	<td width="160" style="width:160px; padding-left:5px">Priimek:</td>';
				sHtml+='	<td width="120" style="width:120px" align="right"><input type="text" name="sovoznica'+iNumAdds+'_priimek" class="box" style="position:relative; top:-1px;" /></td>';
				sHtml+='</tr>';
				sHtml+='<tr>';
				sHtml+='	<td width="160" style="width:160px; padding-left:5px">Naslov:</td>';
				sHtml+='	<td width="120" style="width:120px" align="right"><input type="text" name="sovoznica'+iNumAdds+'_kraj" class="box" style="position:relative; top:-1px;" /></td>';
				sHtml+='</tr>';
				sHtml+='<tr>';
				sHtml+='	<td width="160" style="width:160px; padding-left:5px">Tel. številka:</td>';
				sHtml+='	<td width="120" style="width:120px" align="right"><input type="text" name="sovoznica'+iNumAdds+'_tel" class="box" style="position:relative; top:-1px;" /></td>';
				sHtml+='</tr>';
				sHtml+='<tr>';
				sHtml+='	<td width="160" style="width:160px; padding-left:5px">e-mail:</td>';
				sHtml+='	<td width="120" style="width:120px" align="right"><input type="text" name="sovoznica'+iNumAdds+'_email" class="box" style="position:relative; top:-1px;" /></td>';
				sHtml+='</tr>';
				sHtml+='</table>';
				
				
				var sPrevHtml=oForm.innerHTML ;
				oForm.innerHTML =sPrevHtml+sHtml;
			}
			
			var iNumAdds=1;
			
			var sTemp;
//			var iCount =1;
//			var showTimer;
//			showTimer = setTimeout("showCopy()", 4000);
			
				//alert('loaded');
//--> end hide JavaScript
	
