var OrigColor

function InitSettings(){
	SetCursorSearch()
}


function HoverLeftArrowOn(obj){
	obj.src = './factbook/images/arrow_left_hover.gif';
	var browserName=navigator.appName;
	var is_major = parseInt(navigator.appVersion);
	if (browserName=="Microsoft Internet Explorer")
	{		obj.style.cursor = 'hand';	}
	if (browserName=="Netscape")
	{		obj.style.cursor = 'pointer';	}

	return true;
}

function HoverLeftArrowOff(obj){
	obj.src = './factbook/images/arrow_left.gif'
	obj.style.cursor = 'default'
	return true;
}

function HoverRightArrowOn(obj){
	obj.src = './factbook/images/arrow_right_hover.gif';
	var browserName=navigator.appName;
	var is_major = parseInt(navigator.appVersion);
	if (browserName=="Microsoft Internet Explorer")
	{		obj.style.cursor = 'hand';	}
	if (browserName=="Netscape")
	{		obj.style.cursor = 'pointer';	}

	return true;
}

function HoverRightArrowOff(obj){
	obj.src = './factbook/images/arrow_right.gif'
	obj.style.cursor = 'default'
	return true;
}



function LoadInternal(myPage){
	self.location.href=myPage
}

function HoverTextOn(obj){
	
	var browserName=navigator.appName;
	var is_major = parseInt(navigator.appVersion);
	if (browserName=="Microsoft Internet Explorer")
	{		obj.style.cursor = 'hand';	}
	if (browserName=="Netscape")
	{		obj.style.cursor = 'pointer';	}

	OrigColor = obj.style.color
	obj.style.color='#5C7ECF'
}


function HoverTextOff(obj){

	obj.style.cursor = 'default'
	obj.style.color=OrigColor
	OrigColor = ""
}



function LaunchEdition(intKey){
	
	
	ClearSearchFlag()
	document.frmMain.action = document.frmMain.action  + "?mode=table&key=" + intKey + "&category=" + document.frmMain.hidCategory.value
	document.frmMain.submit(true)
}


function LaunchAllEditions(intKey){
	document.frmMain.action = document.frmMain.action + "?mode=tables&key=" + intKey + "&category=" + document.frmMain.hidCategory.value
	document.frmMain.submit(true)
}

function LaunchText(intKey){
	
	document.frmMain.action = document.frmMain.action + "?mode=text&key=" + intKey		 + "&hidCategory=" + document.frmMain.hidCategory.value
	document.frmMain.submit(true)
}

function LaunchChart(intKey){

	document.frmMain.action = document.frmMain.action + "?mode=chart&key=" + intKey			 + "&hidCategory=" + document.frmMain.hidCategory.value
	document.frmMain.submit(true)
}
