$(document).ready(function(){	$('div.pageDisplay').show();	if (urlParameter('reset')){		$.cookie('autoRedirect',null);	}	if ($.cookie('autoRedirect')){		location.href = $.cookie('autoRedirect');	}	$('.homeMidBox input[type=radio]').click(function(){		$('.floatLeft input').attr('checked','checked');		});	$('#bt_next').click(function(){		if ($('.homeMidBox input:checked').length > 0){			var redirectSite = $('.homeMidBox input:checked').next().attr('href');			if ($('.floatLeft input:checked').length > 0){				$.cookie('autoRedirect',redirectSite,{ expires: 7, path: '/'});			}			location.href = redirectSite;		}		else{			alert('Please select a website to continue');			return false;		}	});	});// FIX -- get top most Sectionfunction getTopSection(){	if ('' != ''){		return location.pathname.split('/')[2];	}	else{		return location.pathname.split('/')[1];	}}// Get URL parameters// --------------------------------------------- function urlParameter(name){	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  	var regexS = "[\\?&]"+name+"=([^&#]*)"; 	var regex = new RegExp(regexS); 	var results = regex.exec(window.location.href);  	if (results == null){		return ""; 	}	else{		return results[1];	}}