		$(document).ready(function() { 

				$("ul.sf-menu").supersubs({
						minWidth:    9,   // minimum width of sub-menus in em units 
						maxWidth:    27,   // maximum width of sub-menus in em units 
						extraWidth:  1     // extra width can ensure lines dont sometimes turn over 
						                   // due to slight rounding differences and font-family 
				}).superfish({
						delay:       0,                            // one second delay on mouseout 
						speed:       'fast',                          // faster animation speed 
						animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
						autoArrows:  false,                           // disable generation of arrow mark-up 
						dropShadows: false                            // disable drop shadows 
				});
				
				$('#promo')
						.after('<div id="nav">')
						.cycle({
						fx: 'fade',
						speed:   2500,  // speed of the transition (any valid fx speed value)
						timeout: 8500,
						pager:  '#nav',
						cleartype: true,
						cleartypeNoBg: true
				});

				$("#themeToggle").click(function () {
					var $this = $(this);
					if( $this.is('.themeclasschangerActive') ){
						$("#themeChange").toggle("slide", { direction: "up" }, 500);  // This moves the entire div
						$(this).removeClass("themeclasschangerActive");
						$(this).addClass("themeclassChanger");
					}
					else {
						$("#themeChange").toggle("slide", { direction: "up" }, 500);  // This moves the entire div
						$(this).removeClass("themeclassChanger");
						$(this).addClass("themeclasschangerActive");
					}
					return false;
				});
				
				$("#searchToggle").click(function () {
					var $this = $(this);
					if( $this.is('.searchclasschangerActive') ){
						$("#hiddenSearch").toggle("slide", { direction: "up" }, 500);  // This moves the entire div
						$(this).removeClass("searchclasschangerActive");
						$(this).addClass("searchclassChanger");
					}
					else {
						$("#hiddenSearch").toggle("slide", { direction: "up" }, 500);  // This moves the entire div
						$(this).removeClass("searchclassChanger");
						$(this).addClass("searchclasschangerActive");
					}
					return false;
				});
				
				$("#categorieToggle").click(function () {
					$("#hiddenCategories").slideToggle("slow");
				});

				$('#tabs').tabs({ 
					fx: { 
						opacity: 'toggle',
						height: 'toggle',
						duration: 350
					} 
				});

				$('a.new-window').click(function(){
					window.open(this.href);
					return false;
				});

		})