/* Created by Boiko Oleg (http://special.net.ua) (c) 2008. All rights reserved */

function detectBrowser(){
  //alert("Browser information:\n\nNavigator code name: " + navigator.appCodeName + "\nNavigator name: " + navigator.appName + "\nVersion: " + parseFloat(navigator.appVersion) + "\nMinor version: " + navigator.userAgent )
  switch (navigator.appName) {
      case "Microsoft Internet Explorer":
          if (navigator.userAgent.indexOf("MSIE 7.0") != -1) return "msie7";
          else return "msieTrash";
          break
      case "Opera":
          return "opera";
          break
      case "Mozilla":
          return "mozilla";
          break
      case "Netscape":
          return "netscape";
          break
      default:
          return "msieTrash"
          break;
  }
}

function switchLocale(){
	document.body.style.cursor = "wait";
	if (document.getElementById("en").selected) document.location="/en";
	if (document.getElementById("de").selected) document.location="/de";
	if (document.getElementById("fr").selected) document.location="/fr";
}

function specialUp(id, type){
	if (type == 0){
		document.getElementById(id).style.display = "none";
		$("#upShadowBox").fadeOut("100");
		return false;
	}
	if (type == 1){
		scroll(0,0);
		$("#upShadowBox").css({opacity: 0.2});
		$("#upShadowBox").fadeIn("1000");
		document.getElementById(id).style.display = "block";
		document.getElementById("upShadowBox").style.height=(document.body.clientHeight) + 'px';
		return false;
	}
	return false;
}
