			$(document).ready(function() {
			
			
				// hover-box with fading
				$(".mybox1").hover(
					function() {
						$(this).children('.over_actions').stop().fadeTo(300, 0, function() {
							$(this).hide();
						});
					},
					function() {
						$(this).children('.over_actions').stop().fadeTo(300, 1.0, function() {
							$(this).show();
						});
					}
				);
				
								
				// menu-box with lightbox-effect - start
				$(".menubox").hover(
					function() {
						$(this).css('z-index','6000');
						$(this).children('.menu_hover').css('height','124px');
						$(this).children('.menu_items').stop().fadeTo(300, 1.0);
						
						$('#sbOverlay').stop().fadeTo(1, 0.5);
						$('.overmenu').show();
						$(this).children('.menu_hover').children('.overmenu').hide();
						
					},
					function() {
						$(this).css('z-index','10');
						$(this).children('.menu_hover').css('height','156px');
						$(this).children('.menu_items').stop().hide();
						
						$('#sbOverlay').stop().fadeTo(1, 0, 
							function(){
								$(this).hide();
							}
						);
						
						$('.overmenu').hide();
					}
				);
				
				// menu-box - content
				$(".menubox2").hover(
					function() {
						$(this).css('z-index','6000');
						$(this).children('.menu_hover2').css('height','43px');
						$(this).children('.menu_items2').stop().fadeTo(300, 1.0);
					},
					function() {
						$(this).css('z-index','10');
						$(this).children('.menu_hover2').css('height','75px');
						$(this).children('.menu_items2').stop().hide();
					}
				);
				
				
				
				
				
				// team-box show/hide
				
				var showteam=0;		
				$(".team2_box1").hover(
					function() {
						if (showteam==0) {
							$(".team2_box2").show();
							$('.tab1_content').jScrollPane();
							$(this).addClass('tb2_on');
							
						} else {
							$(".team2_box2").show();
							$(this).addClass('tb2_on');
							showteam = 0;
						};
					},
					function() {
						$(".team2_box2").hide();
						$(this).removeClass('tb2_on');
					}
				);
				
				$(".team2_box2").hover(
					function() {
						$(this).clearQueue().show();
						$(".team2_box1").addClass('tb2_on');
						showteam = 1;
					},
					function() {
						$(".team2_box1").removeClass('tb2_on');
						$(this).hide();				
					}
				); 
				
				
				// tabs - toggle tab
        		function toggletab1 () {
        			$(".tab1_content").show();
        			$('.tab1_content').jScrollPane();
        			
        			
        			$(".tab2_content").hide();
        			$(".head1_menu").show();
        			$(".head2_menu").hide();
        			
        			$(".tab1 img:nth-child(2)").show();
        			$(".tab1 img:nth-child(1)").hide();
        			
        			$(".tab2 img:nth-child(2)").hide();
        			$(".tab2 img:nth-child(1)").show();
        			
        			$(".tab1").addClass('tab1_on');
        			$(".tab2").removeClass('tab2_on');
        		};
        		
        		function toggletab2 () {
        			$(".tab2_content").show();
        			$('.tab2_content').jScrollPane();
        			
        			$(".tab1_content").hide(); 
        			$(".head2_menu").show();
        			$(".head1_menu").hide();
        			
        			$(".tab1 img:nth-child(1)").show();
        			$(".tab1 img:nth-child(2)").hide();
        			
        			$(".tab2 img:nth-child(1)").hide();
        			$(".tab2 img:nth-child(2)").show();
        			
        			$(".tab2").addClass('tab2_on');
        			$(".tab1").removeClass('tab1_on');
        			
        		};
    			
    			
    			// tabs - toggle head	
				function togglehead () {
        			if( $(".head1").next().is(":visible") ){
           				$(".head1").next().hide();
           				$(".head1").removeClass("activehead");
           			
           				$(".tab2_content").show();
        				$(".tab1_content").hide(); 
        				
        				$(".tab1 img:nth-child(1)").show();
        				$(".tab1 img:nth-child(2)").hide();
        			
        				$(".tab2 img:nth-child(1)").hide();
        				$(".tab2 img:nth-child(2)").show();
        				
        				$(".tab2").addClass('tab2_on');
        				$(".tab1").removeClass('tab1_on');
           			
           			}else{
            			$(".head1").next().show();
            			$(".head1").addClass("activehead");
        			
        				
        				$(".tab1_content").show();
        				$(".tab2_content").hide(); 
        			
        				$(".tab2 img:nth-child(1)").show();
        				$(".tab2 img:nth-child(2)").hide();
        			
        				$(".tab1 img:nth-child(1)").hide();
        				$(".tab1 img:nth-child(2)").show();
        			
        				$(".tab2").addClass('tab1_on');
        				$(".tab1").removeClass('tab2_on');
        			
        			}
        			
        			if( $(".head2").next().is(":visible") ){
           				  $(".head2").next().hide();
           				  $(".head2").removeClass("activehead");
        			}else{
            			 $(".head2").next().show();
            			 $(".head2").addClass("activehead");
        			}
        			
        			
        		};
			
				
				$(".tab1").click(toggletab1);
      			$(".tab2").click(toggletab2);
			
				$(".head1").click(togglehead);
      			$(".head2").click(togglehead);
				
				
				
				
				
				/* $("#contentstart .startcontainer .start1 .csc-default:nth-child(2)").append("<span> - 2nd!</span>"); */
				/* $('#teamscroll').scrollbarPaper(); */
				
				
				
				
			});
