// JavaScript Document

jQuery(document).ready(function() {
								
		// simple accordion
		
	
		
	
					$('.accordion').accordion({
			autoheight: false,
			navigation: false,
			active: false,
			header: '.accheader',
			alwaysOpen: false
			
			
		});		
		
			$('.delete').click(function(){
            var answer = confirm('Are you sure?');
                        // jQuery(this).attr('title') gets anchor title attribute
            return answer; // answer is a boolean
            }); 
			
								
$('#slideshow').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 6000, 
    pager:  '#nav', 
    pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#nav li:eq(' + idx + ') a'; 
    } 
});


	$("#sortby").change(function() 
    { 
		$("#sortform").submit();
		
	});
	
	
easing = 'Back';
		
		function loadEasing(e) {
			location.href = 'index.html'+e;
		}
		
		function setEasing(e) {
			loadLamps(e);
		}	
		
		
		
});
