var ctr=0
var today=new Date()
var year=today.getFullYear()
var month=today.getMonth()+1
if (month<10) month='0'+month
var day=today.getDate()
if (day<10) day='0'+day
today=year+''+month+''+day
var smcontents=''
var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;
var browser=((n || ie) && parseInt(navigator.appVersion)>=4);
var startA=0
var stopA=0

var smwidth=740
var smheight=10
var smspeed=3

function contents(start,stop,message){
  startA=start
  stopA=stop
  if (startA>today) return
  if (stopA<today) return
  if (ctr) message='&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '+message
  smcontents=smcontents+'<nobr><font face="verdana" color="white" size="2"><b>'+message
  ctr=1;
}

function smregenerate(){
window.location.reload()
}
function smregenerate2(){
if (document.layers){
setTimeout("window.onresize=smregenerate",450)
intializesm()
}
}

function intializesm(){
document.csm01.document.csm02.document.write('<nobr>'+smcontents+'</nobr>')
document.csm01.document.csm02.document.close()
thelength=document.csm01.document.csm02.document.width
smscrollit()
}

function smscrollit(){
if (document.csm01.document.csm02.left>=thelength*(-1)){
document.csm01.document.csm02.left-=smspeed
setTimeout("smscrollit()",100)
}
else{
document.csm01.document.csm02.left=smwidth
smscrollit()
}
}

var c = 2;

function disp_img(w) {
   if (c == 6) c = 1;
   var img_src = "images/photo"+c+".jpg";
   document.ani.src = img_src;
   c++;
}

//t = setInterval("disp_img(c)", 3000);

