
// 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";
Categories[52] = "Computer Service";
Categories[53] = "Office Solutions";
Categories[54] = "Graphics";

var Page = new Array();
Page[0] = "Accounting Services";
Page[1] = "Advertising";
Page[2] = "Agriculture";
Page[3] = "Appliances";
Page[4] = "Auto Repair";
Page[5] = "Banking";
Page[6] = "Beverages";
Page[7] = "Chiropractic Care";
Page[8] = "Communications";
Page[9] = "Credit Union";
Page[10] = "Dance & Music";
Page[11] = "Dentist";
Page[12] = "Developers";
Page[13] = "Education";
Page[14] = "Employee Benefits";
Page[15] = "Employee Staffing";
Page[16] = "Engineers";
Page[17] = "Financial Services";
Page[18] = "Fire Department";
Page[19] = "Funeral Home";
Page[21] = "Insurance";
Page[23] = "Legal Services";
Page[24] = "Library";
Page[25] = "Lodging";
Page[26] = "Manufacturing";
Page[27] = "Martial Arts";

Page[29] = "Optometry Healthcare";
Page[30] = "Painting";
Page[31] = "Pets/Pet Supplies";
Page[32] = "Physical Fitness";
Page[33] = "Physical Therapist";
Page[34] = "Physicians";
Page[35] = "Photography";
Page[36] = "Printing / Shipping";
Page[37] = "Publishers";
Page[38] = "Race Track";
Page[39] = "Real Estate";
Page[40] = "Restaurant / Banquets";
Page[41] = "Storage";
Page[42] = "Tax Service";
Page[43] = "Travel Agency";
Page[44] = "Truck Caps & Tires";
Page[45] = "Waste Removal";
Page[46] = "Home Care";
Page[47] = "Web Design";
Page[48] = "Awnings";
Page[49] = "Driving School";
Page[50] = "Clubs";
Page[51] = "Signs";
Page[52] = "Computer Service";
Page[53] = "Office Solutions";
Page[54] = "Graphics";




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<55;x++)
	  {
	  if(Categories[x] == formElement.value)
		{
		window.open('htmls/businessdisplay.php?name='+Page[x],'mainwindow');
		}
	  }
		
}

function Header()
{
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','855','height','241','title','Cicero Header','src','FlashMovies/CiceroHeader','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FlashMovies/CiceroHeader' ); //end AC code	
}

function Banner()
{
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','600','height','50','title','Welcome Cicero New York','src','FlashMovies/WelcomeBOTM','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FlashMovies/FrontBanner' ); //end AC code	
}

function BusinessOfMonth()
{
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','470','height','146','title','Business of the MOnth','src','../FlashMovies/BusinessOfMonth','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../FlashMovies/BusinessOfMonth' ); //end AC code	
}

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();
   }
}
//-->
