(function ($) {
	"use strict";

	$(window.parent).scroll(function () {		
		var scrollsec02 = ($('#scrollsec02').offset().top);		
		
		var nowscrollVal = $(this).scrollTop();
		if (nowscrollVal > scrollsec02) {
			$("#XTREME #tableall02 .stable01 .table1").css('width', '80%');
			$("#XTREME #tableall02 .stable01 .table2").css('width', '45%');
			$("#XTREME #tableall02 .stable01 #st1, #XTREME #tableall02 .stable01 #st2, #XTREME #tableall02 .stable01 #st3").delay(1000).fadeIn();

			$("#XTREME #tableall03 .stable01 .table1").css('width', '70%');
			$("#XTREME #tableall03 .stable01 .table2").css('width', '38%');		
			$("#XTREME #tableall03 .stable01 #st1, #XTREME #tableall03 .stable01 #st2, #XTREME #tableall03 .stable01 #st3").delay(1000).fadeIn();
		}

	
	});


	$("#tabtitle1").click(function () {
		$("#tabtitle1 img").attr("src", "/FileUpload/Global/KeyFeature/1429/innergigabyteimages/tab1.png");		
		$("#tabtitle2 img").attr("src", "/FileUpload/Global/KeyFeature/1429/innergigabyteimages/tab2-h.png");
		$("#funtabs1").stop().fadeIn(400);
		$("#funtabs2").css('display','none');
	});

	$("#tabtitle2").click(function () {
		$("#tabtitle1 img").attr("src", "/FileUpload/Global/KeyFeature/1429/innergigabyteimages/tab1-h.png");
		$("#tabtitle2 img").attr("src", "/FileUpload/Global/KeyFeature/1429/innergigabyteimages/tab2.png");
		$("#funtabs2").stop().fadeIn(400);
		$("#funtabs1").stop().fadeOut(1);
	});	


	//bioshere

	$("#bioshere").click(function () {		
		$("html,body").animate({ scrollTop: ($('#bioscontent').offset().top)}, 800);
		$('.btnstyle').toggleClass('menuOpen');
		$('.morecon').slideToggle(1000);
		$('.btntext').slideToggle(800);
		$('.moreline').toggleClass('morelineOpen');
		$('#moreiconline').toggle(400);
	});

	$('.moreicon').on('click', function () {
		$(window).resize();
		$(this).find('.btnstyle').toggleClass('menuOpen');
		$(this).next('.morecon').slideToggle(1000);
		$(this).find('.btntext').slideToggle(800);
		$(this).toggleClass('moreiconOpen');
		$(this).find('.moreline').toggleClass('morelineOpen');
		$('#moreiconline').toggle(400);
	});


	/* Animate css wow */
	var wow = new WOW({
            boxClass: 'wow', // animated element css class (default is wow)
            animateClass: 'animated', // animation css class (default is animated)
            offset: 250, // distance to the element when triggering the animation (default is 0)
            mobile: true, // trigger animations on mobile devices (default is true)
            live: true // act on asynchronously loaded content (default is true)
        });
        wow.init();


})(jQuery);