/* 2011-08-31 14:08:11 */
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/bindings/annotation.bindings.js */
$('.toggleAnnotationsLink').live('click',function(e){strId=this.id.match(/^toggleAnnotations_(\w+)$/)[1];objComments=$('#annotations_'+strId);$(objComments).slideToggle();$(this).parent().find('.userAnnotationInput').focus();return false;});$('.toggleAllAnnotationsLink').live('click',function(e){strId=this.id.match(/^toggleHiddenAnnotations_(\w+)$/)[1];objComments=$('#hiddenAnnotationsContainer_'+strId);$(objComments).slideToggle(function(){if($(objComments).css('display')=='none'){$('#toggleHiddenAnnotations_'+strId+' .commentInactive').hide();$('#toggleHiddenAnnotations_'+strId+' .commentActive').show();}
else{$('#toggleHiddenAnnotations_'+strId+' .commentInactive').show();$('#toggleHiddenAnnotations_'+strId+' .commentActive').hide();}});return false;});$('.newAnnotationTextInput').live('focus',function(){if($(this).hasClass('opened'))return false;var objToolbarcontainer=$($(this).parents('.newAnnotationForm').find('.newAnnotationToolbarContainer')[0]);intWidth=parseInt($(this).css('width'));objImageContainer=$(this).parents('.newAnnotationBody').children('.newAnnotationLeft');$(this).addClass('opened');if($(this).attr('data-defaultvalue')==$(this).val()){$(this).val('');}
intWidthTemp=$(objImageContainer).css('width');$(objImageContainer).css('width','0px');$(objImageContainer).show();$(objImageContainer).animate({'width':intWidthTemp},'2000');$(this).animate({height:'74px',width:(intWidth-55)+'px'},'2000');if(objToolbarcontainer.hasClass('displayNone')){objToolbarcontainer.slideDown('slow');}}).live('blur',function(e){});$('.anonymousAnnotationSwitch').live('click',function(e){strIdTemp=this.id.match(/^anonymousAnnotationSwitch_(\w+)$/);if(strIdTemp!==undefined){strId=strIdTemp[1];if(strId){objInput=$('#annotationUserPseudonymInput_'+strId);if(objInput!==undefined){if($(this).is(':checked')){$(objInput).removeAttr('disabled');}
else{$(objInput).attr('disabled','disabled');}}}}});$('.annotationUserPseudonymInput').live('focus',function(e){if($(this).attr('data-defaultvalue')==$(this).val()){$(this).val('');}}).live('blur',function(e){if($(this).val()==''){$(this).val($(this).attr('data-defaultvalue'));}});$('.submitNewAnnotation').live('click',function(eventObject){var parent=$(this).parents('.newAnnotationForm')[0];var action=$(parent).attr('action');var comment_input=$('[name="userAnnotation"]',$(parent))[0];var comment=comment_input.value;if(!comment){return false;}
$('[name="userAnnotation"]',$(parent)).attr('disabled','disabled');bolAnnotationAnonymous=0;var anonymous_annotation_input=$('[name="anonymousAnnotationActivated"]',$(parent))[0];if(anonymous_annotation_input!==undefined){var anonymous_annotation=$(anonymous_annotation_input).attr('checked');if(anonymous_annotation=='checked'){bolAnnotationAnonymous=1;}}
var pseudonym='';var pseudonym_input=$('[name="pseudonym"]',$(parent))[0];if(pseudonym_input!==undefined){pseudonym=pseudonym_input.value;}
var strId=$(parent).attr('id').match(/^userAnnotationForm_(\w+)$/)[1];var metaData=$('#userAnnotationFormPayload_'+strId).attr('value');var confData=$('#userAnnotationFormPayloadCf_'+strId).attr('value');var aortaItemContainer=$('#annotations_'+strId);var lastEntry=$('.annotationEntry:last',aortaItemContainer);var strUrl=objEnvironmentController.getServiceUrl()
+'/'+objCultureController.getUrlLanguage()+'/annotation/saveitem/';objData=new Object();objData.comment=comment;objData.id=strId;objData.payload=metaData;objData.cf=confData;objData.anon=bolAnnotationAnonymous;if(pseudonym){objData.pseud=pseudonym;}
$.ajax({url:strUrl,type:"get",data:objData,dataType:'jsonp',jsonp:'filteritems_jsonp',success:function(data){objNewMarkup=$(data.markup);var commentsCount=$('.annotationEntry',$('#annotations_'+strId)).length;if(commentsCount!==undefined){intNewCommentCount=commentsCount+1;objNewMarkup.find('.annotationInstanceCounter').html(intNewCommentCount);$('.anntotationCount','#annotations_'+strId).html(intNewCommentCount);}
$(objNewMarkup).insertAfter($('.annotationEntry:last','#annotationInnerContainer_'+strId));objComments=$('#hiddenAnnotationsContainer_'+strId);if($(objComments).css('display')=='none'){$('#toggleHiddenAnnotations_'+strId+' .commentInactive').hide();$('#toggleHiddenAnnotations_'+strId+' .commentActive').show();}
else{$('#toggleHiddenAnnotations_'+strId+' .commentInactive').show();$('#toggleHiddenAnnotations_'+strId+' .commentActive').hide();}
$('[name="userAnnotation"]',$('#userAnnotationForm_'+strId)).removeAttr('disabled');$('[name="userAnnotation"]',$('#userAnnotationForm_'+strId)).attr('value','');},beforeSend:function(){}});return false;});$('.deleteAnnotation').live('click',function(e){var strUrl=objEnvironmentController.getServiceUrl()
+'/'+objCultureController.getUrlLanguage()+'/annotation/deleteitem/';strId=this.id.match(/^deleteAnnotation_(\w+)$/)[1];if(strId){objData=new Object();objData.id=strId;$.ajax({url:strUrl,type:"get",data:objData,dataType:'jsonp',jsonp:'deleteitem_jsonp',success:function(data){if(data.success){$('#annotationItemContainer_'+strId).remove();}},error:function(data){},beforeSend:function(){}});}
return false;});
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/bindings/websites.bindings.js */
var objWebsitesService={filter:function(objParams,e){if(objParams==undefined){var objParams=new Object();}
intCategoryId=$('select#websitesSearchCategory').val();intSubCategoryId=$('select#websitesSearchSubCategory').val();strCountry=$('select#websitesSearchCountry').val();if(intCategoryId!=0){objParams.category_id=intCategoryId;}
if(intSubCategoryId!=undefined){objParams.subcategory_id=intSubCategoryId;}
if(strCountry!=undefined){objParams.country=strCountry;}
var culture=$('input[name="culture"]:checked').val();if(culture!=undefined){objParams.culture=culture;}
$.ajax({dataType:'html',type:'post',url:'/'+objCultureController.getUrlLanguage()+'/websites/search/',data:objParams,success:function(data){objLoaderBar.destroyMouseLoader(e);if(data){$('.content620').html(data);}},beforeSend:function(){objLoaderBar.createMouseLoader(e);}});},filterIndex:function(strIndex){strIndex=strIndex.toLowerCase();if(strIndex=='#'){strIndex='num';}
return strIndex;}};$(document).ready(function(){$('#inputSearchWebsites').focus();$('.websitesIndexSwitch').live('click',function(e){if($('.activeIndex').length>0){strIndex=objWebsitesService.filterIndex($(this).html());if(strIndex){var objParams={index:strIndex,page:1};objWebsitesService.filter(objParams,e);}}
return false;});$('.websitePaginationForward, .websitePaginationBack').live('click',function(e){try{if(this.id.match(/^wp_(.+)$/)){strIdParams=this.id.match(/^wp_(.+)$/)[1];arrParams=strIdParams.split('_');strIndex=arrParams[0];intPage=arrParams[1];var objParams={index:strIndex,page:intPage};}
else{strIdParams=this.id.match(/^ws_(.+)$/)[1];arrParams=strIdParams.split('_');intPage=arrParams[1];strSearchTerm=$('#inputSearchWebsites').attr('value');var objParams={search:strSearchTerm,page:intPage};}
objWebsitesService.filter(objParams,e);}
catch(e){}
return false;});$('#searchWebsites').live('click',function(e){try{strSearchTerm=$('#inputSearchWebsites').attr('value');var objParams={search:strSearchTerm};objWebsitesService.filter(objParams,e);}
catch(e){}
return false;});$('#inputSearchWebsites').click(function(e){var strActValue=$(e.target).attr('value');var strValue=objCultureController.getTranslation('websites.search.input.default');if(strActValue==strValue){$(e.target).attr('value','');}
return false;});$('#inputSearchWebsites').focusout(function(e){var strActValue=$(e.target).attr('value');var strValue=objCultureController.getTranslation('websites.search.input.default');if(strActValue==''){$(e.target).attr('value',strValue);}
return false;});$('.catalogInputPaginationPage').live('keyup',function(e){if(e.keyCode==13){var intPage=$(e.target).attr('value');var strActiveLink=$('.paginationIndex li.activeIndex').html();var strActiveIndex='';if(strActiveLink=='#'){strActiveIndex='num';}
else{strActiveIndex=strActiveLink.toLowerCase();}
var objParams={index:strActiveIndex,page:intPage};objWebsitesService.filter(objParams,e);}
return false;});$('.catalogInputPaginationPage').live('focusout',function(e){if($(e.target).attr('value')!=''){var intPage=$(e.target).attr('value');var strActiveLink=$('.paginationIndex li.activeIndex').html();var strActiveIndex='';if(strActiveLink=='#'){strActiveIndex='num';}
else{strActiveIndex=strActiveLink.toLowerCase();}
var objParams={index:strActiveIndex,page:intPage};objWebsitesService.filter(objParams,e);}
return false;});$('.catalogSearchResultPaginationPage').live('keyup',function(e){if(e.keyCode==13){try{if(this.id.match(/^wp_(.+)$/)){strIdParams=this.id.match(/^wp_(.+)$/)[1];arrParams=strIdParams.split('_');strIndex=arrParams[0];intPage=arrParams[1];var objParams={index:strIndex,page:intPage};}
else{strIdParams=this.id.match(/^ws_(.+)$/)[1];arrParams=strIdParams.split('_');intPage=arrParams[1];strSearchTerm=$('#inputSearchWebsites').attr('value');var objParams={search:strSearchTerm,page:intPage};}
objWebsitesService.filter(objParams,e);}
catch(e){}}
return false;});$('.websitesWithDocCheckToggleDescription').live('click',function(e){var strShortDesc=$(e.target).prev().html();strShortDesc=strShortDesc.substr(0,strShortDesc.length-3);$(e.target).prev().html(strShortDesc);$(e.target).next().css('display','inline');$(e.target).remove();return false;});$('#websitesSearchCategory').live('change',function(e){$('#websitesSearchSubCategory').load('/'+objCultureController.getUrlLanguage()+'/websites/subcategories/',{category_id:$(this).val()},function(){strSearchTerm=$('#inputSearchWebsites').attr('value');if(strSearchTerm){var objParams={search:strSearchTerm};}
if($('.activeIndex').length>0){strIndex=objWebsitesService.filterIndex($('.activeIndex').html());if(strIndex){var objParams={index:strIndex};}}
objWebsitesService.filter(objParams,this);});return false;});$('#websitesSearchSubCategory').live('change',function(e){strSearchTerm=$('#inputSearchWebsites').attr('value');if(strSearchTerm){var objParams={search:strSearchTerm};}
if($('.activeIndex').length>0){strIndex=objWebsitesService.filterIndex($('.activeIndex').html());if(strIndex){var objParams={index:strIndex};}}
objWebsitesService.filter(objParams,this);return false;});$('#websitesSearchCountry').live('change',function(e){strSearchTerm=$('#inputSearchWebsites').attr('value');if(strSearchTerm){var objParams={search:strSearchTerm};}
if($('.activeIndex').length>0){strIndex=objWebsitesService.filterIndex($('.activeIndex').html());if(strIndex){var objParams={index:strIndex};}}
objWebsitesService.filter(objParams,this);return false;});$('.culture').click(function(){strSearchTerm=$('#inputSearchWebsites').attr('value');if(strSearchTerm){var objParams={search:strSearchTerm};}
objWebsitesService.filter(objParams,this);});$('#removeSearchTerm').live('click',function(){$('#inputSearchWebsites').attr('value','');var objParams={search:''};objWebsitesService.filter(objParams,this);});$('#removeCategoryTerm').live('click',function(){$('#websitesSearchCategory').find('option:first').attr('selected','selected');$('#websitesSearchSubCategory').html('');strSearchTerm=$('#inputSearchWebsites').attr('value');if(strSearchTerm){var objParams={search:strSearchTerm};}
if($('.activeIndex').length>0){strIndex=objWebsitesService.filterIndex($('.activeIndex').html());if(strIndex){var objParams={index:strIndex};}}
objWebsitesService.filter(objParams,this);return false;});$('#removeSubCategoryTerm').live('click',function(){$('#websitesSearchSubCategory').find('option:first').attr('selected','selected');strSearchTerm=$('#inputSearchWebsites').attr('value');if(strSearchTerm){var objParams={search:strSearchTerm};}
if($('.activeIndex').length>0){strIndex=objWebsitesService.filterIndex($('.activeIndex').html());if(strIndex){var objParams={index:strIndex};}}
objWebsitesService.filter(objParams,this);return false;});$('.resetLanguage').live('click',function(){strIsoLanguage=this.id.match(/^resetLanguage_(.+)$/)[1];$('.websitesSearchCultureContainer input').each(function(){if($(this).val()==strIsoLanguage){$(this).attr('checked','checked');}});strSearchTerm=$('#inputSearchWebsites').attr('value');if(strSearchTerm){var objParams={search:strSearchTerm};}
if($('.activeIndex').length>0){strIndex=objWebsitesService.filterIndex($('.activeIndex').html());if(strIndex){var objParams={index:strIndex};}}
objWebsitesService.filter(objParams,this);return false;});});
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/bindings/form.bindings.js */
$(document).ready(function(){$('.textlookup').live('focus',function(event){if($(this).attr('type')=='text'){var strCallback=$(this).attr('callback');strUrl=objEnvironmentController.getServiceUrl()
+'/'+objCultureController.getUrlLanguage()+'/form/autocomplete';$(this).autocomplete(strUrl,{minChars:3,max:50,delay:400,extraParams:{dataType:'jsonp',callback:strCallback,language:objCultureController.getIsoLanguage()}});$(this).result(function(event,data,formatted){objTextLookup=$(event.target).prev();if(data){objTextLookup.val(data[1]);}});}});$('.autocomplete').live('focus',function(event){if($(this).is('[type=text]')){var strCallback=$(this).attr('callback');strUrl=objEnvironmentController.getServiceUrl()
+'/'+objCultureController.getUrlLanguage()+'/form/autocomplete';$(this).autocomplete(strUrl,{minChars:1,max:50,selectFirst:false,delay:100,extraParams:{dataType:'jsonp',callback:strCallback,language:objCultureController.getIsoLanguage()}});}});});$(document).ready(function(){$('.formField .tabContainer .tab').live('click',function(){var strTabId=$(this).attr('id');if(strTabId){arrParentContainer=$(this).parents('ul.tabContainer:first');objParentContainer=arrParentContainer[0];$('.tab',objParentContainer).removeClass('tabActive');$(this).addClass('tabActive');var objHiddenField=$(objParentContainer).parent().children('[type=hidden]')[0];objHiddenField=$(objHiddenField);var strValue=strTabId.match(/^tab_(\w+)$/)[1];objHiddenField.val(strValue);objFormEventController.executeRegisteredEventForTrigger(objHiddenField);return false;}}).live('mouseover',function(){$(this).css('cursor','pointer');}).live('mousout',function(){$(this).css('cursor','normal');});});$(document).ready(function(){$('.readOnlyElement').live('mouseover',function(){var objEditIcon=$(this).children('.editFormElement')[0];$(objEditIcon).css('display','block');$(this).css('cursor','pointer');}).live('mousout',function(){var objEditIcon=$(this).children('.editFormElement')[0];$(objEditIcon).css('display','none');$(this).css('cursor','normal');});$('.editFormElement').live('mouseover',function(){$(this).css('display','block');}).live('mouseout',function(){$(this).css('display','none');});});$(document).ready(function(){$('.openShortRegistration').live('click',function(e){var objElement=$(e.target);var strUrl=objElement.attr('href');var objParams=new Object();$.ajax({dataType:'jsonp',jsonp:'register_short_jsonp',type:'get',url:strUrl,data:objParams,success:function(data){objLightboxController.createByMarkup(data.markup);$('#lightboxContent').width(620);$('#lightboxContainer').show();objLoaderBar.destroyMouseLoader();},beforeSend:function(){objLoaderBar.createMouseLoader(e);}});return false;});});$(document).ready(function(){$('input.inputDate').live('focus',function(){$(this).datepicker({changeYear:true,changeMonth:true,dateFormat:'dd.mm.yy',yearRange:'1900:2090'});$.datepicker.setDefaults($.datepicker.regional[objCultureController.getUrlLanguage()]);});});$(document).ready(function(){$('#translateOccupationsButton').live('click',function(e){var objParams=new Object();var objForm=$($(this).parents('form:first')[0]);objParams.id=$(objForm.find('[name=id]')[0]).attr('value');objParams.languageFrom=$(objForm.find('[name=fromLanguage] option:selected')).val();var strLanguage=$(objForm.find('[name=language]:checked')).val();var strUrl='/de/commonadmin/occupation/getoccupationname';$.ajax({dataType:'jsonp',jsonp:'get_occupation_names_jsonp',type:'get',url:strUrl,data:objParams,success:function(data){var url='https://www.googleapis.com/language/translate/v2?callback=?';var objTranslateParams=new Object();objTranslateParams.key='AIzaSyCOU1PQN_36xNVQiixSPlwY2w3eQni3Nj4';objTranslateParams.source=objParams.languageFrom;objTranslateParams.target=strLanguage;objTranslateParams.q=data.nameGeneric;$.getJSON(url,objTranslateParams,function(response){if(!response.error){$(objForm.find('[name=nameGeneric]')).val(response.data.translations[0].translatedText);}});objTranslateParams.q=data.nameFemale;$.getJSON(url,objTranslateParams,function(response){if(!response.error){$(objForm.find('[name=nameFemale]')).val(response.data.translations[0].translatedText);}});objTranslateParams.q=data.nameMale;$.getJSON(url,objTranslateParams,function(response){$(objForm.find('[name=nameMale]')).val(response.data.translations[0].translatedText);});objLoaderBar.destroyMouseLoader();},beforeSend:function(){objLoaderBar.createMouseLoader(e);}});});});$(document).ready(function(){$('.eventTrigger').each(function(){objFormEventController.arrTriggerContainer.push(this);});$('input.validatable').live('focusout',function(){if($(this).is('input[type=radio]')||$(this).is('input[type=checkbox]'))return false;objFormController.validateFormField($(this));});$('select.validatable').live('change',function(){objFormController.validateFormField($(this));});$('input[type=radio].validatable, input[type=checkbox].validatable').live('click',function(){objFormController.validateFormField($(this));});$('select.eventTrigger').live('change',function(){objFormEventController.executeRegisteredEventForTrigger($(this));});$('input[type=radio].eventTrigger, input[type=checkbox].eventTrigger').live('click',function(){objFormEventController.executeRegisteredEventForTrigger($(this));});});
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/bindings/community.bindings.js */
var Community_Service={getAgbDialog:function(){var strParam='';if(Request.get('edit')){strParam='edit=1';}
$.ajax({dataType:'html',type:'get',url:'/'+objCultureController.getUrlLanguage()+'/user/communityagb/',data:strParam,success:function(data){if(data){objLightboxController.createByMarkup(data);}}});}}
$(document).ready(function(){$('.communityAgbDialog').live('click',function(e){Community_Service.getAgbDialog();return false;});$('#comunity_agb_accept_check').live('click',function(e){$('#accept_community_agb_button').toggle();return true;});});
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/bindings/aorta.bindings.js */
var MoreItemsHandler={bolEnabled:true,getMoreItems:function(){var fold=$(window).height()+$(window).scrollTop();if($('#getMoreAortaItems').length>0){var trigger=$('#getMoreAortaItems').offset().top;}
if(trigger<fold){if(MoreItemsHandler.bolEnabled){strEncFilter=$('#enc_filter').val();Aorta_Controller.getMoreItems(strEncFilter);MoreItemsHandler.disable();}}
return false;},disable:function(){MoreItemsHandler.bolEnabled=false;},enable:function(){MoreItemsHandler.bolEnabled=true;}};var Aorta_Controller={GET_LATEST_ITEMS_TIMEOUT:10000,arrActiveGroupItems:[],arrPostItemAppendHooks:new Array(),getMoreItems:function(strEncodedFilterParam){strParam='enc_filter='+strEncodedFilterParam;if($('#aortaLanguageSwitch').length>0){var strDisplayLanguage=$("#aortaLanguageSwitch .selectDisplayLanguage").val();strParam+='&display_language='+strDisplayLanguage;}
$('.aortaLoadingIndicator').show();var strUrl=objEnvironmentController.getServiceUrl()
+'/'+objCultureController.getUrlLanguage()
+objEnvironmentController.getServiceControllerPrefix()
+'/aorta/getmoreitems';$.ajax({dataType:'jsonp',jsonp:'getmoreitems_jsonp',type:'get',url:strUrl,data:strParam,success:function(data){strMarkup=data.markup;strEncodedFilter=data.filter_enc;if($('#enc_filter')&&strEncodedFilter){$('#enc_filter').attr('value',strEncodedFilter);}
$('#aortaMainContainer').append(strMarkup);Aorta_Controller.callPostItemAppendHooks();$('.aortaLoadingIndicator').hide();},error:function(){$('.aortaLoadingIndicator').hide();}});},filterItems:function(strEncodedFilterParam){strParam='enc_filter='+strEncodedFilterParam;strGroupParam='';var index=0;for(var strGroup in this.arrActiveGroupItems){if(index==0){strGroupParam+=strGroup;}
else{strGroupParam+=','+strGroup;}
++index;}
strParam+='&group_filter_update='+strGroupParam;if($('#aortaLanguageSwitch').length>0){var strDisplayLanguage=$("#aortaLanguageSwitch .selectDisplayLanguage").val();strParam+='&display_language='+strDisplayLanguage;}
$('.aortaLoadingIndicator').show();var strUrl=objEnvironmentController.getServiceUrl()
+'/'+objCultureController.getUrlLanguage()
+objEnvironmentController.getServiceControllerPrefix()
+'/aorta/filteritems';$.ajax({dataType:'jsonp',jsonp:'filteritems_jsonp',type:'get',url:strUrl,data:strParam,success:function(data){strMarkup=data.markup;strEncodedFilter=data.filter_enc;if($('#enc_filter')&&strEncodedFilter){$('#enc_filter').attr('value',strEncodedFilter);}
$('#aortaMainContainer').html(strMarkup);Aorta_Controller.callPostItemAppendHooks();$('.aortaLoadingIndicator').hide();},error:function(){$('.aortaLoadingIndicator').hide();}});MoreItemsHandler.enable();},executeItemInteraction:function(strActionKey){strParam='enc_interaction='+strActionKey;$('.aortaLoadingIndicator').show();var strUrl=objEnvironmentController.getServiceUrl()
+'/'+objCultureController.getUrlLanguage()
+objEnvironmentController.getServiceControllerPrefix()
+'/aorta/executeiteminteraction';$.ajax({dataType:'jsonp',jsonp:'executeiteminteraction_jsonp',type:'get',url:strUrl,data:strParam,success:function(data){if(data.success){strEncInteractionId='payload_'+data.enc_interaction;$('#'+strEncInteractionId).parents('.aortaEntry:first').fadeOut();}
$('.aortaLoadingIndicator').hide();},error:function(){$('.aortaLoadingIndicator').hide();}});},addActiveGroupItem:function(strIdent){this.arrActiveGroupItems[strIdent]=strIdent;},removeActiveGroupItem:function(strIdent){if(this.isActive(strIdent)){delete this.arrActiveGroupItems[strIdent];}},setActiveGroupItem:function(strIdent){for(var strGroup in this.arrActiveGroupItems){delete this.arrActiveGroupItems[strGroup];}
this.addActiveGroupItem(strIdent);},isActive:function(strIdent){if(this.arrActiveGroupItems[strIdent]){return true;}
return false;},getActiveItems:function(strIdent){return this.arrActiveGroupItems;},appendSiteCatalystParameterToLinks:function(){objUtils.appendUrlParameterToLinks('#aortaMainContainer','cide','dce102536');},addPostItemAppendHook:function(objFunction){Aorta_Controller.arrPostItemAppendHooks.push(objFunction);},callPostItemAppendHooks:function(){if(Aorta_Controller.arrPostItemAppendHooks.length>0){for(var i=0;i<Aorta_Controller.arrPostItemAppendHooks.length;i++){Aorta_Controller.arrPostItemAppendHooks[i].call(this);}}}};$(document).ready(function(){Aorta_Controller.addPostItemAppendHook(Aorta_Controller.appendSiteCatalystParameterToLinks);if($('#aortaMainContainer').length==0){$(window).bind('scroll',MoreItemsHandler.getMoreItems);Aorta_Controller.callPostItemAppendHooks();var strUrl=objEnvironmentController.getServiceUrl()
+objCultureController.getUrlLanguage()
+objEnvironmentController.getServiceControllerPrefix()
+'/aorta/getlatestitems';if($('#aortaLanguageSwitch').length==0){$('#aortaMainContainer').smartupdater({multiplier:2,minTimeout:60000,dataType:'jsonp',jsonp:'getlatestitems_jsonp',type:'get',url:strUrl,data:'enc_filter='+$('#enc_filter').val()+'&last_post='
+$('#lastPost').val()},function(data){if(data.markup!=''){var firstEntry=$('.aortaEntry')[0];var newEntries=data.markup;$(newEntries).hide().insertBefore(firstEntry).fadeIn('slow');}
var intLastPost=parseInt(data.last_post);if(intLastPost>0){$('#lastPost').attr('value',data.last_post);}
arrResult={"data":'enc_filter='+$('#enc_filter').val()
+'&last_post='+$('#lastPost').val()};return arrResult;});}}
$('#getMoreAortaItems').live('click',function(e){strEncFilter=$('#enc_filter').val();Aorta_Controller.getMoreItems(strEncFilter);objUtils.appendUrlParameterToLinks($('#aortaMainContainer'))
return false;});$('.filteritems').live('click',function(e){strCurrentId=this.id.match(/^filteritem_(\w+)$/)[1];if($(this).hasClass('active')){Aorta_Controller.removeActiveGroupItem(strCurrentId);$('.filteritems').removeClass('active');}
else{$('.filteritems').removeClass('active');Aorta_Controller.setActiveGroupItem(strCurrentId);$(this).addClass('active');}
strEncFilter=$('#enc_filter').val();Aorta_Controller.filterItems(strEncFilter);return false;});$('.filterglobal').live('click',function(){strCurrentId=this.id.match(/^filterglobal_(\w+)$/)[1];$('.filterglobal').removeClass('tabActive');$(this).addClass('tabActive');strEncFilter=$('#enc_filter').val();strEncFilter+='&perspective='+strCurrentId;Aorta_Controller.filterItems(strEncFilter);return false;});$('.aortaShowFullDescription').live('click',function(e){var strShortDesc=$(e.target).prev().html();strShortDesc=strShortDesc.substr(0,strShortDesc.length-3);$(e.target).prev().html(strShortDesc);$(e.target).next().css('display','inline');$(e.target).remove();return false;});$('.aortaShowFullDescription').live('mouseover',function(){$(this).css('color','#cc0033');$(this).css('cursor','pointer');$(this).css('text-decoration','underline');}).live('mouseout',function(){$(this).css('color','#000000');$(this).css('cursor','default');$(this).css('text-decoration','none');});$('.aortaItemInteraction_deleteByPerformer').live('click',function(e){strActionKey=this.id.match(/^payload_(\w+)$/)[1];Aorta_Controller.executeItemInteraction(strActionKey);return false;});});
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/bindings/environment.js */
var objEnvironmentController={strServiceServer:'apps',strServiceDomain:'doccheck.com',strProtocol:'http://',strStyleServer:'style',strStyleDomain:'doccheck.com',strServiceControllerPrefix:'',setStyleServer:function(strStyleServer){this.strStyleServer=strStyleServer;},getStyleServer:function(){return this.strStyleServer;},getProtocol:function(){return this.strProtocol;},setProtocol:function(strProtocol){this.strProtocol=strProtocol;},setStyleDomain:function(strStyleDomain){this.strStyleDomain=strStyleDomain;},getStyleDomain:function(){return this.strStyleDomain;},setServiceServer:function(strServiceServer){this.strServiceServer=strServiceServer;},getServiceServer:function(){return this.strServiceServer;},setServiceDomain:function(strServiceDomain){this.strServiceDomain=strServiceDomain;},getServiceDomain:function(){return this.strServiceDomain;},setServiceControllerPrefix:function(strServiceControllerPrefix){this.strServiceControllerPrefix=strServiceControllerPrefix;},getServiceUrl:function(){return this.strProtocol+this.strServiceServer+'.'+this.strServiceDomain;},getServiceControllerPrefix:function(){return this.strServiceControllerPrefix;}};
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/classes/controllers/form.event.js */
var objFormEventController={arrTriggerContainer:[],arrEventContainer:[],arrActions:[],registerEvent:function(strCallbackIdent,strTriggerField){objEvent=new Object();objEvent.strCallbackIdent=strCallbackIdent;objEvent.strTriggerField=strTriggerField;objFormEventController.arrEventContainer[strCallbackIdent]=objEvent;return true;},addEventListener:function(strCallbackIdent,strName,arrParams){if(objFormEventController.arrEventContainer[strCallbackIdent]){if(!objFormEventController.arrEventContainer[strCallbackIdent].arrEventListeners){objFormEventController.arrEventContainer[strCallbackIdent].arrEventListeners=new Array();}
objEventListener=new Object;objEventListener['name']=strName;objEventListener['params']=arrParams;objFormEventController.arrEventContainer[strCallbackIdent].arrEventListeners.push(objEventListener);}
return true;},getEventListeners:function(strTriggerName){var arrEventListeners=new Array();var objEvents=objFormEventController.getEventForTriggerFieldName(strTriggerName);for(var strEventIdent in objEvents){objEvent=objEvents[strEventIdent];if(objEvent){for(var i in objEvent.arrEventListeners){arrEventListeners.push(objEvent.arrEventListeners[i].name);}}}
return arrEventListeners;},intProcessEventCounter:0,executeRegisteredEventForTrigger:function(objTriggerField){strTriggerFieldName=$(objTriggerField).attr('name');objEvents=objFormEventController.getEventForTriggerFieldName(strTriggerFieldName);for(var strEventIdent in objEvents){objEvent=objEvents[strEventIdent];if(objEvent){var arrEventListeners=objEvent.arrEventListeners;objForm=$(objTriggerField).parents('form:first');strFormKey=objForm.attr('id');var strConSec='';if($('#con_sec_id').length){var strConSec=$('#con_sec_id').val();}
for(var intListener in arrEventListeners){var objEventListener=arrEventListeners[intListener];objParams=new Object();objParams.context=objFormEventController.getDependentFieldValues(objForm.attr('id'),objEventListener.params);objParams.eventcallback=objEvent.strCallbackIdent;objParams.eventlistener=objEventListener.name;objParams.formkey=strFormKey;objParams.con_sec=strConSec;$.ajax({dataType:'json',type:'post',url:'/'+objCultureController.getUrlLanguage()+'/form/executeeventcb/',data:objParams,success:function(data){objFormEventController.processEventAnswer(data);},beforeSend:function(e){objFormEventController.intProcessEventCounter++;objLoaderBar.createMouseLoader(e);},error:function(e){objFormEventController.intProcessEventCounter--;if(objFormEventController.intProcessEventCounter<=0){objFormEventController.intProcessEventCounter=0;objLoaderBar.destroyMouseLoader();}}});}}}
return true;},processEventAnswer:function(objAnswer){var strFormId=objAnswer.form_id;if(objAnswer.actions.length==0){if($('.multiselectui').length>0){$(".multiselectui").multiselect();}
objFormEventController.intProcessEventCounter--;if(objFormEventController.intProcessEventCounter<=0){objFormEventController.intProcessEventCounter=0;$('.tooltip').each(function(){objTooltipController.bindTooltip($(this));});objLoaderBar.destroyMouseLoader();}
return true;}
var objActions=objAnswer.actions;var objAction=objActions.shift();objAnswer.actions=objActions;var objParams=objAction.params;switch(objAction.action){case'create':objFormEventController.actionCreate(objParams,strFormId,function(){objFormEventController.processEventAnswer(objAnswer);});break;case'delete':objFormEventController.actionDelete(objParams,strFormId,function(){objFormEventController.processEventAnswer(objAnswer);});break;case'edit':objFormEventController.actionEdit(objParams,strFormId,function(){objFormEventController.processEventAnswer(objAnswer);});break;case'event_trigger':objFormEventController.actionEventTrigger(objParams,strFormId,function(){objFormEventController.processEventAnswer(objAnswer);});break;default:break;}},actionDelete:function(objParams,strFormId,callback){var strElementToDelete=objParams.elementToDelete;var objFormField=$('#'+strElementToDelete).parents('.formFieldContainer')[0];if($(objFormField).length==0){objFormField=$('#'+strElementToDelete+'DisplayGroup');}
if($(objFormField).length>0){var strAnimation=objParams.animation;switch(strAnimation){case'slide':$(objFormField).slideUp('swing',function(){$(this).remove();var arrListener=objFormEventController.getEventListeners(strElementToDelete);for(var i in arrListener){var objListenerParams=new Object();objListenerParams.elementToDelete=arrListener[i];objParams.animation=strAnimation;objFormEventController.actionDelete(objListenerParams,strFormId,function(){});}
callback();});break;case'none':default:$(objFormField).remove();var arrListener=objFormEventController.getEventListeners(strElementToDelete);for(var i in arrListener){var objListenerParams=new Object();objListenerParams.elementToDelete=arrListener[i];objParams.animation=strAnimation;objFormEventController.actionDelete(objListenerParams,strFormId,function(){});}
callback();break;}}
else{callback();}},actionCreate:function(objParams,strFormId,callback){var strElementToCreate=objParams.elementToCreate;var strMarkup=objParams.markup;var strContainer=objParams.container;var objFormField=$('#'+strElementToCreate).parents('.formFieldContainer')[0];if($(objFormField).length==0){var objNewElement=$(strMarkup).addClass('displayNone');var intWeight=0;if(objNewElement.hasClass('formFieldContainer')){intWeight=objFormEventController.getFieldWeight(objNewElement);}
var objContainer=$(strContainer);var arrFormElements=objContainer.children('.formFieldContainer');var bolInserted=false;for(var i=0;i<arrFormElements.length;i++){var objNeighborElement=$(arrFormElements[i]);intWeightNeigbor=objFormEventController.getFieldWeight(objNeighborElement);if(intWeightNeigbor>intWeight){$(objNewElement).insertBefore(objNeighborElement);var bolInserted=true;break;}}
if(!bolInserted){var objNeighborElement=arrFormElements[arrFormElements.length-1];$(objNewElement).insertAfter(objNeighborElement);}
switch(objParams.animation){case'slide':$(objNewElement).slideDown().removeClass('displayNone');break;case'none':default:$(objNewElement).removeClass('displayNone');break;}}
callback();},actionEdit:function(objParams,strFormId,callback){var strElementToEdit=objParams.elementToEdit;var objAttribs=objParams.attribs;var objFormElement=$('#'+strElementToEdit);if($(objFormElement).length>0){for(var strAttrib in objAttribs){if(objFormElement.is('textarea')&&strAttrib=='value'){objFormElement.val(objAttribs[strAttrib]);}
else{objFormElement.attr(strAttrib,objAttribs[strAttrib]);}}}
callback();},actionEventTrigger:function(objParams,strFormId,callback){var strEvent=objParams.event;var strAnimation=objParams.animation;var strTrigger=objParams.trigger;var objTarget=$('#'+strFormId).find('[name='+strTrigger+']')[0];objFormEventController.executeRegisteredEventForTrigger(objTarget);callback();},getFieldWeight:function(objElement){var matchWeight=objElement.attr('class').match(/formFieldWeight_(\d+)/);if(matchWeight!=null){return matchWeight[1];}
return 0;},getEventForTriggerFieldName:function(strTriggerFieldName){var objEvents=new Object();if(objFormEventController.arrEventContainer){for(strEventIdent in objFormEventController.arrEventContainer){objEvent=objFormEventController.arrEventContainer[strEventIdent];if(objEvent.strTriggerField==strTriggerFieldName){objEvents[strEventIdent]=objEvent;}}
return objEvents;}
return null;},getDependentFieldValues:function(strFormId,arrFieldNames){objReturn=new Object();for(index in arrFieldNames){strFieldName=arrFieldNames[index];objField=$("#"+strFormId).find("[name="+strFieldName+"]")[0];if($(objField).is('input:radio')){mixedValue=$("#"+strFormId).find("[name="+strFieldName+"]:checked").val();}
else{mixedValue=$(objField).val();}
objReturn[strFieldName]=mixedValue;}
return objReturn;}};
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/classes/controllers/form.js */
var objScriptLoader={load:function(strFileUrl,strType){if(strType=='css'){css=$("head").children(":last");css.attr({rel:"stylesheet",type:"text/css",href:strFileUrl});}
if(strType=='js'){$.getScript(strFileUrl,function(){});}
return true;}};var objCKEditorConfig={getConfig:function(strConfigType){switch(strConfigType){case'full':var config={toolbar:[{name:'document',items:['Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates']},{name:'clipboard',items:['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo']},{name:'editing',items:['Find','Replace','-','SelectAll','-','SpellChecker','Scayt']},{name:'forms',items:['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField']},'/',{name:'basicstyles',items:['Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat']},{name:'paragraph',items:['NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl']},{name:'links',items:['Link','Unlink','Anchor']},{name:'insert',items:['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe']},'/',{name:'styles',items:['Styles','Format','Font','FontSize']},{name:'colors',items:['TextColor','BGColor']},{name:'tools',items:['Maximize','ShowBlocks','-','About']}]};break;case'default':var config={toolbar:[{name:'document',items:['Source','Maximize']},{name:'clipboard',items:['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo']},{name:'editing',items:['Find','Replace']},'/',{name:'basicstyles',items:['Bold','Italic','Underline','-','RemoveFormat']},{name:'paragraph',items:['NumberedList','BulletedList','-','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock']},{name:'links',items:['Link','Unlink','Anchor']},{name:'insert',items:['Image','Table','HorizontalRule','SpecialChar']},{name:'styles',items:['Styles','Format']},]};break;case'community_profile':var config={toolbar:[{name:'basicstyles',items:['Bold','Italic','Underline','-','RemoveFormat','-','SpecialChar']},{name:'paragraph',items:['NumberedList','BulletedList']},{name:'commands',items:['Undo','Redo']},{name:'links',items:['Link','Unlink']},]};break;case'minimal':default:var config={toolbar:[{name:'basicstyles',items:['Bold','Italic','Underline','-','RemoveFormat','-','Image','SpecialChar']},{name:'paragraph',items:['NumberedList','BulletedList','-','Outdent','Indent']},{name:'links',items:['Link','Unlink','Anchor']},]};}
return config;}};var objFormController={"objHashContainer":new Object,"arrAjaxValidationPatternContainer":new Array,getValidationListeners:function(objFormField){var arrElements=[];var strClasses=$(objFormField).attr('class');var arrClass=strClasses.split(' ');var strRuleIdentifier='validation_listener_';for(var i=0;i<arrClass.length;i++){strClass=arrClass[i];if(strClass.indexOf(strRuleIdentifier)==0){strElementName=strClass.substring(20);var objElement=$('[name='+strElementName+']');if(objElement.length>0){arrElements.push(objElement);}}}
return arrElements;},validateFormField:function(objFormField){if(objFormField.hasClass('noajaxvalidation')){return true;}
strFieldName=$(objFormField).attr('name');strFieldId=$(objFormField).attr('id');mixedValue=objFormController.getFieldValue(objFormField);objFormFieldContainer=$(objFormField).parents('.formField:first');if(objPattern=this.getAjaxValidationPattern(strFieldName)){var strPattern=objPattern.strPattern;var bolValuesIncomplete=false;for(intIndex in objPattern.arrFields){strField=objPattern.arrFields[intIndex];strValue=$('[name="'+strField+'"]').val();if(strValue==''){bolValuesIncomplete=true;}
strPattern=strPattern.replace(strField,strValue);}
strFieldName=objPattern.strValidationFieldName;mixedValue=strPattern;var bolErrors=false;if(bolValuesIncomplete&&!bolErrors){return true;}}
if($(objFormField).is('[type=checkbox]')){strFieldName=strFieldName.replace(/\[.*\]/,'');}
strFormId=this.getFormId(objFormField);arrValidationContextFields=this.getValidationContextFields(objFormField);var objParams=new Object();if(arrValidationContextFields.length>0){var objContext=new Object();for(i=0;i<arrValidationContextFields.length;i++){objContextElement=arrValidationContextFields[i];strContextElementFieldName=$(objContextElement).attr('name');mixedContentElementValue=objFormController.getFieldValue(objContextElement);objContext[strContextElementFieldName]=mixedContentElementValue;}
objParams.context=objContext;}
objParams.formkey=strFormId;objParams.field=strFieldName;objParams.fieldId=strFieldId;objParams.val=mixedValue;objParams.returntype='jsonp';if($('#con_sec_id').length){var strConfSec=$('#con_sec_id').val();objParams.con_sec=strConfSec;}
if($('#form_extend_id').length){var strFormStruct=$('#form_extend_id').val();objParams.form_extend=strFormStruct;}
var strUrl=objEnvironmentController.getServiceUrl()
+'/'+objCultureController.getUrlLanguage()
+'/form/validatefield/';$.ajax({dataType:'jsonp',jsonp:'validate_field_jsonp_'+strFieldName,type:'GET',url:strUrl,data:objParams,success:function(data){var strMarkup=data.markup;var strFieldId=data.fieldId;if(strMarkup&&strFieldId){objNewFormFieldContainer=$(strMarkup);objFormFieldContainer=$('#'+strFieldId).parents('.formField:first');objFormFieldContainer.after(objNewFormFieldContainer);objFormFieldContainer.remove();objTooltipController.rebindTooltips(objNewFormFieldContainer);objTooltipController.translateInlineTooltips();if(objNewFormFieldContainer.children('.error:first').length==0){if(arrValidationContextFields.length){for(i=0;i<arrValidationContextFields.length;i++){objContextElement=arrValidationContextFields[i];if(objContextElement.id!=objFormField.id){if($(objContextElement).parent().hasClass('error')){objFormController.validateFormField(objContextElement);}}}}}}else{}
var bolHasErros=objFormController.hasFormElementErrors($('#'+strFormId));if(!bolHasErros){objErrorContainer=$('#'+strFormId).parent().children('.formErrorMessageContainer:first');if($(objErrorContainer).length>0){$(objErrorContainer).remove();}}}});var arrValidationListeners=objFormController.getValidationListeners(objFormField);if(arrValidationListeners.length>0){for(var intListener in arrValidationListeners){var objListener=arrValidationListeners[intListener];objFormController.validateFormField(objListener);}}},hasFormElementErrors:function(objForm){arrErrors=$(objForm).find('.formField .error');if(arrErrors.length>0){return true;}
else{return false;}},getFormContext:function(objFormContainer){var objData=new Object();$(objFormContainer).find('input').each(function(){if($(this).attr('type')=='checkbox'){if(this.name.match(/^.*\[\]$/)){if(this.checked==true){var strValue=this.value;var strName=this.name.substring(0,this.name.length-2);if(objData[strName]==undefined){var objParms=new Object();objData[strName]=objParms;}
var objParams=objData[strName];var intCount=0;for(var i in objParams){intCount++;}
objParams[intCount]=this.value;objData[strName]=objParams;}}
else if($(this).attr('type')=='radio'){if(this.checked==true){objData[this.name]=this.value;}}
else{if(this.checked==true){mixedCheckboxValue=1;}
else{mixedCheckboxValue=0;}
objData[this.name]=mixedCheckboxValue;}}
else{objData[this.name]=encodeURIComponent(this.value);}});$(objFormContainer).find('select').each(function(){if($(this).attr('multiple')){strFieldName=this.name;var objParam=new Object();$(this).children('option').each(function(index){if($(this).attr('selected')==true){objParam[index]=this.value;}});objData[strFieldName]=objParam;}
else{objData[this.name]=this.value;}});$(objFormContainer).find('textarea').each(function(){objData[this.name]=encodeURIComponent(this.value);});return objData;},getFieldValue:function(objFormField){var mixedValue='';if($(objFormField).is('select')){mixedValue=$(objFormField).attr('value');}
else if($(objFormField).is('input')){mixedValue=$(objFormField).val();if($(objFormField).attr('type')=='radio'){}
if($(objFormField).attr('type')=='checkbox'){if(!$(objFormField).is(':checked')){mixedValue='';}}}
return mixedValue;},getFormId:function(objFormField){var objForm=$(objFormField).parents('form:first');return objForm.attr('id');},getValidationContextFields:function(objFormField){var arrElements=[];var strClasses=$(objFormField).attr('class');var arrClass=strClasses.split(' ');var strRuleIdentifier='depends_on_';for(var i=0;i<arrClass.length;i++){strClass=arrClass[i];if(strClass.indexOf(strRuleIdentifier)==0){strElementName=strClass.substring(11);var objElement=$('[name='+strElementName+']');if(objElement.length>0){arrElements.push(objElement);}}}
return arrElements;},initAjaxForm:function(strFormId){var options={success:function(data){objLightboxController.createByMarkup(data);objLoaderBar.destroyMouseLoader();},beforeSend:function(e){$('#'+strFormId+' input[type=submit]').click(function(){return false;});objLoaderBar.createMouseLoader(e);}};$('#'+strFormId).ajaxForm(options);},initAjaxFormJsonP:function(strFormId,strIdentifier){var options={dataType:'jsonp',jsonp:strIdentifier,type:'GET',success:function(data){objLightboxController.createByMarkup(data.markup);objLoaderBar.destroyMouseLoader();},beforeSend:function(e){$('#'+strFormId+' input[type=submit]').click(function(){return false;});objLoaderBar.createMouseLoader(e);}};$('#'+strFormId).ajaxForm(options);},addAjaxValidationPattern:function(strValidationFieldName,strPattern,arrFields){objTemp=new Object();objTemp.strValidationFieldName=strValidationFieldName;objTemp.strPattern=strPattern;objTemp.arrFields=arrFields;this.arrAjaxValidationPatternContainer.push(objTemp);},getAjaxValidationPattern:function(strFieldName){if(this.arrAjaxValidationPatternContainer.length){for(intIndex in this.arrAjaxValidationPatternContainer){objEntry=this.arrAjaxValidationPatternContainer[intIndex];if(objEntry.arrFields.length){for(intInnerIndex in objEntry.arrFields){if(objEntry.arrFields[intInnerIndex]==strFieldName){return objEntry;}}}}}
return false;},toggleTinyMce:function(id){if(!tinyMCE.get(id)){tinyMCE.execCommand('mceAddControl',false,id);}
else{tinyMCE.execCommand('mceRemoveControl',false,id);}},getTinyMceConfig:function(){var config={width:'430',plugins:"inlinepopups,fullscreen",theme:"advanced",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",style_formats:[{title:'H1 - Headline',block:'h1'},{title:'H2 - Headline',block:'h2'},{title:'H2 - Headline (first)',block:'h2',classes:'first'},{title:'H3 - Headline',block:'h3'},{title:'H3 - Headline (first)',block:'h3',classes:'first'},{title:'Linklist',block:'ol',classes:'linkList'},{title:'External Link',inline:'span',classes:'externalLink'},{title:'Flexikon Link',inline:'span',classes:'flexikonLink'}],theme_advanced_blockformats:"p,h2,h3",theme_advanced_buttons1:"bold,italic,underline,|,styleselect,|,"+"undo,redo,|,link,unlink,anchor,image,|,outdent,indent,|,code,fullscreen",theme_advanced_buttons2:"",theme_advanced_buttons3:""};return config;},multiplyField:function(event){var objElement=event.target;var objParams=new Object();var objContainer=$(objElement).parents('.multiplyFormElementContainer');var arrFormField=$(objContainer).children().find('input, select');if($('#con_sec_id').length){var strConfSec=$('#con_sec_id').val();objParams.con_sec=strConfSec;}
var strFormId=this.getFormId(objElement);objParams.formkey=strFormId;if(arrFormField.length>1){for(var i in arrFormField){var objFormField=$(arrFormField[i]);if(objFormField.attr('type')!='hidden'){var strElementName=objFormField.attr('name');}}}
else{var objFormField=$(arrFormField[0]);var strElementName=objFormField.attr('name');}
objParams.form_element=strElementName;if($('#form_extend_id').length){var strFormExtension=$('#form_extend_id').val();objParams.form_extend=strFormExtension;}
$.ajax({dataType:'json',type:'post',url:'/'+objCultureController.getUrlLanguage()+'/form/multiplyfield/',data:objParams,success:function(data){var strFormExtension=data.form_extend;var strFormElementMarkup=data.form_element_markup;var bolStatus=data.status;if(bolStatus){$('#form_extend_id').val(strFormExtension);var objParentFormField=$(objContainer).parents('.formField');objParentFormField.after(strFormElementMarkup);}
objLoaderBar.destroyMouseLoader();},beforeSend:function(e){objLoaderBar.createMouseLoader(event);},error:function(){objLoaderBar.destroyMouseLoader();}});},deleteField:function(event){var objElement=event.target;var objParams=new Object();var objContainer=$(objElement).parents('.multiplyFormElementContainer');var arrFormField=$(objContainer).children().find('input, select');if($('#con_sec_id').length){var strConfSec=$('#con_sec_id').val();objParams.con_sec=strConfSec;}
var strFormId=this.getFormId(objElement);objParams.formkey=strFormId;if(arrFormField.length>1){for(var i in arrFormField){var objFormField=$(arrFormField[i]);if(objFormField.attr('type')!='hidden'){var strElementName=objFormField.attr('name');}}}
else{var objFormField=$(arrFormField[0]);var strElementName=objFormField.attr('name');}
objParams.form_element=strElementName;if($('#form_extend_id').length){var strFormExtension=$('#form_extend_id').val();objParams.form_extend=strFormExtension;}
$.ajax({dataType:'json',type:'post',url:'/'+objCultureController.getUrlLanguage()+'/form/deletefield/',data:objParams,success:function(data){var strFormExtension=data.form_extend;var bolStatus=data.status;if(bolStatus){$('#form_extend_id').val(strFormExtension);$(objContainer).remove();}
objLoaderBar.destroyMouseLoader();},beforeSend:function(e){objLoaderBar.createMouseLoader(event);},error:function(){objLoaderBar.destroyMouseLoader();}});}};
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/bindings/tooltip.bindings.js */
$(document).ready(function(){$('.tooltipActivator').each(function(){strClasses=$(this).attr('class');var arrClasses=strClasses.split(' ');for(var i in arrClasses){var strClass=arrClasses[i];var arrMatch=strClass.match(/^tooltip_translation_key_(.+)$/);if(arrMatch!=null){var strTranslationKey=arrMatch[1];if(!objTooltipController.isTranslationKey(strTranslationKey)){objTooltipController.objTranslations[strTranslationKey]=new Object;objTooltipController.objTranslations[strTranslationKey]['object']=$(this);objTooltipController.arrTranslationKeys.push(strTranslationKey);}
break;}}});if(objTooltipController.arrTranslationKeys.length>0){objTooltipController.translateTooltips(objTooltipController.arrTranslationKeys);}});var objTooltipController={objTranslations:new Object,arrTranslationKeys:new Array,isTranslationKey:function(strTranslationKey){for(var i in objTooltipController.objTranslations){if(i==strTranslationKey){return true;}}
return false;},isTranslated:function(strTranslationKey){if(objTooltipController.objTranslations[strTranslationKey]!=undefined){return true;}
return false;},translateTooltip:function(strTranslationKey){objTooltipController.translateTooltips(new Array(strTranslationKey));},translateTooltips:function(arrTranslationKeys){var strUrl='/de/tooltip/translatetooltips';var objParams=new Object();objParams.translations=arrTranslationKeys;$.ajax({dataType:'jsonp',jsonp:'translate_tooltip',type:'get',url:strUrl,data:objParams,success:function(data){var arrTranslations=data.translations;for(var i in objTooltipController.objTranslations){objTooltipController.objTranslations[i]['tooltip_text']=arrTranslations[i];var objHelp=$(objTooltipController.objTranslations[i]['object']);var strTranslation=arrTranslations[i];objTooltipController.writeTranslation(objHelp,strTranslation);objTooltipController.bindTooltip(objHelp);}}});},writeTranslation:function(objElement,strTranslation){var objTranslationContainer=$('<span class="inlineTooltipText">'+strTranslation+'</span>');var objTooltipContainer=$(objElement).wrap('<span />');objTooltipContainer.append(objTranslationContainer);},rebindTooltips:function(objContainer){$(objContainer).find('.tooltip').each(function(){objTooltipController.bindTooltip($(this));});},translateInlineTooltips:function(){$('.tooltipActivator').each(function(){strClasses=$(this).attr('class');var arrClasses=strClasses.split(' ');for(var i in arrClasses){var strClass=arrClasses[i];var arrMatch=strClass.match(/^tooltip_translation_key_(.+)$/);if(arrMatch!=null){var strTranslationKey=arrMatch[1];if(objTooltipController.isTranslated(strTranslationKey)){objTranslationText=$(this).children('.inlineTooltipText')[0];if(objTranslationText==undefined){var strTranslation=objTooltipController.objTranslations[strTranslationKey]['tooltip_text'];objTooltipController.writeTranslation($(this),strTranslation);}
objTooltipController.bindTooltip($(this));}
else{}
break;}}});},bindTooltip:function(objElement){if($(objElement).hasClass('tooltip')){$(objElement).tooltip({bodyHandler:function(){var content=$(this).parent().prev().html();return content;},positionTop:true,left:-38,fade:true,latency:0,delay:100});}
if($(objElement).hasClass('tooltipActivator')){$(objElement).tooltip({bodyHandler:function(){var objText=$(this).children('.inlineTooltipText')[0];var strText=$(objText).html();return strText;},positionTop:true,left:-38,fade:true,latency:0,delay:100});}}};
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/classes/controllers/form.ajaxupload.js */
var objAjaxUploadController={ajaxFileUpload:function(strElementId,strEncryptedOptions,strUrl,strCallBack){objParams=new Object();objParams.encryptedSettings=strEncryptedOptions;$.ajaxFileUpload({url:strUrl,secureuri:false,fileElementId:strElementId,dataType:'json',data:objParams,success:function(data,status){objLoaderBar.destroyMouseLoader();if(typeof(data.error)!='undefined'){}
eval(strCallBack+'(data, status)');},beforeSend:function(e){objLoaderBar.createMouseLoader(e);},error:function(data,status,e){}});return false;}};
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/vendors/jquery/jquery.ajaxfileupload.js */
jQuery.extend({createUploadIframe:function(id,uri)
{var frameId='jUploadFrame'+id;var iframeHtml='<iframe id="'+frameId+'" name="'+frameId+'" style="position:absolute; top:-9999px; left:-9999px"';if(window.ActiveXObject)
{if(typeof uri=='boolean'){iframeHtml+=' src="'+'javascript:false'+'"';}
else if(typeof uri=='string'){iframeHtml+=' src="'+uri+'"';}}
iframeHtml+=' />';jQuery(iframeHtml).appendTo(document.body);return jQuery('#'+frameId).get(0);},createUploadForm:function(id,fileElementId,data)
{var formId='jUploadForm'+id;var fileId='jUploadFile'+id;var form=jQuery('<form  action="" method="POST" name="'+formId+'" id="'+formId+'" enctype="multipart/form-data"></form>');if(data)
{for(var i in data)
{jQuery('<input type="hidden" name="'+i+'" value="'+data[i]+'" />').appendTo(form);}}
var oldElement=jQuery('#'+fileElementId);var newElement=jQuery(oldElement).clone();jQuery(oldElement).attr('id',fileId);jQuery(oldElement).before(newElement);jQuery(oldElement).appendTo(form);jQuery(form).css('position','absolute');jQuery(form).css('top','-1200px');jQuery(form).css('left','-1200px');jQuery(form).appendTo('body');return form;},ajaxFileUpload:function(s){s=jQuery.extend({},jQuery.ajaxSettings,s);var id=new Date().getTime();var form=jQuery.createUploadForm(id,s.fileElementId,(typeof(s.data)=='undefined'?false:s.data));var io=jQuery.createUploadIframe(id,s.secureuri);var frameId='jUploadFrame'+id;var formId='jUploadForm'+id;if(s.global&&!jQuery.active++)
{jQuery.event.trigger("ajaxStart");}
var requestDone=false;var xml={};if(s.global)
jQuery.event.trigger("ajaxSend",[xml,s]);var uploadCallback=function(isTimeout)
{var io=document.getElementById(frameId);try
{if(io.contentWindow)
{xml.responseText=io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;xml.responseXML=io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;}else if(io.contentDocument)
{xml.responseText=io.contentDocument.document.body?io.contentDocument.document.body.innerHTML:null;xml.responseXML=io.contentDocument.document.XMLDocument?io.contentDocument.document.XMLDocument:io.contentDocument.document;}}catch(e)
{jQuery.handleError(s,xml,null,e);}
if(xml||isTimeout=="timeout")
{requestDone=true;var status;try{status=isTimeout!="timeout"?"success":"error";if(status!="error")
{var data=jQuery.uploadHttpData(xml,s.dataType);if(s.success)
s.success(data,status);if(s.global)
jQuery.event.trigger("ajaxSuccess",[xml,s]);}else
jQuery.handleError(s,xml,status);}catch(e)
{status="error";jQuery.handleError(s,xml,status,e);}
if(s.global)
jQuery.event.trigger("ajaxComplete",[xml,s]);if(s.global&&!--jQuery.active)
jQuery.event.trigger("ajaxStop");if(s.complete)
s.complete(xml,status);jQuery(io).unbind();setTimeout(function()
{try
{jQuery(io).remove();jQuery(form).remove();}catch(e)
{jQuery.handleError(s,xml,null,e);}},100);xml=null;}};if(s.timeout>0)
{setTimeout(function(){if(!requestDone)uploadCallback("timeout");},s.timeout);}
try
{var form=jQuery('#'+formId);jQuery(form).attr('action',s.url);jQuery(form).attr('method','POST');jQuery(form).attr('target',frameId);if(form.encoding)
{jQuery(form).attr('encoding','multipart/form-data');}
else
{jQuery(form).attr('enctype','multipart/form-data');}
jQuery(form).submit();}catch(e)
{jQuery.handleError(s,xml,null,e);}
jQuery('#'+frameId).load(uploadCallback);return{abort:function(){}};},uploadHttpData:function(r,type){var data=!type;data=type=="xml"||data?r.responseXML:r.responseText;if(type=="script")
jQuery.globalEval(data);if(type=="json")
eval("data = "+data);if(type=="html")
jQuery("<div>").html(data).evalScripts();return data;}});
/* /www-root/doccheck/apps.doccheck.com/htdocs/js/bindings/rating.bindings.js */
$(document).ready(function(){$('.ratingLikeLink,.ratingDislikeLink').live('click',function(e){var bolSendRequest=false;try{if($(this).hasClass('ratingLikeLink')){intValue=1;strIdentifier=this.id.match(/^ratingLikeLink_(\w+)$/)[1];}
else{intValue=-1;strIdentifier=this.id.match(/^ratingDislikeLink_(\w+)$/)[1];}
if(strIdentifier){objContainer=$('#rating_'+strIdentifier);if(objContainer){strUrl=$(objContainer).data('strUrl');objData=$(objContainer).data('objParams');if(strUrl&&objData){bolSendRequest=true;objData.v=intValue;}}}}
catch(e){}
if(!bolSendRequest){return false;}
$.ajax({url:strUrl,type:"get",data:objData,dataType:'jsonp',jsonp:'rateobject_jsonp',success:function(data){if(typeof objLoaderBar!="undefined"){objLoaderBar.destroyMouseLoader();}
arrValues=data.value_count;if(arrValues!==undefined){intLikeCount=0;if(arrValues[1]){intLikeCount=arrValues[1];}
intDislikeCount=0;if(arrValues[-1]){intDislikeCount=arrValues[-1];}
objCountLike=$('#ratingCountLike_'+strIdentifier);objCountLike.html(intLikeCount);objCountDislike=$('#ratingCountDislike_'+strIdentifier);objCountDislike.html(intDislikeCount);}},beforeSend:function(){if(typeof objLoaderBar!="undefined"){objLoaderBar.createMouseLoader(e);}},error:function(){if(typeof objLoaderBar!="undefined"){objLoaderBar.destroyMouseLoader();}}});return false;});});
