﻿
     $(document).ready(function () {
         //create a popup for each DOM element with class attribute
         $('.imageMathworks').CreateBubblePopup(
                {
                    position: 'top',
                    align: 'center',
                    innerHtml: 'HRS is the New Zealand distributor for MathWorks products <br /> \ such as MATLAB and Simulink and provides free presales advice, <br /> technical support and training opportunities. <br />  Click here to learn about the MathWorks.',
                    innerHtmlStyle: { color: '#ffffff', 'text-align': 'center' },
                    themeName: 'all-blue',
                    themePath: 'jquerybubblepopup-theme'
                });
         
         $('.imagePtc').CreateBubblePopup(
                   {
                       position: 'top',
                       align: 'center',
                       innerHtml: 'HRS is an accredited Value Added Reseller (VAR) <br /> in New Zealand for PTC, but only sells Mathcad. <br /> We provide free presales advice, support  and <br /> training for Mathcad. Click here to learn about PTC.',
                       innerHtmlStyle: { color: '#ffffff', 'text-align': 'center' },
                       themeName: 'all-blue',
                       themePath: 'jquerybubblepopup-theme'
                   });

         $('.imageMaple').CreateBubblePopup(
                {
                    position: 'top',
                    align: 'center',
                    innerHtml: 'HRS is the distributor for StatSoft in New Zealand <br /> and provides presales advice, support and training <br /> for STATISTICA. Click here to learn about StatSoft',
                    innerHtmlStyle: { color: '#ffffff', 'text-align': 'center' },
                    themeName: 'all-blue',
                    themePath: 'jquerybubblepopup-theme'
                });

          $("#home_page_banners").coinslider(
                { 
                width: 550, 
                height: 175, 
                hoverPause: true, 
                effect: 'random', 
                navigation: true, 
                delay: 5000
                });
   
            $("#banner_events").coinslider(
                {
                    width: 550,
                    height: 175,
                    hoverPause: true,
                    effect: 'random',
                    navigation: true,
                    delay: 5000
                });

             $("#banner_matlab_events").coinslider(
                { 
                width: 150, 
                height: 175, 
                hoverPause: true, 
                effect: 'random', 
                navigation: true, 
                delay: 4300 
                });

            $("#banner_matlab_products").coinslider(
                {
                    width: 150,
                    height: 175,
                    hoverPause: true,
                    effect: 'random',
                    navigation: true,
                    delay: 4600
                });

            $("#MATLAB-Simulink").coinslider(
                {
                    width: 550,
                    height: 175,
                    hoverPause: true,
                    effect: 'random',
                    navigation: true,
                    delay: 5000
                });

 });

