/*DD_roundies.addRule('#listContainer', '6px', true);
DD_roundies.addRule('#listTitle', '6px', true);
DD_roundies.addRule('#header', '0px 0px 6px 6px', true);
DD_roundies.addRule('#mapOverlay', '6px', true);
DD_roundies.addRule('.f', '6px', true);
DD_roundies.addRule('#message', '6px', true);
DD_roundies.addRule('#sleft', '6px 0px 0px 6px', true);
DD_roundies.addRule('#sright', '0px 6px 6px 0px', true);
DD_roundies.addRule('.himage img', '6px', true);
DD_roundies.addRule('#nav', '6px', true);			
DD_roundies.addRule('.textHolder', '6px', true);
DD_roundies.addRule('#footer', '6px 6px 0px 0px', true);
		
DD_roundies.addRule('.hotelbooking', '6px', true);
DD_roundies.addRule('.hotelbooking .searchdetails', '0px 0px 6px 6px', true);
DD_roundies.addRule('.hotelbooking .searchresults .searchresult', '6px 6px 0px 0px', true);
DD_roundies.addRule('.hotelbooking #sortoption', '6px', true);	
DD_roundies.addRule('.hotelbooking .navigation', '6px', true);		
DD_roundies.addRule('.hotelbooking #overview', '6px', true);	
DD_roundies.addRule('.hotelbooking #overview .searchresult .search_param', '6px', true);
DD_roundies.addRule('.hotelbooking #overview .searchresult .price ', '6px', true);
DD_roundies.addRule('.hotelbooking .searchresult .price', '6px', true);
DD_roundies.addRule('.hotelbooking .navigation li.selected', '6px 6px 0px 0px', true);
DD_roundies.addRule('.hotelbooking #overview .map', '6px', true);
DD_roundies.addRule('.hotelbooking .location_form', '6px', true);
DD_roundies.addRule('.hotelbooking .merchandising', '6px', true);
DD_roundies.addRule('.hotelbooking #overview .rates', '6px', true);
DD_roundies.addRule('div#mainContent', '6px', true);
DD_roundies.addRule('#widget', '6px', true);
*/

function MySlide()
{
	var $active = $('#gallery img.active');
	if ( $active.length == 0 ) $active = $('#gallery img:last');
		var $next =  $active.next().length ? $active.next()
		: $('#gallery img:first');			
		$active.addClass('last-active');

		$next.css({opacity: 0.0})
			.addClass('active')
			.animate({opacity: 1.0}, 1000, function() {
				$active.removeClass('active last-active');
			});
	}
	
	$(function() {
		setInterval( "MySlide()", 5000 );
	});
	
	
	function Slider()
			{
				var $active = $('#slider span.active');
				if ( $active.length == 0 ) $active = $('#slider span:last');
					var $next =  $active.next().length ? $active.next()
					: $('#slider span:first');			
					$active.addClass('last-active').animate({opacity:0.0,top:-10}, 100);

					$next.css({opacity: 0.0, top:10})
						.addClass('active')
						.animate({opacity: 1.0, top:0}, 100, function() {
							$active.removeClass('active last-active');
						});
			}
			
			$(document).ready(function(){
				
				$.ajax({type:"GET", url:"http://www.chestercentrehotels.com/public/xml/markers.xml", dataType:"xml",
				success:function(data, status) 
				{	
					$("set", data).each(function()
					{
							var title = $(this).attr('title');
							var link = $(this).attr('link');
							var description = $(this).attr('description');
							var rating = $(this).attr('rating');
							$('<span class="active"><a href="'+link+'">'+title+' (<img src="http://www.chestercentrehotels.com/public/images/rating/'+rating+'.png"/>) - ' +description.substr(0, 55)+'...<\/a><\/span>').appendTo('#slider');
					});
					
				}, 
					error:function(XMLHTTPRequest, status, errorThrow)
					{
						//alert("There was an error retrieving the marker information.");
					}
				});
				
				$(function() 
				{
					setInterval( "Slider()", 6000 );
				});
				
			});