
//Hide Stuff that shouldn't be visible on load of document	
			
			//Pandora's Box			
			
			$(window).load(function(){
				$(".gallerydiv").css( "opacity", ".75");
			});

				
			
//Event triggered 			
			
			//Toggle of Pandora's Box
			
			$(document).ready(function() {
				$("#droptabclick").click(function(){
					$("#contentholder").css("height", "100%");
				});
				
				$("#droptabclick").toggle(function(){
					$("#content").slideDown('slow');
				}, function(){
					$("#content").slideUp('slow');					
				});
				
			//Menu Animation		
				
				$("#nav li").click( function (){
					$(this).find("ul").css("visibility", "visible");
				});
				
				$("#navinstall").click( function(){
					$("#nav ul ul").stop().queue("fx",[]);
					if ( $("#navinstall ul").is(":visible")) {
						$("#navinstall ul").slideUp();
					} else {
						$("#navinstall ul").slideDown().delay(6000).slideUp();
						$("#navrental ul").slideUp();
						$("#navproduction ul").slideUp();
						$("#navretail ul").slideUp();
						$("#navcontact ul").slideUp();

					}
				});

				$("#navrental").click( function(){
					$("#nav ul ul").stop().queue("fx",[]);
					if ( $("#navrental ul").is(":visible")) {
						$("#navrental ul").slideUp();
					} else {
						$("#navinstall ul").slideUp();
						$("#navrental ul").slideDown().delay(6000).slideUp();
						$("#navproduction ul").slideUp();
						$("#navretail ul").slideUp();
						$("#navcontact ul").slideUp();
					}
				});	

				$("#navproduction").click( function(){
					$("#nav ul ul").stop().queue("fx",[]);
					if ( $("#navproduction ul").is(":visible")) {
						$("#navproduction ul").slideUp();
					} else {
						$("#navinstall ul").slideUp();
						$("#navrental ul").slideUp();
						$("#navproduction ul").slideDown().delay(6000).slideUp();
						$("#navretail ul").slideUp();
						$("#navcontact ul").slideUp();
					}
				});
				
				$("#navretail").click( function(){
					$("#nav ul ul").stop().queue("fx",[]);
					if ( $("#navretail ul").is(":visible")) {
						$("#navretail ul").slideUp();
					} else {
						$("#navinstall ul").slideUp();
						$("#navrental ul").slideUp();
						$("#navproduction ul").slideUp();
						$("#navretail ul").slideDown().delay(6000).slideUp();
						$("#navcontact ul").slideUp();
					}
				});
				
				$("#navcontact").click( function(){
					$("#nav ul ul").stop().queue("fx",[]);
					if ( $("#navcontact ul").is(":visible")) {
						$("#navcontact ul").slideUp();
					} else {
						$("#navinstall ul").slideUp();
						$("#navrental ul").slideUp();
						$("#navproduction ul").slideUp();
						$("#navretail ul").slideUp();
						$("#navcontact ul").slideDown().delay(6000).slideUp();
					}
				});
				
				
				
			//Slider Animation	
				$("#slidercontainer")
				.delay(3000)
				.animate( {right: 1000}, 1000 )
				.delay(3000)
				.animate( {right: 2000}, 1000 )
				.delay(3000)
				.animate( {right: 3000}, 1000 )
				.delay(3000)
				.animate( {right: 0}, 1000 );			
			
			
				$("#newsbutton").click( function(){
						$("#slidercontainer").queue("fx",[]);
						$("#slidercontainer").stop().animate( {right: 0}, 1000 );
				});
				
				$("#dealsbutton").click( function(){
						$("#slidercontainer").queue("fx",[]);
						$("#slidercontainer").stop().animate( {right: 1000}, 1000 );
				});

				$("#productionbutton").click( function(){
						$("#slidercontainer").queue("fx",[]);
						$("#slidercontainer").stop().animate( {right: 2000}, 1000 );
				});
				
				$("#installbutton").click( function(){
						$("#slidercontainer").queue("fx",[]);
						$("#slidercontainer").stop().animate( {right: 3000}, 1000 );
				});
				
				$(".fancyboxpop").mouseout( function() {
					$("div", this).css("opacity", "0.75");
				});				

				$(".fancyboxpop").mouseover( function() {
					$("div", this).css("opacity", "1");
				});
				
				$(".fancyboxpop").lightBox();
				
				//Vendor list add clear both to every 3rd Element
				
				
				var mynodelist = document.querySelectorAll(".alphabetsoup");
				var mynodearray = $.makeArray(mynodelist);
				for (var i = 0 ; i < mynodearray.length; i= i + 3){
						$( mynodearray[i] ).css( "clear" , "both" );
					
				};
				
				


				$("select").change( function()
				{
					$("#submit").removeAttr("disabled");
					$("#notselect").remove();
				});

				
					

			});

			

