var bgTotalImages = 26; // Images to cycle through var bgNewImage = 0; // Next image to show var bgCurrentImage = 0 // Currently displayed image var imageURLBase = "/cms_data/assets/backgrounds/background" var currentQuote = 0; var clientsQuotes = [ '"We believe what truly sets us apart from other companies is our passion for what we do, the flexibility or our products and the relationship we build with our clients." Rusada CEO', '"The collaboration and the sharing of data between OEMs, operators and MROs will become increasingly more important and is the key to driving significant cost savings and efficiency gains for the future." Rusada CEO', '"We selected Rusada since they were the only solution provider who could offer true, single database integration covering so many business functions, combined with the scalability to grow with the expansion of our business." V Australia', '"We considered a number of fleet propositions, but only Rusada was able to accommodate our exacting requirements and those of the military for both fleet management and maintenance." Eurocopter', '"When we took the decision to expand our business into the provision of Global CAMO services, our new offering had to be built on the strongest IT platform possible, not least to meet the tough regulatory approval requirements. We knew the Rusada solution was the best on the market." Eurocopter', '"We believe what truly sets us apart from other companies is our passion for what we do, the flexibility or our products and the relationship we build with our clients." Rusada CEO', '"Our mission is to understand our customer’s organisation in order to offer a fast "time to market" solution, supported by adequate training." Director of Client Services, Rusada.' ]; var quotes = [ 'Rusada helps you understand, manage and optimise the true value of your assets.', 'Our software enables the optimisation of assets for OEMs, Operators and Maintenance and Service Organisations.', 'Our solutions concentrate on the core fundamental of configuration of the asset, providing the real-time data which drives decisions for OEMs, Operators and MROs.', 'Employing Rusada Envision will help you achieve operational efficiency and increased aircraft availability.', '"Our software enables collaboration and data sharing between service providers, operators and OEMs - the future for driving further efficiencies within the airline industry." - Rusada CEO', 'We help you manage all the operational divisions and processes of your business through one single integrated solution.', '"Our mission is to understand our customer’s organisation in order to offer a fast "time to market" solution, supported by adequate training". - Director of Client Services, Rusada.' ]; var homeQuotes = [ "Home Quote 1", "Home Quote 2", "Home Quote 3", "Home Quote 4", ]; var solutionQuotes = [ 'We help you manage all the operational divisions and processes of your business through one single integrated solution.', 'Our mission is to understand our customers organisation in order to offer a fast "time to market" solution, supported by adequate training. - Director of Client Services, Rusada.', 'Rusada\'s new Implementation Methodology, based on 20 years\' experience in complex implementations worldwide and its Best Practice Model, considerably reduces installation times.', 'Our solutions concentrate on the core fundamental of configuration of the asset, providing the real-time data which drives decisions for OEMs, Operators and MROs.', 'Our software helps you understand, manage and optimise the true value of your assets.', 'Our software enables collaboration and data sharing between service providers, operators and OEMs - the future for driving further efficiencies within the airline industry. - Rusada CEO' ]; $(document).ready(function() { // // Work out if this page has a specicial image group // if(/careers/.test(location.href)) { imageURLBase = "/cms_data/assets/backgrounds/background_careers"; bgTotalImages = 6; } // // Work out if this page has a specicial quote group // if(/solutions/.test(location.href)) { quotes = solutionQuotes; quoteCount = quotes.length; } if(/clients.html/.test(location.href)) { quotes = clientsQuotes; quoteCount = quotes.length; } // Set a random quote currentQuote = Math.floor(Math.random()*quotes.length) + 1 $("#quote").html(quotes[currentQuote]); // Set tht current image bgCurrentImage = Math.floor(Math.random()*bgTotalImages) + 1; $('#about').css("background-image", "url(" + imageURLBase + bgCurrentImage + ".jpg)"); // Start the rotation funciton (every 12 seconds) setTimeout( function() { switchBackground(); }, 12000 ); // Handle default text for login email box $(".loginform input#username").focus(function() { if (this.value == 'E-mail') { this.value = ''; this.style.color = '#000000'; } }); $(".loginform input#username").blur(function() { if (this.value == '') { this.style.color = '#ababab'; this.value = 'E-mail'; } }); // Handle default text for login password box $('.loginform input#passwordclear').focus(function() { $('.loginform input#passwordclear').hide(); $('.loginform input#password').show(); $('.loginform input#password').focus(); }); $('.loginform input#password').blur(function() { if($('.loginform input#password').val() == '') { $('.loginform input#passwordclear').show(); $('.loginform input#password').hide(); } }); }); // Function to choose a new image and fade out the current image function switchBackground() { // Select new image bgNewImage = Math.floor(Math.random()*bgTotalImages) + 1; // Ensure it's not the same as the current one while(bgNewImage == bgCurrentImage) { bgNewImage = Math.floor(Math.random()*bgTotalImages) + 1; } // Cache the new image var cache = []; var cacheImage = document.createElement('img'); cacheImage.src = imageURLBase + bgNewImage + ".jpg"; cache.push(cacheImage); bgCurrentImage = bgNewImage; // Begin the fade out $("div.bgFade1").fadeIn(500); setTimeout( function() { FadeIn(2, null); }, 200 ); setTimeout( function() { FadeIn(3, null); }, 400 ); setTimeout( function() { FadeIn(4, null); }, 600 ); setTimeout( function() { FadeIn(5, null); }, 800 ); setTimeout( function() { FadeIn(6, null); }, 1000 ); setTimeout( function() { FadeIn(7, null); }, 1200 ); setTimeout( function() { FadeIn(8, null); }, 1400 ); setTimeout( function() { FadeIn(9, null); }, 1600 ); setTimeout( function() { FadeIn(10, performBackgroundSwitch); }, 2000 ); } // Function to fade out the background div (By fading in the covering DIV) function FadeIn(val, callback) { $("div.bgFade" + val).fadeIn(500, callback); } // Function to fade in the background div (By fading out the covering DIV) function FadeOut(val, callback) { $("div.bgFade" + val).fadeOut(500, callback); } // Function to perform the background image change and fade back in the image function performBackgroundSwitch() { // Set a random quote var newQuote = Math.floor(Math.random()*quotes.length) + 1; while (newQuote == currentQuote) newQuote = Math.floor(Math.random()*quotes.length) + 1 $("#quote").html(quotes[newQuote]); currentQuote = newQuote; $('#about').css("background-image", "url(" + imageURLBase + bgNewImage + ".jpg)"); $("div.bgFade10").fadeOut(500); setTimeout( function() { FadeOut(9, null); }, 400 ); setTimeout( function() { FadeOut(8, null); }, 600 ); setTimeout( function() { FadeOut(7, null); }, 800 ); setTimeout( function() { FadeOut(6, null); }, 1000 ); setTimeout( function() { FadeOut(5, null); }, 1200 ); setTimeout( function() { FadeOut(4, null); }, 1400 ); setTimeout( function() { FadeOut(3, null); }, 1600 ); setTimeout( function() { FadeOut(2, null); }, 1800 ); setTimeout( function() { FadeOut(1, null); }, 2000 ); setTimeout( function() { switchBackground(); }, 12000 ); // Start the cycle again }