// JavaScript Document
//Set global variable environment here

var homeURL = "";

function checkURL(){
	
	var currentURL = window.location.href;
	var homeURL1 = "http://localhost/v2/";
	var homeURL2 = "http://svr1/ibt2006/";
	var homeURL3 = "http://www.ibt.ca/v2/";
	var homeURL3B = "http://www2.ibt.ca/";
	var homeURL4 = "http://ibt.ca/v2/";
	
	if(currentURL.substring(0, homeURL1.length) == homeURL1)
		homeURL = "http://localhost/v2/";
	else if(currentURL.substring(0, homeURL2.length) == homeURL2)
		homeURL = "http://localhost/v2/";
	else if(currentURL.substring(0, homeURL3.length) == homeURL3)
		homeURL = "http://www.ibt.ca/v2/";
	else if(currentURL.substring(0, homeURL4.length) == homeURL4)
		homeURL = "http://www.ibt.ca/v2/";
	else if(currentURL.substring(0, homeURL3B.length) == homeURL3B)
		homeURL = "http://www.ibt.ca/v2/";
}

checkURL();
