//Google Tracking code
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-1118031-2");
pageTracker._trackPageview();
} catch(err) {}
// end Google Tracking code

// JavaScript Document
// Example:

// simplePreload( '01.gif', '02.gif' ); 

function simplePreload()

{ 

  var args = simplePreload.arguments;

  document.imageArray = new Array(args.length);

  for(var i=0; i<args.length; i++)

  {

    document.imageArray[i] = new Image;

    document.imageArray[i].src = args[i];

  }

}


function coloron(row){row.style.backgroundColor="#8686BD";}
function coloroff(row){row.style.backgroundColor="#000066";}
var borisbaner=1;

function banner(){
if (borisbaner==1){
	document.getElementById("borisban").src="/images/baner-veliki-2.jpg";
	borisbaner=2;}
else {
document.getElementById("borisban").src="/images/baner-veliki-1.jpg";
	borisbaner=1;}
bannerchange = window.setTimeout("banner();", 5000);
}
function getTime() {
now = new Date();
later = new Date("Nov 23 2003 7:00:01"); //later = new Date("Nov 23 2003 0:07:01"); izlistati ce americko vrijeme
days = (later - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (later - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (later - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (later - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);

if (daysRound<10){daysRound='0'+daysRound}
if (hoursRound<10){hoursRound='0'+hoursRound}
if (minutesRound<10){minutesRound='0'+minutesRound}
if (secondsRound<10){secondsRound='0'+secondsRound}
// skini komentar donje linije
//document.getElementById("txtcount").innerHTML=(daysRound + ':' + hoursRound + ':' + minutesRound + ':' + secondsRound);
newtime = window.setTimeout("getTime();", 1000);
}
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
function picklick(slika){
 popUpWindow(''+slika,0,0,600,600);
}
function submitform(){
document.vote.submit();
//popUpWindow('results.php',0,0,500,400);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }}