function DelayedRedirect()
{
setTimeout('Preusmerizdaj()',5000);
}

function Preusmerizdaj()
{
	document.location = "http://www.asteko.si";
}

function bookIt(argVal,arg2)
{
if (document.all)
	window.external.AddFavorite(argVal, arg2);
else
	alert("Sorry. Not IE users must bookmark the pages manually by hitting <Ctrl-D>");
}

function displayHTML(printContent) 
{
var inf = printContent;
var HeadText;
win = window.open("print.htm", 'popup', 'width=600,resizable=yes, scrollbars=yes, menubar=no, toolbar = no, status = no');
win.document.write ("<html><head><LINK HREF='skins/default/themes/classic/print.css' REL='stylesheet' TYPE='text/css' ></head><body>");
win.document.write("<table cellpadding='0' cellspacing='0' border='0' width='100%' ><tr><td><img src='images/site/logo.png'></td> <td align='right' valign='bottom'><a href=javascript:window.print();><input type=image src='images/site/print.gif' align='absmiddle'> Natisni</a>&nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;<a href=javascript:window.close();>Zapri okno</a></td></tr></table>");
win.document.write("<hr>");
win.document.write(inf);
win.document.write("<hr>");
win.document.write ("<center><b>GSM.:</b>+386 (31) 352 288 | <b>GSM:</b> +386 (40) 219 490  <br> <b> E-mail:</b> <a href='mailto:info@asteko.si'>info@asteko.si</a>  | <b>Web:</b> <a href='http://www.asteko.si'>http://www.asteko.si</a></center><br>");
win.document.write("<center><a href=javascript:window.print();><input type=image src='images/site/print.gif' align='absmiddle'> Natisni</a>&nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;<a href=javascript:window.close();>Zapri okno</a></center>");
win.document.write("</body></html>");
win.document.close();
}

function TellAFriend() 
{
	document.write('<A CLASS="contact" HREF=\"mailto:\?Subject\=Pošljam ti naslov&body=Poglej si stran: ' + escape(window.location) + '\" onMouseOver="window.status=\'Pošlji prijatelju\'; return true"><img src="/images/site/friend.jpg" alt="Pošlji prijatelju" border="0"><\/A>');
}
function viewPic(img)
{ 	
    picfile = new Image(); 
    picfile.src =(img); 
    fileCheck(img); 
}
function fileCheck(img)
{ 	
    if( (picfile.width!=0) && (picfile.height!=0) )
    { 
        makeWindow(img); 
    }
    else 
    {
        funzione="fileCheck('"+img+"')"; 
        intervallo=setTimeout(funzione,50); 
    }
}
function makeWindow(img)
{ 	
    ht = picfile.height + 20;
    wd = picfile.width + 20; 

    var args= "height=" + ht + ",innerHeight=" + ht;
    args += ",width=" + wd + ",innerWidth=" + wd;
    if (window.screen) 
    { 
        var avht = screen.availHeight; 
        var avwd = screen.availWidth;
        var xcen = (avwd - wd) / 2; 
        var ycen = (avht - ht) / 2;
        args += ",left=" + xcen + ",screenX=" + xcen;
        args += ",top=" + ycen + ",screenY=" + ycen + ",resizable=yes"; 	
    }
    return window.open(img, '', args); 
}
