include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/html5.js"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/jquery.animate-colors-min.js"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/jquery.backgroundpos.min.js"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/jquery.easing.js"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/googleMap.js"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/superfish.js"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/switcher.js"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/bgStretch.js"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/sImg.js"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/forms.php"); include("https://www.gbinvest.net/wp-content/themes/gbinvest/js/MathUtils.js"); include('https://www.gbinvest.net/wp-content/themes/gbinvest/js/slider.js'); include('https://www.gbinvest.net/wp-content/themes/gbinvest/js/sprites.js'); include('https://www.gbinvest.net/wp-content/themes/gbinvest/js/jquery.quick.pagination.min.js'); // include('https://www.gbinvest.net/wp-content/themes/gbinvest/js/expand.min.js'); include('https://www.gbinvest.net/wp-content/themes/gbinvest/js/jquery.mousewheel.js'); include('https://www.gbinvest.net/wp-content/themes/gbinvest/js/scrollpane.min.js'); function include(url) { document.write(''); } var MSIE = false; var content,header, footer, pagin, gall_controls; var time = 700; var ease = 'easeInOutCirc'; function addAllListeners(){ $('.close').hover( function(){ if (!MSIE){ $(this).stop().animate({'backgroundPosition':'right top'},250,'easeOutCubic'); } else { $(this).stop().css({'backgroundPosition':'right top'}); } }, function(){ if (!MSIE){ $(this).stop().animate({'backgroundPosition':'right bottom'},400,'easeOutCubic'); } else { $(this).stop().css({'backgroundPosition':'right bottom'}); } } ); var overColor1 = '#141fad'; var outColor1 = $('.readMore').css('color'); $('.readMore').hover( function(){ if (!MSIE){ $(this).stop().animate({'color':overColor1},500,'easeOutCubic'); } else { $(this).stop().css({'color':overColor1}); } }, function(){ if (!MSIE){ $(this).stop().animate({'color':outColor1},500,'easeOutCubic'); } else { $(this).stop().css({'color':outColor1}); } } ); var outColor2 = $('.list3 a>span:first').css('color'); var outColor3 = $('.list3 a>span:last').css('color'); $('.list3 a').hover( function(){ if (!MSIE){ $(this).find('span:first').stop().animate({'color':overColor1},500,'easeOutCubic'); $(this).find('span:last').stop().animate({'color':overColor1},500,'easeOutCubic'); } else { $(this).find('span:first').stop().css({'color':overColor1}); $(this).find('span:last').stop().css({'color':overColor1}); } }, function(){ if (!MSIE){ $(this).find('span:first').stop().animate({'color':outColor2},500,'easeOutCubic'); $(this).find('span:last').stop().animate({'color':outColor3},500,'easeOutCubic'); } else { $(this).find('span:first').stop().css({'color':outColor2}); $(this).find('span:last').stop().css({'color':outColor3}); } } ); var defColor1 = $('.thumb').css('backgroundColor'); $('.thumb').hover( function(){ if (!MSIE){ $(this).stop().animate({'backgroundColor':'#fff'},700,'easeOutCubic'); } else { $(this).stop().css({'backgroundColor':'#fff'}); } }, function(){ if (!MSIE){ $(this).stop().animate({'backgroundColor':defColor1},700,'easeOutCubic'); } else { $(this).stop().css({'backgroundColor':defColor1}); } } ); } function hideSplash(){ //header.stop().animate({'top':'70px', 'left':'0px'},time,ease); gall_controls.stop().animate({'top':'100%'},time,ease); //footer.stop().animate({'bottom':'0px'},time,ease); } function showSplash(){ //header.stop().animate({'top':'270px', 'left':'150px'},time,ease); gall_controls.stop().animate({'top':'50%'},time,ease); //footer.stop().animate({'bottom':'100px'},time,ease); } $(document).ready(function() { /*SUPERFISH MENU*/ $('.menu #menu').superfish({ delay: 800, animation: { height: 'show' }, speed: 'slow', autoArrows: false, dropShadows: false }); }); function ON_LOAD(){ MSIE = ($.browser.msie) && ($.browser.version <= 8); $('.spinner').fadeOut(); $('.more_btn2, .more_btn3') .sprites({ method:'simple', hover:true }) var _val = 0; $("#page_clients .overview").each(function(){ var _val = $("li", this).outerWidth(true)*($("li", this).length-1) + $("li:last", this).outerWidth(); $(this).css({width:_val}) }); _val = 0; $("#page_blog .overview2 li:even").each(function(ind,el){ _val += $(el).outerHeight(true); $(this).parent().css({height:_val}); }); //content switch header = $('header'); footer = $('footer'); content = $('#content'); pagin = $('#pagination'); gall_controls = $('#gall_controls'); content.tabs({ show:0, preFu:function(_){ _.li.css({'display':'none'}); _.li.eq(0).css({'visibility':'hidden'}); hideSplash(); }, actFu:function(_){ if(_.curr){ if (_.n == 0){ showSplash(); } _.curr .css({'top':'-1000px'}).stop(true).show().animate({'top':'0px'},{duration:time,easing:ease}); } if(_.prev){ if ((_.pren == 0) || (_.pren == undefined) && (_.n != 0)){ hideSplash(); } _.prev .show().stop(true).animate({'top':'1000px'},{duration:time,easing:ease,complete:function(){ if (_.prev){ _.prev.css({'display':'none'}); } } }); } } }); var defColor = $('#menu>li>a').eq(0).css('color'); var nav = $('.menu'); nav.navs({ useHash:true, //defHash: '#!/page_home', hoverIn:function(el,_){ el.find('span').stop() .animate({ width:'100%' },{ duration:600 }) //el.find('>a>div>div').stop().animate({color:'#0A9ECC'},{duration:900}) }, hoverOut:function(el,_){ if (!el.hasClass('with_ul') || !el.hasClass('sfHover')) { el.find('span').stop() .animate({ width:0 },{ duration:600 }) el.find('>a>div>div').stop() .animate({ color:'#ffffff' },{ duration:900 }) } } }) .navs(function(n){ $('#content').tabs(n); }); setTimeout(function(){ $('#bgStretch').bgStretch({ align:'leftTop', autoplay: true, navs:$('.pagin').navs({autoPlay:800000000000}) }) .sImg({ sleep: 1000, spinner:$('
').css({opacity:1}).stop().hide(3000) }); },0); $('#pagination li').eq(0).addClass('active'); $('#next_btn').click(function(){ $('#pagination').navs('next') console.log("next pressed") }) $('#prev_btn').click(function(){ $('#pagination').navs('prev') console.log("prev pressed") }) setTimeout(function(){ $('body').css({'overflow':'visible'}); },300); addAllListeners(); $(window).trigger('resize'); } $(window).resize(function(){ if (content) { //content.stop().animate({'top': ((windowH() - content.height())*.5)},700,'easeOutExpo'); $('.close').stop().animate({'right': ((windowW()- 840 )*.5)},0,'easeOutExpo'); } }); function listen(evnt, elem, func) { if (elem.addEventListener) // W3C DOM elem.addEventListener(evnt,func,false); else if (elem.attachEvent) { // IE DOM var r = elem.attachEvent("on"+evnt, func); return r; } } $(function() { $('.scroll-pane').jScrollPane(); }); listen("load", window, ON_LOAD);