$(document).ready(function(){
	if($.browser.msie == true && $.browser.version == "6.0")
	{
		$(".Menue").prependTo(".Content");
		
		$(".Menue").css({
			"position":"static",
			"width":"620px"
		});
		
		$(".EinleitungText").css({
			"width":"620px",
			"height":"170px"
		});
		
		$(".ContentText").css({
			"padding-top":"20px"
		});
	}
	if($.browser.msie == true && $.browser.version == "7.0")
	{
		$(".Menue").prependTo(".Content");
		
		$(".Menue").css({
			"position":"static",
			"width":"600px"
		});		
		
		$(".ContentText").css({
			"padding-top":"20px"
		});
		
		$(".News2Content").append("<br />");
	}
		
	/*
	Anfragen
	*/
	var urlTemp = window.location.href;
            	
	if(urlTemp.indexOf("Arrangements")!=-1)
	{	
		$("p:contains('Zimmer Ihrer Wahl')").filter(function()
		{
			var zimmerTemp = $(this).html();
			zimmerTemp = zimmerTemp.replace("Zimmer", "<a href=\"http://www.deimann.de/Hotel-Deimann/Zimmer/Preise/\"><u>Zimmer</u></a>");
			$(this).html(zimmerTemp);	
			
				
		});		
		
		//$("p:contains('€')").append("<span id=\"jetztAnfragen\" style=\"display:inline;float:right;\">jetzt Anfragen</span>");	
	
	
		/*
		$("span:contains('jetzt Anfragen')").trackStar
		(
			{
				displayID: 'overlay',
				xOffset: 260,
				yOffset: 10
			}
		);
		*/	
		
		$("span:contains('jetzt Anfragen')").css({
			"cursor":"pointer",
			"text-decoration":"underline"
		});
		
		$("span:contains('jetzt Anfragen')").mouseover(function()
		{
			$(this).css({"color":"#bf9a33"});	
		}).mouseout(function()
		{
			$(this).css({"color":"#4b4b4d"});
		}).click(function()
		{
			window.location = 'http://www.deimann.de/Service/Online-Buchung/';
		});
	}
	
	$("#newsletterAdd").click(function()
	{
		$.getJSON("http://www.deimann.de/newsletterAdd.php?mail="+$("#newsletter").val(),
			function(data){
				$("#newsletterAdd").after("Vielen Dank für Ihre Anmeldung.");
				$("#newsletterAdd").remove();	          	
				$("#newsletter").remove();
				$("#newsletterText").remove();
		});
		
	});

	
	
	/*
	replaceWith(
		
	);
	*/
	    	
});