	
	function loadchosen(){
		var query = window.location.search;
		// Skip the leading ?, which should always be there,
		// but be careful anyway
		if (query.substring(0, 1) == '?') {
			query = query.substring(1);
		}
		var data = query.split(',');
		for (i = 0; (i < data.length); i++) {
			data[i] = unescape(data[i]);
		}
		for (i = 0; (i < data.length); i++) {
		//run the function
			
			if(data[i] != ""){
				//run the function
				showTabData(String(data[i]));
			}
		}
	}
	
	/*function hoverTab(tabData){
		tabData.className = "tab";
	}
	
	function outTab(tabData){
		tabData.className = "tab";
	}
	*/
	function executeTab(tabData){
		tabData.className = "tabactive";
		tabData.onmouseover=function(){};
		tabData.onmouseout=function(){};
	}
	
	
	
	function showTabData(idForDisplay){
		var tabOne = document.getElementById('tab-one'); 
		var tabTwo = document.getElementById('tab-two');
		var tabThree = document.getElementById('tab-three');
		var tabFour = document.getElementById('tab-four');
		
		var onetab = document.getElementById('onetab');
		var twotab = document.getElementById('twotab');
		var threetab = document.getElementById('threetab');
		var fourtab = document.getElementById('fourtab');
		
		tabOne.style.display = "none";
		tabTwo.style.display = "none";
		tabThree.style.display = "none";
		tabFour.style.display = "none";
		
		onetab.className = "tab";
		twotab.className = "tab";
		threetab.className = "tab";
		fourtab.className = "tab";
		 		
		if (idForDisplay == "one"){	
			tabOne.style.display = "block";
			executeTab(onetab);
		}else if(idForDisplay == "two"){
			tabTwo.style.display = "block";
			executeTab(twotab);	
		}else if(idForDisplay == "three"){
			tabThree.style.display = "block";
			executeTab(threetab);
		}else if(idForDisplay == "four"){
			tabFour.style.display = "block";
			executeTab(fourtab);
		}
		
 	}

	
//a basic example external module to control scroll from outside
//NOT required for fleXcroll to run, and user do NOT need to
//know what this is for standard operation.
/*function fleXcrollTo(id,x,y,relative) {
	var scrollDiv = document.getElementById(id);
	//Return if the target is null
	if (scrollDiv == null) return;
	//Do the scroll by using custom method attached by fleXcroll
	//but first check if the method exists.
	if(scrollDiv.contentScroll) scrollDiv.contentScroll(x,y,relative);
	//Following is the method to tell fleXcrolled div to update itself
	if(scrollDiv.scrollUpdate) scrollDiv.scrollUpdate();

}*/