    //Set user screen resolution cookie.
    document.cookie = 'mh_screensize' + '=' + screen.width + ',' + screen.height + '; path=/;domain=muslimhands.org';

    //Set user Flash plugin cookie.
    var flashInstalled = 0;
    var flashVersion   = 0;

    if(navigator.plugins && navigator.plugins.length) {
        x = navigator.plugins["Shockwave Flash"];

        if(x) {
            flashInstalled = 2;
            if(x.description) {
                y = x.description;
                flashVersion = y.charAt(y.indexOf('.')-1);
            }
        } else
            flashInstalled = 1;

        if(navigator.plugins["Shockwave Flash 2.0"]) {
            flashInstalled = 2;
            flashVersion = 2;
        }
    } else if (navigator.mimeTypes && navigator.mimeTypes.length) {
        x = navigator.mimeTypes['application/x-shockwave-flash'];

        if (x && x.enabledPlugin)
            flashInstalled = 2;
        else
            flashInstalled = 1;
    } else {
        if((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)) {
            document.writeln('<script type="text/vbscript">');
            document.writeln('on error resume next');
            document.writeln('For i = 2 to 6');
            document.writeln('    If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then');
            document.writeln('    Else');
            document.writeln('        flashInstalled = 2');
            document.writeln('        flashVersion = i');
            document.writeln('    End If');
            document.writeln('    Next');
            document.writeln('If flashInstalled = 0 Then');
            document.writeln('    flashInstalled = 1');
            document.writeln('End If');
            document.writeln('</scr' + 'ipt>');
        }
    }
    
    document.cookie = 'mh_flashplugin' + '=' + flashInstalled + ',' + flashVersion + '; path=/;domain=muslimhands.org';