////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
////////////                                                      //////////////////
////////////                javascript copyright 2001             //////////////////
////////////                  Excelsior Web Design                //////////////////
////////////                 Design@Excelsior2000.com             //////////////////
////////////                   all rights reserved                //////////////////
////////////               may not be used or duplicated          //////////////////
////////////                without written permission            //////////////////
////////////                                                      //////////////////
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

var message=new Array()
message[0]="<IMG SRC='images/sm_firebird.gif'><BR><U>Informative:</U><BR>You'll find lot's of valuable information within these pages - education is your best tool when dealing with insurance claims."
message[1]="<IMG SRC='images/sm_bon.gif'><BR><U>DV Reports:</U><BR>Collision Consulting will determine Inherent Diminished value as well as Repair Related Diminished Value and we help with the claim"
message[2]="<IMG SRC='images/sm_sunfire.gif'><BR><U>Links:</U><BR>Links to other consumer advocate sites and site which prove more information regarding diminished value"
message[3]="<IMG SRC='images/sm_firebird.gif'><BR><U>Imitation Parts:</U><BR>Are they safe? Understand the jargon regarding imitation parts, parts of like-kind-and-quality and the advantages of OEM parts"
message[4]="<IMG SRC='images/sm_gp.gif'><BR><U>Diminished Value:</U><BR>Explains what DV is and how it affects the value of your property.  In many cases you are eligible to collect for this loss"
message[5]="<IMG SRC='images/sm_crash.gif'><BR><U>Contact Us:</U><BR>via email, our toll-free number or use our handy on-line form to find out how Collision Consulting can help you"
var messageurl=new Array()
messageurl[0]="index.html"
messageurl[1]="dv_reports.html"
messageurl[2]="links.html"
messageurl[3]="imitationparts.html"
messageurl[4]="dvdefined.html"
messageurl[5]="contact.html"
var messagetarget=new Array()
messagetarget[0]=""
messagetarget[1]=""
messagetarget[2]=""
messagetarget[3]=""
messagetarget[4]=""
messagetarget[5]=""
var linktext="<FONT COLOR=0000cc>(more)</FONT>"
var fntsize=8
var fntcolor="000000"
var fntfamily="Arial"
var fntweight=0
var pause=5
var backgroundcolor="ffffff"
var posleft=2
var postop=5
var scrollerwidth=148
var scrollerheight=270
var scrollerborder=0
var textpadding=2
var textwidth=scrollerwidth-(2*textpadding)
var textcontent=""
var bgcontent=""
var i_message=0
var i_stepwave=0
var i_maxstepwave=12
pause=pause*2000
if (fntweight==1) {fntweight="700"}
else {fntweight="100"}

function initiate() {
    gettextcontent()
	getbgcontent()
    if (document.all) {
		wavemessage.innerHTML=textcontent
		wavemessagebg.innerHTML=bgcontent
		wavemessagebg.style.posLeft=posleft
		wavemessagebg.style.posTop=postop
		wavemessage.style.posLeft=posleft+textpadding
		wavemessage.style.posTop=postop+textpadding
		enlargewave()
    }
    if (document.layers) {
        document.wavemessage.left=posleft+textpadding
		document.wavemessage.top=postop+textpadding
		document.wavemessagebg.document.write(bgcontent)
        document.wavemessagebg.document.close()
		document.wavemessagebg.left=posleft
		document.wavemessagebg.top=postop
        changemessage()
    }
}

function enlargewave() {
    if (i_stepwave<=i_maxstepwave) {
	    wavemessage.filters.wave.phase=i_stepwave
	    wavemessage.filters.wave.strength=i_stepwave
        wavemessage.filters.wave.lightstrength=i_stepwave
	    wavemessage.filters.wave.freq=i_stepwave
        i_stepwave++
	    var timer=setTimeout("enlargewave()",100)
    }
    else {
        clearTimeout(timer)
        changemessage()
    }
}

function reducewave() {
    if (i_stepwave>0) {
	    wavemessage.filters.wave.phase=i_stepwave
	    wavemessage.filters.wave.strength=i_stepwave
	    wavemessage.filters.wave.lightstrength=i_stepwave
	    wavemessage.filters.wave.freq=i_stepwave
        i_stepwave--
	    var timer=setTimeout("reducewave()",100)
    }
    else {
        clearTimeout(timer)
        var timer=setTimeout("enlargewave()",pause)
    }
}

function changemessage() { 
    i_message++
    if (i_message>=message.length) {i_message=0}
    gettextcontent()

    if (document.all) { 
        wavemessage.innerHTML=textcontent
        reducewave()
    }
    
    if (document.layers) {
        document.wavemessage.document.write(textcontent)
        document.wavemessage.document.close()
        var timer=setTimeout("changemessage()",pause)
    }
    
}

function gettextcontent() {
	textcontent="<span style='font-size:"+fntsize+"pt;font-family:"+fntfamily+";font-weight:"+fntweight+";width:"+textwidth+"px'>"
	textcontent+="<font color="+fntcolor+">"+message[i_message]+"</font> "
	textcontent+="<a href="+messageurl[i_message]+" target="+messagetarget[i_message]+">"
	textcontent+="<br><font color="+fntcolor+">"+linktext+"</font></a></span>"
}

function getbgcontent() {
	bgcontent="<table width="+scrollerwidth+" height="+scrollerheight+" border="+scrollerborder+"><tr><td bgcolor="+backgroundcolor+">&nbsp;</td></tr></table>"
}
