// Start dropdown Navigation setting
ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
// End dropdown Navigation setting



// Start Slideshow
$(function() {
	$("div.scrollable").scrollable();	// initialize scrollable
});


$(function() {

$(".items img").click(function() {
	var url = $(this).attr("src").replace("_t", "");	// calclulate large image's URL based on the thumbnail URL (flickr specific)
	var wrap = $("#image_wrap").fadeTo("medium", 0.5);	// get handle to element that wraps the image and make it semitransparent
	var img = new Image();	// the large image 
	img.onload = function() { 	// call this function after it's loaded
		wrap.fadeTo("fast", 1);	// make wrapper fully visible			
		wrap.find("img").attr("src", url);// change the image
	};
	img.src = url;	// begin loading the image from flickr
}).filter(":first").click();// when page loads simulate a "click" on the first image
});

// End Slideshow