    
    /**
     * author mike@byteface.com
     *
     * this is a simple switcher. 
     * by using you can switch between a flash or html page. the html page is rendered in an iframe
     * useful if you have a flash site, but need one or 2 pages in html.
     *
     
     TODO -
     
        ¥ test all browsers for compatibility
        ¥ reload another flash movie
        ¥ BUG - currently making 2 calls to the swf
        ¥ refine and seperate out the css
        ¥ maybe use params to pass divs here rather than tying to fixed id's (more powerful but less user friendly)
        ¥ think of some more methods that would be useful
        
        ¥ OFFER ROUND AT WORK TO IMPROVE. 
     
     */
    
    
    

    /**
     * this method simply switches between the 2 by checking current then flicking to the other
     */
    function switcher(){ // TODO -- fill this method
    }


    /**
     * set the flash application to take the foreground and set the iframe to be a blank local page
     */
    function setFlash(){
        document.getElementById('magiciframe').className = 'flash';
        document.getElementById('myContent').className = 'flash';
        document.getElementById('switchButton').className = 'flash';
        
        document.getElementById('magiciframe').src = 'blankpage.html';
    }
    
    
    /**
     * pass a url and the flash will hide, leaving just the html page rendered in the iframe
     */
    function setHtml( url ){
    
        var the_iframe = document.getElementById('magiciframe');
        the_iframe.className = 'html';
        document.getElementById('myContent').className = 'html';
        document.getElementById('switchButton').className = 'html';
        
        the_iframe.src = url;   
    }
    
    
