
// JavaScript Document

function TopOfPage()
{
 var NURL = new String(this.location.href + "#" + "top");
window.location.href = NURL;
}

var Categories = new Array();
Categories[0] = "Accounting";
Categories[1] = "Advertising";
Categories[2] = "Agriculture";
Categories[3] = "Appliances";
Categories[4] = "Auto";
Categories[5] = "Banks";
Categories[6] = "Beverages";
Categories[7] = "Chiropractic";
Categories[8] = "Communications";
Categories[9] = "Credit";
Categories[10] = "Dance";
Categories[11] = "Dentist";
Categories[12] = "Developer";
Categories[13] = "Education";
Categories[14] = "Employeeben";
Categories[15] = "Employeestaff";
Categories[16] = "Engineers";
Categories[17] = "Financial";
Categories[18] = "Fire";
Categories[19] = "Funeral";
Categories[21] = "Insurance";
Categories[23] = "Legal";
Categories[24] = "Library";
Categories[25] = "Lodging";
Categories[26] = "Manufacturing";
Categories[27] = "Martial";
Categories[29] = "Optometry";
Categories[30] = "Painters";
Categories[31] = "Pets";
Categories[32] = "PhysicalFit";
Categories[33] = "PhysicalTher";
Categories[34] = "Physicians";
Categories[35] = "PrintingPhoto";
Categories[36] = "PrintingShip";
Categories[37] = "Publishers";
Categories[38] = "Race";
Categories[39] = "RealEst";
Categories[40] = "Restaurants";
Categories[41] = "Storage";
Categories[42] = "Tax";
Categories[43] = "Travel";
Categories[44] = "Truck";
Categories[45] = "Waste";
Categories[46] = "Home_Care";
Categories[47] = "Web";
Categories[48] = "Awning";
Categories[49] = "Driving";
Categories[50] = "Clubs";
Categories[51] = "Signs";

var Page = new Array();
Page[0] = "Cicero_Accounting_Services";
Page[1] = "Cicero_Advertising";
Page[2] = "Cicero_Agriculture";
Page[3] = "Cicero_Appliances";
Page[4] = "Cicero_Auto";
Page[5] = "Cicero_Banks";
Page[6] = "Cicero_Beverages";
Page[7] = "Cicero_Chiropractors";
Page[8] = "Cicero_Communcations";
Page[9] = "Cicero_Credit_Union";
Page[10] = "Cicero_Dance_Music";
Page[11] = "Cicero_Dentist";
Page[12] = "Cicero_Developer";
Page[13] = "Cicero_Education";
Page[14] = "Cicero_Employee_Benefits";
Page[15] = "Cicero_Employee_Staffing";
Page[16] = "Cicero_Engineers";
Page[17] = "Cicero_Financial_Services";
Page[18] = "Cicero_Fire_Dept";
Page[19] = "Cicero_Funeral_Home";
Page[21] = "Cicero_Insurance";
Page[23] = "Cicero_Legal_Services";
Page[24] = "Cicero_Library";
Page[25] = "Cicero_Lodging";
Page[26] = "Cicero_Manufacturing";
Page[27] = "Cicero_Martial_Arts";

Page[29] = "Cicero_Optometry_Healthcare";
Page[30] = "Cicero_Painters";
Page[31] = "Cicero_Pet_Supplies";
Page[32] = "Cicero_Physical_Fitness";
Page[33] = "Cicero_Physical_Therapist";
Page[34] = "Cicero_Physicians";
Page[35] = "Cicero_Printing_Photography";
Page[36] = "Cicero_Printing_Shipping";
Page[37] = "Cicero_Publishers";
Page[38] = "Cicero_Race_Track";
Page[39] = "Cicero_Real_Estate";
Page[40] = "Cicero_Restaurants";
Page[41] = "Cicero_Storage";
Page[42] = "Cicero_Tax_Service";
Page[43] = "Cicero_Travel_Agency";
Page[44] = "Cicero_Truck";
Page[45] = "Cicero_Waste_Removal";
Page[46] = "Cicero_Home_Care";
Page[47] = "Cicero_Webdesign";
Page[48] = "Cicero_Awnings";
Page[49] = "Cicero_Driving_School";
Page[50] = "Cicero_Clubs";
Page[51] = "Cicero_Signs";




function getBusinessDirectoryValue(formElement)
{
    if(formElement.length != null) var type = formElement[0].type;
	if((typeof(type) == 'undefined') || (type == 0)) var type = formElement.type;

	    type;
	
		formElement.value;
	  for(x=0;x<52;x++)
	  {
	  if(Categories[x] == formElement.value)
		{
		window.open('htmls/'+Page[x]+'.php','mainwindow');
		}
	  }
		
}

var message = new Array();
// Set your messages below -- follow the pattern.
// To add more messages, just add more elements to the array.
message[0] = "Web Design by Rick";
message[1] = "I am a service that offers web site design";
message[2] = "for small businesses at a reasonable price.";
message[3] = "All small businesses need to have a presence";
message[4] = "on the World Wide Web.";
message[5] = "Small organizations web design";
message[6] = "Reasonable prices";
message[7] = "Phone: 315 652-3820";

// Set the number of repetitions (how many times the arrow
// cycle repeats with each message).
var reps = 2;
var speed = 200;  // Set the overall speed (larger number = slower action).

// DO NOT EDIT BELOW THIS LINE.
var p = message.length;
var T = "";
var C = 0;
var mC = 0;
var s = 0;
var sT = null;
if (reps < 1) reps = 1;
function doTheThing() {
T = message[mC];
A();
}
function A() {
s++;
if (s > 8) { s = 1;}
// you can fiddle with the patterns here...
if (s == 1) { document.title = ''+T+''; }
if (s == 2) { document.title = ''+T+''; }
if (s == 3) { document.title = ''+T+''; }
if (s == 4) { document.title = ''+T+''; }
if (s == 5) { document.title = ''+T+''; }
if (s == 6) { document.title = ''+T+''; }
if (s == 7) { document.title = ''+T+''; }
if (s == 8) { document.title = ''+T+''; }
if (C < (8 * reps)) {
sT = setTimeout("A()", speed);
C++;
}
else {
C = 0;
s = 0;
mC++;
if(mC > p - 1) mC = 0;
sT = null;
doTheThing();
   }
}
doTheThing();
//-->
