/*
/* 	HTTP REDIRECT for Pebble Design:: Copyright Pebble Design 2009
	CLIENT: Sofitel Wentworth Sydney
	AUTHOR: GS
	CONTRIBUTORS:
	DATE CREATED: 21/05/2009
	VERSION: v 1.0
	DATE MODIFIED:
	CHANGE LOG:

	HTTP REDIRECT unsets a secure page back to HTTP removing WORLD SECURE SYSTEMS CERTIFICATES. This prevents users from unintentionally navigating a site via HTTPS.
*/

function httpredirect() {
	if ((window.location.hostname == "sofitelbrisbane.worldsecuresystems.com") || (window.location.hostname == "www.sofitelbrisbane.worldsecuresystems.com")) {
		var securePath = window.location.pathname + window.location.search;
		var unsecureURL = "http://www.sofitelbrisbane.com.au" + securePath;
		window.location = unsecureURL;                                        
	};
}

window.onload=httpredirect();
