//<script type="text/javascript">



function startclock()
{
var thetime=new Date();

var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
var nsecn=thetime.getSeconds();
var nmonth=thetime.getMonth();
var ntoday=thetime.getDate();
var nyear=thetime.getYear();
if (nsecn<10)
 nsecn="0"+nsecn;
if (nmins<10)
 nmins="0"+nmins;
nmonth+=1;
if (nyear<=99)
  nyear= "19"+nyear;
if ((nyear>99) && (nyear<2000))
 nyear+=1900;

document.getElementById("clockdsp").firstChild.nodeValue=nhours+": "+nmins+": "+nsecn+" "+nyear+"-"+nmonth+"-"+ntoday;
//document.getElementById("clockdsp").firstChild.nodeValue=thetime;


setTimeout('startclock()',1000);

} 










function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
 // window.alert( 'Height = ' + myHeight );

   adj = ((myWidth - 1024)/2) ;
   //window.alert(adj);
  if (adj < 0)
{
 adj = 0;
}
return adj;
}

function fadeIn(objId,opacity)
{
    if (document.getElementById)
    {
          obj = document.getElementById(objId);
          if (opacity < 100)
        {
               opacity += 1.5;
            if (opacity>100) opacity=100;
               setOpacity(obj, opacity);
               window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 60);
          }
       
    }
}


function fadeOut(objId,opacity)
{
    if (document.getElementById)
    {
          obj = document.getElementById(objId);
          if (opacity > 0)
        {
               opacity -= 4;
            if (opacity < 0) opacity=0;
               setOpacity(obj, opacity);
               window.setTimeout("fadeOut('"+objId+"',"+opacity+")", 60);
          }
       
    }
}






function setOpacity(obj, opacity) {
opacity = (opacity == 100)?99.999:opacity; // IE/Win
obj.style.filter = "alpha(opacity:"+opacity+")"; // Safari<1.2, Konqueror
obj.style.KHTMLOpacity = opacity/100;  // Older Mozilla and Firefox
obj.style.MozOpacity = opacity/100; // Safari 1.2, newer Firefox and Mozilla, CSS3
obj.style.opacity = opacity/100;
}


function setcorr()
{
document.getElementById("pos").style.left = alertSize();
}

function movebyPIX(objId,position) {
   maxpos = 780;
 if (position < maxpos )
    {
       calclen = 260 - position + 520;
       position += 4;
       if (position > maxpos) position = maxpos;
        document.getElementById(objId).style.left  = position;
        document.getElementById("movegif").style.width  = calclen;


        window.setTimeout("movebyPIX('"+objId+"',"+position+")", 60);
     }
else
{
fadeOut(objId,100);
}



}






//</script>

