        var currentTab;

        function $$(elementID) {
            return document.getElementById(elementID);
        }

        function GalleryContentSwap(i) {

            switch (i) {
                case "1":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_001a\"><param name=\"movie\" value=\"swf/gallery_001a.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_001a.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('2');\" border=\"0\" /></div>";
                    break;
                case "2":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_001b\"><param name=\"movie\" value=\"swf/gallery_001b.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_001b.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('1');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('3');\" border=\"0\" /></div>";
                    break;
                case "3":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_001c\"><param name=\"movie\" value=\"swf/gallery_001c.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_001c.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('2');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('4');\" border=\"0\" /></div>";
                    break;
                case "4":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_002a\"><param name=\"movie\" value=\"swf/gallery_002a.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_002a.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('3');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('5');\" border=\"0\" /></div>";
                    break;
                case "5":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_002b\"><param name=\"movie\" value=\"swf/gallery_002b.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_002b.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('4');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('6');\" border=\"0\" /></div>";
                    break;
                case "6":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_002c\"><param name=\"movie\" value=\"swf/gallery_002c.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_002c.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('5');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('7');\" border=\"0\" /></div>";
                    break;
                case "7":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_002d\"><param name=\"movie\" value=\"swf/gallery_002d.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_002d.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('6');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('8');\" border=\"0\" /></div>";
                    break;
                case "8":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_003a\"><param name=\"movie\" value=\"swf/gallery_003a.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_003a.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('7');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('9');\" border=\"0\" /></div>";
                    break;
                case "9":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_003b\"><param name=\"movie\" value=\"swf/gallery_003b.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_003b.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('8');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('10');\" border=\"0\" /></div>";
                    break;
                case "10":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_003c\"><param name=\"movie\" value=\"swf/gallery_003c.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_003c.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('9');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('11');\" border=\"0\" /></div>";
                    break;
                case "11":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_004a\"><param name=\"movie\" value=\"swf/gallery_004a.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_004a.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('10');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('12');\" border=\"0\" /></div>";
                    break;
                case "12":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_004b\"><param name=\"movie\" value=\"swf/gallery_004b.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_004b.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('11');\" border=\"0\" /><img src=\"images/gallerynav_sep.gif\" border=\"0\" /><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('13');\" border=\"0\" /></div>";
                    break;
                case "13":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_004c\"><param name=\"movie\" value=\"swf/gallery_004c.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_004c.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_prev.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('12');\" border=\"0\" /></div>";
                    break;
            }
        }            


        function MainContentSwap(el) {

            if(el.id == currentTab)
                return;
            
            TabReset();
            
            switch (el.id) {
                case "divHome":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"805\" height=\"435\" id=\"swf_home\"><param name=\"movie\" value=\"swf/home.swf\"><param name=\"loop\" value=\"true\"><embed src=\"swf/home.swf\" width=\"805\" height=\"435\"></embed></object>";
                    $$("divHome").innerHTML = "<img src=\"images/tab_home_on.gif\" border=\"0\" />";
                    break;
                case "divAbout":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_about\"><param name=\"movie\" value=\"swf/about.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/about.swf\" width=\"800\" height=\"450\" loop=\"false\"></embed></object>";
                    $$("divAbout").innerHTML = "<img src=\"images/tab_about_on.gif\" border=\"0\" />";
                    break;
                case "divMeet":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_meet\"><param name=\"movie\" value=\"swf/meet.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/meet.swf\" width=\"800\" height=\"450\" loop=\"false\"></embed></object>";
                    $$("divMeet").innerHTML = "<img src=\"images/tab_meet_on.gif\" border=\"0\" />";
                    break;
                case "divGallery":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"450\" id=\"swf_gallery_001a\"><param name=\"movie\" value=\"swf/gallery_001a.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/gallery_001a.swf\" width=\"800\" height=\"440\"  loop=\"false\"></embed></object><div id=\"gallerynav\" style=\"display:block; float:right; padding-right:30px;\"><img src=\"images/gallerynav_next.gif\" class=\"pointer\" onclick=\"GalleryContentSwap('2');\" border=\"0\" /></div>";
                    $$("divGallery").innerHTML = "<img src=\"images/tab_gallery_on.gif\" border=\"0\" />";
                    break;
                case "divResources":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"440\" id=\"swf_resources\"><param name=\"movie\" value=\"swf/resources.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/resources.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object>";
                    $$("divResources").innerHTML = "<img src=\"images/tab_resources_on.gif\" border=\"0\" />";
                    break;
                case "divBuzz":
                    $$("divMainContent").innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"800\" height=\"440\" id=\"swf_buzz\"><param name=\"movie\" value=\"swf/buzz.swf\"><param name=\"loop\" value=\"false\"><embed src=\"swf/buzz.swf\" width=\"800\" height=\"440\" loop=\"false\"></embed></object>";
                    $$("divBuzz").innerHTML = "<img src=\"images/tab_buzz_on.gif\" border=\"0\" />";
                    break;
            
            }
            currentTab = el.id;
            //TabInit();
        }


        function MenuImageOver(el) {
            if (el.src.indexOf("_over.") < 0) {
                el.src = el.src.replace("_off.gif", "_over.gif").replace("_off.jpg", "_over.jpg");
            }
        }

        function MenuImageOut(el) {
            el.src = el.src.replace("_over", "_off");
        }

        function TabImageOver(el) {
        
            if (el.id == currentTab)
                return;
        
            TabInit();
            if (el.src.indexOf("_on.") < 0) {
                el.src = el.src.replace("_off.gif", "_on.gif").replace("_off.jpg", "_on.jpg");
            }

            switch (el.id) {
                case "imgImage1":
                    $$("divMainContentText").innerHTML = "What is Microsoft Business Productivity Online Suite?";
                    break;
                case "imgImage2":
                    videosrc = "";
                    $$("divMainContentText").innerHTML = "These online services provide rich enterprise-class capabilities in a <b><a href=\"integrated/\" class=\"firstTabLink\" onclick=\"return RioTracking.click(100285271,'mrtity_FY10BPOSTestDriveIntegratedSolutionSubp_1')\">familiar and intuitive user experience</a></b>. &nbsp;Try the demo to see how the <b>integrated capabilities</b> of Email, Instant Messaging, Web Conferencing, and Content Management work together.<br /><a href=\"integrated/\"  onclick=\"return RioTracking.click(100285271,'mrtity_FY10BPOSTestDriveIntegratedSolutionSubp_1')\" class=\"orangelinks\" title=\"Click to Learn More\">Learn more</a>";
                    break;
            }
            
            currentTab = el.id;
        }


        function TabReset() {
            switch (currentTab) {
                case "divHome":
                    $$("divHome").innerHTML = "<img src=\"images/tab_home_off.gif\" class=\"pointer\" onmouseover=\"MenuImageOver(this);\" onmouseout=\"MenuImageOut(this);\" id=\"imgHome\" border=\"0\" alt=\"\" />";
                    break;
                case "divAbout":
                    $$("divAbout").innerHTML = "<img src=\"images/tab_about_off.gif\" class=\"pointer\" onmouseover=\"MenuImageOver(this);\" onmouseout=\"MenuImageOut(this);\" id=\"imgAbout\" border=\"0\" alt=\"\" />";
                    break;
                case "divMeet":
                    $$("divMeet").innerHTML = "<img src=\"images/tab_meet_off.gif\" class=\"pointer\" onmouseover=\"MenuImageOver(this);\" onmouseout=\"MenuImageOut(this);\" id=\"imgMeet\" border=\"0\" alt=\"\" />";
                    break;
                case "divGallery":
                    $$("divGallery").innerHTML = "<img src=\"images/tab_gallery_off.gif\" class=\"pointer\" onmouseover=\"MenuImageOver(this);\" onmouseout=\"MenuImageOut(this);\" id=\"imgGallery\" border=\"0\" alt=\"\" />";
                    break;
                case "divResources":
                    $$("divResources").innerHTML = "<img src=\"images/tab_resources_off.gif\" class=\"pointer\" onmouseover=\"MenuImageOver(this);\" onmouseout=\"MenuImageOut(this);\" id=\"imgResources\" border=\"0\" alt=\"\" />";
                    break;
                case "divBuzz":
                    $$("divBuzz").innerHTML = "<img src=\"images/tab_buzz_off.gif\" class=\"pointer\" onmouseover=\"MenuImageOver(this);\" onmouseout=\"MenuImageOut(this);\" id=\"imgBuzz\" border=\"0\" alt=\"\" />";
                    break;
            }
        }
        
        function ShowContactForm() {
            
            /*
            New Window Options
            
            width=300
            Use this to define the width of the new window. 

            height=200
            Use this to define the height of the new window. 

            resizable=yes or no
            Use this to control whether or not you want the user to be able to resize the window. 

            scrollbars=yes or no
            This lets you decide whether or not to have scrollbars on the window. 

            toolbar=yes or no
            Whether or not the new window should have the browser navigation bar at the top (The back, foward, stop buttons..etc.). 

            location=yes or no
            Whether or not you wish to show the location box with the current url (The place to type http://address). 

            directories=yes or no
            Whether or not the window should show the extra buttons. (what's cool, personal buttons, etc...). 

            status=yes or no
            Whether or not to show the window status bar at the bottom of the window. 

            menubar=yes or no
            Whether or not to show the menus at the top of the window (File, Edit, etc...). 

            copyhistory=yes or no
            Whether or not to copy the old browser window's history list to the new window.             
            */
            
            //Center the pop-up window.
            leftVal = (screen.width - 807) / 2;
            topVal = (screen.height - 417) / 2;

            newWindow = window.open('contact.asp', 'contactForm','width=807,height=417,resizable=no,status=no,location=no,left='+leftVal+',top='+topVal);

            //Set focus to the pop-up window if it has already been opened.
            if (newWindow) {
                newWindow.focus();
            }

        }
        