<!--
  $(document).ready(function(){
	 $(document).ready(function() {
	     $('#menulist').clickMenu({subDelay: 100, mainDelay: 100,arrowSrc:'/images/clickmenu/arrow_right.gif'});
	 });
	$('#MainMenu').show();
	$('[href^="mailto:"]').click(function(){
		document.location="/celsius/sendmail.php?email="+($(this).attr('href').replace('mailto:',''));
		return false;
	});
	$("div").hover(
      function () {
       $(this).addClass("selected");
      },
      function () {
        $(this).removeClass("selected");
      }
    );

    $("p").each(function(){
    	//var tmptext=$(this).html();
		//var celsiustxt="<a class=\"tag\" href=\"http://www.celsius.nl\"><span style=\"color:#FF0000;\">&deg;C</span>elsius</a>";
    	//$(this).html($(this).html().replace(/\�Celsius/g,celsiustxt));
    	var tmptext=$(this).html();
		var celsiustxt="<span style=\"color:#FF0000;\">&deg;C</span>";
    	$(this).html($(this).html().replace(/\�C/g,celsiustxt));
    });
     $("b").each(function(){
    	//var tmptext=$(this).html();
		//var celsiustxt="<a class=\"tag bold\" href=\"http://www.celsius.nl\" style=\"font-weight:bold;\"><b><span style=\"color:#FF0000;\">&deg;C</span>elsius</a></b>";
    	//$(this).html($(this).html().replace(/\�Celsius/g,celsiustxt));
		var tmptext=$(this).html();
		var celsiustxt="<span style=\"color:#FF0000;\">&deg;C</span>";
    	$(this).html($(this).html().replace(/\�C/g,celsiustxt));
    });
    $("h1").each(function(){
    	var tmptext=$(this).html();
		var celsiustxt="<span style=\"color:#FF0000;\">&deg;C</span>";
    	$(this).html($(this).html().replace(/\�C/g,celsiustxt));
    });
	$(".menu").each(function(){
    	var tmptext=$(this).html();
		var celsiustxt="<span style=\"color:#FF0000;\">&deg;C</span>";
    	$(this).html($(this).html().replace(/\�C/g,celsiustxt));
    });

	$(".tag").click(function(){
		return false;
	});
	$(".sidebar").height($(".pagebody").height());
	$(".submitemail").click(function () {
			if($("#ukemailadres").val()){
				var site="alertme.php?emailadres=" + $("#ukemailadres").val()+ "&reqlang=UK";
				$.get(site,"",
				function(data){
				    if (data=="1"){
				    	$("#ukemailadres").replaceWith("<font color=\"Green\">Thank you for submitting your email address.<br>We will send you an email as soon as the site becomes available in English.<br></font>");
				    	$("#submitbtnuk").hide();
				    }else{
				    	$("#ukemailadres").before("<font color=\"Red\">Something went wrong, please try again.<br></font>");
				    }
				});
			}
			if($("#deemailadres").val()){
				var site="alertme.php?emailadres=" + $("#deemailadres").val()+ "&reqlang=DE";
				$.get(site,"",
				function(data){
				    if (data=="1"){
				    	$("#deemailadres").replaceWith("<font color=\"Green\">Vielen Dank f�r das eintragen Ihrer E-mail Adresse <br>. Sie empfangen schnellstens eine Nachricht sobald der Site verf�gbar ist in Deutsch.<br></font>");
				    	$("#submitbtnde").hide();
				    }else{
				    	$("#deemailadres").before("<font color=\"Red\">Fehlernachricht, bitte Versuchen Sie es nochmal!<br></font>");
				    }
				});
			}
			if($("#fremailadres").val()){
				var site="alertme.php?emailadres=" + $("#fremailadres").val()+ "&reqlang=FR";
				$.get(site,"",
				function(data){
				    if (data=="1"){
				    	$("#fremailadres").replaceWith("<font color=\"Green\">Thank you for submitting your email address.<br>We will send you an email as soon as the site becomes available in English.<br></font>");
				    	$("#submitbtnfr").hide();
				    }else{
				    	$("#fremailadres").before("<font color=\"Red\">Something went wrong, please try again.<br></font>");
				    }
				});
			}
	});
  });


var ns4 = (document.layers) ? 1 : 0;
var ie4 = (document.all) ? 1 : 0;
var ns6 = (document.getElementById && !document.all) ? 1 : 0;

function winWid(){
		return (ns4||ns6) ? window.innerWidth : top.document.body.clientWidth;
	}

function winHei(){
		return (ns4||ns6) ? window.innerHeight : top.document.body.clientHeight;
	}

function set_coockie(){
	document.cookie ='screenwidth=' + winWid() + ';path=/';
	document.cookie ='screenheight=' + winHei() + ';path=/';
}

function colapse(obj1,obj2)
{    if (obj1.style.display=="none") //Check if orderlines are expanded or collapsed
     {obj1.style.display=""; //collapse the orderlines
      obj2.src="/images/min.gif" //change the order picture to min
     }
     else
     {obj1.style.display="none"; //collapse the orderlines
      obj2.src="/images/plus.gif"; //change the order picture to min
     }
}
var show_agent=function(country){

		switch (country){
			case "NL":{
				$(".agentdetails").slideUp( "slow" );
				$("#agentnetherlands").slideDown("slow");
			break;
			}
			case "NL":{
				$(".agentdetails").slideUp( "slow" );
				$("#agentNL").slideDown("slow");
			break;
			}
			case "DE":{

				$(".agentdetails").slideUp( "slow" );
				$("#agentDE").slideDown("slow");
			break;
			}
			case "ES":{

				$(".agentdetails").slideUp( "slow" );
				$("#agentES").slideDown("slow");
			break;
			}
			case "IL":{
				$(".agentdetails").slideUp( "slow" );
				$("#agentIL").slideDown("slow");
			break;
			}
			case "SE":{
				$(".agentdetails").slideUp( "slow" );
				$("#agentSE").slideDown("slow");
			break;
			}
			case "FI":{
				$(".agentdetails").slideUp( "slow" );
				$("#agentFI").slideDown("slow");
			break;
			}
			case "UK":{
				$(".agentdetails").slideUp( "slow" );
				$("#agentUK").slideDown("slow");
			break;
			}
			case "DM":{
				$(".agentdetails").slideUp( "slow" );
				$("#agentDM").slideDown("slow");
			break;
			}
			case "US":{
				$(".agentdetails").slideUp( "slow" );
				$("#agentUS").slideDown("slow");
			break;
			}
			default:{

			}
		}
	}
-->

