﻿	var myimages=new Array()

	function preloadimages()
	{
		for (i=0;i<preloadimages.arguments.length;i++)
		{
			myimages[i]=new Image()
			myimages[i].src=preloadimages.arguments[i]
		}
	}

	// jQuery to control the menu behavior on the master page
	$(document).ready(function() {
		// hides the slickbox as soon as the DOM is ready (a little sooner that page load)
		$('#ServicesSubMenus').hide();
		$('#ProductsSubMenus').hide();

		// slides down, up, and toggle the slickbox on click    
		$('.services-toggle').click(function() {
			$('#ServicesSubMenus').slideToggle('slow');
			return false;
		});
		$('.products-toggle').click(function() {
			$('#ProductsSubMenus').slideToggle('slow');
			return false;
		});
	});

	// jQuery to control the slideshow on the master page
	$(function() {
		$('#BrandSlides').crossSlide({
			sleep: 5,
			fade: 3,
			shuffle: true
			}, [
			{ src: 'Images/logo_generac.jpg', href: 'http://www.generac.com' },
			{ src: 'Images/logo_lutron.jpg', href: 'http://www.lutron.com' },
			{ src: 'Images/logo_eaton.jpg', href: 'http://www.eaton.com' },
			{ src: 'Images/logo_litetouch.jpg', href: 'http://www.litetouch.com' }
		]);
	});
