//------------------------- osnovni podaci o Site-u -------------------
var SiteUrl = "http://www.sentovicapartments.netfirms.com/"
var SiteName = "Sentovic Apartments"
var WebmasterName = "Webmaster: M@re"
var WebmasterMail = "mailto:marija.barkidija@gmail.com"
var Copyright = "Copyright © 2009 Sentovic Apartments!  All rights reserved."
//------------------------- osnovni podaci o Site-u kraj ---------------  




// JScript source code
function LastUpdated_HR() {  //za ispisivanje datuma u hrvatskom formatu
  var modDate = new Date(document.lastModified)
  var modMonth = modDate.getMonth()+1
  var modYear = modDate.getYear()
  var modDay = modDate.getDate()
  if(modDay<10) modDay = "0" + modDay
  if(modMonth<10) modMonth= "0" + modMonth 
  if(modYear<1000) modYear+=1900
       
  document.write("Last updated on: " + modDay + "." + modMonth + "." + modYear+"")
}


function LastUpdated() {
	document.write("Last updated on: " + document.lastModified +".");
}


function addtofavorite() {
       //if( window.external ) { external.AddFavorite( location.href, '' ); }
        if( window.external ) { external.AddFavorite( SiteUrl, SiteName ); }  // ponovo
        else { alert( "Your browser does not support this feature.  If you are using Netscape Navigator --\n" + "Click \"Bookmarks\" and then \"Add Bookmark\"  or type \"Ctrl+D\" to add this site to your favorites." ); }
      }


//function jsClock24hr(){
//  var time = new Date()
//  var hour = time.getHours()
//  var minute = time.getMinutes()
//  var second = time.getSeconds()
//  var temp = "" + ((hour &lt; 10) ? "0" : "") + hour
//  temp += ((minute &lt; 10) ? ":0" : ":") + minute
//  temp += ((second &lt; 10) ? ":0" : ":") + second
//  document.clockForm24hr.digits.value = temp
//  id = setTimeout("jsClock24hr()",1000)
//}

//POZIV SATA
//<BODY ONLOAD="jsClock24hr()"> 
//
//<FORM NAME="clockForm24hr">
//<FONT face="Courier New,Courier" size=3>
//<INPUT TYPE="text" NAME="digits" SIZE=8 VALUE="Loading">
//</FONT>
//</FORM>





 function InsertFooter(){  //MB automatski se ubaciva footer
 document.write("<DIV class="+"CopyRight"+"><hr>| <A onclick="+"addtofavorite();" +" href="+"javascript:;"+">Add to favorite</A> | <A href="+"mailto:sentovicapartments@yahoo.com"+">Write to us</A> |<BR><script>LastUpdated_HR()</script><BR>Copyright &copy 2005-2009 Sentović Apartments!&nbsp; All rights reserved.<BR>Webmaster: <A href="+"mailto:marija.barkidija@gmail.com"+">M@re</A></DIV>")
 }

 function pali_gasi( nekiObject, color ) {
    document.getElementById( nekiObject ).style.background = color;
  }

  function set_color( nekiObject, color ) {
    document.getElementById( nekiObject ).style.background = color;
  }

  function openNewWindow3( URLtoOpen, windowName, properties ) {
    var sirina = document.body.clientWidth;
    var visina = document.body.clientHeight;
    var sredinas = sirina/2 - 260;
    var sredinav = visina/2 - 100;
    var properties = "height=300,width=400,top=" + sredinav + ",left=" + sredinas + ",location=no,scrollbars=no,menubar=no,toolbar=yes,resizable=no";
    newWindow = window.open( URLtoOpen, windowName, "height=350,width=450,top=" + sredinav + ",left=" + sredinas + ",location=no,scrollbars=no,menubar=no,toolbar=no,resizable=no" );
  }

  function popUp( URL ) {
    eval( "page" + " = window.open( URL, '" + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=376,height=400' );" );
  }

  function openTarget( form, features, windowName ) {
    if( !windowName ) { windowName = 'formTarget'; }
    form.target = windowName;
    open( '', windowName, features );
  }

 function OpenFile(file) {
   w = window.open('/images/'+file,'Naslov','scrollbars=yes,resizable=yes,width=790,height=540');
   w.focus();
}
