function pressReleaseHide(nom)
	{
	if(a=getNode("article_"+nom))
		{a.style.display="none";}

	if(a=getNode("line_"+nom))
		{a.style.display="none";}

	if(a=getNode("hide_"+nom))
		{a.style.display="none";}

	if(a=getNode("show_"+nom))
		{a.style.display="block";}
	}

function pressReleaseShow(nom)
	{
	if(a=getNode("article_"+nom))
		{a.style.display="block";}

	if(a=getNode("line_"+nom))
		{a.style.display="block";}

	if(a=getNode("hide_"+nom))
		{a.style.display="block";}

	if(a=getNode("show_"+nom))
		{a.style.display="none";}
	}


function pressReleaseShowHide(nom)
	{
	if(a=getNode("article_"+nom))
		{
		if(a.style.display=="block")
			{pressReleaseHide(nom);}
		else
			{pressReleaseShow(nom);}
		}
	}

function hideProduction()
	{
	hideNode("products_list");
	showNode("products_list_show");
	chNodeSrc("production_bg", url_img+"spacer.gif");
	}

function showProduction()
	{
	showNode("products_list");
	hideNode("products_list_show");
	chNodeSrc("production_bg", url_img+"content/production/upper_production_left_top.gif");
	}

function activateMenuCell(nom)
	{
	if(node=getNode('menu_'+nom))
		{node.src=url_img+"next/menu/menu_middle.gif";}
	if(node=getNode('left_'+nom))
		{node.src=url_img+"next/menu/left_middle.gif";}
	if(node=getNode('left_top_'+nom))
		{node.src=url_img+"next/menu/left_top.gif";}
	if(node=getNode('menu_top_'+nom))
		{node.src=url_img+"next/menu/menu_top.gif";}
	if(node=getNode('left_top_'+(nom+1)))
		{node.src=url_img+"next/menu/left_bottom.gif";}
	if(node=getNode('menu_top_'+(nom+1)))
		{node.src=url_img+"next/menu/menu_bottom.gif";}
	}


function deActivateMenuCell(nom)
	{
	if(node=getNode('menu_'+nom))
		{node.src=url_img+"spacer.gif";}
	if(node=getNode('left_'+nom))
		{node.src=url_img+"spacer.gif";}
	if(node=getNode('left_top_'+nom))
		{node.src=url_img+"spacer.gif";}
	if(node=getNode('menu_top_'+nom))
		{node.src=url_img+"spacer.gif";}
	if(node=getNode('left_top_'+(nom+1)))
		{node.src=url_img+"spacer.gif";}
	if(node=getNode('menu_top_'+(nom+1)))
		{node.src=url_img+"spacer.gif";}
	}

function activateMenu(nom)
	{
	deActivateMenuCell(current_menu);
	activateMenuCell(nom);
	}


function deActivateMenu(nom)
	{
	deActivateMenuCell(nom);
	activateMenuCell(current_menu);
	}

function setMainMenu(id, defoult)
	{
	chNodeSrc(defoult, url_img+"spacer.gif");

	chNodeSrc(id, url_img+"next/menu/main_menu_pointer.gif");
	}

function unSetMainMenu(id, defoult)
	{
	chNodeSrc(id, url_img+"spacer.gif");
	chNodeSrc(defoult, url_img+"next/menu/main_menu_pointer.gif");
	}




function setPhotobank(node)
	{
	chNodeBg("photobank_photo_"+node, ' url('+url_img+'content/press-kit/photobank/photoborder.gif) top left no-repeat');
	showNode("photobank_text_"+node);
	}


function unSetPhotobank(node)
	{
	chNodeBg("photobank_photo_"+node, ' url('+url_img+'spacer.gif)');
	hideNode("photobank_text_"+node);
	}

function usePalette(palette)
	{
	if(b=getNode("palette_"+palette))
		{b.style.background="url("+url_img+"spacer.gif)";}

	if(b=getNode("palette_bottom_"+palette))
		{b.style.background="url("+url_img+"spacer.gif)";}

	if(b=getNode("palette_top_"+palette))
		{b.style.background="#999999";}

	if(b=getNode("palette_left_stick_"+palette))
		{b.style.background="#999999";}

	if(b=getNode("palette_content_left_"+palette))
		{b.style.background="#999999";}

	if(b=getNode("palette_content_right_"+palette))
		{b.style.background="#999999";}

	if(b=getNode("palette_out_left_"+palette))
		{b.style.background="#999999";}

	if(b=getNode("palette_out_right_"+palette))
		{b.style.background="#999999";}

	if(b=getNode("palette_right_stick_"+palette))
		{b.style.background="#999999";}
	
	if(palette=="<? echo $defoult_palette; ?>")
		{
		if(b=getNode("left_pixel"))
			{b.style.background="url("+url_img+"spacer.gif)";}
		}
	}

function unUsePalette(palette)
	{
	if(b=getNode("palette_"+palette))
		{b.style.background="#ffffff";}

	if(b=getNode("palette_bottom_"+palette))
		{b.style.background="#999999";}

	if(b=getNode("palette_top_"+palette))
		{b.style.background="#ffffff";}

	if(b=getNode("palette_content_left_"+palette))
		{b.style.background="#ffffff";}

	if(b=getNode("palette_content_right_"+palette))
		{b.style.background="#ffffff";}

	if(b=getNode("palette_out_left_"+palette))
		{b.style.background="#ffffff";}

	if(b=getNode("palette_out_right_"+palette))
		{b.style.background="#ffffff";}

	if(b=getNode("palette_left_stick_"+palette))
		{b.style.background="#ffffff";}

	if(b=getNode("palette_right_stick_"+palette))
		{b.style.background="#ffffff";}

	if(palette=="<? echo $defoult_palette; ?>")
		{
		if(b=getNode("left_pixel"))
			{b.style.background="#999999";}
		}
	}

function setPalette(palette)
	{
	unUsePalette(defoultPalette);
	usePalette(palette);
	}

function unSetPalette(palette)
	{
	unUsePalette(palette);

	usePalette(defoultPalette);
	}

function setDefoultPalette(palette)
	{
	hideNode("palette_list_"+defoultPalette);
	defoultPalette=palette;
	showNode("palette_list_"+defoultPalette);
	}








function textActivateColor(nodeId, nom)
	{
	if(node=getNode(nodeId))
		{
		if(nom>0)
			{
			nom--;
			clearTimeout(node.timeoutDeactivate);
			node.style.color=node.textBg[nom];
			node.timeoutActivate=setTimeout('textActivateColor("'+nodeId+'", '+nom+')', node.timeoutActivateTime);
			}
		}
	}

function textDeactivateColor(nodeId, nom)
	{
	nom++;
	if(node=getNode(nodeId))
		{
		if(nom<node.textBgCounter)
			{
			node.style.color=node.textBg[nom];
			clearTimeout(node.timeoutActivate);
			node.timeoutDeactivate=setTimeout('textDeactivateColor("'+nodeId+'", '+nom+')', node.timeoutDeactivateTime);
			}
		}
	}


