<!--GLOBAL VARIABLES-->
var thename
var theobj
var thetext
var winHeight
var winWidth
var boxPosition
var headerColor
var tableColor
var timerID
var seconds=0
var x=0
var xtop=0
var xright=0
var xleft=0
var xbottom=0
var y=0
var offsetx = 20
var offsety = 80
<!--END GLOBAL VARIABLES-->


function change(id){

  if(ID.style.display == "")
          ID.style.display = "none";
     else
          ID.style.display = "";
   }

function showit(id){
     ID = document.getElementById(id);
     ID1 = document.getElementById(1); 
     ID2 = document.getElementById(2); 
     ID3 = document.getElementById(3); 
     ID4 = document.getElementById(4); 
     ID5 = document.getElementById(5); 
     ID6 = document.getElementById(6); 

 ID.style.display = "";
 
if (ID1!=ID) ID1.style.display = "none";
if (ID2!=ID) ID2.style.display = "none";
if (ID3!=ID) ID3.style.display = "none";
if (ID4!=ID) ID4.style.display = "none";
if (ID5!=ID) ID5.style.display = "none";
if (ID6!=ID) ID6.style.display = "none";

}



function stopIt() {
	if(theobj) {
		if(iens6) {
		theobj.innerHTML = ""
		theobj.style.visibility="hidden"
		}
		if(ns4) {
		theobj.document.write("")
		theobj.document.close()
		theobj.visibility="hidden"
		}
	}
}

function setObj(textelement,inwidth,inheight) {
//	clearTimeout(timerID)
tfontcolor='white'
bfontcolor='black'
	boxPosition='bottomL'
	tableColor='#B7DB93'
	headerColor='#0A6011'
	winWidth=inwidth
	winHeight=inheight
	thetext=buildText(textelement,tfontcolor,bfontcolor)
	if (boxPosition == "bottomR") { // Right
		x=x+offsetx
		y=y+offsety
	}
	if (boxPosition == "bottomL") { // Left
		x=x-(offsetx+2)-winWidth
		y=y-offsety
	}
	if (boxPosition == "topR") { // Top
		x=x+offsetx
		y=y+offsety-winHeight
	}
	if (boxPosition == "topL") { // Top
		x=x-(offsetx+2)-winWidth
		y=y+offsety-winHeight
	}
	if(iens6){
		thename = "viewer"
		theobj=document.getElementById? document.getElementById(thename):document.all.thename
		theobj.style.width=winWidth
		theobj.style.height=winHeight
		theobj.style.left=x
		xleft=x
		xright=x+winWidth
			if(iens6&&document.all) {
			theobj.style.top=document.body.scrollTop+y	
			xtop=y
			xbottom=xtop+winHeight
			
				theobj.innerHTML = ""
				theobj.insertAdjacentHTML("<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 width=400 height=370><param name=movie value=DealerQuote.swf?ProductCode=BF-034> <param name=quality value=high><embed src=DealerQuote.swf?ProductCode=BF-034&id=1 quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=400 height=370></embed></object>")
			}
			if(iens6&&!document.all) {
			theobj.style.top=y	
			xtop=y
			xbottom=xtop+winHeight

				theobj.innerHTML = ""
				theobj.innerHTML="<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 width=400 height=370><param name=movie value=DealerQuote.swf?ProductCode=BF-034> <param name=quality value=high><embed src=DealerQuote.swf?ProductCode=BF-034&id=1 quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=400 height=370></embed></object>"
			}
	}
	if(ns4){
		thename = "nsviewer"
		theobj = eval("document."+thename)
		theobj.left=x
        xleft=x
		xright=x+winWidth
		theobj.top=y
		xtop=y
		xbottom=y+winHeight

		theobj.width=winWidth
		theobj.clip.width=winWidth
		theobj.height=winHeight
		theobj.clip.height=winHeight
		
		
		theobj.document.write("<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 width=400 height=370><param name=movie value=DealerQuote.swf?ProductCode=BF-034> <param name=quality value=high><embed src=DealerQuote.swf?ProductCode=BF-034&id=1 quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=400 height=370></embed></object>");
		
		
		theobj.document.close()
	}
	viewIt()
}

function viewIt() {
		if(iens6) {
			theobj.style.visibility="visible"
		}
		if(ns4) {
			theobj.visibility = "visible"
		}
}

function stopIt() {
	if(theobj) {
		if(iens6) {
		theobj.innerHTML = ""
		theobj.style.visibility="hidden"
		}
		if(ns4) {
		theobj.document.write("")
		theobj.document.close()
		theobj.visibility="hidden"
		}
	}
}

function timer(sec) {
	seconds=parseInt(sec)
	if(seconds>0) {
		seconds--
		timerID=setTimeout("timer(seconds)",1000)
	}else{

       document.onmousemove=getXY;
	
		 if (x < xleft) 
	     {	
  		  stopIt();
		 }
		 if (x > xright)
	     {	
  		  stopIt();
		 }
		 if (y < xtop)
	     {	
  		  stopIt();
		 }
		 if (y > xbottom)
	     {	
  		  stopIt();
		 }
		 
		 
       }
}

function getXY(e) {
	if (ns4) {
		x=0
		y=0
		x=e.pageX; 
		y=e.pageY;
	}
	if (iens6&&document.all) {
		x=0
		y=0
		x=event.x; 
		y=event.y;
	}
	if (iens6&&!document.all) {
		x=0
		y=0
		x=e.pageX; 
		y=e.pageY;
	}
}


