<!--
/*************************************************************************
  This code is from Dynamic Web Coding at dyn-web.com
  Copyright 2003-5 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

	function doTooltip(e, msg) {
  	if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  	Tooltip.show(e, msg);
	}

	function hideTip() {
  	if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
  	Tooltip.hide();
	}
		
		//					       company name, email, website, contact name1, contact name2, contact name3, up to 10 address/phone/info fields] 
		var osbournegroup=['The Osborne Group', 'sales@osbornegroup.net', '', 'John Osborne', '', '', '4010 North Bend Road Suite 101', 'Cincinnati, OH 45211-0507', 'Phone: (513) 481-6200', 'Toll Free: (800) 837-4933', 'Fax: (513) 389-3992'];
		var apex=       ['APEX', 'joe@apex-reps.com', '', '', '', '', '305 Canal Street', 'Leomont, IL. 60439', 'Phone: (630) 257-0001', 'Fax: (630) 257-0005', ''];
		var keystone=	  ['Keystone Marketing Group', 'steve@keystonemarketinggroup.net', '',  'Steve Skytte', '', '',   'P.O. Box 48868', 'Coon Rapids, MN. 55448', 'Phone: (651) 730-9595', 'Fax: (651) 274-2863'];
		var keystoneSD=	  ['Keystone Marketing Group', 'dean@keystonemarketinggroup.net', '',  'Dean Gatzmer', '', '',   'P.O. Box 48868', 'Coon Rapids, MN. 55448', 'Phone: (763) 434-1401', 'Fax: (763) 434-1403'];
		var jcalarese	 =['John Calarese & Company, Inc.', 'support@jcalarese.com', '',  'John Calarese', '', '',   '108A Adams Street', 'Medfield, MA 02052', 'Phone: (508) 359-5500', 'Toll Free: 1-800-221-2384', 'Fax: (508) 359-5515'];
		var flowTex      =['Flow-Tex', '', '', 'John Whitaker', '', '', 'P.O. Box 470023', 'Ft. Worth, TX. 76147', 'Phone: (817) 570-9100', 'Toll Free: (800) 330-3567', 'johnw@flow-tex.com</a>'];		
		var newsouthTN   =['New South Sales & Marketing', 'troy@newsouthsales.net', '', 'Troy Pippin', '', '', '7216 Farmington',  'Lascassas, TN 37085', 'Phone: (615) 631-9378', 'Fax: (615) 895-5714', ''];
		var newsouthAL   =['New South Sales & Marketing', 'bob@newsouthsales.net  bhunter567@gmail.com', '',  'Bob Hunter', '', '',   '3985 Parkwood Rd. Suite 109-404', 'Bessemer, AL 35022', 'Cell Phone: (205) 243-5042', 'Fax: (205) 623-1360'];
		var newsouthGA	 =['New South Sales & Marketing', 'chuck@newsouthsales.net', '',  'Chuck Wall', '', '',   '300 Freedaom Dr.', 'Forsyth, GA 31029', 'Phone: (478) 974-0828', 'Fax: (478) 994-0585'];
		var janrepMO     =['JanRep Sales', 'JanRep@earthlink.net', '', 'Roger Hunt', '', '', '742 Ridgeview Circle Lane', 'Ballwin, MO 63021', 'Phone: (636) 527-3894', 'Cell Phone: (314) 406-3723', 'Fax: (636) 527-6127'];
		var janrepKS     =['JanRep Sales', 'tomlandsberg@sbcglobal.net', '', 'Tom Landsberg', '', '', '15208 W. 83rd Terrace', 'Lenexa, KS 66219', 'Phone: (913) 522-3557', 'Cell Phone: (913) 522-3557'];		
		var hensonPA     =['Henson Sales Group', 'abucci@hensonsales.com', '', 'Peter Henson', '', '', '998 Old Eagle School Rd.',  'Suite 1213', 'Wayne, PA. 19087', 'Phone: (610) 971-9005', 'Fax: (610) 971-9198'];
		var hensonNY		 =['The Henson Sales Group, Inc.', '', 'www.hensonsalesinc.com', '', '', '', '116 Oakside Dr.', 'Smithtown, NY 11787', 'Office Phone: (631) 360-3632', 'Fax: (631) 360-3642','<strong>Tom Henson</strong><br>Phone: (516) 983-5950<br>Email: <a class="dealerInfoLink" href="mailto:thenson@hensonsales.com">thenson@hensonsales.com</a>', '<strong>Liz Henson</strong><br>Phone: (631) 664-5888<br>Email: <a class="dealerInfoLink" href="mailto:lhenson@hensonsales.com">lhenson@hensonsales.com</a>'];
		
		var straightreps =['Straight Representation', 'straightreps@ad.com', '',  'Scott Ferguson', '', '',   '13891 East Smith Drive, Unit C.', 'Aurora, CO. 80011', 'Phone: (303) 344-8123', 'Fax: (303) 344-8126'];
		var phoenixsales =['Phoenix Sales & Marketing', '', '', 'Marcia Fitzpatrick', 'Mike Burwell', '', '3407 Delaware Avenue',  'Suite 251', 'Kenmore, NY. 14217', 'Phone: (716) 871-0377', 'Fax: (716) 871-0472'];
		var buckley				 =['Buckley & Associates', 'buckleyrep@aol.com', '', 'Cary Buckley', '', '',   '5707 Centre Square Dr.', 'Centerville, VA 20120', 'Phone: (703) 631-8138'];
		var buckleyVA				 =['Buckley & Associates', 'buckleyrep@aol.com', '', 'Cary Buckley', '', '',   '5707 Centre Square Dr.', 'Centerville, VA 20120', 'Phone: (703) 631-8138'];
		var paragon     =['Paragon Sales', 'paragonsls@aol.com', '',  'Mike Mattingly', '', '',   '3931 Waterview Loop', 'Winter Park, FL. 32792', 'Phone: (407) 657-9491', 'Cell: (407) 468-3662', 'Fax: (407) 657-7723'];
		var adair        =['Adair Midwest', 'o_duvall@yahoo.com', '',  'Owen Duvall', '', '',   '301 Williamston Center Road, Ste. 600', 'Williamston, MI 48895', 'Phone: (517) 655-8330', 'Fax (orders): (517) 655-8093', 'Fax (sales): (517) 655-8097'];
		var windassoc    =['Wind Associates', '', '',  'John Beers', 'Kaye Moen', '',   '819 Industry Dr.', 'Tukwila, WA. 98188', 'Phone: (206) 243-7713', 'Toll Free: (800) 572-7030', 'Fax: (206) 431-3455', 'E-mail: <a class="dealerInfoLink" href="mailto:info@windassociatesinc.com">info@windassociatesinc.com</a>', '<a class="dealerInfoLink" href="mailto:info@windassociatesinc.com">info@windassociatesinc.com</a>'];
		var windassochaw    =['Wind Associates', 'iss@hawaii.rr.com', '',  'Tom Richardson', '',   'P.O. Box 15932', 'Honolulu, HI 96830', 'Phone: (808) 551-7888'];
		var sourceone    =['Source One Sales, Corp.', 'customerservice@sourceonesales.net', '',  'Scott C. Shannon', '', '',   '28311 Industry Drive', 'Valencia, CA 91355', 'Phone: (661) 702-9165', 'Fax: (661) 702-9383'];
		var kahnco       =['Kahnco Sales', 'ronkahn@att.net', '',  'Ron Kahn', '', '',   '1636 Gilbreth Road', 'Burlingame, CA. 94010', 'Phone: (800) 722-1636', 'Cell Phone: (650) 279-0366', 'Fax: (800) 722-1638'];
		var anotherdealer=['', '', '',  '', '', '',   '', '', '', '', '', ''];
		var anotherdealer=['', '', '',  '', '', '',   '', '', '', '', '', ''];
		var stateinfo= Array();
		stateinfo['AL']= [ 'Alabama',            newsouthAL];
		stateinfo['AK']= [ 'Alaska',             windassoc];
		stateinfo['AZ']= [ 'Arizona',            straightreps];
		stateinfo['AR-W']= [ 'Arkansas (Western)', flowTex];
		stateinfo['AR-E']= [ 'Arkansas (Eastern)', newsouthTN];
		stateinfo['CA']= [ 'California',         sourceone];
		stateinfo['CO']= [ 'Colorado',     			 straightreps];
		stateinfo['CT']= [ 'Connecticut',        jcalarese];
		stateinfo['DE']= [ 'Delaware',           hensonPA];
		stateinfo['FL']= [ 'Florida',            paragon];
		stateinfo['FL-NW']= [ 'Northwest Florida', newsouthAL];
		stateinfo['GA']= [ 'Georgia',            newsouthGA];
		stateinfo['HI']= [ 'Hawaii',             windassochaw];
		stateinfo['ID']= [ 'Idaho',              straightreps];
		stateinfo['IL-N']= [ 'Illinois (Northern)',  apex];
		stateinfo['IL-S']= [ 'Illinois (Southern)',  janrepMO];
		stateinfo['IN-N']= [ 'Indiana (Northern)', apex];
		stateinfo['IN-S']= [ 'Indiana (Southern)', osbournegroup];
		stateinfo['IA']= [ 'Iowa',               keystone];
		stateinfo['KS']= [ 'Kansas',             janrepKS];
		stateinfo['KY']= [ 'Kentucky',            osbournegroup];
		stateinfo['LA']= [ 'Louisiana',          flowTex];
		stateinfo['ME']= [ 'Maine',              jcalarese];
		stateinfo['MD']= [ 'Maryland',           hensonPA];
		stateinfo['MA']= [ 'Massachusetts',      jcalarese];
		stateinfo['MI']= [ 'Michigan',           adair];
		stateinfo['MN']= [ 'Minnesota',          keystone];
		stateinfo['MS']= [ 'Mississippi',        newsouthAL];
		stateinfo['MO']= [ 'Missouri',           janrepMO];
		stateinfo['MT']= [ 'Montana',     			 straightreps];
		stateinfo['NE']= [ 'Nebraska',           janrepKS];
		stateinfo['NV']= [ 'Nevada',             sourceone];
		stateinfo['NH']= [ 'New Hampshire',      jcalarese];
		stateinfo['NJ-N']= [ 'New Jersey (North)',  hensonNY];
		stateinfo['NJ-S']= [ 'New Jersey (South)',  hensonPA];
		stateinfo['NM']= [ 'New Mexico',   	     straightreps];
		stateinfo['NY-N']= [ 'New York (Upstate)',    phoenixsales];
		stateinfo['NY-S']= [ 'New York (Metropolitan)',    hensonNY];
		stateinfo['NC']= [ 'North Carolina',     buckley];
		stateinfo['ND']= [ 'North Dakota',       keystone];
		stateinfo['OH']= [ 'Ohio',               osbournegroup];
		stateinfo['OK']= [ 'Oklahoma',           flowTex];
		stateinfo['OR']= [ 'Oregon',             windassoc];
		stateinfo['PA-E']= [ 'Pennsylvania (Eastern)', hensonPA];
		stateinfo['PA-W']= [ 'Pennsylvania (Western)', osbournegroup];
		stateinfo['RI']= [ 'Rhode Island',       jcalarese];
		stateinfo['SC']= [ 'South Carolina',     buckley];
		stateinfo['SD']= [ 'South Dakota',       keystoneSD];
		stateinfo['TN']= [ 'Tennessee',          newsouthTN];
		stateinfo['TX']= [ 'Texas',              flowTex];
		stateinfo['UT']= [ 'Utah',               straightreps];
		stateinfo['VT']= [ 'Vermont',            jcalarese];
		stateinfo['VA']= [ 'Virginia',           buckleyVA];
		stateinfo['WA']= [ 'Washington',         windassoc];
		stateinfo['WV']= [ 'West Virginia',      osbournegroup];
		stateinfo['WI']= [ 'Wisconsin',          apex];
		stateinfo['WY']= [ 'Wyoming',            straightreps];
		
	
		
		function showInfo(region, stateCode){
			var infoBoxEast=document.getElementById('infoDivEast');
			var infoBoxWest=document.getElementById('infoDivWest');
			var stateName=stateinfo[stateCode][0];
			var dealer=stateinfo[stateCode][1];
			 //company name, email, website,
			 html = '<div class="dealerInfoContainer" align="center">';
			 html += '<div class="dealerInfoClose" align="right"><a class="dealerInfoClose" href="#" onclick="return infoBoxReset();">close</a> &nbsp; </div>';
			 html +='<div class="dealerInfoHeader"><strong>' + stateName + '</strong></div>';
			 html +='<div class="dealerInfoHeader"><strong>' + dealer[0] + '</strong></div>'; //company name
			 if (dealer[3] != '') //name1
			 {  html +='<div class="dealerInfo"><strong>' + dealer[3] + '</strong></div>';  }
			 if (dealer[4] != '') //name2
			 {  html +='<div class="dealerInfo"><strong>' + dealer[4] + '</strong></div>';  }
			 if (dealer[5] != '') //name3
			 {  html +='<div class="dealerInfo"><strong>' + dealer[5] + '</strong></div>';  }
			 if ((typeof dealer[6]!="undefined") && (dealer[6] != '')) 
			 {  html +='<div class="dealerInfo">' + dealer[6] + '</div>';  }
			 if ((typeof dealer[7]!="undefined") && (dealer[7] != '')) 
			 {  html +='<div class="dealerInfo">' + dealer[7] + '</div>';  }
			 if ((typeof dealer[8]!="undefined") && (dealer[8] != '')) 
			 {  html +='<div class="dealerInfo">' + dealer[8] + '</div>';  }
			 if ((typeof dealer[9]!="undefined") && (dealer[9] != '')) 
			 {  html +='<div class="dealerInfo">' + dealer[9] + '</div>';  }
			 if ((typeof dealer[10]!="undefined") && (dealer[10] != '')) 
			 {  html +='<div class="dealerInfo">' + dealer[10] + '</div>';  }
			 if ((typeof dealer[11]!="undefined") && (dealer[11] != ''))
			 {  html +='<div class="dealerInfo">' + dealer[11] + '</div>';  }
			 if ((typeof dealer[12]!="undefined") && (dealer[12] != ''))
			 {  html +='<div class="dealerInfo">' + dealer[12] + '</div>';  }
			 if ((typeof dealer[13]!="undefined") && (dealer[13] != '')) 
			 {  html +='<div class="dealerInfo">' + dealer[13] + '</div>';  }
			 if ((typeof dealer[14]!="undefined") && (dealer[14] != '')) 
			 {  html +='<div class="dealerInfo">' + dealer[14] + '</div>';  }
			 if ((typeof dealer[15]!="undefined") && (dealer[15] != '')) 
			 {  html +='<div class="dealerInfo">' + dealer[15] + '</div>';  }
			 
			 
			 if (dealer[1] != '') //email
			 {  html +='<div class="dealerInfo"> Email: <a class="dealerInfoLink" href="mailto:' + dealer[1] + '">'+ dealer[1] +'</a></div>';  }
			 if (dealer[2] != '') //email
			 {  html +='<div class="dealerInfo"> Web: <a class="dealerInfoLink" href="http://' + dealer[2] + '">'+ dealer[2] +'</a></div>';  }
			 html += '</div>';
			 
			 if (!layerBoxEast) return;
			 if (!layerBoxWest) return;
			 if (region=='west') 
			 { 
			 	 layerBoxWest.writeLyr(html); 
				 hideInfo('east');
				 infoBoxWest.style.visiblity='visible';
				 infoBoxWest.style.display='block';
				 
			 }
			 else
			 { 
				 layerBoxEast.writeLyr(html); 
				 hideInfo('west');
				 infoBoxEast.style.visible='visible';
				 infoBoxEast.style.display='block';			 
			 }
			 
			 return false;  //prevents onClick events from following link
		}
		function hideInfo(region, stateCode){
			var infoBoxEast=document.getElementById('infoDivEast');
			var infoBoxWest=document.getElementById('infoDivWest');
			if (region=='west') 
			{ 
			 	infoBoxWest.style.visiblity='hidden';
				infoBoxWest.style.display='none';
			}
			else
			{ 
				infoBoxEast.style.visiblity='hidden';
				infoBoxEast.style.display='none';
			}

		}	
		function infoBoxReset(){
			hideInfo('east');
			hideInfo('west');
			return false;  //prevents onClick events from following link
		}

		//var infoLyr;
		var layerBoxEast;
		var layerBoxWest;

		
		function pageInit(){
			layerBoxEast = new writeObj('infoDivEast',250,0);
			layerBoxWest = new writeObj('infoDivWest',250,0);
			Tooltip.init();
		}
		window.onload=pageInit;
	//-->
