BehaviorS.rules = {
        'BODY:loaded' : function(nd, element){
            MM_preloadImages('images/ourserving_r.jpg','images/Ourway_r.jpg','images/ourresult_r.jpg','images/Aboutus_r.jpg');          
        },
        '#corporatesbucket:click' : function(nd, element){
            new Ajax.Updater('swappable-content', 'services.html', {method:'get', asynchronous:true, evalScripts:true, onComplete:function(){expandtab('services', 4, 1);}});
        },
        '#investorsbucket:click' : function(nd, element){
            new Ajax.Updater('swappable-content', 'services.html', {method:'get', asynchronous:true, evalScripts:true, onComplete:function(){expandtab('services', 3, 1);}});
        },
        '#entrepreneursbucket:click' : function(nd, element){
            new Ajax.Updater('swappable-content', 'services.html', {method:'get', asynchronous:true, evalScripts:true, onComplete:function(){expandtab('services', 2, 1);}});
        },
        '#ourservicesbutton:click' : function(nd, element){
            new Ajax.Updater('swappable-content', 'services.html', {method:'get', asynchronous:true, evalScripts:true, onComplete:function(){startajaxtabs('services');}}) 
        },
        '#ourservicesbutton:mouseover' : function(nd, element){
            MM_swapImage('Image49','','images/ourserving_r.jpg',1);
        },
        '#ourservicesbutton:mouseout' : function(nd, element){
            MM_swapImgRestore();
        },
        '#ourwaybutton:click' : function(nd, element){
            new Ajax.Updater('swappable-content', 'ourway.html', {method:'get', asynchronous:true, evalScripts:true, onComplete:function(){startajaxtabs('ourway');}});
        },
        '#ourwaybutton:mouseover' : function(nd, element){
            MM_swapImage('Image50','','images/Ourway_r.jpg',1)      },
        '#ourwaybutton:mouseout' : function(nd, element){
            MM_swapImgRestore();
        },
        '#ourresultsbutton:click' : function(nd, element){
            new Ajax.Updater('swappable-content', 'results.html', {method:'get', asynchronous:true, evalScripts:true, onComplete:function(){startajaxtabs('ourresults')}})
        },
        '#ourresultsbutton:mouseover' : function(nd, element){
            MM_swapImage('Image51','','images/ourresult_r.jpg',1);
        },
        '#ourresultsbutton:mouseout' : function(nd, element){
            MM_swapImgRestore();
        },
        '#aboutusbutton:click' : function(nd, element){
            new Ajax.Updater('swappable-content', 'aboutus.html', {method:'get', asynchronous:true, evalScripts:true, onComplete:function(){startajaxtabs('aboutus')}})
        },
        '#aboutusbutton:mouseover' : function(nd, element){
            MM_swapImage('Image52','','images/Aboutus_r.jpg',1);
        },
        '#aboutusbutton:mouseout' : function(nd, element){
            MM_swapImgRestore();
        },
        '#costbenefitlink:click' : function(nd, element){
            new Ajax.Updater('swappable-content', 'services.html', {method:'get', asynchronous:true, evalScripts:true, onComplete:function(){expandtab('services', 1, 1);MM_swapImage('Image49','','images/ourserving_r.jpg',1);}});
        },
        '#successstorieslink:click' : function(nd, element){
            new Ajax.Updater('swappable-content', 'results.html', {method:'get', asynchronous:true, evalScripts:true, onComplete:function(){startajaxtabs('ourresults');}});
        },
        '#corporatesinterestlink:click' : function(nd, element){
            window.open("mailto:executiv" + "es@rtengine" +"s.co" + "m?Subjec" +"t=I am interested in your services&Body=My telephone number is ");
        },
        '#entrepreneursinterestlink:click' : function(nd, element){
            window.open("mailto:entrepreneu" + "rs@rtengine" +"s.co" + "m?Subjec" +"t=I am interested in your services&Body=My telephone number is ");
        },
        '#investorsinterestlink:click' : function(nd, element){
            window.open("mailto:investo" + "rs@rtengine" +"s.co" + "m?Subjec" +"t=I am interested in your services&Body=My telephone number is ");
        }

};

BehaviorS.digDepth = 100; 
BehaviorS.captureEvents = {'mouseover' : 1, 'mouseout' : 1, 'click' : 1};
BehaviorS.start();