//
// ZoomFade 
//   Copyright (C) 2002 by Styler
//   Visit for more great scripts!
//   This may be used and changed freely as long as this msg is intact!
//   We will also appreciate any links you could give us.
//   Visit http://gorod.ck.ua 
//

function lib_bwcheck(){ // Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new lib_bwcheck()


// Here are the variables you have to set, play with different values:                                                                 
// First the text: (it will stop and fade/change the colors on the last one)
zText=new Array('Now Open!','&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;New Location!','Indianapolis, IN.','Now open in Indianapolis, IN.')
  
// Now the colors:
// all you have to do is set the color you want to have in here: 
// (the first color will be the color that the text is when it zooms.)
zColor=new Array('#023F80','#FF0000')
 
var zEndSize=40   // The fontsize in px you want the zoom to end at
var zSpeed=175    // Zoom speed
var zAddSize=5    // Px to add to the fontsize on each interval
var zFadeSpeed=500 // Color change/fade speed
var zFont='arial black,arial,helvetica,sans-serif' // Font
var zHide=true    // do you want it to hide when its done? (true or false)
var zHideWait=4000  // Time to wait before hiding
var zStartSize=10 // The size to start at
// Code to execute when the zoom and fade is finished. ie: "location.href='newpage.html'
// executes when the hide does.
var zEndCode=""

// You can remove this if you don't want it to start right away.
//You can have it start if someone clicks a link (make a link like this:
//<a href="#" onclick="fadeInit()">Click to Zoomtext</a>)
// onload=zoomInit;

// You shouldn't really have to set anything below this point

// Object functions
function makeZoomObj(obj,font,size,endsize,color,text,zspeed,fadespeed,addsize,hide,hidewait,endcode){
   	this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;	
   	this.writeref=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj].document:0;	
	this.zoomWrite=b_zoomWrite;	this.zoomIt=b_zoomIt; this.fadeIt=b_fadeIt;	this.zoomFade=b_zoomFade;
	this.font=font; this.color=new Array(); this.color=eval(color);	this.text=new Array(); this.text=eval(text);
	this.zspeed=zspeed; this.fadespeed=fadespeed; this.addsize=addsize; this.endcode=endcode
	this.hide=hide; this.hidewait=hidewait; this.size=size; this.startsize=size; this.endsize=endsize
	if(size<endsize){this.way="<"; this.addsize=this.addsize
    }else{this.way=">"; this.addsize=-this.addsize}
	if(bw.dom || bw.ie4){ //Setting the style properties
		this.css.fontFamily=this.font; this.css.fontSize=this.size+"px"; this.css.color=this.color[0]
	}
	this.obj = obj + "Object"; 	eval(this.obj + "=this"); return this
}
function b_zoomFade(num){
	if(num<this.text.length){
		this.size=this.startsize
		this.zoomIt(num,'this.zoomFade('+(num+1)+')')
	}
	else if(num==this.text.length) this.fadeIt(0,'this.zoomFade('+(num+1)+')')
	else if(this.hide) setTimeout(this.obj+".css.visibility='hidden'; eval("+this.obj+".endcode)",this.hidewait)
}
function b_zoomWrite(num,cnum){
	if(bw.ns4){
		this.writeref.write('<span style="text-align:center; font-size:' +this.size+'px; font-family:'+this.font+'; color:'+this.color[cnum]+'">'+this.text[num]+'</span>')
		this.writeref.close()
	}else this.writeref.innerHTML="<center>"+this.text[num]+"</center>"
}
function b_zoomIt(num,fn){
	if(eval(this.size+this.way+this.endsize)){
		if(this.size==this.startsize || bw.ns4) this.zoomWrite(num,0)
		if(bw.dom || bw.ie4) this.css.fontSize=this.size+"px"
		this.size=this.size+this.addsize
		setTimeout(this.obj+".zoomIt("+num+",'"+fn+"')",this.zspeed)
	}else eval(fn)	
}
function b_fadeIt(num,fn){
	if(num<this.color.length){
		if(bw.ns4) this.zoomWrite(this.text.length-1,num)
		else this.css.color=this.color[num]
		num++
		setTimeout(this.obj+".fadeIt("+num+",'"+fn+"')",this.fadespeed)
	}else eval(fn)	
}
// Initiates the object, shows it and starts the zoom

function zoomInit(){
	if(bw.bw){
		oZoom=new makeZoomObj('divZoom',zFont,zStartSize,zEndSize,'zColor','zText',zSpeed,zFadeSpeed,zAddSize,zHide,zHideWait,zEndCode)
		oZoom.zoomFade(0)
		oZoom.css.visibility='visible'
	}
}

// Scroll (horizontal) message
var author="www.dseffects.com";
var DS_ScrollText="--- Nashville, TN. location opening September 28, 2006 ---";
var DS_Speed=(5-(2))*30;
var DS_Size=40;
var DS_ScrollCounter=0;
var DS_I=0;
  while(DS_I++<DS_Size*2)
      DS_ScrollText=" "+DS_ScrollText;
function DS_TextBoxScroll(){
	document.ds_form.ds_scrolltb.value=DS_ScrollText.substring(DS_ScrollCounter++,DS_ScrollText.length);
	DS_ScrollCounter%=(DS_ScrollText.length);
    	setTimeout("DS_TextBoxScroll()",DS_Speed);
}


<!-- Scroll (vertical) message -->
var pos=100;
function scroll() {
  obj=document.getElementById('thetext');
  pos -=1;
  if (pos < 0-obj.offsetHeight+110) return;
  obj.style.top=pos;  
  window.setTimeout("scroll();",50);
}

// Open popup window containing employee information
function newWindow1()
  {Popup = window.open('employee1.htm','','width=400,height=200');}
function newWindow2()
  {Popup = window.open('employee2.htm','','width=400,height=200');}
function newWindow3()
  {Popup = window.open('employee3.htm','','width=400,height=200');}
function newWindow4()
  {Popup = window.open('employee4.htm','','width=400,height=200');}
function newWindow5()
  {Popup = window.open('employee5.htm','','width=400,height=200');}
function newWindow6()
  {Popup = window.open('employee6.htm','','width=400,height=200');}
function newWindow7()
  {Popup = window.open('employee7.htm','','width=400,height=200');}
function newWindow8()
  {Popup = window.open('employee8.htm','','width=400,height=200');}
function newWindow9()
  {Popup = window.open('employee9.htm','','width=400,height=200');}
function newWindow10()
  {Popup = window.open('employee10.htm','','width=400,height=200');}
function newWindow11()
  {Popup = window.open('employee11.htm','','width=400,height=200');}
function newWindow12()
  {Popup = window.open('employee12.htm','','width=400,height=200');}
function newWindow13()
  {Popup = window.open('employee13.htm','','width=400,height=200');}
function newWindow14()
  {Popup = window.open('employee14.htm','','width=400,height=200');}
function newWindow15()
  {Popup = window.open('employee15.htm','','width=400,height=200');}
function newWindow16()
  {Popup = window.open('employee16.htm','','width=400,height=200');}
function newWindow17()
  {Popup = window.open('employee17.htm','','width=400,height=200');}
function newWindow18()
  {Popup = window.open('employee18.htm','','width=400,height=200');}
function newWindow19()
  {Popup = window.open('employee19.htm','','width=400,height=200');}
function newWindow20()
  {Popup = window.open('employee20.htm','','width=400,height=200');}
function newWindow21()
  {Popup = window.open('employee21.htm','','width=400,height=200');}
function newWindow22()
  {Popup = window.open('employee22.htm','','width=400,height=200');}
function newWindow23()
  {Popup = window.open('employee23.htm','','width=400,height=200');}
function newWindow24()
  {Popup = window.open('employee24.htm','','width=400,height=200');}
function newWindow25()
  {Popup = window.open('employee25.htm','','width=400,height=200');}
function newWindow26()
  {Popup = window.open('employee26.htm','','width=400,height=200');}

<!-- Set up Date and Time -->
<!-- For full source code visit http://www.javascript-page.com -->

<!-- Set up Date -->

function dodate(){
var today = new Date()
var month = today.getMonth() + 1
var day = today.getDate()
var year = today.getFullYear()
var s = "/"

document.clock.date.value = month + s + day + s + year
}

<!-- Set up clock -->

var timerID = null
var timerRunning = false

function stopclock(){
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}

function startclock(){
    stopclock()
    showtime()
}

function showtime(){
    var now = new Date()
    var hours = now.getHours()
    var minutes = now.getMinutes()
    var seconds = now.getSeconds()
    var timeValue = "" + ((hours > 12) ? hours - 12 : hours)
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds
    timeValue  += (hours >= 12) ? " pm" : " am"
    document.clock.face.value = timeValue 
    timerID = setTimeout("showtime()",1000)
    timerRunning = true
}

