image_list['highlights-on'] = new Image();
image_list['highlights-on'].src=image_catalog+content_language+"/home-page/b-highlights-on.gif";
image_list['highlights-ro'] = new Image();
image_list['highlights-ro'].src=image_catalog+content_language+"/home-page/b-highlights-ro.gif";
image_list['highlights'] = new Image();
image_list['highlights'].src=image_catalog+content_language+"/home-page/b-highlights.gif";
image_list['whatsnew-on'] = new Image();
image_list['whatsnew-on'].src=image_catalog+content_language+"/home-page/b-whatsnew-on.gif";
image_list['whatsnew-ro'] = new Image();
image_list['whatsnew-ro'].src=image_catalog+content_language+"/home-page/b-whatsnew-ro.gif";
image_list['whatsnew'] = new Image();
image_list['whatsnew'].src=image_catalog+content_language+"/home-page/b-whatsnew.gif";
image_list['arcane-on'] = new Image();
image_list['arcane-on'].src=image_catalog+content_language+"/nav/b-arcane-on.gif";
image_list['arcane-ro'] = new Image();
image_list['arcane-ro'].src=image_catalog+content_language+"/nav/b-arcane-ro.gif";
image_list['arcane'] = new Image();
image_list['arcane'].src=image_catalog+content_language+"/nav/b-arcane.gif";
image_list['home-on'] = new Image();
image_list['home-on'].src=image_catalog+content_language+"/nav/b-home-on.gif";
image_list['home-ro'] = new Image();
image_list['home-ro'].src=image_catalog+content_language+"/nav/b-home-ro.gif";
image_list['home'] = new Image();
image_list['home'].src=image_catalog+content_language+"/nav/b-home.gif";
image_list['productions-on'] = new Image();
image_list['productions-on'].src=image_catalog+content_language+"/nav/b-productions-on.gif";
image_list['productions-ro'] = new Image();
image_list['productions-ro'].src=image_catalog+content_language+"/nav/b-productions-ro.gif";
image_list['productions'] = new Image();
image_list['productions'].src=image_catalog+content_language+"/nav/b-productions.gif";
image_list['service-on'] = new Image();
image_list['service-on'].src=image_catalog+content_language+"/nav/b-service-on.gif";
image_list['service-ro'] = new Image();
image_list['service-ro'].src=image_catalog+content_language+"/nav/b-service-ro.gif";
image_list['service'] = new Image();
image_list['service'].src=image_catalog+content_language+"/nav/b-service.gif";
image_list['store-on'] = new Image();
image_list['store-on'].src=image_catalog+content_language+"/nav/b-store-on.gif";
image_list['store-ro'] = new Image();
image_list['store-ro'].src=image_catalog+content_language+"/nav/b-store-ro.gif";
image_list['store'] = new Image();
image_list['store'].src=image_catalog+content_language+"/nav/b-store.gif";
image_list['arrow'] = new Image();
image_list['arrow'].src=image_catalog+'b-arrow.gif';
image_list['arrow-ro'] = new Image();
image_list['arrow-ro'].src=image_catalog+'b-arrow-ro.gif';
image_list['item-on'] = new Image();
image_list['item-on'].src=image_catalog+content_language+"/shop/b-item-on.gif";
image_list['item-ro'] = new Image();
image_list['item-ro'].src=image_catalog+content_language+"/shop/b-item-on.gif";
image_list['item'] = new Image();
image_list['item'].src=image_catalog+content_language+"/shop/b-item.gif";
image_list['more-about-this-item-on'] = new Image();
image_list['more-about-this-item-on'].src=image_catalog+content_language+"/shop/b-more-about-this-item-on.gif";
image_list['more-about-this-item-ro'] = new Image();
image_list['more-about-this-item-ro'].src=image_catalog+content_language+"/shop/b-more-about-this-item-on.gif";
image_list['more-about-this-item'] = new Image();
image_list['more-about-this-item'].src=image_catalog+content_language+"/shop/b-more-about-this-item.gif";



// Code from http://www.alistapart.com/articles/horizdropdowns/
//
// * Modified by Paul Forsyth 25/11/04 -  navRoot element id changed.
// * Modified by Sven Berg Ryen 3/8/05 -  to allow for menus to have a dely


var timeout_length = 1000; // the set timer will run after 1 second
var last_element = false; // initialize variable that will hold the last element we added the 'over' style to
var current_menu_timer = false; // initialize variable for the menu timeout return value, so that it may later be erased using clearTimeout()


// this function steps through all specified tags and attaches rollover functions 
// to the containing LI items
// the LI items will need to have "parentmenu" in their class name
startList = function() 
{
	if (document.getElementById) 
	{
		// list of menus
		menuNav = new Array();
		menuNav[0] = document.getElementById("translation-menu-nav");
		menuNav[1] = document.getElementById("dropdown-menu-nav-home");
		menuNav[2] = document.getElementById("dropdown-menu-nav-arcane");
		menuNav[3] = document.getElementById("dropdown-menu-nav-service");
		menuNav[4] = document.getElementById("dropdown-menu-nav-store");
		menuNav[5] = document.getElementById("dropdown-menu-nav-productions");
		
		
		menuNavLength = menuNav.length;
		for (i=0; i<menuNavLength; i++) 
		{
		    menuNavRoot = menuNav[i];
			if ( menuNavRoot.getElementsByTagName('LI') )
			{
				// DOM standard code, as childNodes is an IE5+ specific feature
				// firefox, safari (and possibly Opera and IE6?) will use this section
				nodeList = menuNavRoot.getElementsByTagName('LI');
				nodeListLength = nodeList.length;
				for (j= 0; j<nodeListLength; j++)
				{
					if (nodeList[j].className.indexOf("parentmenu") != -1)
					{
						// attach actions
						nodeList[j].onmouseover=function() { addClass(this); }
						nodeList[j].onmouseout=function() { removeClass(this); }
					}
				}
			}
			else if (document.all)
			{
				// code for IE
				for (j=0; j<menuNavRoot.childNodes.length; j++) 
				{
					node = menuNavRoot.childNodes[j];
					if (node.nodeName=="LI" && node.className.indexOf("parentmenu") != -1) 
					{
						// attach actions
						node.onmouseover=function() { addClass(this); }
						node.onmouseout=function() { removeClass(this); }
					}
				}
			}
		}
	}
}


function addClass(target_element)
{
	// check if a timeout is currently set
	if (last_element != false && last_element != target_element) 
	{
		// if a timeout is set, then make sure the menu hides IMMEDIATELY
		// rather than waiting for the timeout to be triggered
		last_element.className=last_element.className.replace(" over", "");
		last_element = false;
		clearTimeout(current_menu_timer);
	}
	// show the submenu
	target_element.className+=" over";
}

function removeClass(target_element)
{
	if (last_element != false) 
	{
		// if a timeout is set, then make sure the menu hides IMMEDIATELY
		// rather than waiting for the timeout to be triggered
		last_element.className=last_element.className.replace(" over", "");
		last_element = false;
		clearTimeout(current_menu_timer);
	}
	// set the last element to be the targeted element
	last_element = target_element;
	// set timer to hide submenu after an interval
	current_menu_timer=setTimeout("last_element.className=last_element.className.replace(\" over\", \"\")",timeout_length);
}

window.onload=startList;



// rollover code for array of elements
// uses a global array named image_list
// the array elements are named [%img-%state]
// where %img is the id of an image object
// and %state is in ('','ro','on')
// if the parameter state is 'off', state is changed to ''

function ro(img,state)
{
	if (state == "off") state = "";
	else state = "-"+state;
	obj = document.getElementById(img);
	if (obj != null)
	{
		obj.src = image_list[img+state].src;
	}
}

function hide(name)
{
	obj = document.getElementById(name);
	if (obj != null)
	{
		obj.style.display = 'none';
	}	
}

function show(name)
{
	
	obj = document.getElementById(name);
	if (obj != null)
	{
		obj.style.display = 'block';
		selected_section = name;
	}
}

// functions for displaying faq's

function show_answer(id)
{
	obj = document.getElementById('faq-answer-'+id);
	obj.style.display = (obj.style.display!="block") ? "block":"none";
	document.getElementById('view_all_button').checked = false;
}

function viewall_answers(show, trg)
{
	i = 1;
	obj = document.getElementById('faq-answer-1');
	if (obj != null)
	{
	while (obj != null)
	{
		obj.style.display = (show)?'block':'none';
		i++;
		obj = document.getElementById('faq-answer-'+i);
	}
	}
	if (trg == 'link') document.getElementById('view_all_button').checked = (!document.getElementById('view_all_button').checked);
	return false;
}



