	// default status
		window.defaultStatus='Autooglasi - Menadzer Company d.o.o.';
	// funkcije za onmouseover promenu druge slike
		swDrugi = new Image;
		swDrugi.src = "../common/meni_strel_a.gif";
			
		function CPic(Name) {
			SwitchImg = "../common/meni_strel_a.gif";
			document.images[Name].src = SwitchImg;
		}
		
		function RPic(Name) {
			SwitchImg = "../common/meni_strel.gif";
			document.images[Name].src = SwitchImg; 
		}
		
	// funkcije za onmouseover promenu iste slike	
		for (var i=1; i < 17; i++) {
			swIsti = new Array();		
			swIsti[i] = new Image;
			// swIsti[i].src = "../common/<?php echo $jezik ?>/cl_" + i + "a.gif";	
			swIsti[i].src = "../common/cl_" + i + "a.gif";	
		}	
			
		function ChangePic(Name) {
			// SwitchImg = "../common/<?php echo $jezik ?>/" + Name + "a.gif";
			SwitchImg = "../common/" + Name + "a.gif";
			document.images[Name].src = SwitchImg; 
		}

		function ReturnPic(Name) {
			// SwitchImg = "../common/<?php echo $jezik ?>/" + Name + ".gif";
			SwitchImg = "../common/" + Name + ".gif";
			document.images[Name].src = SwitchImg; 
		}
		
	// popup funkcije
		function ShowInfo(cURL) {
			try {
				sl.document.close();
				sl.document.write("<html><head><title>Oglasi</title></head><body onblur='self.close()' marginheight=5 marginwidth=5 topmargin=5 leftmargin=5 bgcolor=#F1F1F1><center><img src='" + cURL + "'");
				sl.document.write(' onLoad="');
				sl.document.write("javascript: window.resizeTo(document.images('slika').width + 60, document.images('slika').height + 120)");
				sl.document.write('" id="slika" name="slika" ');
				sl.document.write("border=1><br><img src='../common/_empty.gif' width=1 height=4 border=0><br><div align=center><a href='javascript:window.close()'><img src='../common/l_close.gif' border='0'></div></center></body></html>");				
				sl.focus();
			}	
			catch(e) { 
				// window.open("Sample.htm",null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
				sl = window.open('../popup.htm', null, 'width=300,height=300,scrollbars,resizable'); 
				sl.document.write("<html><head><title>Auto Oglasi</title></head><body onblur='self.close()' marginheight=5 marginwidth=5 topmargin=5 leftmargin=5 bgcolor=#F1F1F1><center><img src='" + cURL + "'");
				sl.document.write(' onLoad="');
				sl.document.write("javascript: window.resizeTo(document.images('slika').width + 60, document.images('slika').height + 120)");
				sl.document.write('" id="slika" name="slika" ');
				sl.document.write("border=1><br><img src='../common/_empty.gif' width=1 height=4 border=0><br><div align=center><a href='javascript:window.close()'><img src='../common/l_close.gif' border='0'></div></center></body></html>");				
			}
		}
		
		function ZatvoriZorpro() {
			try {
				sl.close();
			}	
			catch(e) { 
			}
		}
		
		function PopUpe(gde) {
   				 msgWindow=window.open(gde,
                "popupe",
                "width=340,height=340,toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no"
                );
				msgWindow.focus();				
		}	
		
		function MenuPreko(ko, shta) {
			if (shta == 'over') {
				document.getElementById(ko).className = "menuitempreko";
			} else {
				document.getElementById(ko).className = "menuitem";
			}
		}
		
		function MenuNasPreko(ko, shta) {
			if (shta == 'over') {
				document.getElementById(ko).className = "menunaspreko";
			} else {
				document.getElementById(ko).className = "menunas";
			}
		}
	
		function TblOver(ko, statustxt) {
			document.getElementById(ko).style.backgroundColor = '#DEE7FF';
			window.status = statustxt;
		}

		function TblOut(ko) {
			document.getElementById(ko).style.backgroundColor = '#ffffff';
		}
		// upon funkcije
		function ButtonOver(statustxt) {
			if(window.event) window.event.srcElement.style.backgroundColor = 'Black';
			window.status = statustxt;
		}

		function ButtonOut() {
			if(window.event) window.event.srcElement.style.backgroundColor = 'Gray';
		}

		function FormOver(statustxt, bckcolor) {
			var bckcolor = (bckcolor == null) ? '#DDDDDD' : bckcolor;
            if(window.event) window.event.srcElement.style.backgroundColor = bckcolor;
			window.status = statustxt;
		// 	#6981DA #D3EDFF
		}

		function FormOut(bckcolor) {
			var bckcolor = (bckcolor == null) ? '#ffffff' : bckcolor;
            if(window.event) window.event.srcElement.style.backgroundColor = bckcolor;

		}

		function OGrp(grp) {
			document.location = '/oglasi/oglasi.php?gpx=' + grp;
		}

        function LoadBanerFromOpenX(campID) {
          var m3_u = (location.protocol=='https:'?'https://www.malioglasi.ws/ox/www/delivery/ajs.php':'http://www.malioglasi.ws/ox/www/delivery/ajs.php');
          var m3_r = Math.floor(Math.random()*99999999999);
          if (!document.MAX_used) document.MAX_used = ',';
          document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
          document.write ("?campaignid="+campID+"&amp;target=_blank");
          document.write ('&amp;cb=' + m3_r);
          if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
          document.write ("&amp;loc=" + escape(window.location));
          if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
          if (document.context) document.write ("&context=" + escape(document.context));
          if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
          document.write ("'><\/scr"+"ipt>");
        }
