$(document).ready(function() {
	
	// ----------------Login Panel---------------- //
	// Expand Panel
	$("#open").click(function(){
		$("div#panel").slideDown("500");
	
	});	
	// Collapse Panel
	$("#close").click(function(){
		$("div#panel").slideUp("500");	
	});		
	// Switch buttons 
	$("#toggle a").click(function () {
		$("#toggle a").toggle();
	});		
	
	// ----------------Location Map---------------- //
	// Expand Map
	$("#map-toggle-on").click(function () {
		$("#map-blank").slideDown();
		$("#map").fadeIn(3500);
		$("#map-toggle-on").hide();
		$("#map-toggle-off").show();
	});		
	// Collapse Map
	$("#map-toggle-off").click(function () {
		$("#map").hide();
		$("#map-blank").animate({
		"height": "toggle", "opacity": "toggle"
		}, "slow");
		$("#map-toggle-off").hide();
		$("#map-toggle-on").show();
	});	
	// Expand Advanced Services List
	$("#advanced-services-show").click(function () {
		$("#advanced-services-list").animate({
		"height": "toggle", "opacity": "toggle"
		}, "slow");
		$("#advanced-services-show").hide();
		$("#advanced-services-hide").show();
	});
	// Collapse Advanced Services List	
	$("#advanced-services-hide").click(function () {
		$("#advanced-services-list").animate({
		"height": "toggle", "opacity": "toggle"
		}, "slow");
		$("#advanced-services-show").fadeIn();
		$("#advanced-services-hide").slideUp();
	});
	// Expand Email Services List
	$("#email-services-show").click(function () {
		$("#email-services-list").animate({
		"height": "toggle", "opacity": "toggle"
		}, "slow");
		$("#email-services-show").hide();
		$("#email-services-hide").show();
	});
	// Collapse Email Services List	
	$("#email-services-hide").click(function () {
		$("#email-services-list").animate({
		"height": "toggle", "opacity": "toggle"
		}, "slow");
		$("#email-services-show").fadeIn();
		$("#email-services-hide").slideUp();
	});
	// Expand IP Address Availability List
	$("#ip-addresses-show").click(function () {
		$("#ip-addresses-list").animate({
		"height": "toggle", "opacity": "toggle"
		}, "slow");
		$("#ip-addresses-show").hide();
		$("#ip-addresses-hide").show();
	});
	// Collapse IP Address Availability List	
	$("#ip-addresses-hide").click(function () {
		$("#ip-addresses-list").animate({
		"height": "toggle", "opacity": "toggle"
		}, "slow");
		$("#ip-addresses-show").fadeIn();
		$("#ip-addresses-hide").slideUp();
	});
	
	$(".review-toggle a").click(function(){
		$("#submit-review").fadeOut(1000);
		$("#review-confirmation").fadeIn(3000);
	});	
	// Collapse Panel
	$("#close").click(function(){
		$("div#panel").slideUp("500");	
	});	
	
	// ----------------Dedicated Server Comparison Toggle---------------- //
	// US Servers
	$("#thcol2 a").click(function () {
		$(".us-packages").show();
		$(".uk-packages").hide();
		$("#thcol2 a").addClass("selected");
		$("#thcol3 a").removeClass("selected");
	});		
	// UK Servers
	$("#thcol3 a").click(function () {
		$(".uk-packages").show();
		$(".us-packages").hide();
		$("#thcol3 a").addClass("selected");
		$("#thcol2 a").removeClass("selected");
	});	

});

