		
		jQuery(document).ready(function(){
			// remove bg images and border right from last children in foot and head nav.
			//jQuery("#r_nav ul li:last-child").addClass("r_lastChild");
			jQuery("#r_nav ul li:last-child a").css("background", "0");
			jQuery("#r_foot_nav ul li:last-child a").css("border-right", "0");
			jQuery("#r_nav ul li:last-child a").css("background", "none");
		
			// if the user hasn't selected employer or candidate, make pop up box to do so.
			if (!jQuery.cookie("jxtsplash") && 0 == jQuery(location).attr("href").split("/").pop().split(".")[0].length)
			{
				
				jQuery("#r_splash-wrapper").width(jQuery(document).width());
				jQuery("#r_splash-wrapper").height(jQuery(document).height());
				jQuery("#r_splash-wrapper").fadeIn();
			}

			// set cookie if user selects a section.
			jQuery("#r_splash-wrapper a").click(function(){

				jQuery.cookie("jxtsplash", jQuery(this).attr("href"), { expires: 365, path: "/" });
				if ("#" == jQuery(this).attr("href"))
				{
					jQuery("#r_splash-wrapper").fadeOut();
					return false;
				}

			});
			
			// make facebook links open in new window.
			jQuery("#r_facebook ul li a").attr("target", "_blank");
			
			// make columns end at the same place.
			
			// get max column height.
			
			var firstColHeight = 0;
			var secondColHeight = 0;
			var thirdColHeight = 0;
			
			if (jQuery("#r_tertiary .r_contentBoxContent:last").length)
			{
				firstColHeight = jQuery("#r_tertiary .r_contentBoxContent:last").offset().top + jQuery("#r_tertiary .r_contentBoxContent:last").outerHeight();
			}
			if (jQuery("#r_mainContentContent").length)
			{
				secondColHeight = jQuery("#r_mainContentContent").offset().top + jQuery("#r_mainContentContent").outerHeight();
			}
			if (jQuery("#r_secondary .r_contentBoxContent:last").length)
			{
				thirdColHeight = jQuery("#r_secondary .r_contentBoxContent:last").offset().top + jQuery("#r_secondary .r_contentBoxContent:last").outerHeight();
			}
			
			colHeight = Math.max(firstColHeight, secondColHeight, thirdColHeight);
		
			// assign max column height 
			
			if (jQuery("#r_tertiary .r_contentBoxContent:last").length)
			{
				jQuery("#r_tertiary .r_contentBoxContent:last").height(colHeight - jQuery("#r_tertiary .r_contentBoxContent:last").offset().top);
			}
			if (jQuery("#r_mainContentContent").length)
			{
				jQuery("#r_mainContentContent").height(colHeight - jQuery("#r_mainContentContent").offset().top);
			}
			if (jQuery("#r_secondary .r_contentBoxContent:last").length)
			{
				jQuery("#r_secondary .r_contentBoxContent:last").height(colHeight - jQuery("#r_secondary .r_contentBoxContent:last").offset().top);
			}
			
			
			// simply scroll 
			jQuery("#rssincl-box-328024").simplyScroll({
				autoMode: 'loop',
				horizontal: false
			});
			
			// remove HR from last post and testimonials etc.
			jQuery("#r_mainContent div.r_primaryPost:last").css("background-image", "none");
			jQuery("div.r_contentBox div.r_contentBoxContent p:last-child").children("a.r_readMore").css("background-image", "none");
			

		});
