$(document).ready(
				function(){
						$('#slideshow').cycle({fx: 'fade' , timeout: 2000, delay: 2000});
						$('#accordionList').accordion();
						$('.link').click(
								function(){
									var gotoURl = $(this).attr('title');
									$('.back').animate({'opacity':'0'},100,function(){});
									$('.descr').animate(
											{'height':'0px','opacity':'0'},1514,function(){
												document.location=gotoURl;
										}
									);
								}
						);
						$('.content').animate(
								{'height':'350px'},757,function(){$('.back').animate({'opacity':'1'},1514,function(){});}
						);
						$("#galleryShapky a").lightbox();
						$("#galleryShaly a").lightbox();
						$("#galleryNavkhrest a").lightbox();
						$("#galleryKyshakh a").lightbox();
						$("#galleryLava a").lightbox();
						$.Lightbox.construct({
					    	"speed": 500,"show_linkback": true,
					    	"keys": {close:	"q",prev:	"z",next:	"x"},
							"opacity": 0.3,
							text: {
								image:		"",
								of:			"",
								close:		"",
								closeInfo:	"",
								help: {close:"",interact:""},
								about: {text: 	"",title:	"",link:	"http://www.stedley.com.ua"}
							},
							files: {
								images: {
									prev:		"../lightbox_img/prev.gif",
									next:		"../lightbox_img/next.gif",
									blank:		"../lightbox_img/blank.gif",
									loading:	"../lightbox_img/loading.gif"
								}
							}
					    });
	//					$("#gallery a").lightbox();
//						$("#gallery1 a").lightbox();
					}
				);
/**
* @author Vladimir Yunev
* @desc Create accordion on dl-elements with jQuery
* @version 1.0
* @example
* $("dl-element").accordion();
* @license free
**/
jQuery.fn.accordion = function() {
    function update(dl) {
        $("dt:not(.active)", dl).css("cursor", "pointer");
        $("dt.active", dl).css("cursor", "");

        $("dd div", dl).hide(757);
        //$("dd span.remark", dl).show();

        $("dt.active", dl).next().children("div").show(757);
        //$("dt.active", dl).next().children("span.remark").hide();
    }

    return this.each(function() {
        var dl = $(this), active = $("dt.active", dl);
        update(dl);

        $("dt", dl).click(function() {
            if (!$(this).hasClass("active")) {
                active && active.removeClass("active");
                active = $(this).addClass("active");
                update(dl);
            }
        });
    });
};
