//   ************************************************************************//
//   * Module Name		: MiscGen.js										*//
//   * Release			: 1.0												*//
//   * Date				: 29/02/2008										*//
//   * Project			: AGSE_TT											*//
//   * Author			: aCOSwt											*//
//   * Description		: Miscellaneous general purpose scripts				*//
//   * History			: 1.0 : First Site Version							*//
//   * Language			: JavaScript										*//
//   * Compatibility	: FireFox 2 - IE 7 - Opera 9 - Konqueror 3			*//
//   ************************************************************************//

//************************** Hiding a Layer ********************************//

function HideLayer(layerId){

	document.getElementById(layerId).style.visibility="hidden";}

//***************************** Showing a Layer ****************************//

function ShowLayer(layerId){

	document.getElementById(layerId).style.visibility="visible";}

//*************************** Load & Show Photo  Images Preloading *********//

function ShowPhoto(filename){

	document.getElementById('PHOTO').src=filename;
	ShowLayer('PHOTO');}

//*************************** Highlight a Table line ***********************//

function HighlightTabLine(lineId){

	document.getElementById(lineId).bgColor="#FFDF12";}

//*************************** UnHighlight a Table line *********************//

function UnlightTabLine(lineId){
	
	document.getElementById(lineId).bgColor="";}

//************************* Show associated Photo & Offset *****************//

function DisplayWide(topof7,filepath){

	document["PHOTO"].src=filepath;
	if(navigator.appName=="Microsoft Internet Explorer")
		document.getElementById("PHOTODIV").style.top=(topof7+parseInt(document.documentElement.scrollTop))+"px";
	else
		document.getElementById("PHOTODIV").style.top=(topof7+parseInt(window.pageYOffset))+"px";
	ShowLayer("PHOTODIV");}
