function newImage(arg) {
	if (document.Images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		about_over = newImage("/Redesign/images/bc06a.gif");
		products_over = newImage("/Redesign/images/bc06a.gif");
		locations_over = newImage("/Redesign/images/bc06a.gif");
		faqs_over = newImage("/Redesign/images/bc06a.gif");
		news_over = newImage("/Redesign/images/bc06a.gif");
		franchise_over = newImage("/Redesign/images/bc06a.gif");
		links_over = newImage("/Redesign/images/bc06a.gif");
		preloadFlag = true;
	}
}




function submit_login() {
	document.frmlogin.submit();
}

function view_weather()
{
	window.open('/weather/weather_info.asp','weatherinfo',config='height=270,width=325,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no');
}

function view_cam(whichcam)
{
	if (whichcam=="all")
		window.open('/VideoCams/allcams.asp','VideoCamera',config='height=586,width=790,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no');
	else
		window.open('/VideoCams/'+whichcam+'.asp','VideoCamera',config='height=346,width=500,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no');
}

function view_nationalnews()
{
	window.open('/weather/nationalnews_info.asp','NationalNews',config='height=260,width=300,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no');
}

function Reminder()
{
	window.open('/calendars/reminders.asp','reminderwindow',config='height=420,width=520,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no');
}	

function select_localinfo()
{
	if (document.forms[0].category.options[document.forms[0].category.selectedIndex].value=="0")
	{
		document.forms[0].action="area_servs.asp?category=17";
	}
	document.forms[0].submit();
}

function select_option()
{
	if (document.forms[0].selOption.options[document.forms[0].selOption.selectedIndex].value=="MS")
	{
		document.forms[0].action="activ_centers_1.asp";
	}
	if (document.forms[0].selOption.options[document.forms[0].selOption.selectedIndex].value=="AC")
	{
		document.forms[0].action="activ_centers_11.asp";
	}
	if (document.forms[0].selOption.options[document.forms[0].selOption.selectedIndex].value=="RC")
	{
		document.forms[0].action="activ_centers_12.asp";
	}
	if (document.forms[0].selOption.options[document.forms[0].selOption.selectedIndex].value=="RF")
	{
		document.forms[0].action="activ_centers_13.asp";
	}
	document.forms[0].submit();
}

function select_area(thedate)
{
	document.forms[0].action="activ_centers_12.asp?onedate=" + thedate + "&AreaCode=" + document.forms[0].AreaCode.options[document.forms[0].AreaCode.selectedIndex].value;
	document.forms[0].submit();
}

function find_properties()
{
	document.forms[0].action="property_search.asp?cState=" + document.forms[0].cState.options[document.forms[0].cState.selectedIndex].value + "&ptype=" + document.forms[0].ptype.options[document.forms[0].ptype.selectedIndex].value + "&psize=" + document.forms[0].psize.options[document.forms[0].psize.selectedIndex].value + "&pprice=" + document.forms[0].pprice.options[document.forms[0].pprice.selectedIndex].value;
	document.forms[0].submit();
}

function select_calendar()
{
//	if (document.forms[0].category.options[document.forms[0].category.selectedIndex].value=="0")
//	{
//		document.forms[0].action="calendars.asp";
//	}
	document.forms[0].submit();
}
function view_eventdet(EventID)
{
	window.open('/backoffice/events/eventsdescription.asp?EventID='+ EventID,'changewindow',config='height=350,width=450,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no');
}	

function change_options()
{
	if (document.forms[0].ptype.options[document.forms[0].ptype.selectedIndex].value=="L")
	{
		document.forms[0].psize.options.length=0;
		document.forms[0].psize.options[0]=new Option(":: Select ::", "", true, false)
		document.forms[0].psize.options[1]=new Option("0 - 5 Acres", "5", true, false)
		document.forms[0].psize.options[2]=new Option("5 - 10 Acres", "10", false, false)
		document.forms[0].psize.options[3]=new Option("10 - 15 Acres", "15", false, false)
		document.forms[0].psize.options[4]=new Option("20+ Acres", "20", false, false)
	}
}