/*Floating Menu Vars*/
/*
var name = "#gallery-menu";
var menuYloc = null;
*/

$(document).ready(function(){

	/* Collapsible Panels */
	/*
	$(".collapsible").hide();
	$(".expand-toggle").click(function(){
		$(this).siblings(".collapsible").slideToggle(600, function () {
			if($(this).siblings('.expand-toggle').html() == 'Close'){
				$(this).siblings('.expand-toggle').html('Read More');
			}else{
				$(this).siblings('.expand-toggle').html('Close');
			}
		});
	});
	*/

	/* Scrollable Artists */
	/*
	$("div#artists").scrollable({
		items: '#gallery-cont',
		nextPage: '.artistsnext',
		prevPage: '.artistsprev',
		prev: '.artistsprevscroller',
		next: '.artistsnextscroller',
		item: '.pane',
		size: 1,
		clickable: false,
		speed: 1000
	}).navigator();
	*/
	
	/* Floating Menu */
	/*
    menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))  
    $(window).scroll(function(){
        var offset = menuYloc+$(document).scrollTop()+"px";
        $(name).animate({top:offset},{duration:1000,queue:false});
    });  
	*/

	/* Scrollable Thumbs */
	$("div.thumb-scroll").scrollable({
		items: '.thumbs',
		item: '.thumb',
		size: 6,
		clickable: false,
		speed: 1000
	});
	
	/* Standard overlays for dialogues*/
	$("a[rel]").overlay({
		closeOnClick: false,
		expose: {
    	    color: '#000',
	        loadSpeed: 200,
			opacity: 0.7
	    }
	});

	/* Gallery images */
	$(".thumbs").each(function(){
		if($("a", this).length){
			$("a",this).overlay({  
				target: '#gallery',
				closeOnClick: false,
				expose: '#000'
			}).gallery({
				prev: '.overlayprev',
				next: '.overlaynext',
				speed: 800
			});
		}
	});
	
});
