

    function generateGuidInternal()
    {
        var result, i, j;
        result = '';

        for(j=0; j<32; j++)
        {
            i = Math.floor(Math.random()*16).toString(16).toUpperCase();
            result = result + i;
        }

       	result = result.substring(0,8) + "-" + result.substring(8,12) + "-" + result.substring(12,16) + "-" + result.substring(16,20) + "-" + result.substring(20,32);

        return result;
    }

    var vbsid = generateGuidInternal();
    var vbrfr = encodeURIComponent(document.location.href);

    var vbot  = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'\n";
        vbot += "     id='vbx" + vbsid + "' name='vbx" + vbsid + "' width='480' height='346'\n";
        vbot += "     codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab'>\n";
        vbot += "     <param name='movie' value='http://flash.viewbix.com/layouts/ViewBix.swf?id=7523af08-05c4-40fb-b936-bc071fcc7c73' />\n";
        vbot += "     <param name='quality' value='high' />\n";
        vbot += "     <param name='bgcolor' value='#ffffff' />\n";
        vbot += "     <param name='allowScriptAccess' value='always' />\n";
        vbot += "     <param name='allowFullScreen' value='true' />\n";
        vbot += "     <param name='wmode' value='transparent' />\n";
        vbot += "     <param name='flashvars' value='id=7523af08-05c4-40fb-b936-bc071fcc7c73&session=" + vbsid + "&referer=" + vbrfr + "' />\n";
        vbot +=	" <embed id='vbx" + vbsid + "' name='vbx" + vbsid + "' src='http://flash.viewbix.com/layouts/ViewBix.swf?id=7523af08-05c4-40fb-b936-bc071fcc7c73' FlashVars='id=7523af08-05c4-40fb-b936-bc071fcc7c73&session=" + vbsid + "&referer=" + vbrfr + "' allowFullScreen='true' quality='high' bgcolor='#ffffff' width='480' height='346' align='' type='application/x-shockwave-flash' pluginpage='http://www.macromedia.com/go/getflashplayer' allowScriptAccess='always' wmode='transparent'>\n";
        vbot +=	" </embed>\n";
        vbot +=	"</object><img src='http://track.qoof.com/pix.gif?w=7523af08-05c4-40fb-b936-bc071fcc7c73&s=" + vbsid + "&r=' />\n";

        var html5 = false;

        if(html5 ||
           navigator.userAgent.match(/iPad/i) ||
           navigator.userAgent.match(/iPhone/i) ||
           navigator.userAgent.match(/iPod/i) ||
           navigator.userAgent.match(/android/i))
        {
            document.write("<sc" + "ript type='text/javascript' src='http://flash.qoof.com/js/jquery-1.6.1.js'></scr" + "ipt>");
            document.write("<sc" + "ript type='text/javascript' src='https://www.google.com/jsapi?key=ABQIAAAABjvr_HLuFz1USGXXr_VT4RQMvaJaezaNQmadcLZuIeZ7F-GYERR4gu4tmmEW2YLdmb-6I8ZCMmjDlg'></scr" + "ipt>");
            document.write("<sc" + "ript type='text/javascript' src='http://maps.googleapis.com/maps/api/js?sensor=false'></scr" + "ipt>");
            document.write("<sc" + "ript type='text/javascript' src='http://flash.qoof.com/js/loader.js?id=7523af08-05c4-40fb-b936-bc071fcc7c73'></scr" + "ipt>");
        }
        else
        {
            document.write(vbot);
        }


