$(document).ready(function(){
		
	// first example
	$("#navigation").treeview({
		collapsed: true,
		animated:"fast",
		unique: true,
		persist: "location"
	});

});


/**
*	Site-specific configuration settings for Highslide JS
*/
hs.graphicsDir = 'http://cem.usakligil.com/gfx/';
hs.showCredits = false;
hs.outlineType = 'custom';
hs.dimmingOpacity = 1;
hs.dimmingDuration = 50;
hs.fadeInOut = true;
hs.expandDuration = 10;
hs.restoreDuration = 10;
hs.transitionDuration = 150;
hs.outlineWhileAnimating = 0;
hs.minWidth = 200;
hs.minHeight = 200;
hs.marginTop = 5;
hs.marginRight = 5;
hs.marginBottom = 60;
hs.marginLeft = 5;
hs.allowMultipleInstances = false;
hs.numberOfImagesToPreload = 8;
hs.captionOverlay.position = 'below';
hs.headingOverlay.position = 'below';
hs.align = 'center';
/* hs.targetX = 'anchor';
hs.targetY = 'anchor';
hs.anchor = 'top left'; */
hs.captionEval = '"<strong>"+this.thumb.title+"</strong> - " + this.thumb.alt + " (" + this.thumb.id +")"';
hs.lang = {
   number : '%1/%2',
   restoreTitle : 'Click to go to the next image, escape to close. Use arrow keys for next and previous.'
};
hs.registerOverlay({
	html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
	position: 'top right',
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});




// Add the slideshow controller
hs.addSlideshow({
	slideshowGroup: 'group1',
	interval: 3000,
	repeat: true,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		opacity: '0.5',
		position: 'bottom',
		offsetX: '0',
		offsetY: '-30',
		width: '100%',
		relativeTo: 'image',
		hideOnMouseOut: true
	}
});



// gallery config object
var config1 = {
	slideshowGroup: 'group1',
	numberPosition: 'heading',
	transitions: ['expand', 'crossfade']
};



hs.onSetClickEvent = function ( sender, e ) {
   // set the onclick for the element, output the group name to the caption for debugging
   e.element.onclick = function () {
      return hs.expand(this, config1 );
   }
   // return false to prevent the onclick being set once again
   return false;
}

hs.Expander.prototype.onImageClick = function (sender) {
   return hs.next();
}


