function activateSubMenu(id)
	{
	chNodeClassName("submenu_"+defaultSubMenu,	"subMenuUnActive");
	chNodeClassName("submenu_"+id,	"subMenuActive");
	
	}

function deActivateSubMenu(id)
	{
	chNodeClassName("submenu_"+id,	"subMenuUnActive");
	chNodeClassName("submenu_"+defaultSubMenu,	"subMenuActive");
	
	
	}

function activateGalleryCell(idIndex)
	{
	chNodeSrc("gallery_cell_"+idIndex+"_top",	"/img/content/about/gallery/border_a/top.jpg");
	chNodeSrc("gallery_cell_"+idIndex+"_left",	"/img/content/about/gallery/border_a/left.jpg");
	chNodeSrc("gallery_cell_"+idIndex+"_right",	"/img/content/about/gallery/border_a/right.jpg");
	hideNode("gallery_cell_"+idIndex+"_bottom");
	showNode("gallery_cell_"+idIndex+"_bottomA");
	}

function deActivateGalleryCell(idIndex)
	{
	chNodeSrc("gallery_cell_"+idIndex+"_top",	"/img/content/about/gallery/border/top.jpg");
	chNodeSrc("gallery_cell_"+idIndex+"_left",	"/img/content/about/gallery/border/left.jpg");
	chNodeSrc("gallery_cell_"+idIndex+"_right",	"/img/content/about/gallery/border/right.jpg");
	hideNode("gallery_cell_"+idIndex+"_bottomA");
	showNode("gallery_cell_"+idIndex+"_bottom");
	}
function getElementY( oElement )
	{
	var iReturnValue = 0;
	while( oElement != null ) {
	iReturnValue += oElement.offsetTop;
	oElement = oElement.offsetParent;
	}
	return iReturnValue;
	}
function getElementX( oElement )
	{
	var iReturnValue = 0;
	while( oElement != null ) {
	iReturnValue += oElement.offsetLeft;
	oElement = oElement.offsetParent;
	}
	return iReturnValue;
	}
function makeMenuActive(menu,id)
	{
		var cMenu=getNode('c'+id);
		cMenu.style.backgroundColor="#9F0D04";
	}	
function makeMenuUnActive(menu)
	{
		//menu.style.backgroundColor="interhited";
	}


function setPopUpDivParams(oElement,caption,link)
	{
	param_oElement=oElement;
	param_caption=caption;
	param_link=link;
	}

function showPopUpDiv()
	{
	var topPosition=getElementY(param_oElement);
	var leftPosition=getElementX(param_oElement);
	var div=getNode('popUpDiv');
	div.style.left=leftPosition;
	div.style.top=topPosition+param_oElement.clientHeight-104;
	var textDiv=getNode('popUpTextDiv');
	textDiv.innerHTML=param_caption

	var downloadFileLink=getNode('downloadFileLinkType');
	downloadFileLink.href=param_link;

	var downloadFileLinkText=getNode('downloadFileLinkText');
	downloadFileLinkText.href=param_link;

	var downloadFileLink=getNode('downloadFileLinkIcon');
	downloadFileLink.href=param_link;


	//insertToNodeText('popUpTextDiv','12334545')
	showNode('popUpDiv');
	}
function hidePopUpDiv()
	{
	hideNode("popUpDiv");
	}	
function downloadFile()
	{
	var url=param_link;    
	window.open(url,'Download');  
	}
function chIdBgcolor_b(txt_gf,txt_f,txt_s,id_gf,id_f,id_s,bgColor)
	{
		if(txt_s)
		{txt_s.className='sitemap_l3_active';}	
		if(txt_f)
		{txt_f.className='sitemap_l2_active';}
		if(txt_gf)
		{txt_gf.className='sitemap_l1_active';}
		if(id_gf)
		{id_gf.style.background=bgColor;}
		if(id_f)
		{id_f.style.background=bgColor;}
		if(id_s)
		{id_s.style.background=bgColor;}		
	}
	
function chIdBgcolor_b2(txt_gf,txt_f,txt_s,id_gf,id_f,id_s,bgColor)
	{
		if(txt_s)
		{txt_s.className='sitemap_l3';}	
		if(txt_f)
		{txt_f.className='sitemap_l2';}
		if(txt_gf)
		{txt_gf.className='sitemap_l1';}
		if(id_gf)
		{id_gf.style.background=bgColor;}
		if(id_f)
		{id_f.style.background=bgColor;}
		if(id_s)
		{id_s.style.background=bgColor;}		
	}
function chIdBgcolor_a(txt_gf,txt_s,id_gf,id_f,id_s,bgColor)
	{

		txt_gf.className='sitemap_l1_active';
		txt_s.className='sitemap_l2_active';

		if(id_gf)
		{id_gf.style.background=bgColor;}
		if(id_f)
		{id_f.style.background=bgColor;}
		if(id_s)
		{id_s.style.background=bgColor;}		
	}
	
function chIdBgcolor_a2(txt_gf,txt_s,id_gf,id_f,id_s,bgColor)
	{

		txt_gf.className='sitemap_l1';
		txt_s.className='sitemap_l2';
		
		if(id_gf)
		{id_gf.style.background=bgColor;}
		if(id_f)
		{id_f.style.background=bgColor;}
		if(id_s)
		{id_s.style.background=bgColor;}		
	}	
function showLargerImage(image) 
	{
		var largeImage=getNode('forkliftLargeImage');
		var largeImageSrc=largeImage.src;
		largeImage.src=image.src;
		image.src=largeImageSrc;
	}

function chMenuBg(current_id,id, node_src,current_src)
	{
	var id='m_'+id;
	var current_id='m_'+current_id;
	
	if(node_id=getNode(id))
		{node_id.style.background="url("+node_src+")";
		}
	if(current_node_id=getNode(current_id))
		{current_node_id.style.background="url("+current_src+")";
		}
	}

function showMenuBg(current_id,id)
	{
	
	var current_src='/img/spacer.gif';
	var node_src='/img/common/menu_active_bg.gif';
	var node_sr_l='/img/common/menu_active_left.gif';
	var node_sr_r='/img/common/menu_active_right.gif';

	var left_id='l_'+id;
	var right_id='r_'+id;	
	var id='m_'+id;
	var current_left_id='l_'+current_id;
	var current_right_id='r_'+current_id;
	var current_id='m_'+current_id;
	
	if(node_id=getNode(id))
		{node_id.style.background="url("+node_src+")";}
	if(node_left_id=getNode(left_id))
		{node_left_id.style.background="url("+node_sr_l+")";}
	if(node_right_id=getNode(right_id))
		{node_right_id.style.background="url("+node_sr_r+")";}
	if(current_node_id=getNode(current_id))
		{current_node_id.style.background="url("+current_src+")";}
	if(current_node_left_id=getNode(current_left_id))
		{current_node_left_id.style.background="url("+current_src+")";}
	if(current_node_right_id=getNode(current_right_id))
		{current_node_right_id.style.background="url("+current_src+")";}
	}
	
function hideMenuBg(current_id,id)
	{
	
	var current_src='/img/common/menu_active_bg.gif';
	var node_src='/img/spacer.gif';
	var current_l='/img/common/menu_active_left.gif';
	var current_r='/img/common/menu_active_right.gif';

	var left_id='l_'+id;
	var right_id='r_'+id;	
	var id='m_'+id;
	var current_left_id='l_'+current_id;
	var current_right_id='r_'+current_id;
	var current_id='m_'+current_id;
	
	if(node_id=getNode(id))
		{node_id.style.background="url("+node_src+")";}
	if(node_left_id=getNode(left_id))
		{node_left_id.style.background="url("+node_src+")";}
	if(node_right_id=getNode(right_id))
		{node_right_id.style.background="url("+node_src+")";}
	if(current_node_id=getNode(current_id))
		{current_node_id.style.background="url("+current_src+")";}
	if(current_node_left_id=getNode(current_left_id))
		{current_node_left_id.style.background="url("+current_l+")";}
	if(current_node_right_id=getNode(current_right_id))
		{current_node_right_id.style.background="url("+current_r+")";}
	}



