if(typeof(MPRMOD)!="undefined"||!MPRMOD)
{
    var MPRMOD =
    {
        // Constants
        baseUrl  : "",
        helpFile : "help?query=",
		
		// Get location
		GetLocation : function() { return document.location.href; },

        // Create dialog
        CreateDialog : function( url,url2 )
        {
            // Remove any existing dialog
            if( $("#d") ) { $("#d").remove(); };
				if (typeof(url2) == "undefined")
				{
            $("body").append( "<div id=\"d\"><iframe style='float:left;' src='"+url+"' width='850' height='450'/>");
				}
				else
				{
            // Create dialog
            $("body").append( "<div id=\"d\"><iframe style='float:left;' src='"+url+"' width='240' height='450'/><iframe style='float:left;' src='"+url2+"' width='610' height='450'/></div>" );
				}
            if( $("#d") )
            {
                $("#d").dialog({
                    modal       : true,
                    width       : 900,
		            height		: 500,
                    overlay     : { opacity: 0.4, background: '#000' },
                    dialogClass : "MPRMODOverlay roundedBorders",
                    autoOpen    : false,
                    center      : true,
                    resizable   : true
                });
					
                        $("#d").dialog( "option", "position", "center" );
                        $("#d").dialog( "open" );
              
            };
        },

        // Open Help
        Open : function( strUrl,strUrl2 )
        {
            MPRMOD.CreateDialog( strUrl,strUrl2 );
        },
		
	
    };
	
	
};
