
if( typeof(getCookie) == 'undefined' || !getCookie ){

  // re-define getCookie
  getCookie = function(cookieName){
        
      var search = cookieName + '=';
      if (document.cookie.length>0) {
                offset = document.cookie.indexOf(search);
                if (offset != -1){
                        offset += search.length;
                        end             = document.cookie.indexOf(';',offset);
                        if(end == -1)
                                end = document.cookie.length;
                        return unescape(document.cookie.substring(offset,end));
                }
       }
       return null;

  }

}

var user_status  = parseInt(getCookie("user_status"));
document.body.id =  ( document.domain == "female.caribbeancom.com" ) ? ( getCookie('NetiA') ? "girlmem" : "girl" ) :
                    ( ( user_status && getCookie('NetiA')  ) ? 
                    ( ( user_status == 1 )  ? "mem"  :
                    ( ( user_status == 2 )  ? "mem"  :
                    ( ( user_status == 3 )  ? "vip"  :
                    ( ( user_status == 5 )  ? "svip" :
                    "samp"
                    )))) : 
                    ( ( user_status == 99 ) ? "trial" : "samp" )
                    );

