<!--

var is = "Istanbul "
var screenWidth = screen.Width;
var screenHeight = screen.Height;
var cie, cns, cop, cie4, cie5, cie6, cns4, cns5, cns6
    cie   = (navigator.appName == "Microsoft Internet Explorer");
    cns   = (navigator.appName == "Netscape");
    cop = (navigator.appName == "Opera");
    cie4 = (navigator.userAgent.indexOf("MSIE 4") > 0);
    cie5 = (navigator.userAgent.indexOf("MSIE 5") > 0);
    cie6 = (navigator.userAgent.indexOf("MSIE 6") > 0);
    cns4 = (cns && parseInt(navigator.appVersion) == 4);
    cns5 = (cns && parseInt(navigator.appVersion) == 5);
    cns6 = (cns && parseInt(navigator.appVersion) == 6);


if(cns4) {
   var toolkit = java.awt.Toolkit.getDefaultToolkit();
   var screen_size = toolkit.getScreenSize();
   screenWidth = screen_size.width;

    if (screenWidth == 800)
     screenWidth = 775;
    else if (screenWidth == 1024)
     screenWidth = 994;
    else if (screenWidth == 1152)
     screenWidth = 1122;
    else if (screenWidth == 1280)
     screenWidth = 1250;
    else 
     screenWidth = 1570;

   document.write('<layer id="clock" width="'+screenWidth+'" left="0" top="0"></layer>');
}



Months = new Array()
  Months[0]="01"
  Months[1]="02"
  Months[2]="03"
  Months[3]="04"
  Months[4]="05"
  Months[5]="06"
  Months[6]="07"
  Months[7]="08"
  Months[8]="09"
  Months[9]="10"
  Months[10]="11"
  Months[11]="12"

function upclock(){

var mon = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");

var dte = new Date();
var hour = dte.getUTCHours()+2;
var mint = dte.getMinutes();
var sec = dte.getSeconds();
var date = dte.getDate();
var month = mon[dte.getMonth()];
var year = dte.getFullYear();

if (hour == 0) hour=12;
if (hour==24) hour=0;
if (hour==25) hour=1;
if (hour==26) hour=2;
if (date<10) date="0"+date;
if (hour<10) hour="0"+hour;
if (mint<10) mint="0"+mint;
if (sec<10) sec="0"+sec;

if(cns4) {
document.clock.document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+screenWidth+'" height="60"');
document.clock.document.write('<tr>');
document.clock.document.write('<td width="'+screenWidth+'" height="60" valign="bottom" align="right" class="time">');
document.clock.document.write('<font class="time"><b>'+is+' '+hour+':'+mint+':'+sec+'&nbsp;&nbsp;&nbsp;'+month+'. '+date+'&nbsp;&nbsp;'+year+'</b></font>');
document.clock.document.write('</td>');
document.clock.document.write('</tr>');
document.clock.document.write('</table>');
document.clock.document.close();
}

if (cns6 || cns5) {
document.getElementById("clock").innerHTML = '<font class="time"><b>'+is+' '+hour+':'+mint+':'+sec+'&nbsp;&nbsp;&nbsp;'+month+'. '+date+'&nbsp;&nbsp;'+year+'</b>&nbsp;&nbsp;';
}

if (cie4 || cie5 || cie6 || cop){
clock.innerHTML = '<font class="time"><b>'+is+' '+hour+':'+mint+':'+sec+'&nbsp;&nbsp;&nbsp;'+month+'. '+date+'&nbsp;&nbsp;'+year+'</b></font></span><img src="img/transbg.gif" alt="Istanbul Turkey Travel & Hotels" width="5" height="5">'
}
}

setInterval("upclock()",1000);


//-->