


			// The menu mouse control

		  $(function() {
					$("#menu").mikeMenu('click_open_close'); //  click_toggle 
			});
			
			
			
			// The login modal
			
			$(function() {
				  $('.boxy').boxy();
			});
			
			
			
			// Tool tips for the video player and anything else that requires this feature
			
			$(function(){
					$(".playerButton").tipTip();
			});
			
			$(function(){
					$(".aSocialIcon").tipTip();
			});
			
			$(function(){
					$(".currencyInfo").tipTip();
			});
			
			$(function(){
					$(".adminPromoCode").tipTip();
			});
			
			
			// Sliding right column and sticky top menu
			
			$().ready(function () {
            var theMenuOpts = {
                topPadding: 0,  // can have a gap if required - just numbers no px suffix required
                afterDetachCSSClass: "notUsedYet",
                savePanelSpace: true
            };
            $("#menu").superMike(theMenuOpts);
            
            var theMenuOpts2 = {
                topPadding: 71,  // can have a gap if required - just numbers no px suffix required
                afterDetachCSSClass: "notUsedYet",
                savePanelSpace: true
            };
            $("#testBox").superMike(theMenuOpts2);
            // savePanelSpace can also be false of course
            
      });
      

      
      // Pagination on the gallery
     
	
	
	    // there is something about this pagination which stops the filter working so I will hide for now 
      /*
			var pager = new Imtech.Pager();
			$(document).ready(function() {
			    pager.paragraphsPerPage = 20; 
			    pager.pagingContainer = $('#usersList'); 
			    pager.paragraphs = $('.aUser', pager.pagingContainer);
			    pager.showPage(1); // default
			});
	    */





			/* Footer twitter   */

			$(document).ready(function() {
				$("#twitter").getTwitter({
					userName: "CS_Europe",
					numTweets: 1,
					loaderText: "Loading tweets...",
					slideIn: true,
					slideDuration: 500,
					showHeading: false,
					headingText: "Latest Tweets",
					showProfileLink: true,
					showTimestamp: true
				});
			});
			
			 
			
			// The content transitions such as News / Footer Tesimonials
				
      $(document).ready(
			
					function(){
						$('#homeNewsTicker').innerfade({
							animationtype: 'slide',
							speed: 1000,
							timeout: 4000,
							type: 'sequence',
							containerheight: '1em'
						});

						$('#testimonialsOLD').innerfade({
							animationtype: 'slide',
							speed: 1000,
							timeout: 8000,
							type: 'random',
							containerheight: '1em'
						});
						
						$('#video1Subtitles').innerfade({
							animationtype: 'slide',
							speed: 100,
							timeout: 5000,
							type: 'sequence',
							containerheight: '1em'
						});
						$('#video2Subtitles').innerfade({
							animationtype: 'slide',
							speed: 100,
							timeout: 5000,
							type: 'sequence',
							containerheight: '1em'
						});
						$('#video3Subtitles').innerfade({
							animationtype: 'slide',
							speed: 100,
							timeout: 5000,
							type: 'sequence',
							containerheight: '1em'
						});
						$('#video4Subtitles').innerfade({
							animationtype: 'slide',
							speed: 100,
							timeout: 5000,
							type: 'sequence',
							containerheight: '1em'
						});
							$('#homepageSponsors').innerfade({
							animationtype: 'slide',
							speed: 50,
							timeout: 3000,
							type: 'sequence',
							containerheight: '1em'
						});

			});


			/* venue image scroll effect
			$(function() {
          $('#venueImage').smart3d();
      });
			*/

			
/*   TABS   */
			
$(document).ready(function() {
 

	$(".tab_content").hide(); 
	$("ul.tabs li:first").addClass("active").show();
	$(".tab_content:first").show(); 
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active");
		$(this).addClass("active"); 
		$(".tab_content").hide(); 
		var activeTab = $(this).find("a").attr("href"); 
		$(activeTab).fadeIn(); 
		return false;
	});
 
});



$(document).ready(function() {
 

	$(".tab_content_interests").hide(); 
	$("ul.tabsi li:first").addClass("active").show();
	$(".tab_content_interests:first").show(); 
	$("ul.tabsi li").click(function() {
		$("ul.tabsi li").removeClass("active");
		$(this).addClass("active"); 
		$(".tab_content_interests").hide(); 
		var activeTabi = $(this).find("a").attr("href"); 
		$(activeTabi).fadeIn(); 
		return false;
	});
 
});





/*  editor 

var ste = new SimpleTextEditor("meditor", "ste");
ste.init(); */



$(document).ready(function(){
	$('#testimonialsEN .slide');
	setInterval(function(){
		$('#testimonialsEN .slide').filter(':visible').fadeOut(1000,function(){
			if($(this).next('li.slide').size()){
				$(this).next().fadeIn(1000);
			}
			else{
				$('#testimonialsEN .slide').eq(0).fadeIn(1000);
			}
		});
	},8000);	
});	

$(document).ready(function(){
	$('#testimonialsDE .slide');
	setInterval(function(){
		$('#testimonialsDE .slide').filter(':visible').fadeOut(1000,function(){
			if($(this).next('li.slide').size()){
				$(this).next().fadeIn(1000);
			}
			else{
				$('#testimonialsDE .slide').eq(0).fadeIn(1000);
			}
		});
	},8000);	
});	




