﻿// JScript File

/*_______________________________________________________*/

// Hide & Show Account Type information
	var type = "";
	var type1 = "";
	var located = 0;

	function showAccountInfo(type1) {
		
		//detect Firefox browser and use appropriate code
		if(navigator.userAgent.indexOf("Firefox")!=-1){
		var versionindex=navigator.userAgent.indexOf("Firefox")+8
		if (parseInt(navigator.userAgent.charAt(versionindex))>=1)
			document.getElementById('Descriptions').style.height = 0;
			document.getElementById('Descriptions').style.width = 0;
			//alert("You are using Firefox 1.x or above")
		}
		
		//Detect IE5.5+ and use appropriate code
		version=0
		if (navigator.appVersion.indexOf("MSIE")!=-1){
		temp=navigator.appVersion.split("MSIE")
		version=parseFloat(temp[1])
		}
		if (version>=5.5) { //NON IE browser will return 0
			//alert("You're using IE5.5+")
			document.getElementById('Descriptions').style.height = 0;
			document.getElementById('Descriptions').style.width = 1;
			document.getElementById('Descriptions').style.overflow = "hidden";
		}
			

		if (type != "" && type1 != type) {
			eval("document.getElementById('" + type + "Description').style.display = 'none'");
		} 
		if (type1 == type) {
			eval("document.getElementById('" + type1 + "Description').style.display = 'block'");
			type = type1;
		} else {
			eval("document.getElementById('" + type1 + "Description').style.display = 'block'");
			type = type1;
		}
	}

	function hideAccountInfo(type1) {
			eval("document.getElementById('" + type1 + "Description').style.display = 'none'");
				document.getElementById('Descriptions').style.overflow = "visible";
	}
