jQuery(document).ready(function(){
	
//starting printing section
$(function(){
		   // Hook up the print link.
				$( "a.printButton" )
					.attr( "href", "javascript:void( 0 )" )
					.click(
						function(){
							// Print the DIV.
							$(this).parent().print();							
 
							// Cancel click event.
							//return( false );
						}
						)
				;
 
			}
			);	

	
	$(".moreinfoLink").click(function(){
		$(this).next().slideToggle("slow");
		return false;
	});
	
	$(".printButton").css("-moz-border-radius","5px");
	$(".printButton").css("-webkit-border-radius","5px");
	$(".printButton").css("border-radius","5px");
	
	$("#main .column").css("-moz-border-radius","5px");
	$("#main .column").css("-webkit-border-radius","5px");
	$("#main .column").css("border-radius","5px");
	
	$("#main .column h2").css("-moz-border-radius","5px");
	$("#main .column h2").css("-webkit-border-radius","5px");
	$("#main .column h2").css("border-radius","5px");
							
	// General CSS Styling								
	$("#main p").css("text-shadow","1px 1px 1px #fff");
	$("#footer ul li").css("text-shadow","0px 1px 1px #000");
	$("#footer h2").css("text-shadow","0px 1px 1px #000");	
	$("#footer p").css("text-shadow","0px 1px 1px #000");
	
	$(".callbackformbox").css("-moz-border-radius","5px");
	$(".callbackformbox").css("-webkit-border-radius","5px");	
	
	$("#callbackform").css("-webkit-border-radius","10px");
	$("#callbackform").css("-moz-border-radius","10px");
	
	//$(".bottom-runner .holder p").css("text-shadow","1px 1px 1px #333");
	
	$(".bottom-runner .holder").css("-webkit-border-radius","10px");
	$(".bottom-runner .holder").css("-moz-border-radius","10px");
	
	$("#contactForm").css("-webkit-border-radius","10px");
	$("#contactForm").css("-moz-border-radius","10px");
	
	$(".callbackformbox, #dropdown").css("-moz-border-radius","5px");
	$(".callbackformbox, #dropdown").css("-webkit-border-radius","5px");
	
	$("#callbackform #errors li, #form #errors li").css("-moz-border-radius","5px");
	$("#callbackform #errors li, #form #errors li").css("-webkit-border-radius","5px");
	
	$("#main ul.autoDosing li a").css("opacity","0.8");
	$("#main ul.autoDosing li a").hover(function() {
		$(this).css("opacity","1.0");},
	function(){
		$(this).css("opacity","0.8");
	});
	
	//$("div#form form.formular legend, div#form form.formular fieldset, div#form form.formular .text-input, div#form form.formular .dropdown, div#form form.formular #textarea, div#form form.formular .submit").css("-moz-border-radius","10px");
	
	//$("div#form form.formular legend, div#form form.formular fieldset, div#form form.formular .text-input, div#form form.formular .dropdown, div#form form.formular #textarea, div#form form.formular .submit").css("-webkit-border-radius","10px");
	
	$("div#form form.formular legend").css ("-webkit-border-radius","3px");
	$("div#form form.formular legend").css ("-moz-border-radius","3px");
	
	$("#navigation li ul.subnav").css("-moz-border-radius-bottomright","5px");
	$("#navigation li ul.subnav").css("-moz-border-radius-bottomleft","5px");	

	// Dropdown
	
		$("#navigation a.products-a").parent().append("<span></span>");
		//Only shows drop down trigger when JS is enabled (adds empty span tag after ul.subnav)

		$("#navigation a.products-a, #navigation li span").hover(function() { //When trigger is hovered...
		
		//Drop down the subnav on hover
		$(this).parent().find("ul.subnav").slideDown('fast').show();
		$(this).parent().hover(function() {
		}, function(){
			//When the mouse hovers out of the subnav, move it back up
			$(this).parent().find("ul.subnav").slideUp('slow');
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() {
			$(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});	
	
	// Lightbox
	$(function() {
		$(".lightbox").lightbox();
	});
	
	// Hide/Show Specifications
	$(".spec").addClass("switchOff").click(function() {
													 
		if($(this).is(".switchOff")) {
			$(this).next().slideDown("slow", function() { 
				$(this).prev().removeClass("switchOff").addClass("switchOn");
			});
			
		} 
		if ($(this).is(".switchOn")) {
			$(this).next().slideUp("slow", function() { 
				$(this).prev().removeClass("switchOn").addClass("switchOff");
			});
		}
		
		return false;
		
	}).next().hide();
	
		
	$("#cta-special-offers").css("opacity","1");

$("#cta-special-offers").hover(function() {
     $(this).css("opacity","0.8"); },
function() {
     $(this).css("opacity","1"); });

	
});



