var zoomLevel = "small";

function Normal(zoomArea) { document.getElementById(zoomArea).style.zoom = 'normal'; }
function Medium(zoomArea) { document.getElementById(zoomArea).style.zoom = '125%' }
function ResizePage(zoomArea) { document.getElementById(zoomArea).style.zoom = screen.width / val; }
function FullBrowser(zoomArea) { document.getElementById(zoomArea).style.zoom = (window.document.body.clientWidth - 200) / 800; }

function NormalAll() {
    Normal('zoom_content');
    Normal('zoom_menu');
    window.scrollTo(window.document.body.clientWidth / 5, 0);
    zoomLevel = "small";
    activateGrow('ControlMover');
    createCookie("SmartReach", "small", 30);
    document["buttonFlash"].src = "image/flash_version.png";
    document["buttonSmall"].src = "image/zoom_small.png";
    document["buttonMedium"].src = "image/zoom_medium.png";
    document["buttonMaximized"].src = "image/zoom_maximized.png";
}
function MediumAll() {
    Medium('zoom_content');
    Medium('zoom_menu');
    window.scrollTo(window.document.body.clientWidth / 5, 0);
    zoomLevel = "medium";
    activateGrow('ControlMover');
    createCookie("SmartReach", "medium", 30);
    document["buttonFlash"].src = "image/flash_version2.png";
    document["buttonSmall"].src = "image/zoom_small2.png";
    document["buttonMedium"].src = "image/zoom_medium2.png";
    document["buttonMaximized"].src = "image/zoom_maximized2.png";
}
function FullBrowserAll() {
    FullBrowser('zoom_content');
    FullBrowser('zoom_menu');
    window.scrollTo(window.document.body.clientWidth / 3.5, 0);
    zoomLevel = "maximized";
    activateGrow('ControlMover');
    createCookie("SmartReach", "maximized", 30);
    document["buttonFlash"].src = "image/flash_version3.png";
    document["buttonSmall"].src = "image/zoom_small3.png";
    document["buttonMedium"].src = "image/zoom_medium3.png";
    document["buttonMaximized"].src = "image/zoom_maximized3.png";
}
var slidePlay = 0;

function soundSlide() {
    if (slidePlay == 0) {
        document.getElementById("zoomSound").innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='1px' height='1px' id='sound' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='allowFullScreen' value='false' /><param name='movie' value='sounds/slide.swf' /><param name='menu' value='false' /><param name='quality' value='high' /><param name='scale' value='noscale' /><param name='wmode' value='transparent' /><param name='bgcolor' value='#000000' /><embed src='slide.swf' menu='false' quality='high' scale='noscale' wmode='transparent' bgcolor='#000000' width='1' height='1' name='sound' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
        slidePlay = slidePlay + 1;
    }
}
function soundHover() {
    document.getElementById("zoomSound").innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='1px' height='2px' id='sound' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='allowFullScreen' value='false' /><param name='movie' value='sounds/hover.swf' /><param name='menu' value='false' /><param name='quality' value='high' /><param name='scale' value='noscale' /><param name='wmode' value='transparent' /><param name='bgcolor' value='#000000' /><embed src='hover.swf' menu='false' quality='high' scale='noscale' wmode='transparent' bgcolor='#000000' width='1' height='1' name='sound' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
}
