$(document).ready(function() {
	//start_topnav();
	if ($('#menu').length){
		ddsmoothmenu.init({
			mainmenuid: "menu", //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"]
		});
	}
	if ($('#featured').length){
		$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	}
	if ($('#pane1').length){
		$('#pane1').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16, dragMaxHeight :16});	
	}
	if ($('#pane2').length){
		var settings = {
			showArrows: true,
			scrollbarWidth: 15, 
			arrowSize: 16, 
			dragMaxHeight :16
		};
		var element = $('#pane2').jScrollPane(settings);	
		api = element.data('jsp');
	}
	if ($("#viewer").length){		
		$("#viewer").iviewer(
		{
			src: $("#viewer img").attr("src"), 
			initCallback: function()
			{	
				iviewer = this;
			}
		});
	}
	$('ul.thumb li').Zoomer({speedView:200,speedRemove:400,altAnim:true,speedTitle:400,debug:false});

});
