var hostname=top.location.hostname;var root="/";if(hostname=="localhost"){root="/cafe.rc.propertysitecontent/"}function showDialog(a,b,d,c,e){if($("#dialogContainer").length==0){$("body").append("<div id='dialogContainer'></div>")}if(c==null||c=="undefined"||typeof(c)=="undefined"||c==""){c=720}if(e=="undefined"||typeof(e)=="undefined"||e==""){e=false}$("#dialogContainer").dialog({title:a,width:c,modal:true,resizable:false});$("#dialogContainer").html("Loading...");$("#dialogContainer").load(root+"rcloadcontent.ashx?contentclass="+b+"&"+d);if(e==true){$("#dialogContainer").dialog("option","close",function(f,g){location.reload(true)})}}function LoadMyListRegistrationDialogBox(a){showDialog("Guest Registration","mylistregister","Properties="+favorites+a)}function LoadMyListLoginDialogBox(a){showDialog("Guest Login","mylistlogin","Properties="+favorites+a)}function LoadMyListContactDialogBox(e){if(!e){e=""}if(e==-1){showDialog("Contact Properties","MyListContactProperties","mylist=-1&Properties="+favorites)}else{var a=GetCookie("Favorites");if(!a){favArr=[]}else{favArr=a.split(",")}var g=[];var b=0;for(var c=0;c<favArr.length;c++){var f=favArr[c];var d=$("#mylistfavoriteCheckBox"+f).is(":checked");if(d){g[b]=f;b+=1}}showDialog("Contact Properties","MyListContactProperties","mylist=-1&Properties="+g.toString())}}function LoadMyListReferAFriendDialogBox(e){if(!e){e=""}if(e==-1){showDialog("Send to a Friend","mylistreferafriend","mylist=-1&Properties="+favorites)}else{var a=GetCookie("Favorites");if(!a){favArr=[]}else{favArr=a.split(",")}var g=[];var b=0;for(var c=0;c<favArr.length;c++){var f=favArr[c];var d=$("#mylistfavoriteCheckBox"+f).is(":checked");if(d){g[b]=f;b+=1}}showDialog("Send to a Friend","mylistreferafriend","mylist=-1&Properties="+g.toString())}}function LoadForgotPasswordDialogBox(){showDialog("Forgot Password","applicantforgotpassword","","580px")};
