// jQuery Styling

function style(){



	$('#offers').animate({opacity:1},0);
	$('#inner-offers, #offers-menu').animate({opacity:1},0);
	
	
	$('#slide').dropShadow({
		left:2,
		top:2	
	})
	
	$('#hBody').dropShadow({
		left:2,
		top:2	
	})
	
	
	if( $('#services div').size()>20 ){
	
		$('#motto').css('margin-top','-105px');	
		$('#picture').css('height','295px');
		$('#services').css('height','70px');
		
	}
	

	if( window.location.pathname.search('hotel')!= -1 ){
		
		$('#motto').animate({opacity:0.7},0);

		var l = $.trim( $('#motto').html() ).length;
	
		var tedMin = false;
		var enMan = false;

		if( window.location.pathname.search('de/hotel')!= -1 )
			$('#hotel-description').css('font-size','11px');
		
		if( window.location.pathname.search('de/hotel/mimose')!= -1 )
			tedMin = true;
			
		if( window.location.pathname.search('en/hotel/manila')!= -1 )
			enMan = true;
			
		
		
		if( window.location.pathname.search('de/hotel/mariver')!= -1 && $.browser.msie  ){
			$('#motto').animate({top: '-=29'},0).animate({height: '+=29'},0);
		}
		
		
		
		if( l > 58*2 || tedMin || enMan){
			$('#motto').animate({top: '-=29'},0).animate({height: '+=29'},0);
			
		}
				
	}
	
	var menuoff = $('#offers-menu').offset();
	var offoff  = $('.offers-select').offset();
	var many = $('.offers-select li').size();
	var hwidth = many*20;
	
	var hleft = 670-hwidth;
	
	$('.offers-select').animate({
		width: hwidth+60,
		left: hleft },0);

	if($.browser.msie && $.browser.version == '7.0'){
		$('.offers-select').animate({top: '+=20' },0);
		$('#slide').removeShadow().css('position','absolute').css('left','144px').css('top','250px');
		$('#footer').css('position','absolute').css('top','990px').css('left','130px');
			$('#offers-roll').animate({top:'-=10'},0);
			$('.offer-body,.offer-text').css('width','500px');
			$('#hotel-offers').animate({top:'+=16'},0);
			
			
	}

	if($.browser.msie && $.browser.version == '8.0'){
		$('.offers-select').animate({top: '-=3' },0);
	}
	
	if($.browser.safari){
		$('#hPaging').css('margin-top','835px');
		$('#footer').css('margin-top','30px');
	}
}
