//Specify the marquee's width (in pixels)
var marqueewidth=700
//Specify the marquee's height (in pixels, pertains only to NS)
var marqueeheight=20
//Specify the marquee's scroll speed (larger is faster)
var speed=3
//Specify the marquee contents
var marqueecontents='<font style="font-family: Arial; font-size: 9pt;">Welcome to the CAD TECH DESIGN web site.  We cater to all of your architectural draughting needs.  You can browse through the information on this site by using the buttons on the left hand side.  If you have a question not covered on these pages, please contact us (click "Contact") and we will help you as soon as possible.</font>'

if (document.all)
	document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>')

function regenerate(){
	window.location.reload()
}
function regenerate2(){
	if (document.layers){
		setTimeout("window.onresize=regenerate",450)
		intializemarquee()
	}
}

function intializemarquee(){
	document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
	document.cmarquee01.document.cmarquee02.document.close()
	thelength=document.cmarquee01.document.cmarquee02.document.width
	scrollit()
}

function scrollit(){
	if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
		document.cmarquee01.document.cmarquee02.left-=speed
		setTimeout("scrollit()",100)
	} else {
		document.cmarquee01.document.cmarquee02.left=marqueewidth
		scrollit()
	}
}

window.onload=regenerate2

