<!--
var loaded = false;
var imgsOn = new Array(8);
var imgsOff = new Array(8);
var imgsOK = new Array(8);

function loadImages() {
	if (loaded == false) {
		newImage( 'kajje'   , 'G-2_08' );
		newImage( 'vzorec'  , 'G-2_09' );
		newImage( 'cenik'   , 'G-2_10' );
		newImage( 'faq'     , 'G-2_11' );
		newImage( 'ema'     , 'G-2_12' );
		newImage( 'storitve', 'G-2_13' );
		newImage( 'pisi'    , 'G-2_14' );
		newImage( 'naroci'  , 'narocam_0_01' );
		loaded = true;
		return (loaded);
	}
}

function newImage( imgIndex, imgFileName ){
	imgsOn[imgIndex] = new Image();
	imgsOn[imgIndex].src = "images/" + imgFileName + "-over.gif";
	imgsOff[imgIndex] = new Image();
	imgsOff[imgIndex].src = "images/" + imgFileName + ".gif";
	imgsOK[imgIndex] = new Image();
	imgsOK[imgIndex].src = "images/" + imgFileName + "_OK.gif";
}


function on(imgName) {
    if (document.images && (loaded == true)) {
        document[imgName].src = imgsOn[imgName].src;
    }
    return true;
}

function off(imgName) {
    if (document.images && (loaded == true)) {
        document[imgName].src = imgsOff[imgName].src;
    }
    return true;
}

function OK(imgName) {
    if (document.images && (loaded == true)) {
        document[imgName].src = imgsOK[imgName].src;
    }
    return true;
}


function openWin(myurl, width, height, windowName){
	// open new window with url - for help, mesages, etc
	window1 = window.open(myurl, windowName,"width="+width+",height="+height+",resizable=1,status=1,menubar=0,scrollbars=1");
	window1.focus();
}
function openFullWin(myurl){
	// open new window with url - for help, mesages, etc
	window2 = window.open(myurl);
	if (window2) {
	    window2.focus();
	}
}
// webbot stopper: send email with click
function mpost(sendName,sendAt){ 
	openFullWin('mailto:' + sendName + '@' + sendAt)
}
// webbot stopper: write email on page (usage: "<script>post(sendName, sendDomain [,showName or text][, showDomain])</script>")
function post(sendName,sendAt,showName,showAt,newWindow){ 
	if (showName ==null){showName=sendName;showAt=sendAt};
	sendName='mailto:'+sendName;
	if (showAt!=null){showAt='@'+showAt}else{showAt=''}; 
	document.write('<a href="' + sendName + '@' + sendAt + '">' + showName + showAt + '</a>');
}


//-->

