function ComwebBeanXmlDom(){this.initialize()}ComwebBeanXmlDom.prototype={xmlDom:null,childListRegisteredComwebBean:null,childRegisteredNames:null,initialize:function(){this.xmlDom=null;this.childListRegisteredComwebBean=null;this.childRegisteredNames=null},setXmlDom:function(A){this.xmlDom=A},_getImmediateChildDom:function(C){var B=new Array();try{var A=this.xmlDom.getElementsByTagName(C);for(var D=0;D<A.length;D++){if(A.item(D).parentNode==this.xmlDom){B.push(A.item(D))}}}catch(E){}return B},get:function(A){return this.getValues(A)},changeValue:function(B,D){var A=null;try{A=this.xmlDom.attributes.getNamedItem(B);A.nodeValue}catch(C){try{A=null;A=this._getImmediateChildDom(B)[0].firstChild}catch(C){return false}}try{if(A!=null){A.nodeValue=D;return true}}catch(C){return false}return false},getValues:function(B){var A=null;try{A=this.xmlDom.attributes.getNamedItem(B).nodeValue;if(A!=null){return A}}catch(C){try{return this._getImmediateChildDom(B)[0].firstChild.nodeValue}catch(C){return null}}},getSpecificChildren:function(beanName){if(this._isRegisteredChildName(beanName)){return this._getSpecificRegisteredChildren(beanName)}var arrayChilds=this._getImmediateChildDom(beanName);if(arrayChilds.length==0){return new Array()}if(this.childListRegisteredComwebBean==null){this.childListRegisteredComwebBean=new Array()}this._registeredChildName(beanName);var result=new Array();var specificChild=null;var analysedNode=null;for(var i=0;i<arrayChilds.length;i++){try{analysedNode=arrayChilds[i];specificChild=eval("new ComwebBean_"+beanName+"();");specificChild.parseXml(analysedNode);this.xmlDom.removeChild(analysedNode);this.childListRegisteredComwebBean.push(specificChild);result.push(specificChild)}catch(e){CW_logger.log(CW_logger.LEVEL_ERROR,"ComwebBeanXmlDom.getSpecificChildren("+beanName+") error:"+e)}}return result},_getSpecificRegisteredChildren:function(C){if(this.childListRegisteredComwebBean==null){return new Array()}C="ComwebBean_"+C;var A=new Array();for(var B=0;B<this.childListRegisteredComwebBean.length;B++){if(this.childListRegisteredComwebBean[B].getName()==C){A.push(this.childListRegisteredComwebBean[B])}}return A},hasError:function(){return(this.getSpecificChildren("error").length>0)},_isRegisteredChildName:function(A){if(this.childRegisteredNames==null){return false}else{for(var B=0;B<this.childRegisteredNames.length;B++){if(this.childRegisteredNames[B]==A){return true}}return false}},_registeredChildName:function(A){if(this.childRegisteredNames==null){this.childRegisteredNames=new Array()}this.childRegisteredNames.push(A)},toString:function(){}};function ComwebBean(){this.initialize()}ComwebBean.prototype.name=null;ComwebBean.prototype.storageValues=null;ComwebBean.prototype.childList=null;ComwebBean.prototype={initialize:function(){this.name="ComwebBean";this.storageValues=new ComwebBeanXmlDom();this.childList=null},parseXml:function(A){this.storageValues=new ComwebBeanXmlDom();this.storageValues.setXmlDom(A)},parseXmlAttributes:function(A){},parseXmlNodes:function(A){},putChild:function(A){},changeValue:function(A,B){return this.storageValues.changeValue(A,B)},getValues:function(A){return this.storageValues.get(A)},getName:function(){return this.name},getChildren:function(){},getStorageValues:function(){return this.storageValues},getChildrenType:function(){return new Array()},getSpecificChildren:function(A){return this.storageValues.getSpecificChildren(A)},hasError:function(){return this.storageValues.hasError()},getUid:function(){return parseInt(this.storageValues.get("uid"))},toString:function(){return this.name+":"+this.storageValues.toString()},_getCreationDate:function(){var A=this.getValues("creationDate");if(A==null){A=this.getValues("creationdate")}return CW_util.buildDateFromSqlDate(A)}};function ComwebBean_internationalization(){this.initialize()}ComwebBean_internationalization.prototype={regExpValue:null,initialize:function(){this.name="ComwebBean_internationalization";this.storageValues=null;this.childList=null;this.regExpValue=new RegExp("{[$][^{]+}","g")},getValueParams:function(G,A){if(A==null){A=new HashTable()}if(G=="langId"){return(this.storageValues.get("langId"))}var I=(CW_util.decodeUTF8(this.getValues((G))));if(!I){return""}var H=this.regExpValue.exec2(I);if(H.length>0){var E="";var D="";while(H.length>0){var F=new String(H.pop());var B=F.indexOf(":",0);if(B>0){E=F.substring(2,B);D=F.substring(B+1,F.length-1)}else{E=F.substring(2,F.length-1);D=""}var C=A.get(E);if(C!=null&&C!=""&&C!="null"){I=I.replace(F,C)}else{I=I.replace(F,D)}}}return I},getValue:function(C){if(C=="langId"){return(this.storageValues.get("langId"))}var A=new HashTable();for(var B=1;B<arguments.length;B++){var E=arguments[B];var D=E.indexOf("=");if(D>0){A.put(E.substring(0,D),E.substring(D+1))}}return this.getValueParams(C,A)},getLangId:function(){return(this.storageValues.get("langId"))}};ComwebBean_internationalization.prototype=Object.extend(new ComwebBean(),ComwebBean_internationalization.prototype);function ComwebBean_comment(){this.initialize()}ComwebBean_comment.prototype={initialize:function(){this.name="ComwebBean_comment";this.storageValues=new HashTable();this.childList=null},getCreationDate:function(){return this._getCreationDate()},isPublic:function(){return(this.getValues("public")=="true")},getAuthorUserUid:function(){return parseInt(this.getValues("authoruid"))},getAuthorName:function(){return(this.getValues("authorname"))},getAuthorUsername:function(){return(this.getValues("username"))},getAuthorConnexionId:function(){return parseInt(this.getValues("authorconnection"))},getAuthorConnexionType:function(){return ComwebI18N_Manager.getAuthorConnexionType(parseInt(this.getValues("connectedDevice")))},getAuthorPreview:function(){return(this.getValues("userpreview"))},getItemUid:function(){return parseInt(this.getValues("itemuid"))},getLangId:function(){return parseInt(this.getValues("lang"))},getText:function(){return(this.getValues("text"))}};ComwebBean_comment.prototype=Object.extend(new ComwebBean(),ComwebBean_comment.prototype);function ComwebBean_folderMessage(){this.initialize()}ComwebBean_folderMessage.prototype={initialize:function(){this.name="ComwebBean_folderMessage";this.storageValues=new HashTable();this.childList=null},getStatus:function(){return parseInt(this.getValues("status"))},getStatusLabel:function(){var A=parseInt(this.getValues("status"));return ComwebI18N_Manager.getMessageStatusLabel(A)}};ComwebBean_folderMessage.prototype=Object.extend(new ComwebBean(),ComwebBean_folderMessage.prototype);function ComwebBean_group(){this.initialize()}ComwebBean_group.prototype={initialize:function(){this.name="ComwebBean_group";this.storageValues=new HashTable();this.childList=null},getCreationDate:function(){return this._getCreationDate()},isPublic:function(){return(this.getValues("public")=="true")},getGroupName:function(){return(this.getValues("name"))},getOwnerUserUid:function(){return parseInt(this.getValues("ownerUserUid"))},getNbItems:function(){return parseInt(this.getValues("getNbItems"))},getDescription:function(){return this.getValues("pl.description")},getCategoryUid:function(){return this.getValues("pl.category.uid")},getLevelAutorisation:function(){return this.getValues("pl.user.autorisation")},getCreationDateSince:function(){var A="";var B=this.getCreationDate();return ComwebI18N_Manager.convertDateInAgoDate(B)}};ComwebBean_group.prototype=Object.extend(new ComwebBean(),ComwebBean_group.prototype);function ComwebBean_groupitem(){this.initialize()}ComwebBean_groupitem.prototype={initialize:function(){this.name="ComwebBean_groupitem";this.storageValues=new HashTable();this.childList=null}};ComwebBean_groupitem.prototype=Object.extend(new ComwebBean(),ComwebBean_groupitem.prototype);function ComwebBean_mailbox(){this.initialize()}ComwebBean_mailbox.prototype={initialize:function(){this.name="ComwebBean_mailbox";this.storageValues=new HashTable();this.childList=null}};ComwebBean_mailbox.prototype=Object.extend(new ComwebBean(),ComwebBean_mailbox.prototype);function ComwebBean_media(){this.initialize()}ComwebBean_media.prototype={initialize:function(){this.name="ComwebBean_media";this.storageValues=new HashTable();this.childList=null},getCreationDate:function(){return this._getCreationDate()},getCreationDateSince:function(){var A="";var B=this.getCreationDate();return ComwebI18N_Manager.convertDateInAgoDate(B)},isPublic:function(){return(this.getValues("public")=="true")},isEncoded:function(){return(this.getValues("encoded")=="true")},getMediaType:function(){return parseInt(this.getValues("type"))},getMediaTypeName:function(){return ComwebI18N_Manager.getMediaTypeName(parseInt(this.getValues("type")))},getMediaName:function(){return(this.getValues("name"))},getMediaAge:function(){return(this.getValues("bb.age"))},getDescription:function(){return(this.getValues("desc"))},getOwnerNickName:function(){return(this.getValues("ownernickname"))},getOwnerUsername:function(){return(this.getValues("username"))},getOwnerUserUid:function(){return parseInt(this.getValues("owneruid"))},getNbVisualisation:function(){return parseInt(this.getValues("nbvisualisation"))},getCategoryId:function(){return parseInt(this.getValues("category"))},getNbComment:function(){return parseInt(this.getValues("nbcomment"))},getNbFavorite:function(){return parseInt(this.getValues("nbfavourite"))},getFLVpreviewUri:function(){return(this.getValues("flvPreviewUri"))},getSiteUID:function(){return parseInt(this.getValues("siteuid"))},getNbVote:function(){return parseInt(this.getValues("nbvote"))},getMediaLengthFormatted:function(){var B=this.getValues("length");var A;if(B==null||B==""||B=="null"){return ComwebI18N_Manager.getNotPreciseText()}return ComwebI18N_Manager.convertSecTimeInLapTime(B)},getMediaLength:function(){return(this.getValues("length"))},getNotationPreview:function(){return ComwebLocalImage_Manager.getNotationPreview(this.getValues("average"))},getNotationPreview2:function(){return ComwebLocalImage_Manager.getNotationPreview2(this.getValues("average"))},getAuthorizationLevel:function(){var A=(this.getValues("authorization"));if(A!=null&&A!="null"&&A!=""){return parseInt(A)}else{return 1}},getNotation:function(){var A=(this.getValues("average"));if(A==null||A=="null"||A==""){return 0}else{return parseInt(A)}}};ComwebBean_media.prototype=Object.extend(new ComwebBean(),ComwebBean_media.prototype);function ComwebBean_message(){this.initialize()}ComwebBean_message.prototype={initialize:function(){this.name="ComwebBean_message";this.storageValues=new HashTable();this.childList=null},getMessageSubject:function(){return(this.getValues("subject"))},getMessageBody:function(){return(this.getValues("body"))},getSentDate:function(){return CW_util.buildDateFromSqlDate(this.getValues("sentdate"))},getIsAlert:function(){return(this.getValues("isalert"))=="true"},getAlertType:function(){return(this.getValues("alerttype"))}};ComwebBean_message.prototype=Object.extend(new ComwebBean(),ComwebBean_message.prototype);function ComwebBean_session(){this.initialize()}ComwebBean_session.prototype={initialize:function(){this.name="ComwebBean_session";this.storageValues=new HashTable();this.childList=null},getSiteUid:function(){return parseInt(this.getValues("siteUid"))},getUserUid:function(){return parseInt(this.getValues("userUid"))}};ComwebBean_session.prototype=Object.extend(new ComwebBean(),ComwebBean_session.prototype);function ComwebBean_stat(){this.initialize()}ComwebBean_stat.prototype={initialize:function(){this.name="ComwebBean_stat";this.storageValues=new HashTable();this.childList=null},getCreationDate:function(){return this._getCreationDate()},getTypeStatUid:function(){return parseInt(this.getValues("item_type_uid"))}};ComwebBean_stat.prototype=Object.extend(new ComwebBean(),ComwebBean_stat.prototype);function ComwebBean_note(){this.initialize()}ComwebBean_note.prototype={initialize:function(){this.name="ComwebBean_note";this.storageValues=new HashTable();this.childList=null},getDetail:function(){return(this.getValues("detail"))}};ComwebBean_note.prototype=Object.extend(new ComwebBean(),ComwebBean_note.prototype);function ComwebBean_detail(){this.initialize()}ComwebBean_detail.prototype={initialize:function(){this.name="ComwebBean_detail";this.storageValues=new HashTable();this.childList=null}};ComwebBean_detail.prototype=Object.extend(new ComwebBean(),ComwebBean_detail.prototype);function ComwebBean_list(){this.initialize()}ComwebBean_list.prototype={initialize:function(){this.name="ComwebBean_list";this.storageValues=new HashTable();this.childList=null},getTotalNbItem:function(){return parseInt(this.getValues("total"))}};ComwebBean_list.prototype=Object.extend(new ComwebBean(),ComwebBean_list.prototype);function ComwebBean_user(){this.initialize()}ComwebBean_user.prototype={initialize:function(){this.name="ComwebBean_user";this.storageValues=new HashTable();this.childList=null},getUid:function(){return parseInt(this.getValues("uid"))},getAvatar:function(){var A=(this.getValues("avatar"));if(A==null||A==""||A=="null"){return ComwebLocalImage_Manager.getAvatar(parseInt(this.getValues("genderId")))}return A},getFlagPreview:function(){var A=this.getValues("flag");if(A==null||A==""||A=="null"){return"img/flags/default.gif"}return A},getAvatarPreview:function(){var A=(this.getValues("avatar"));if(A==null||A==""||A=="null"){return ComwebLocalImage_Manager.getAvatarPreview(parseInt(this.getValues("genderId")))}return A},getYearsOld:function(){var A=this.getValues("dateOfBirth");if(A==null||A==""||A=="null"){return ComwebI18N_Manager.getNotPreciseText()}return ComwebI18N_Manager.getYearsOld(CW_util.buildDateFromSqlDate(A))},getAuthorizationLevel:function(){var A=(this.getValues("authorization"));if(A!=null&&A!="null"&&A!=""){return parseInt(A)}else{return 1}},getAutorisationTag:function(){return parseInt(this.getValues("user.autorisationTags"))},getFirstName:function(){return this.getValues("user.firstname")},getNickname:function(){return(this.getValues("nickname"))},getUsername:function(){return(this.getValues("username"))},getCreationDate:function(){return this._getCreationDate()},getDob:function(){return CW_util.buildDateFromSqlDate(this.getValues("dateOfBirth"))},getGenderID:function(){return parseInt(this.getValues("genderId"))},getGender:function(){return ComwebI18N_Manager.getUserGender(parseInt(this.getValues("genderId")))},getCountryId:function(){return parseInt(this.getValues("countryUid"))},getStateProvinceId:function(){return parseInt(this.getValues("stateProvinceUid"))},getCityName:function(){var A=(this.getValues("cityName"));if(A==null||A==""||A=="null"){return ComwebI18N_Manager.getNotPreciseText()}return A},getDescription:function(){var A=(this.getValues("description"));if(A==null||A==""||A=="null"){return ComwebI18N_Manager.getNotPreciseText()}return A},getEmail:function(){var A=(this.getValues("email"));if(A==null||A==""||A=="null"){return"undefined"}return A},getConnectedType:function(){return ComwebI18N_Manager.getAuthorConnexionType(parseInt(this.getValues("connectedDevice")))},getNbVisualisation:function(){return parseInt(this.getValues("nbvisualisation"))},getNbComment:function(){return parseInt(this.getValues("nbcomment"))},getNbFavorite:function(){return parseInt(this.getValues("nbfavourite"))},getNbFriend:function(){return parseInt(this.getValues("nbfriend"))},getNbVideo:function(){return parseInt(this.getValues("nbvideo"))},getNbPhoto:function(){return parseInt(this.getValues("nbphoto"))},getLastName:function(){return this.getValues("user.lastname")},getMobileNo:function(){return this.getValues("user.mobile.no")},getOperator:function(){return parseInt(this.getValues("user.operator"))},getNewsLetter:function(){return parseInt(this.getValues("user.newsletter"))},getOfferPartner:function(){return parseInt(this.getValues("user.partner.offers"))},getPostCode:function(){return this.getValues("postcode")},isBlocked:function(){return this.getValues("isblocked")},isFriend:function(){return this.getValues("isfriend")},isForbidden:function(){return this.getValues("isforbidden")},isSubscribed:function(){return this.getValues("issubscribe")}};ComwebBean_user.prototype=Object.extend(new ComwebBean(),ComwebBean_user.prototype);function ComwebBean_error(){this.initialize()}ComwebBean_error.prototype={initialize:function(){this.name="ComwebBean_error";this.storageValues=new HashTable();this.childList=null},getUid:function(){return parseInt(this.getValues("uid"))},getDetail:function(){return(this.getValues("detail"))}};ComwebBean_error.prototype=Object.extend(new ComwebBean(),ComwebBean_error.prototype);function ComwebBean_tag(){this.initialize()}ComwebBean_tag.prototype={initialize:function(){this.name="ComwebBean_tag";this.storageValues=new HashTable();this.childList=null},getText:function(){return(this.getValues("text"))},getType:function(){return parseInt(this.getValues("type"))},getCounter:function(){return parseInt(this.getValues("counter"))},getCreationDate:function(){return this._getCreationDate()}};ComwebBean_tag.prototype=Object.extend(new ComwebBean(),ComwebBean_tag.prototype);function ComwebBean_comweb(){this.initialize()}ComwebBean_comweb.prototype={initialize:function(){this.name="ComwebBean_comweb";this.storageValues=new HashTable();this.childList=null}};ComwebBean_comweb.prototype=Object.extend(new ComwebBean(),ComwebBean_comweb.prototype);function ComwebBean_usercountry(){this.initialize()}ComwebBean_usercountry.prototype={initialize:function(){this.name="ComwebBean_usercountry";this.storageValues=new HashTable();this.childList=null}};ComwebBean_usercountry.prototype=Object.extend(new ComwebBean(),ComwebBean_usercountry.prototype);function ComwebBean_category(){this.initialize()}ComwebBean_category.prototype={initialize:function(){this.name="ComwebBean_category";this.storageValues=new HashTable();this.childList=null},getId:function(){return parseInt(this.getValues("uid"))},getTitle:function(){return this.getValues("name")},getDescription:function(){return this.getValues("desc")},getNbVideo:function(){return parseInt(this.getValues("nbvideos"))},getNbPhotos:function(){return parseInt(this.getValues("nbphotos"))},getNbMusics:function(){return parseInt(this.getValues("nbmusics"))}};ComwebBean_category.prototype=Object.extend(new ComwebBean(),ComwebBean_category.prototype);function ComwebBean_upload(){this.initialize()}ComwebBean_upload.prototype={initialize:function(){this.name="ComwebBean_upload";this.storageValues=new HashTable();this.childList=null},getHost:function(){return(this.getValues("host"))},getSessionUid:function(){return(this.getValues("session.uid"))},getMediaId:function(){return(this.getValues("mediaid"))},getStatus:function(){return parseInt(this.getValues("status"))}};ComwebBean_upload.prototype=Object.extend(new ComwebBean(),ComwebBean_upload.prototype);function ComwebBean_country(){this.initialize()}ComwebBean_country.prototype={initialize:function(){this.name="ComwebBean_country";this.storageValues=new HashTable();this.childList=null},getCountryName:function(){return(this.getValues("name"))},getFlagPath:function(){return(this.getValues("flag"))}};ComwebBean_country.prototype=Object.extend(new ComwebBean(),ComwebBean_country.prototype);function ComwebBean_lang(){this.initialize()}ComwebBean_lang.prototype={initialize:function(){this.name="ComwebBean_lang";this.storageValues=new HashTable();this.childList=null},getLangName:function(){return(this.getValues("name"))}};ComwebBean_lang.prototype=Object.extend(new ComwebBean(),ComwebBean_lang.prototype);function ComwebBean_sender(){this.initialize()}ComwebBean_sender.prototype={initialize:function(){this.name="ComwebBean_sender";this.storageValues=new HashTable();this.childList=null}};ComwebBean_sender.prototype=Object.extend(new ComwebBean(),ComwebBean_sender.prototype);function ComwebBean_receiver(){this.initialize()}ComwebBean_receiver.prototype={initialize:function(){this.name="ComwebBean_receiver";this.storageValues=new HashTable();this.childList=null}};ComwebBean_receiver.prototype=Object.extend(new ComwebBean(),ComwebBean_receiver.prototype);function ComwebBean_messagebody(){this.initialize()}ComwebBean_messagebody.prototype={initialize:function(){this.name="ComwebBean_messagebody";this.storageValues=new HashTable();this.childList=null},getTargetItemType:function(){return parseInt(this.getValues("targetitemtype"))},getTargetItemName:function(){return(this.getValues("targetitemname"))},getTargetItemUid:function(){return parseInt(this.getValues("targetitemuid"))},getItemUid:function(){return parseInt(this.getValues("itemuid"))},getBodyText:function(){return(this.getValues("bodytext"))}};ComwebBean_messagebody.prototype=Object.extend(new ComwebBean(),ComwebBean_messagebody.prototype);function ComwebBean_subscription(){this.initialize()}ComwebBean_subscription.prototype={initialize:function(){this.name="ComwebBean_subscription";this.storageValues=new HashTable();this.childList=null},getUid:function(){return parseInt(this.getValues("uid"))},isChanged:function(){return this.getValues("changed")},getItemType:function(){return parseInt(this.getValues("itemtypeuid"))},getOwnerNickname:function(){return this.getValues("username")}};ComwebBean_subscription.prototype=Object.extend(new ComwebBean(),ComwebBean_subscription.prototype);