jQuery(document).ready(function(){	
								
	$('a[href=body]').click(function(){
        $('html').animate({scrollTop:0}, 'slow');
        return false;
    });
	
	$("#slider ul li a").css("-moz-border-radius","5px");
	$("#slider ul li a").css("border-radius","5px");
	
	$("#why-sps").css("-moz-border-radius","5px");
	$("#why-sps").css("border-radius","5px");
	
	$("#latest-news").css("-moz-border-radius","5px");
	$("#latest-news").css("border-radius","5px");
	
	$("#twitter").css("-moz-border-radius","5px");
	$("#twitter").css("border-radius","5px");
	
	$("#radio-advert").css("-moz-border-radius","5px");
	$("#radio-advert").css("border-radius","5px");
	
	$("#main-nav li a").css("-moz-border-radius-topright","5px");
	$("#main-nav li a").css("-moz-border-radius-topleft","5px");
	$("#main-nav li a").css("border-top-right-radius","5px");
	$("#main-nav li a").css("border-top-left-radius","5px");
	$("#main-nav li a").css("-webkit-border-top-right-radius","5px");
	$("#main-nav li a").css("-webkit-border-top-left-radius","5px");
	
	$("#contact-container").css("-moz-border-radius","5px");
	$("#contact-container").css("border-radius","5px");
	
	
	// Hide/Show Specifications
	$("li.head").addClass("switchOff").click(function() {
													 
		if($(this).is(".switchOff")) {
			$(this).next().slideDown("slow", function() { 
				$(this).prev().removeClass("switchOff").addClass("switchOn");
				$(this).prev().removeClass("head").addClass("headon");
			});
			
		} 
		if ($(this).is(".switchOn")) {
			$(this).next().slideUp("slow", function() { 
				$(this).prev().removeClass("switchOn").addClass("switchOff");
				$(this).prev().removeClass("headon").addClass("head");
			});
		}
		
		return false;
		
	}).next().hide();
	
	//construction cards dropdown menu
	$("#navigation a.construction-cards-a").parent().append("<span class='showSubnav'></span>");
		//Only shows drop down trigger when JS is enabled (adds empty span tag after ul.subnav)

		$("#navigation a.construction-cards-a, #navigation li span.showSubnav").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('fast');
		});

		//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"
	});
		
		//apprenticeships dropdown menu
	$("#navigation a.apprenticeships-a").parent().append("<span class='showSubnav'></span>");
		//Only shows drop down trigger when JS is enabled (adds empty span tag after ul.subnav)

		$("#navigation a.apprenticeships-a, #navigation li span.showSubnav").hover(function() { //When trigger is hovered...
		
		//Drop down the subnav on hover
		$(this).parent().find("ul#app-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#app-subnav").slideUp('fast');
		});

		//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"
	});
							
});
