	var bSearchBoxCleaned = false;

	function clearSearchBox(sSearchWord) {

		if(!bSearchBoxCleaned && document.getElementById('csq').value == sSearchWord) {
			document.getElementById('csq').value = '';
			bSearchBoxCleaned = true;
		}

	}


function MM_checkPlugin(plgIn) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=false; }

  document.getElementById('flash').innerHTML = '';

  if (ok) {
  	document.writeln('<img src="/images/header.jpg" width="564" height="99" />');
  } else {
  	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="564" height="99"><param name="movie" value="/images/header.swf" /><param name="quality" value="high" /><param name="LOOP" value="false" /><embed src="/images/header.swf" width="564" height="99" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
  }
}

function MM_checkPlugin2(plgIn) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=false; }

  document.getElementById('startflash').innerHTML = '';

  if (ok) {
  	document.writeln('<img src="/images/header.jpg" width="564" height="103" />');
  } else {
  	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="727" height="351"><param name="movie" value="/images/start.swf" /><param name="quality" value="high" /><param name="LOOP" value="false" /><embed src="/images/start.swf" width="727" height="351" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
  }
}

function MM_checkPlugin2en(plgIn) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=false; }

  document.getElementById('startflash').innerHTML = '';

  if (ok) {
  	document.writeln('<img src="/images/header.jpg" width="564" height="103" />');
  } else {
  	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="727" height="351"><param name="movie" value="/images/start_en.swf" /><param name="quality" value="high" /><param name="LOOP" value="false" /><embed src="/images/start_en.swf" width="727" height="351" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
  }
}


	function showLayer(sID) {
		document.getElementById(sID).style.display = "block";
		document.getElementById(sID + "but").className = "selected";
	}

	function hideLayer(sID) {
		document.getElementById(sID).style.display = "none";
		document.getElementById(sID + "but").className = "";
	}

function showImage(sImagePath) {

	document.getElementById('preview').innerHTML = '<img src="' + sImagePath + '" />';
	var iRightPos = (document.documentElement.clientWidth / 2) - 242;
	document.getElementById('preview').style.right = iRightPos + 'px';
	document.getElementById('preview').style.display = 'block';
}

function hideImage() {
	document.getElementById('preview').style.display = 'none';
	document.getElementById('preview').innerHTML = '';
}

function treeToggle(sCatID) {
	if(document.getElementById(sCatID)) {
		if(document.getElementById(sCatID).style.display == "block") {
			document.getElementById(sCatID).style.display = "none";

			document.getElementById("but" + sCatID).src = "/images/icon16_plus.gif";
		} else {

			document.getElementById(sCatID).style.display = "block";
			document.getElementById("but" + sCatID).src = "/images/icon16_minus.gif";

		}
	}
}