// BEGIN ROTATING BANNER

pic_width=470;
pic_height=60;
border_size=2;
alignment=1;      /* 0=left,1=center */

if (document.images)
 {
     pic1= new Image(pic_width,pic_height);
     pic1.src="images/sponsors/banner-protorque.jpg";
     pic2= new Image(pic_width,pic_height); 
     pic2.src="images/sponsors/banner-superior.jpg";
     pic3= new Image(pic_width,pic_height);
     pic3.src="images/sponsors/banner-sonnax.jpg";
     pic4= new Image(pic_width,pic_height);
     pic4.src="images/sponsors/banner-vbpro.jpg";
     pic5= new Image(pic_width,pic_height); 
     pic5.src="images/sponsors/banner-ttk.jpg";
     pic6= new Image(pic_width,pic_height); 
     pic6.src="images/sponsors/banner-tcra.jpg";
     pic7= new Image(pic_width,pic_height); 
     pic7.src="images/sponsors/banner-precision.jpg";
     pic8= new Image(pic_width,pic_height); 
     pic8.src="images/sponsors/banner-superflow.jpg";
	 pic9= new Image(pic_width,pic_height); 
     pic9.src="images/sponsors/banner-raybestos.jpg";
	 pic10= new Image(pic_width,pic_height); 
     pic10.src="images/sponsors/banner-adaptacase.jpg";
	 pic11= new Image(pic_width,pic_height); 
     pic11.src="images/sponsors/banner-temco.jpg";
	 pic12= new Image(pic_width,pic_height); 
     pic12.src="images/sponsors/banner-pdq.jpg";
// NewSponsorPic
 }    

urlad1="http://www.protorque.com/";
urlad2="http://www.superior-transmission.com/";
urlad3="http://sonnax.com/";
urlad4="http://valvebodypros.com/";
urlad5="http://www.parker.com/EAD/displayCatalog.asp?menu_parkerid=46&menu_gid=8&menu_divid=-1&catid=207095&catdesc=KITTING&subcatid=207119&viewtype=1&sMode=Details";
urlad6="http://www.tcraonline.com/";
urlad7="http://www.gopnh.com/";
urlad8="http://www.superflow.com/";
urlad9="http://www.raybestospowertrain.com/";
urlad10="http://www.adaptacase.com/";
urlad11="http://www.washparts.com/";
urlad12="http://www.pdqparts.com/";
// NewponsorUrl

if (alignment==1)
 {
  cent_it="<CENTER>";
  cent_it2="<\/CENTER>";
 }
else
 {
  cent_it="";
  cent_it2="";
 }
 
function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function get_Image()
{
 if (document.images)
 {
  var choose_one= get_random(12);  
  choose_one--;

  var pics= new Array(12) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   pics[4]=pic5.src; 
   pics[5]=pic6.src;
   pics[6]=pic7.src;
   pics[7]=pic8.src;
   pics[8]=pic9.src;
   pics[9]=pic10.src;
   pics[10]=pic11.src;
   pics[11]=pic12.src;
//newArray

  var aurl= new Array(12)
  aurl[0]=urlad1;
  aurl[1]=urlad2;
  aurl[2]=urlad3;
  aurl[3]=urlad4;
  aurl[4]=urlad5;
  aurl[5]=urlad6;
  aurl[6]=urlad7;
  aurl[7]=urlad8;
  aurl[8]=urlad9;
  aurl[9]=urlad10;
  aurl[10]=urlad11;
  aurl[11]=urlad12;
//newUrl

  document.write(cent_it+"<A HREF='"+aurl[choose_one]+"'><IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'></a>"+cent_it2);
 }
}


// BEGIN ROTATING IMAGES

var theImages = new Array() 
theImages[0] = 'images/new/rotate/0.jpg'
theImages[1] = 'images/new/rotate/1.jpg'
theImages[2] = 'images/new/rotate/2.jpg'
theImages[3] = 'images/new/rotate/3.jpg'
theImages[4] = 'images/new/rotate/4.jpg'
theImages[5] = 'images/new/rotate/5.jpg'
theImages[6] = 'images/new/rotate/6.jpg'
theImages[7] = 'images/new/rotate/7.jpg'
theImages[8] = 'images/new/rotate/8.jpg'
theImages[9] = 'images/new/rotate/9.jpg'
theImages[10] = 'images/new/rotate/10.jpg'
theImages[11] = 'images/new/rotate/11.jpg'
theImages[12] = 'images/new/rotate/12.jpg'
theImages[13] = 'images/new/rotate/13.jpg'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}



// SEARCH ENGINE CODE

function check_search(f){
	if(f.term.value.length < 1){
		alert("Please enter some text to search for");
		f.term.focus();
		return (false);
	}
}


// SPONSOR BOXES

function openBox(id) {
mainTable.className="behind1";
	if (document.all)
	document.getElementById("sponsor" + id).className="front" + id + "a";
	else
	document.getElementById("sponsor" + id).className="front" + id;
}
function closeBox(id) {
document.getElementById("sponsor" + id).className="hide";
mainTable.className="pageBody";
}
function displaySponsorBoxes() {
document.write("	<img src=\"images/sponsors/box-ttk.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission rebuilders network\" ID=\"sponsor1\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-protorque.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission diagnostic help\" ID=\"sponsor2\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-superior.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission rebuilders network\" ID=\"sponsor3\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-sonnax.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission problems\" ID=\"sponsor4\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-vbpro.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission rebuilders network\" ID=\"sponsor5\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-tcra.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission rebuilding tips\" ID=\"sponsor6\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-precision.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission rebuilders network\" ID=\"sponsor7\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-raybestos.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission troubleshooting\" ID=\"sponsor8\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-adaptacase.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission help\" ID=\"sponsor9\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-superflow.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission forum\" ID=\"sponsor10\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-temco.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission rebuilders network\" ID=\"sponsor11\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-pdq.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission rebuilders network\" ID=\"sponsor12\" class=\"hide\">");
document.write("	<img src=\"images/sponsors/box-transteam.jpg\" width=220 height=200 border=0 ALIGN=\"MIDDLE\" alt=\"transmission message board\" ID=\"sponsor13\" class=\"hide\">");
}
function displaySponsorLogos() {
document.write("	<a href=\"http://www.parker.com/EAD/displayCatalog.asp?menu_parkerid=46&menu_gid=8&menu_divid=-1&catid=207095&catdesc=KITTING&subcatid=207119&viewtype=1&sMode=Details\" target=\"_blank\" onMouseOver=\"openBox(1)\" onMouseOut=\"closeBox(1)\"><img src=\"images/sponsors/thumb_ttk.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Toledo Trans Kit website\"></a>");
document.write("	<a href=\"http://www.protorque.com/\" target=\"_blank\" onMouseOver=\"openBox(2)\" onMouseOut=\"closeBox(2)\"><img src=\"images/sponsors/thumb_protorque.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Protorque website\"></a>");
document.write("	<a href=\"http://www.superior-transmission.com/\" target=\"_blank\" onMouseOver=\"openBox(3)\" onMouseOut=\"closeBox(3)\"><img src=\"images/sponsors/thumb_superior.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Superior website\"></a>");
document.write("	<a href=\"http://www.sonnax.com/\" target=\"_blank\" onMouseOver=\"openBox(4)\" onMouseOut=\"closeBox(4)\"><img src=\"images/sponsors/thumb_sonnax.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Sonnax website\"></a>");
document.write("	<a href=\"http://www.valvebodypro.com/\" target=\"_blank\" onMouseOver=\"openBox(5)\" onMouseOut=\"closeBox(5)\"><img src=\"images/sponsors/thumb_vbpro.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Valve Body Pro website\"></a>");
document.write("	<a href=\"http://www.tcraonline.com/\" target=\"_blank\" onMouseOver=\"openBox(6)\" onMouseOut=\"closeBox(6)\"><img src=\"images/sponsors/thumb_tcra.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the TCRA website\"></a>");
document.write("	<a href=\"http://www.gopnh.com/\" target=\"_blank\" onMouseOver=\"openBox(7)\" onMouseOut=\"closeBox(7)\"><img src=\"images/sponsors/thumb_precision.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Precision of New Hampton website\"></a>");
document.write("	<a href=\"http://www.raybestospowertrain.com/\" target=\"_blank\" onMouseOver=\"openBox(8)\" onMouseOut=\"closeBox(8)\"><img src=\"images/sponsors/thumb_raybestos.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Raybestor Powertrain website\"></a>");
document.write("	<a href=\"http://www.adapt-a-case.com/\" target=\"_blank\" onMouseOver=\"openBox(9)\" onMouseOut=\"closeBox(9)\"><img src=\"images/sponsors/thumb_adaptacase.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Adapt-A-Case website\"></a>");
document.write("	<a href=\"http://www.superflow.com/\" target=\"_blank\" onMouseOver=\"openBox(10)\" onMouseOut=\"closeBox(10)\"><img src=\"images/sponsors/thumb_superflow.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Superflow Tool website\"></a>");
document.write("	<a href=\"http://www.washparts.com/\" target=\"_blank\" onMouseOver=\"openBox(11)\" onMouseOut=\"closeBox(11)\"><img src=\"images/sponsors/thumb_temco.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the Temco website\"></a>");
document.write("	<a href=\"http://www.pdqparts.com/\" target=\"_blank\" onMouseOver=\"openBox(12)\" onMouseOut=\"closeBox(12)\"><img src=\"images/sponsors/thumb_pdq.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the PDQ website\"></a>");
document.write("	<a href=\"http://transteam.com/\" target=\"_blank\" onMouseOver=\"openBox(13)\" onMouseOut=\"closeBox(13)\"><img src=\"images/sponsors/thumb_transteam.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to visit the TransTeam website\"></a>");
document.write("	<a href=\"form_sponsor_info.html\"><img src=\"images/sponsors/thumb_ad.jpg\" width=80 height=79 vspace=5 border=2 alt=\"Click here to learn more about becoming a TRNW sponsor\"></a>");
}


// DISPLAY TODAY'S DATE

function displayDate() {
today = new Date();
day = today.getDate();
month1 = today.getMonth();
month1++;
year = today.getFullYear();
if (month1 == 1) { month = "January"; } 
else if (month1 == 2) { month = "February"; } 
else if (month1 == 3) { month = "March"; } 
else if (month1 == 4) { month = "April"; } 
else if (month1 == 5) { month = "May"; } 
else if (month1 == 6) { month = "June"; } 
else if (month1 == 7) { month = "July"; } 
else if (month1 == 8) { month = "August"; } 
else if (month1 == 9) { month = "September"; } 
else if (month1 == 10) { month = "October"; } 
else if (month1 == 11) { month = "November"; } 
else if (month1 == 12) { month = "December"; } 
else { month = month1; }
document.write(month + " " + day + ", " + year);
}


function displayCopyright() {
document.write("<p>Copyright &copy; 2007-2010");
}