/*

function enquiry()
{
    this.initialize = function()
    {
        if (jQuery.browser.msie)
        {
            if (jQuery.browser.version <= 6.0)
            {
                jQuery.getScript('/client/rova/javascript/ie5.js');
            }
        }
        
        var enquiry = this;
        jQuery(document).ready(function()
        {
            jQuery(document).pngFix(); 

            if (!enquiry.hasCookie())
            {
                enquiry.setCookie();
                enquiry.checkIpUa();
            }
        });
    },
    
    this.hasCookie = function()
    {
        return cms.core.cookie.getEntry('seenEnquiry') == 1;
    },
    
    this.setCookie = function()
    {
        cms.core.cookie.writeEntry('seenEnquiry', 1, 365);
    },
    
    this.checkIpUa = function()
    {
        var request = new HttpRequest();
        request.setCallback(this.responseIpUa, this, false);
        request.sendRequest('/enquiry.php');
    },
    
    this.responseIpUa = function(response)
    {
        if (response != "0")
        {
            this.showEnquiry();
        }
    },
    
    this.showEnquiry = function()
    {
        // Haal de inhoud van de popup via AJAX op
        var div = document.createElement('div');
        div.id = 'popupContainer';
        
        jQuery(div).load('/client/rova/template/popup.html', {}, function(responseText, textStatus, XMLHttpRequest) {
            // Toon de popup
            jQuery(div).dialog(
                {
                    modal :  true,
                    resizable : false,
                    draggable : false,
                    autoOpen : true,
                    closeOnEscape : true,
                    width : 350
                }
            );            
        });
        
        document.appendChild(div);   
    }
}

var enquiry = new enquiry();
enquiry.initialize();

*/
