
function openVideo(src){var dynamicFrame=new DynamicFrame();dynamicFrame.open({src:src,width:'750px',height:'460px',scrolling:'no',containterId:'modalVideoDialog'});}
function openMoreInfo(){openVideo('/Media/overview/index.html');}
function openWelcome(){openVideo('welcomeVideo.jsp');}
function openLakhani(){openVideo('/Media/Lakhani/Lakhani.html');}
function openYipee(){openVideo('/Media/Yipee/Yipee.html')}
function openCReach(){openVideo('/Media/CReach/CReach.html');}
function openPrivateReach(){openVideo('/Media/privateReach/privateReach.html');}
function openContactManager(){openVideo('/Media/contactManager/contactManager.html');}
function openContactManagerBA(){openVideo('/Media/ContactManagerBA/ContactManagerBA.html');}
function openContactManagerMS(){openVideo('/Media/ContactManagerMS/ContactManagerMS.html');}
function openContactManagerAX(){openVideo('Media/contactManagerAX/contactManagerAX.html');}
function openTwitter(){openVideo('/Media/Twitter/Twitter.html');}
function openTwitterBA(){openVideo('/Media/TwitterBA/TwitterBA.html');}
function openTwitterMS(){openVideo('/Media/TwitterMS/TwitterMS.html');}
function openTwitterAX(){openVideo('/Media/TwitterAX/TwitterAX.html');}
function openTwitterABC(){openVideo('/Media/TwitterABC/TwitterABC.html');}
function openTwitterSI(){openVideo('/Media/TwitterSI/TwitterSI.html');}
function openTwitterIA(){openVideo('/Media/TwitterIA/TwitterIA.html');}
function openTwitterCG(){openVideo('/Media/TwitterCG/TwitterCG.html');}
function openTwitterMB(){openVideo('/Media/TwitterMB/TwitterMB.html');}
function openTwitterMV(){openVideo('/Media/TwitterMV/TwitterMV.html');}
function openTwitterJB(){openVideo('/Media/TwitterJB/TwitterJB.html');}
function openTwitterVC(){openVideo('/Media/TwitterVC/TwitterVC.html');}
function openTwitterAAISP(){openVideo('/Media/TwitterAAISP/TwitterAAISP.html');}
function openTwitterBB(){openVideo('/Media/TwitterBB/TwitterBB.html');}
function openTwitterSG(){openVideo('/Media/TwitterSG/TwitterSG.html');}
function openTwitterWC(){openVideo('/Media/TwitterWC/TwitterWC.html');}
function openTwitterTH(){openVideo('/Media/TwitterTH/TwitterTH.html');}
function openTwitterSM(){openVideo('/Media/twitterSM/twitterSM.html');}
function openLeadExchange(){openVideo('tradeVideo.jsp');}
function openLeadExchangeBA(){openVideo('/Media/leadExchangeBA/leadExchangeBA.html');}
function openLeadExchangeMS(){openVideo('/Media/leadExchangeMS/leadExchangeMS.html');}
function openLeadExchangeAX(){openVideo('/Media/leadExchangeAX/leadExchangeAX.html');}
function openLeadExchangeABC(){openVideo('/Media/leadExchangeABC/leadExchangeABC.html');}
function openLeadExchangeSI(){openVideo('/Media/leadExchangeSI/leadExchangeSI.html');}
function openLeadExchangeIA(){openVideo('/Media/leadExchangeIA/leadExchangeIA.html');}
function openLeadExchangeCG(){openVideo('/Media/leadExchangeCG/leadExchangeCG.html');}
function openLeadExchangeMB(){openVideo('/Media/leadExchangeMB/leadExchangeMB.html');}
function openLeadExchangeMV(){openVideo('/Media/leadExchangeMV/leadExchangeMV.html');}
function openLeadExchangeJB(){openVideo('/Media/leadExchangeJB/leadExchangeJB.html');}
function openLeadExchangeSM(){openVideo('/Media/leadExchangeSM/leadExchangeSM.html');}
function openLeadExchangeVC(){openVideo('/Media/leadExchangeVC/leadExchangeVC.html');}
function openLeadExchangeBB(){openVideo('/Media/leadExchangeBB/leadExchangeBB.html');}
function openLeadExchangeAAISP(){openVideo('/Media/leadExchangeAAISP/leadExchangeAAISP.html');}
function openLeadExchangeSG(){openVideo('/Media/leadExchangeSG/leadExchangeSG.html');}
function openLeadExchangeWC(){openVideo('/Media/leadExchangeWC/leadExchangeWC.html');}
function openLeadExchangeTH(){openVideo('/Media/leadExchangeTH/leadExchangeTH.html');}
function Cycler(element){var callback;this.show=function(){element.fadeIn(1000,wait);}
this.setCallback=function(_callback){callback=_callback;}
var wait=this.wait=function(){try{element[0].style.removeAttribute("filter");}catch(err){}
setTimeout(fade,8000);}
function fade(){callback();element.fadeOut(1000);}}
function startBannerAnimation(){var c1=new Cycler($("#banner1"));var c2=new Cycler($("#banner2"));c1.setCallback(c2.show);c2.setCallback(c1.show);c1.wait();}
$("document").ready(function(){new Tooltips();startBannerAnimation();});
