jQuery().ready(function() {


                jQuery('#sidecontainer').panelGallery();
                jQuery("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);

                //Larger thumbnail preview
                jQuery("ul.thumb li").hover(function() {
                        jQuery(this).css({'z-index' : '10'});
                        jQuery(this).find('img').addClass("hover").stop()
                                .animate({
                                        marginTop: '-110px',
                                        marginLeft: '-110px',
                                        top: '50%',
                                        left: '50%',
                                        width: '174px',
                                        height: '174px',
                                        padding: '20px'
                                }, 200);

                        } , function() {
                        jQuery(this).css({'z-index' : '0'});
                        jQuery(this).find('img').removeClass("hover").stop()
                                .animate({
                                        marginTop: '0',
                                        marginLeft: '0',
                                        top: '0',
                                        left: '0',
                                        width: '100px',
                                        height: '100px',
                                        padding: '5px'
                                }, 400);
                });

                //Swap Image on Click
                jQuery("ul.thumb li a").click(function() {
                        var mainImage = jQuery(this).attr("href"); //Find Image Name
                        $("#main_view img").attr({ src: mainImage });
                        return false;
                });
		jQuery("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);


		jQuery('.dropdown').each(function () {
			jQuery(this).parent().eq(0).hoverIntent({
				timeout: 100,
				over: function () {
					var current = jQuery('.dropdown:eq(0)', this);
					current.slideDown(100);
				},
				out: function () {
					var current = jQuery('.dropdown:eq(0)', this);
					current.fadeOut(200);
				}
			});
		});

		jQuery('.dropdown a').hover(function () { jQuery(this).stop(true).animate({paddingLeft: '35px'}, {speed: 100, easing: 'easeOutBack'}); }, function () { jQuery(this).stop(true).animate({paddingLeft: '0'}, {speed: 100, easing: 'easeOutBounce'}); });


});


