var currentSlide=Math.floor(Math.random()*9);

function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}

function margins()
{

var width=0;
if (window.innerWidth)
    {
    width=window.innerWidth;
    }
  else if (document.documentElement && document.documentElement.clientWidth)
    {
     width=document.documentElement.clientWidth;
    }    
  else if (document.body)
    {
    width=document.body.clientWidth;
    }
var margin=(width-800)/2;
if(width>800)

document.getElementById("wrapper").style.left=margin+"px";

else
document.getElementById("wrapper").style.left="0px";
}

function slideShow()
{

var tmp=Math.floor(Math.random()*9);
while(tmp==currentSlide)
{
	tmp=Math.floor(Math.random()*9);
}
currentSlide=tmp;
document.getElementById("slide").src="img-naslovna/naslovna"+currentSlide+".jpg";

}
