  var detect = navigator.userAgent.toLowerCase();
        var OS,browser,version,total,thestring;
        if (checkIt('konqueror'))    {
            browser = "Konqueror";
            OS = "Linux";
        }
        else if (checkIt('safari')) 
            browser = "Safari"
        else if (checkIt('omniweb')) 
            browser = "OmniWeb"
        else if (checkIt('opera')) 
            browser = "Opera"
        else if (checkIt('webtv')) 
            browser = "WebTV";
        else if (checkIt('icab')) 
            browser = "iCab"
        else if (checkIt('msie')) 
            browser = "Internet Explorer"
        else if (!checkIt('compatible')){
            browser = "Netscape Navigator"
            version = detect.charAt(8);
            }        
            else browser = "An unknown browser";

        if (!version) 
            version = detect.charAt(place + thestring.length);
        if (!OS){
            if (checkIt('linux')) 
                OS = "Linux";
            else if (checkIt('x11')) OS = "Unix";
            else if (checkIt('mac')) OS = "Mac"
            else if (checkIt('win')) OS = "Windows"
            else OS = "an unknown operating system";
        }
        
        function checkIt(string)
            {
                place = detect.indexOf(string) + 1;
                thestring = string;
                return place;
            }
            
        function flashPutHref(href) { 
            if( ! ( OS == "Windows" && browser=="Internet Explorer" ) ) {
                location.href = href; 
            }
        }

        function flashPutTitle(title) { 
            document.title = title; 
        }

        function openWindow ( linkURL, windowWidth, windowHeight, haveToolbars, url_for_google ) {
            var width = screen.width;
            var height = screen.height;
            myWindow = window.open( linkURL,'htmluploadWin','toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars='+haveToolbars+',resizable=yes,top=0,x=0,y=0,left=0,width='+windowWidth+',height='+windowHeight);
            if (myWindow) {
                myWindow.moveTo( (width-windowWidth)/2, (height-windowHeight)/2 );
            }

            if (url_for_google != null) {
                if (typeof urchinTracker == 'function') urchinTracker('/" + url_for_google + "');
            }
        }

        function openDefaultWindow ( linkURL ) {
            window.open( linkURL);
        }

function doInit() {
        var so = new SWFObject("mainSite.swf", "webparrots", "780", "600", "7", "#ffffff", true);

      // flash object parameters        
        so.addParam("wmode", "normal"); //normal or transparent
        so.addParam("menu", "false");

        // flash movie variables
        so.addVariable("local", "http://thewebparrots.com/");
        so.addVariable("bgColor", "0xFFFFFF");
        so.addVariable("refreshSwitcher", "0");
        so.addVariable("splash_page_type", "2");
        so.addVariable("splash_bar_type", "circular_02");
        so.addVariable("splash_bar_color1", "0xff6600");                
        so.addVariable("splash_bar_color2", "0xcccccc");                
        so.addVariable("splash_text", "The+Web+Parrots");        
        so.addVariable("splash_text_color", "0xcccccc");                
        so.addVariable("splash_graphic_type", "2");
        so.addVariable("splash_timer", "");
        so.addVariable("splash_graphic", "");
        so.addVariable("hide_url", "0");
        so.addVariable("upload_email", "");
        so.addVariable("files_version", "_5_7_19");

        // address bar variables
        so.addVariable("pt", getQueryParamValue("pt"));
        so.addVariable("pi", getQueryParamValue("pi"));
        so.addVariable("mi", getQueryParamValue("mi"));
        so.addVariable("at", getQueryParamValue("at"));
        so.addVariable("a", getQueryParamValue("a"));
        so.addVariable("p", getQueryParamValue("p"));
        so.addVariable("s", getQueryParamValue("s"));
        so.addVariable("pw", getQueryParamValue("pw"));
        so.addVariable("cpi", getQueryParamValue("cpi"));
        so.write("flashcontent");

    }