$(function($) { $.localScroll.defaults.axis = 'y'; $.localScroll({ duration: 100, easing: 'linear', queue: true, event: 'click', hash: false }); }); var features = 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,left=,top=,width=,height='; var searchDatabase = new SearchDatabase(); var searchResults_length = 0; var searchResults = new Object(); function searchPage(features) { var element = document.getElementById('indexSiteSearch1'); if (element.value.length != 0 || element.value != " ") { var value = unescape(element.value); var keywords = value.split(" "); searchResults_length = 0; for (var i=0; i= 0) { matches++; } else { matches = 0; } } if (matches == keywords.length) { searchResults[searchResults_length++] = searchDatabase[i]; } } var wndResults = window.open('about:blank', '', features); setTimeout(function() { var results = ''; var html = 'Search results<\/title><\/head>'; html = html + '<body style="background-color:#FFFFFF;margin:0;padding:5px 5px 5px 5px;">'; html = html + '<span style="font-family:Arial;font-size:13px;color:#000000">'; for (var n=0; n<searchResults_length; n++) { var page_keywords = searchResults[n].keywords; results = results + '<strong><a style="color:#008080" target="_parent" href="'+searchResults[n].url+'">'+searchResults[n].title +'<\/a><\/strong><br>Description: ' + searchResults[n].description + '<br>Keywords: ' + page_keywords +'<br><br>\n'; } if (searchResults_length == 0) { results = 'No results'; } else { html = html + searchResults_length; html = html + ' result(s) found for search term: '; html = html + value; html = html + '<br><br>'; } html = html + results; html = html + '<\/span>'; html = html + '<\/body><\/html>'; wndResults.document.write(html); },100); } return false; } function searchParseURL() { var url = decodeURIComponent(window.location.href); if (url.indexOf('?') > 0) { var terms = ''; var params = url.split('?'); var values = params[1].split('&'); for (var i=0;i<values.length;i++) { var param = values[i].split('='); if (param[0] == 'q') { terms = unescape(param[1]); break; } } if (terms != '') { var element = document.getElementById('indexSiteSearch1'); element.value = terms; searchPage(''); } } } $(document).ready(function() { $("a[href*='#PageHeader']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#PageHeader').offset().top }, 600, 'linear'); }); $("a[href*='#top']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#wb_top').offset().top }, 600, 'linear'); }); $('#Layer3').parallax(); var Carousel1Opts = { delay: 5000, duration: 1500, easing: 'easeInOutExpo', mode: 'backward', direction: '', pagination: true, pagination_img_default: 'images/page_default.png', pagination_img_active: 'images/page_active.png', start: 0 }; $("#Carousel1").carousel(Carousel1Opts); $('#Layer2').parallax(); activeItem = $("#h-accordion li:first"); $(activeItem).addClass('active'); $("#h-accordion > li").hover(function(){ $(activeItem).animate({width: "90px"}, {duration:1000, queue:false}); $(this).animate({width: "400px"}, {duration:1000, queue:false}); activeItem = this; }); $("#NavigationBar1 .navbar a").hover(function() { if ($(this).hasClass('active')) return; $("img", this).stop().animate({left:"0px"},{queue:false,duration:500}); }, function() { $("img", this).stop().animate({left:"-185px"},{queue:false,duration:500}); }) $("#NavigationBar2 .navbar a").hover(function() { if ($(this).hasClass('active')) return; $("img", this).stop().animate({left:"0px"},{queue:false,duration:500}); }, function() { $("img", this).stop().animate({left:"-191px"},{queue:false,duration:500}); }) $("#NavigationBar3 .navbar a").hover(function() { if ($(this).hasClass('active')) return; $("img", this).stop().animate({left:"0px"},{queue:false,duration:500}); }, function() { $("img", this).stop().animate({left:"-183px"},{queue:false,duration:500}); }) $("#go-shop-txt-1 .navbar a").hover(function() { if ($(this).hasClass('active')) return; $("img", this).stop().animate({left:"0px"},{queue:false,duration:500}); }, function() { $("img", this).stop().animate({left:"-149px"},{queue:false,duration:500}); }) $("a[href*='#Layer_IT_Pack']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#Layer_IT_Pack').offset().top }, 600, 'linear'); }); $('#Layer_IT_Pack').parallax(); $("#Banner6").animatetext({showDelay: 50, hideDelay: 50, showMode: 0, hideMode: 0, pause: 500}); $("#Banner3").animatetext({showDelay: 50, hideDelay: 50, showMode: 0, hideMode: 0, pause: 500}); $("#Banner4").animatetext({showDelay: 80, hideDelay: 80, showMode: 0, hideMode: 0, pause: 500}); function Bookmark1Scroll() { var $obj = $("#wb_Bookmark1"); if (!$obj.hasClass("in-viewport") && $obj.inViewPort(false)) { $obj.addClass("in-viewport"); ShowObjectWithEffect('wb_gallery_icon1', 1, 'fade', 1500); ShowObjectWithEffect('wb_gallery_icon2', 1, 'fade', 1500); ShowObjectWithEffect('wb_gallery_icon3', 1, 'fade', 1500); ShowObjectWithEffect('wb_gallery_icon4', 1, 'fade', 1500); ShowObjectWithEffect('wb_icon-head1', 1, 'fade', 1000); ShowObjectWithEffect('wb_icon-head2', 1, 'fade', 1500); ShowObjectWithEffect('wb_icon-head3', 1, 'fade', 1500); ShowObjectWithEffect('wb_icon-head4', 1, 'fade', 1500); ShowObjectWithEffect('wb_icon-txt1', 1, 'dropdown', 1500); ShowObjectWithEffect('wb_icon-txt2', 1, 'dropdown', 1500); ShowObjectWithEffect('wb_icon-txt3', 1, 'dropdown', 1500); ShowObjectWithEffect('wb_icon-txt4', 1, 'dropdown', 1500); } if ($obj.hasClass("in-viewport") && !$obj.inViewPort(true)) { $obj.removeClass("in-viewport"); ShowObjectWithEffect('wb_gallery_icon1', 0, 'fade', 500); ShowObjectWithEffect('wb_gallery_icon2', 0, 'fade', 500); ShowObjectWithEffect('wb_gallery_icon3', 0, 'fade', 500); ShowObjectWithEffect('wb_gallery_icon4', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-head1', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-head2', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-head3', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-head4', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-txt1', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-txt2', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-txt3', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-txt4', 0, 'fade', 500); } } Bookmark1Scroll(); $(window).scroll(function(event) { Bookmark1Scroll(); }); $("a[href*='#Bookmark1']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#wb_Bookmark1').offset().top }, 1500, 'linear'); }); function Bookmark2Scroll() { var $obj = $("#wb_Bookmark2"); if (!$obj.hasClass("in-viewport") && $obj.inViewPort(false)) { $obj.addClass("in-viewport"); ShowObjectWithEffect('wb_icon-head5', 1, 'fade', 1500); ShowObjectWithEffect('wb_icon-head6', 1, 'fade', 1500); ShowObjectWithEffect('wb_icon-head7', 1, 'fade', 1500); ShowObjectWithEffect('wb_icon-head8', 1, 'fade', 1500); ShowObjectWithEffect('wb_gallery_icon5', 1, 'fade', 1500); ShowObjectWithEffect('wb_gallery_icon6', 1, 'fade', 1500); ShowObjectWithEffect('wb_gallery_icon7', 1, 'fade', 1500); ShowObjectWithEffect('wb_gallery_icon8', 1, 'fade', 1500); ShowObjectWithEffect('wb_icon-txt5', 1, 'dropdown', 1500); ShowObjectWithEffect('wb_icon-txt6', 1, 'dropdown', 1500); ShowObjectWithEffect('wb_icon-txt7', 1, 'dropdown', 1500); ShowObjectWithEffect('wb_icon-txt8', 1, 'dropdown', 1500); } if ($obj.hasClass("in-viewport") && !$obj.inViewPort(true)) { $obj.removeClass("in-viewport"); ShowObjectWithEffect('wb_icon-head5', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-head6', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-head7', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-head8', 0, 'fade', 500); ShowObjectWithEffect('wb_gallery_icon5', 0, 'fade', 500); ShowObjectWithEffect('wb_gallery_icon6', 0, 'fade', 500); ShowObjectWithEffect('wb_gallery_icon7', 0, 'fade', 500); ShowObjectWithEffect('wb_gallery_icon8', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-txt5', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-txt6', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-txt7', 0, 'fade', 500); ShowObjectWithEffect('wb_icon-txt8', 0, 'fade', 500); } } Bookmark2Scroll(); $(window).scroll(function(event) { Bookmark2Scroll(); }); $("a[href*='#Bookmark2']").click(function(event) { event.preventDefault(); $('html, body').stop().animate({ scrollTop: $('#wb_Bookmark2').offset().top }, 1500, 'linear'); }); $("#Banner5").animatetext({showDelay: 50, hideDelay: 30, showMode: 0, hideMode: 0, pause: 700}); searchParseURL(); var $autocomplete = $('<ul class="autocomplete"></ul>').hide().insertAfter('#indexSiteSearch1'); var selectedItem = null; var setSelectedItem = function(item) { selectedItem = item; if (selectedItem === null) { $autocomplete.hide(); return; } if (selectedItem < 0) { selectedItem = 0; } if (selectedItem >= $autocomplete.find('li').length) { selectedItem = $autocomplete.find('li').length - 1; } $autocomplete.find('li').removeClass('selected').eq(selectedItem).addClass('selected'); $autocomplete.css('left', $('#indexSiteSearch1').position().left); $autocomplete.css('top', $('#indexSiteSearch1').position().top + $('#indexSiteSearch1').outerHeight()); $autocomplete.show(); }; var populateSearchField = function() { $('#indexSiteSearch1').val($autocomplete.find('li').eq(selectedItem).text()); setSelectedItem(null); }; $('#indexSiteSearch1').attr('autocomplete', 'off').keyup(function(event) { if (event.keyCode > 40 || event.keyCode == 8) { var data = new Array(); var keywordVal = $('#indexSiteSearch1').val(); keywordVal = keywordVal.toLowerCase(); for (i=0; i<database_length; i++) { var words = (searchDatabase[i].title + " " + searchDatabase[i].description + " " + searchDatabase[i].keywords).toLowerCase(); var array = words.split(" "); data = $.merge(data, array); } var unique = new Array(); o:for(var i = 0; i < data.length; i++) { for(var j = 0; j < unique.length; j++) { if(unique[j]==data[i]) continue o; } unique[unique.length] = data[i]; } unique.sort(); if (keywordVal.length && unique.length) { $autocomplete.empty(); var item = 0; $.each(unique, function(index, term) { term = term.toLowerCase(); if (term.indexOf(keywordVal) == 0) { $('<li></li>').text(term).data('item', item).appendTo($autocomplete).mouseover(function() { var item = $(this).data('item'); setSelectedItem(item); }).click(populateSearchField); item++; } }); setSelectedItem(0); } else { setSelectedItem(null); } } else if (event.keyCode == 38 && selectedItem !== null) { setSelectedItem(selectedItem - 1); event.preventDefault(); } else if (event.keyCode == 40 && selectedItem !== null) { setSelectedItem(selectedItem + 1); event.preventDefault(); } else if (event.keyCode == 27 && selectedItem !== null) { setSelectedItem(null); } }).keypress(function(event) { if (event.keyCode == 13 && selectedItem !== null) { populateSearchField(); event.preventDefault(); } }).blur(function(event) { setTimeout(function() { setSelectedItem(null); }, 250); }); function indexBookmark1Scroll() { var $obj = $("#wb_indexBookmark1"); if (!$obj.hasClass("in-viewport") && $obj.inViewPort(false)) { $obj.addClass("in-viewport"); ShowObjectWithEffect('wb_Text126', 1, 'cliphorizontal', 1500); ShowObjectWithEffect('wb_experience_txt-1', 1, 'cliphorizontal', 1500); ShowObjectWithEffect('NavigationBar3', 1, 'dropleft', 1500); ShowObjectWithEffect('go-shop-txt-1', 1, 'dropright', 1500); } if ($obj.hasClass("in-viewport") && !$obj.inViewPort(true)) { $obj.removeClass("in-viewport"); ShowObjectWithEffect('wb_Text126', 0, 'fade', 1000); ShowObjectWithEffect('wb_experience_txt-1', 0, 'fade', 1000); ShowObjectWithEffect('NavigationBar3', 0, 'fade', 1000); ShowObjectWithEffect('go-shop-txt-1', 0, 'fade', 1000); } } indexBookmark1Scroll(); $(window).scroll(function(event) { indexBookmark1Scroll(); }); function indexBookmark2Scroll() { var $obj = $("#wb_indexBookmark2"); if (!$obj.hasClass("in-viewport") && $obj.inViewPort(false)) { $obj.addClass("in-viewport"); ShowObjectWithEffect('wb_start_working_text1', 1, 'cliphorizontal', 1500); ShowObjectWithEffect('wb_start_working_text2', 1, 'cliphorizontal', 1500); ShowObjectWithEffect('NavigationBar1', 1, 'bounce', 1500); ShowObjectWithEffect('NavigationBar2', 1, 'bounce', 1500); } if ($obj.hasClass("in-viewport") && !$obj.inViewPort(true)) { $obj.removeClass("in-viewport"); ShowObjectWithEffect('wb_start_working_text1', 0, 'fade', 1000); ShowObjectWithEffect('wb_start_working_text2', 0, 'fade', 1000); ShowObjectWithEffect('NavigationBar1', 0, 'fade', 1000); ShowObjectWithEffect('NavigationBar2', 0, 'fade', 1000); } } indexBookmark2Scroll(); $(window).scroll(function(event) { indexBookmark2Scroll(); }); var indexjQueryToolTip1Options = { hide: true, show: true, content: "<span style=\"color:#12525C;font-family:'Comic Sans MS';font-size:13px;\">If you have need more help or info?<br>Click "Chat now" Button<br>Call: +8801924282384<br>Skype: minjurrahmansaif</span>", items: '#wb_Shape10', position: { my: "center bottom-15", at: "center top", collision: "flipfit" }, tooltipClass: "indexjQueryToolTip1" }; $("#wb_Shape10").tooltip(indexjQueryToolTip1Options); var indexjQueryToolTip2Options = { hide: true, show: true, content: "<span style=\"color:#12525C;font-family:'Comic Sans MS';font-size:13px;\">If you have need more help or info?<br>Click "Chat now" Button<br>Call: +8801924282384<br>Skype: minjurrahmansaif</span>", items: '#wb_Shape12', position: { my: "center bottom-15", at: "center top", collision: "flipfit" }, tooltipClass: "indexjQueryToolTip2" }; $("#wb_Shape12").tooltip(indexjQueryToolTip2Options); var indexjQueryToolTip3Options = { hide: true, show: true, content: "<span style=\"color:#12525C;font-family:'Comic Sans MS';font-size:13px;\">If you have need more help or info?<br>Click "Chat now" Button<br>Call: +8801924282384<br>Skype: minjurrahmansaif</span>", items: '#wb_Shape18', position: { my: "center bottom-15", at: "center top", collision: "flipfit" }, tooltipClass: "indexjQueryToolTip3" }; $("#wb_Shape18").tooltip(indexjQueryToolTip3Options); var indexjQueryToolTip4Options = { hide: true, show: true, content: "<span style=\"color:#12525C;font-family:'Comic Sans MS';font-size:13px;\">If you have need more help or info?<br>Click "Chat now" Button<br>Call: +8801924282384<br>Skype: minjurrahmansaif</span>", items: '#wb_Shape24', position: { my: "center bottom-15", at: "center top", collision: "flipfit" }, tooltipClass: "indexjQueryToolTip4" }; $("#wb_Shape24").tooltip(indexjQueryToolTip4Options); var indexjQueryToolTip5Options = { hide: true, show: true, content: "<span style=\"color:#12525C;font-family:'Comic Sans MS';font-size:13px;\">If you have need more help or info?<br>Click "Chat now" Button<br>Call: +8801924282384<br>Skype: minjurrahmansaif</span>", items: '#wb_Shape48', position: { my: "center bottom-15", at: "center top", collision: "flipfit" }, tooltipClass: "indexjQueryToolTip5" }; $("#wb_Shape48").tooltip(indexjQueryToolTip5Options); var indexjQueryToolTip6Options = { hide: true, show: true, content: "<span style=\"color:#12525C;font-family:'Comic Sans MS';font-size:13px;\">If you have need more help or info?<br>Click "Chat now" Button<br>Call: +8801924282384<br>Skype: minjurrahmansaif</span>", items: '#wb_Shape42', position: { my: "center bottom-15", at: "center top", collision: "flipfit" }, tooltipClass: "indexjQueryToolTip6" }; $("#wb_Shape42").tooltip(indexjQueryToolTip6Options); var indexjQueryToolTip7Options = { hide: true, show: true, content: "<span style=\"color:#12525C;font-family:'Comic Sans MS';font-size:13px;\">If you have need more help or info?<br>Click "Chat now" Button<br>Call: +8801924282384<br>Skype: minjurrahmansaif</span>", items: '#wb_Shape36', position: { my: "center bottom-15", at: "center top", collision: "flipfit" }, tooltipClass: "indexjQueryToolTip7" }; $("#wb_Shape36").tooltip(indexjQueryToolTip7Options); var indexjQueryToolTip8Options = { hide: true, show: true, content: "<span style=\"color:#12525C;font-family:'Comic Sans MS';font-size:13px;\">If you have need more help or info?<br>Click "Chat now" Button<br>Call: +8801924282384<br>Skype: minjurrahmansaif</span>", items: '#wb_Shape30', position: { my: "center bottom-15", at: "center top", collision: "flipfit" }, tooltipClass: "indexjQueryToolTip8" }; $("#wb_Shape30").tooltip(indexjQueryToolTip8Options); $("#logo-text1").animatetext({showDelay: 50, hideDelay: 50, showMode: 0, hideMode: 0, pause: 500}); $("#heading").animatetext({showDelay: 50, hideDelay: 50, showMode: 0, hideMode: 0, pause: 1000}); var Carousel_Slideshow_MainOpts = { delay: 5000, duration: 1500, easing: 'easeInOutExpo', mode: 'forward', direction: '', pagination: true, pagination_img_default: 'images/page_default.png', pagination_img_active: 'images/page_active.png', start: 0 }; $("#Carousel-Slideshow-Main").carousel(Carousel_Slideshow_MainOpts); $('#layer-menu li').hover(function() { var left = -$(this).position().left + $(this).parent().width()/2 - $(this).find('.layer').width()/2; var top = $(this).find('.button').outerHeight(); $(this).find('.layer').css({'top': top, 'left': left}); $(this).find('.layer').stop().fadeTo('fast', 1).show(); }, function() { $(this).find('.layer').stop().fadeTo('fast', 0, function() { $(this).hide(); }); }); $('#layer-menu li .layer').hide(); $("#tobfloating").stickylayer({orientation: 3, position: [80, 80], delay: 0, keepOriginalPos: true}); $("#topbutton a").hover(function(e) { $("#topbutton span").hide('drop', {easing: 'swing', direction: 'down'}, 500); }, function() { $("#topbutton span").show('drop', {easing: 'swing', direction: 'down'}, 500); }); $('#PageFooter').parallax(); $('img[data-src]').lazyload(); }); (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));