function HideAll()
{
 products.style.visibility="hidden";
 support.style.visibility="hidden";
 company.style.visibility="hidden";
 downloads.style.visibility="hidden"; 
}
function HideSmall()
{ 
 products2.style.visibility="hidden";
 company2.style.visibility="hidden";
 order1.style.visibility="hidden";
}

function ShowMenu(type_menu)
{
  HideAll();
  type_menu.style.visibility="visible";
  
}
function HL_OFF(type_menu)
{
  type_menu.style.backgroundColor="#003366";
  type_menu.style.color="#ffffff";
}
function HL_ON(type_menu)
{
  type_menu.style.backgroundColor="#a0c9f1";
  type_menu.style.color="#003366";  
}
function HL_TEXTON(type_menu)
{
  type_menu.style.color="#ffffff";  
}
function HL_TEXTOFF(type_menu)
{
  type_menu.style.color="#003366";  
}

function HL_OFF_html(type_menu)
{
  type_menu.style.backgroundColor="#d7d7d7";
}

function HL_ON_html(type_menu)
{
  type_menu.style.backgroundColor="#cccccc";
}

function QueryString(param){
  var begin,end;
  if(self.location.search.length>1)
  {
    begin=self.location.search.indexOf(param) +param.length+1;
    end=self.location.search.indexOf("&",begin);
    if(end==(-1)) end=self.location.search.length;
    return(self.location.search.substring(begin,end));
  }
  else if(self.location.hash.length>1)
  {
    begin=self.location.hash.indexOf(param) +param.length+1;
    end=self.location.hash.indexOf("&",begin);
    if(end==(-1)) end=self.location.hash.length;
    return(self.location.hash.substring(begin,end));
  }
  else return("");
}
function isTranslated() {
	if (window.location.toString().toLowerCase().indexOf("translate.google.com")>=0
		|| window.location.toString().toLowerCase().indexOf("translate_c")>=0) {
		return true;
	}

	return false;
}
function translate() {
	var dest = 'http://translate.google.com/translate?u=';
	var googled = false;
	var origUrl = "";

	if (window.location.toString().toLowerCase().indexOf("translate.google.com")>=0
		|| window.location.toString().toLowerCase().indexOf("translate_c")>=0) {
			origUrl = QueryString("&u");
	}
	
	if (null!=origUrl && origUrl.length>0) {
		googled = true;
		dest += origUrl;
	} else {
			dest += window.encodeURIComponent(window.location);
	}
	dest += '&sl=en&tl='+document.getElementById('PageLanguage').options[document.getElementById('PageLanguage').selectedIndex].value;

//	if (googled && window.parent && window.parent.n) { window.parent.n.location.href=dest; }
	if (googled && window.parent && window.parent.location) {
		window.parent.location.href=dest;
	}else {
		window.location.href=dest;
	}
}
function placeTranslator(){
	//if (isTranslated()) return ;

	var orig = document.getElementById('translateOrigin');
	var dest = document.getElementById('translatePlaceholder');
	if (dest!=null && orig!=null)
	do
	{
		var ctl = orig.firstChild;
		if (null==ctl) break;
		dest.appendChild(ctl);
	}while (true);

}
