function load_pop_power()
{
    var width = '416'; 
    var height = '450';
    var p = 'scrollbars=yes, resizable=no, toolbar=no, menubar=no, status=no, location=no, height=' + height + ',width=' + width;
    
    //launchRadWindow('RateThisSite.aspx', 416, 450, 'RadWindow1', 'Rate this site');
    win2 = window.open("RateThisSite.aspx", "bw", p)
    //win2.blur()
    //window.focus()
}
//----------------------------------------------------------------------------
function getCookie(c_name)
{
    if (document.cookie)
    {
        if (document.cookie.length > 0)
        {
            c_start = document.cookie.indexOf(c_name + "=");
            if (c_start != -1)
            { 
                c_start = c_start + c_name.length + 1; 
                c_end = document.cookie.indexOf(";", c_start);
                if (c_end == -1) 
                    c_end = document.cookie.length;
                
                return unescape(document.cookie.substring(c_start, c_end));
            } 
        }
    }
    return "";
}
//----------------------------------------------------------------------------
function setCookie(c_name, value, expiredays)
{
    if (document.cookie)
    {
        var exdate = new Date();
        exdate.setDate(exdate.getDate() + expiredays);
        document.cookie = c_name + "=" + escape(value) 
            + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString());
    }
}
//----------------------------------------------------------------------------
function checkCookie()
{
    visitor = getCookie('FluxSiteVisitor');
    var cValue = parseInt(visitor);
    if (visitor == null || visitor == "" || isNaN(cValue))
    {
        cValue = 1;
    }
    
    cValue++;
    setCookie('FluxSiteVisitor', cValue, 365);
    if (cValue == 5)
        load_pop_power();
}
//----------------------------------------------------------------------------
function addEvent(obj,type,fn)
{
    if (obj.addEventListener) 
	{
		obj.addEventListener( type, fn, false );
	} 
	else if (obj.attachEvent) 
	{
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e" + type + fn]( window.event ); }
		obj.attachEvent( "on" + type, obj[type + fn] );
	}
}
//----------------------------------------------------------------------------
addEvent(window, 'beforeunload', checkCookie);
//----------------------------------------------------------------------------
function AddCommentAnchor()
{
    var anchors = document.getElementsByTagName('a');
}
addLoadEvent(function(){AddCommentAnchor();});
