  function selectPic(id,pic,width,height)
  { 
   getObj('mainPic').src="http://www.eautoworks.com/images/350/"+pic;
   getObj('thumb'+id).className="pictureSelect";
   getObj('thumb'+selectedPic).className="pictureUnselected";
   getObj('mainPic').width=width;
   getObj('mainPic').height=height;
   selectedPic=id;
  }
  
  function subWindow(pgloc,pgname,getwdt,gethdt,getlft,gettop,getx,gety,islocation,ismenubar,isresizable,isscroll,isstatus,istool) {
	if(pgname == null)
		pgname = 'eAutoWorks.com Car &amp; Truck Accessories';
	if(getwdt == null)
		var getwdt = 350;
	if(gethdt == null)
		gethdt = 225;
	if(getlft == null)
		getlft = 75;
	if(gettop == null)
		gettop = 75;
	if(getx == null)
		getx = 75;
	if(gety == null)
		gety = 75;
	if(islocation == null)
		islocation = 'no';
	if(ismenubar == null)
		ismenubar = 'no';
	if(isresizable == null) 
		isresizable = 'yes';
	if(isscroll == null)
		isscroll = 'yes';
	if(isstatus == null)
		var isstatus = 'yes';
	if(istool == null)
		var istool = 'no';
	var page_properties = 'width=' + getwdt + ',height=' + gethdt + ',left=' + getlft + ',top=' + gettop + ',screenx=' + getx + ',screeny=' + gety + ',location=' + islocation + ',menubar=' + ismenubar + ',resizable=' + isresizable + ',scrollbars=' + isscroll + ',status=' + isstatus + ',toolbar=' + istool;
	NewWindow = window.open (pgloc, pgname, page_properties);
}

function preloadImages() { //v3.0
 var tempa;
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
 var i,j=d.MM_p.length,a=preloadImages.arguments; 
 for(i=0; i<a.length; i++)
 {
  tempa=picture_path+a[i];
  if (tempa.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src= tempa;}}
 }
}