var ContentArray = new Array(''
,'<table border="0" cellpadding="0" cellspacing="0" width="160"><tr><td width="80"><img src="images/home_icon.gif" width="80" height="80"></td><td width="80"><font face="Verdana,Sans Serif" color="white" size="1">Custom Tooling & Fabrication</font></td></tr></table>'
,'<table border="0" cellpadding="0" cellspacing="0" width="160"><tr><td width="80"><img src="images/tooling_icon.gif" width="80" height="80"></td><td width="80"><font face="Verdana,Sans Serif" color="white" size="1">Tooling</font></td></tr></table>'
,'<table border="0" cellpadding="0" cellspacing="0" width="160"><tr><td width="80"><img src="images/prototype_icon.gif" width="80" height="80"></td><td width="80"><font face="Verdana,Sans Serif" color="white" size="1">Prototype</font></td></tr></table>'
,'<table border="0" cellpadding="0" cellspacing="0" width="160"><tr><td width="80"><img src="images/thermoform_icon.gif" width="80" height="80"></td><td width="80"><font face="Verdana,Sans Serif" color="white" size="1">Thermoform</font></td></tr></table>'
,'<table border="0" cellpadding="0" cellspacing="0" width="160"><tr><td width="80"><img src="images/shortRun_icon.gif" width="80" height="80"></td><td width="80"><font face="Verdana,Sans Serif" color="white" size="1">Short Run</font></td></tr></table>'
,'<table border="0" cellpadding="0" cellspacing="0" width="160"><tr><td width="80"><img src="images/products_icon.gif" width="80" height="80"></td><td width="80"><font face="Verdana,Sans Serif" color="white" size="1">Products</font></td></tr></table>'
,'<table border="0" cellpadding="0" cellspacing="0" width="160"><tr><td width="80"><img src="images/capabilities_icon.gif" width="80" height="80"></td><td width="80"><font face="Verdana,Sans Serif" color="white" size="1">Capabilities</font></td></tr></table>'
,'<table border="0" cellpadding="0" cellspacing="0" width="160"><tr><td width="80"><img src="images/aboutUs_icon.gif" width="80" height="80"></td><td width="80"><font face="Verdana,Sans Serif" color="white" size="1">About Us</font></td></tr></table>'
,'<table border="0" cellpadding="0" cellspacing="0" width="160"><tr><td width="80"><img src="images/contact_icon.gif" width="80" height="80"></td><td width="80"><font face="Verdana,Sans Serif" color="white" size="1">Contact Information<br>Map</font></td></tr></table>'
,'<table width="168" border="0" cellspacing="0" cellpadding="0"><tr><td align="right"><img src="images/image1.gif" width="53" height="72" name="image1" id="image1"></td><td valign="bottom"><img src="images/image2.gif" width="70" height="40" name="image2" id="image2"></td></tr></table>'
)

var message= new Array()
message[0]="Custom Tooling & Fabrication|Specializing in quick turn around times.|default.htm"
message[1]="Tooling & Fixturing|Tooling for a wide range of uses, from simple drill fixtures to complex Functional Test fixtures.|tooling.htm"
message[2]="Prototyping|We prototype a very wide range of items including one-off parts to a full working assembly|prototype.htm"
message[3]="Thermoform|We can provide the basic mold or the whole package.|thermoform.htm"
message[4]="Short Run|We produce many milling parts in small to medium lot numbers. Please contact us with your particular application.|shortrun.htm"
message[5]="About Us|<img src='images/Car1.gif' width='90' height='65'>|aboutus.htm"


var scrollerheight=80				// The height of the scrollerbox (pixels)
var scrollerwidth=160				// The width of the scrollerbox (pixels)
var scrollertop=0					// The distance to the left border of the window (pixels)
var scrollerleft=0					// The distance to the top border of the window (pixels)
var scrollerpadding=5				// The padding between the scrollerbox and the text (pixels)
var backgroundborder=2      		// The width of the scrollerbox-border (pixels)
var scrollerbgcolor="DDDDDD"    	// The background-colour of the scrollerbox
var font_titleface="Verdana"		// Font attributes of the title
var font_titlecolor="FF0000"
var font_titlesize=1
var font_copyface="Verdana"			// Font attributes of the copytext
var font_copycolor="FF0000"
var font_copysize=1
var standstillfix=3000				// standstill between the messages (milliseconds)

// Do not edit below this line
var cliptop=0
var clipbottom=scrollerheight-2*scrollerpadding
var clipleft=0
var clipright=scrollerwidth

var i_message=0
var mes_joined
var mes_split
var contenttext
var contentbg

var totalheight=scrollerheight*(message.length)
var i_height=0
var step=1
var pause=20

var standstillflex=0
var layerToMove
var loaded=false
var timer

function changeContent(Num){
	clearTimeout(timer);
	var contentLayer=IG_getLayer('scrollertext');
	IG_setLayerVis(contentLayer,false);
	var contentLayer=IG_getLayer('mouseContent');
	IG_setLayerContent(contentLayer,ContentArray[Num]);
	IG_setLayerVis(contentLayer,true);
}
function changeBack(){
	var contentLayer=IG_getLayer('mouseContent');
	IG_setLayerVis(contentLayer,false);
	var contentLayer=IG_getLayer('scrollertext');
	IG_setLayerVis(contentLayer,true);
	scrollLayer(contentLayer)
}
function initiateMC(){
	var layerToMove=IG_getLayer('mouseContent');
	IG_moveLayerTo(layerToMove,IG_getAnchorPos('scrollerAnchor','left'),IG_getAnchorPos('scrollerAnchor','top'));
	var layerToMove=IG_getLayer('myChaser');
	if(NS4){IG_moveLayerBy(layerToMove,-2,0);}
}

function initiate(){
	contenttext="<table cellpadding=0 cellspacing=0 border=0 width="+(scrollerwidth-2*scrollerpadding)+">"
	contenttext+="<tr valign='top'><td height='"+scrollerheight+"'><br></td></tr>"
	for (i=0;i<=message.length-1;i++) {
		mes_joined=message[i]
		mes_split=mes_joined.split("|")
		contenttext+="<tr valign='top'><td height='"+scrollerheight+"'><a href='"+mes_split[2]+"'><font face='"+font_titleface+"' color='"+font_titlecolor+"' size='"+font_titlesize+"'><b>"+mes_split[0]+"</b></font></a><br><font face='"+font_copyface+"' color='"+font_copycolor+"' size='"+font_copysize+"'>"+mes_split[1]+"</font></td></tr>"
	}
	contenttext+="</table>"
	
	contentbg="<table cellpadding=0 cellspacing=0 border="+backgroundborder+" width='"+scrollerwidth+"'><tr><td height='"+scrollerheight+"' bgcolor="+scrollerbgcolor+">&nbsp;</td></tr></table>"

	layerToMove=IG_getLayer('scrollertext');
	IG_moveLayerTo(layerToMove,(IG_getAnchorPos('scrollerAnchor','left')+scrollerpadding),(IG_getAnchorPos('scrollerAnchor','top')+scrollerpadding));
	IG_setLayerContent(layerToMove,contenttext);
	IG_clipLayer(layerToMove,clipleft,cliptop,clipright,clipbottom);
	IG_setLayerVis(layerToMove, true);
	scrollLayer(layerToMove);
	loaded=true;
}

function scrollLayer(layer){
	layerToMove=layer
	standstillflex=standstillfix
		if (i_height<scrollerheight) {
			i_height+=step
			cliptop+=step
			clipbottom+=step
			IG_clipLayer(layer,clipleft,cliptop,clipright,clipbottom);
			IG_moveLayerBy(layer,0,-step);
			timer=setTimeout("scrollLayer(layerToMove)",pause)
		}
		else {
			if (IG_getLayerTop(layer)<=-(totalheight+IG_getAnchorPos('scrollerAnchor','top'))) {
				IG_moveLayerTo(layer,(IG_getAnchorPos('scrollerAnchor','left')+scrollerpadding),(IG_getAnchorPos('scrollerAnchor','top')+scrollerpadding))
				cliptop=0
				clipbottom=scrollerheight-2*scrollerpadding
				IG_clipLayer(layer,clipleft,cliptop,clipright,clipbottom);
				standstillflex=0
			}
			i_height=0
			clearTimeout(timer)
			timer=setTimeout("scrollLayer(layerToMove)",standstillflex)
		}

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}