function getLoginIframeUrl() {
	
	return getSecureDomain() + "/portal/login.html";
}


function getSignupUrl() {
	
	return getSecureDomain() + "/home/SignUp.jsp";
}

function getSecureDomain () {
	
	var hostname = window.location.hostname ;
	
	var port  =    window.location.port;
	if (port !="") { 
		port = ":" + port ;
	}
	
	var protocol = window.location.protocol;

	var loginDomain = "";

	 
	if ((port == "" ) && (protocol == "http:")) {

		switch (hostname) 
		{
		   case "ghost.cc":
			   loginDomain = "https://secure.ghost.cc" ;
		      break 
		      
		   case "test.g.ho.st":
			 
			   loginDomain = "https://secure.test.g.ho.st" ; 
		      break

		   case "staging.g.ho.st":
			   loginDomain = "https://secure.test.g.ho.st" ; 
		      break
		      		     
		   case "qa.testghost.com":
			   loginDomain = "https://secure.qa.testghost.com" ;
		      break
		      
		}		
	}
	
   return  loginDomain ;
}