					jQuery(document).ready(function() {
						// simplest example
						jQuery('.simpleSlideShow, .slideShowTopNavi').slideShow({
							interval: 3
						});
						// slideshow with mouse hover
						jQuery('.useMouseSlideShow').slideShow({
							hoverNavigation: true,
							interval: false
						});
						// slideshow with images
						jQuery('.main-content').slideShow({
							interval: 3,
							start: 'random'
						});
						// random slideshow
						jQuery('.randomSlideShow').slideShow({
							interval: 3,
							start: 'random'
						});
						
						// slideshow with play/pause
						var slideShow = jQuery('.playPauseExample').slideShow({
							interval: 0.7
						});
						// now add logic to play/pause button
						jQuery('.playPauseExample a.togglePlayback').click(function() {
							if (slideShow.isPlaying()) {
								jQuery(this).html('play');
							} else {
								jQuery(this).html('stop');
							}
							slideShow.togglePlayback();
						});
						
						// slideshow with callback
						jQuery('.callbackSlideShow').slideShow({
							interval: 3,
							slideClick: function(slideShow) {
								if (slideShow.mouse.x > slideShow.options.slideSize.width / 2) {
									slideShow.next();
								} else {
									slideShow.previous();
								}
							},
							gotoSlide: function(slideShow, index) {
								jQuery('.callBackSlideShowLog').html('goto slide index: ' + index);
							}
						});
					});
				
jQuery(document).ready(function(){
	
	jQuery("#menu-trigger a").click(function(){
		jQuery("#menu").slideToggle("slow");
		return false;
	});
});

jQuery(document).ready(function(){
	
	jQuery("a#one").click(function(){
		jQuery("#expand-1").slideToggle("slow");
		return false;
	});
});

jQuery(document).ready(function(){
	
	jQuery("a#two").click(function(){
		jQuery("#expand-2").slideToggle("slow");
		return false;
	});
});

jQuery(document).ready(function(){
	
	jQuery("a#three").click(function(){
		jQuery("#expand-3").slideToggle("slow");
		return false;
	});
});

jQuery(document).ready(function(){
	
	jQuery("a#four").click(function(){
		jQuery("#expand-4").slideToggle("slow");
		return false;
	});
});

jQuery(document).ready(function(){
	
	jQuery("a#five").click(function(){
		jQuery("#expand-5").slideToggle("slow");
		return false;
	});
});

jQuery(document).ready(function(){
	
	jQuery("#prices-sidebar a#six").click(function(){
		jQuery("#expand-6").slideToggle("slow");
		return false;
	});
});

// image caption

jQuery(document).ready(function() {

	//move the image in pixel
	var move = 0;
	
	//zoom percentage, 1.2 =120%
	var zoom = 1;

	//On mouse over those thumbnail
	jQuery('.item').hover(function() {
		
		//Set the width and height according to the zoom percentage
		width = jQuery('.item').width() * zoom;
		height = jQuery('.item').height() * zoom;
		
		//Move and zoom the image
		jQuery(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200}); 
		
		//Display the caption
		jQuery(this).find('div.caption').stop(false,true).fadeIn(200);
	},
	function() {
		//Reset the image
		jQuery(this).find('img').stop(false,true).animate({'width':jQuery('.item').width(), 'height':jQuery('.item').height(), 'top':'0', 'left':'0'}, {duration:100});	

		//Hide the caption
		jQuery(this).find('div.caption').stop(false,true).fadeOut(200);
	});

});

//this function opens links with rel='external' in a new window

function externalLinks() {
  if (!document.getElementsByTagName && document.getElementById) return;

  var anchors = document.getElementsByTagName("a");

  for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
       anchor.target = "_blank";
 }
}
window.onload = externalLinks;
