			$(document).ready(function() {
				/* CYCLE -- scrollHorz*/
				$('#hometeaser').cycle({
					fx: 'fade',
					timeout: 9000,
					prev: '#prev',
					next: '#next',
					pause: 1
				});
				if ($("#hometeaser").length == 1) {
					if ($("#hometeaser .slide").length <= 1) {
						$("#go_left").hide();
						$("#go_right").hide();
					}
				}
				$('#rbma_headerimage').cycle({
					fx: 'fade',
					timeout: 5000,
					prev: '#prev',
					next: '#next',
					pause: 1
				});
				$('#testlab_slides').cycle({
					fx: 'fade',
					timeout: 5000,
					prev: '#prev',
					next: '#next',
					pause: 1
				});
				/* REACTION */
				$('#docomment').click(function() { 
					$.blockUI({ 
							message: $('#react1'),
							css: { 
								top: '10%',
								width: '450px',
								left: ($(window).width() - 450) /2 + 'px',
								border: '3px solid #181512',
								borderBottom: '10px solid #181512',
								background: '#181512',
								margin: '0px',
								cursor: 'auto'
							},
							overlayCSS:  { 
								cursor: 'auto'
							}
						});
					$('.rectanglebanner').toggleClass("hide");
					$('#reaction_cancel').toggleClass("hide");
					$('#reaction_email').attr('name','tahr');
				});
				$('#reaction_cancel').click(function() {
					$.unblockUI();
					$('.rectanglebanner').toggleClass("hide");
					$('#reaction_cancel').toggleClass("hide");
				});
				if ($("#reactionpopup").val() == '1') {
					$('#docomment').click();
				}
				/* MENU */
				$("div#header_menu ul li.main").hover(
					function() {$("div#header_menu ul li ul").removeClass("unhidden");$("ul",this).addClass("unhidden");}, function () {}
				);
				/* SUPERBANNER BEHAVIOUR */
				$("#superbanner_kill img").click(
					function () {
						$(document.body).click(function () {
							if ($("#superbanner").is(":hidden")) {
								/* do nothing :) */
							} else {
								$("#superbanner").slideUp("slow");
							}								
						});
					}
				);
				/* mostread block v2 */
				$(".mostread_v2_block").not(".mostread_v2_highlight").hover(
					function(){
						if ($(this).not(".jq_switched")) {
							$(this).toggleClass("mostread_v2_highlight");
							$(this).toggleClass("jq_switched");
						}
					},
					function(){
						if ($(this).is(".jq_switched")) {
							$(this).toggleClass("mostread_v2_highlight");
							$(this).toggleClass("jq_switched");
						}
					}
				);
				$(".mostread_v2_popular,.mostread_v2_latest,.mostread_v2_comments").click(
					function(){
						$(".mostread_v2_popular,.mostread_v2_latest,.mostread_v2_comments").parent().parent().hide();
						if ($(this).is(".mostread_v2_popular")) { $("#mostread_block1").show(); }
						if ($(this).is(".mostread_v2_latest")) { $("#mostread_block2").show(); }
						if ($(this).is(".mostread_v2_comments")) { $("#mostread_block3").show(); }
					}
				);
				$(".photothumb").eq($("#currentimage").val()).find("a").eq(1).hide();
				$(".photothumb").hover(
					function(){
						$("a",this).eq(1).fadeOut('fast');
					},
					function(){
						$("a",this).eq(1).fadeIn('fast');
						$(".photothumb").eq($("#currentimage").val()).find("a").eq(1).hide();
					}
				);
				/* slider partyshots */
				if ($("#party_slider").length > 0) {
					var width = $("#party_slides .photothumb").length*($("#party_slides .photothumb").width()+3);
					width = width-(($("#party_slides .photothumb").width()+3)*6);
					$("#party_slider").slider({ from: 0, to: width, step: 1, round: 1, dimension: '', skin: "plastic", onstatechange : function( val ) {
						if ($("#party_slides .photothumb").length*$("#party_slides .photothumb").width() > (($("#party_slides .photothumb").width()+3)*6)) {
							$("#party_slides").css('left',-val);
						}
					}});
				}
			});

