var QuickTip=Class.create();QuickTip.prototype={initialize:function(c,b,a,d){this.qtPanel=$(c);
this.qtControlPanel=$(b);this.qtTrigger=$(a);this.qtEndstate=$(d);this.movieUrl=this.qtTrigger.href;
this.qtController=null;Event.observe(a,"click",this.setupMovie.bindAsEventListener(this))
},setupMovie:function(b){Event.stop(b);var a=AC.Quicktime.packageMovie("qt-movie",this.movieUrl,{width:640,height:400,autoplay:true,controller:false,cache:true,poster:""});
this.qtEndstate.hide();this.qtPanel.innerHTML="";this.qtPanel.appendChild(a);this.qtController=new AC.QuicktimeController(a,{onMoviePlayable:function(){this.track("V@S");
this.qtController.monitorMovie();this.qtController.Play();setTimeout(function(){this.qtController.options.onMovieFinished=this.resetMovie.bind(this)
}.bind(this),1000)}.bind(this)});this.qtController.render(this.qtControlPanel);
a=null},resetMovie:function(){this.track("V@E");this.qtController.options.onMovieFinished=null;
this.qtController.Stop();this.qtControlPanel.innerHTML="";this.qtPanel.innerHTML="";
this.qtEndstate.down(".text").innerHTML="Watch Again";var a=Builder.node("p",{className:"pillbutton replay"},[Builder.node("a",{href:"/business/theater/"},[Builder.node("span","View more Quick Tips"),Builder.node("b","&gt;")])]);
this.qtEndstate.appendChild(a);this.qtEndstate.show()},track:function(b){if(b=="V@S"){this.order++
}var a=AC.Tracking.pageName()+" - "+$("qt-endstate").down("h3").innerHTML.stripTags();
if(b=="V@S"){a="V@S: "+a+" (US)";AC.Tracking.trackClick({pageName:a,prop4:this.movieUrl,prop13:a},this,"o",a)
}else{if(b=="V@E"){a="V@E: "+a+" (US)";AC.Tracking.trackClick({prop13:a},this,"o",a)
}}}};var randomizeWhyMac=['<img src="/business/images/index_macatwork_numbers20091029.jpg" width="100" height="114" alt="Leopard" class="right">\r<h4>You’ll feel right at home with iWork.</h4>\r<p>If you’re used to working with Microsoft Office applications like Word, Excel, and PowerPoint, iWork will feel like home. <a href="/business/macatwork/" class="more">Learn&nbsp;More</a></p>','<img src="/business/images/index_macatwork_sharing20090828.jpg" width="100" height="114" alt="Leopard" class="right" style="margin-right:-15px;">\r<h4>Plays well with others.</h4>\r<p>Are you a Mac user in a PC world? Don’t worry. The Mac can open most popular files available on PCs like PDFs, JPGs, and Word documents. <a href="/business/macatwork/#three" class="more">Learn&nbsp;More</a></p>','<img src="/business/images/index_macatwork_macbookair20090828.jpg" width="100" height="114" alt="Leopard" class="right">\r<h4>Kiss clutter goodbye.</h4>\r<p>A Mac is designed to get work done. Fast. With one-of-a-kind features that keep you organized. Take a peek inside any document without having to open its application, using Quick Look. <a href="/business/macatwork/#five" class="more">Learn&nbsp;More</a></p>','<img src="/business/images/index_macatwork_timemachine20081103.jpg" width="100" height="114" alt="Leopard" class="right">\r<h4>Because you can time&nbsp;travel.</h4>\r<p>Save your business time by traveling through it. With Mac OS X’s revolutionary new Time Machine, you can retrieve any document—no matter how long ago you deleted it. <a href="/business/macatwork/#six" class="more">Learn&nbsp;More</a></p>','<img src="/business/images/index_macatwork_vmware20090828.jpg" width="100" height="114" alt="Leopard" class="right" style="margin-right:-15px;">\r<h4>You can bring Windows&nbsp;with&nbsp;you.</h4>\r<p>Need to run the occasional Windows app? Your new Mac can run Windows XP or Vista natively thanks to Boot Camp software included with Mac OS X. <a href="/business/macatwork/#seven" class="more">Learn&nbsp;More</a></p>','<img src="/business/images/index_macatwork_macbookpro20090828.jpg" width="100" height="114" alt="Leopard" class="right">\r<h4>You don’t have to leave your Office.</h4>\r<p>Did you know that Word, PowerPoint, and Excel are all made for the Mac too? There’s basically no learning curve, because the programs work the same. <a href="/business/macatwork/#nine" class="more">Learn&nbsp;More</a></p>'];
var randomizePromoBottom=['<a href="/business/leopard/"><img src="/business/images/index_heropromo_leopard.png" width="72" height="72" border="0" alt="Leopard" class="right inline"></a>\r<h3><a href="/business/leopard/">Leopard@work.</a></h3>\r<p>Bring your business into the future with Leopard—the most advanced OS ever. <a href="/business/leopard/" class="more">Learn More</a></p>','<a href="/business/solutions/mobility/"><img src="/business/images/index_heropromo_macbookair.gif" width="73" height="60" alt="Mobility"></a>\r<h3><a href="/business/solutions/mobility/">Mobility.</a></h3>\r<p>Power Trip. Take your work anywhere. <a href="/business/solutions/mobility/" class="more">Learn&nbsp;More</a></p>','<a href="http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore?node=home/mac/campaigns/ms_office_2008_landing"><img src="/business/images/index_heropromo_office.gif" width="73" height="60" alt="Office 2008"></a>\r<h3><a href="http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore?node=home/mac/campaigns/ms_office_2008_landing">Office ‘08 for Mac.</a></h3>\r<p>More tools and greater compatibility with MS Office 2007 for Windows. <a href="http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore?node=home/mac/campaigns/ms_office_2008_landing" class="more">Learn&nbsp;More</a></p>','<a href="http://www.apple.com/timecapsule/"><img style="margin-top:8px;" src="/business/images/index_heropromo_timecapsule.gif" width="73" height="60" alt="Time Capsule"></a>\r<h3 style="padding-top:12px;"><a href="http://www.apple.com/timecapsule/">Time Capsule.</a></h3>\r<p>A leap forward for backup. <a href="http://www.apple.com/timecapsule/" class="more">Learn&nbsp;More</a></p>','<a href="http://seminars.apple.com/go/bbl/?s=business"><img style="margin-top:-5px;" src="/business/images/index_heropromo_imac.png" width="71" height="87" alt="Time Capsule"></a>\r<h3 style="padding-top:6px;"><a href="http://seminars.apple.com/go/bbl/?s=business">Your Business<br>on a Mac.</a></h3>\r<p>A Better Bottom Line.<br><a href="http://seminars.apple.com/go/bbl/?s=business" class="more">Seminar&nbsp;Series</a></p>','<a href="/business/podcasting/"><img src="http://images.apple.com/business/images/index_heropromo_podcasting.png" width="70" height="71" alt="Podcasting"></a><h3><a href="/business/podcasting/">Podcasting.</a></h3><p>One of the most powerful tools to market your business. <a href="/business/podcasting/" class="more">Learn More</a></p>'];
Event.onDOMReady(function(){new QuickTip("qt-movie","qt-controller","qt-trigger","qt-endstate");
new AC.ViewMaster.Viewer($$(".swapcontent"),"swapviewer","swapnav",{shouldAnimateContentChange:false,silentTriggers:true});
if($("random-tips")){var b=Math.floor(Math.random()*(randomizeWhyMac.length));$("random-tips").innerHTML=randomizeWhyMac[b]
}if($("index-heropromo-bottom")){var b=Math.floor(Math.random()*(randomizePromoBottom.length));
$("index-heropromo-bottom").innerHTML=randomizePromoBottom[b]}function a(g,e){var c=$(g);
var f=new AC.ViewMaster.Viewer(c.select(".content"),c.down(".slideshow-view"),g+"-link",{silentTriggers:true,animationDuration:1.2});
var d=new AC.ViewMaster.Slideshow(f,g+"-slideshow-link",{delay:e,autoplay:true,wipeProgress:"on play"})
}a("header",4700);a("promobox",7000);if($("profiles")){new ShowProfiles($("profiles"))
}});