function updateHitCount(a,b,c){if(!b&&b!=0)b="&ndash;";if(c!="0"&&c!="485")b="Fehler!";jQuery("#"+a+"_hitcnt").empty().append(b);b=parseInt(b);if(!isNaN(b)){overall_hitcount=overall_hitcount+b;if(b!=0&&c!="485"){jQuery("#"+a+"_hcname span").wrap('<a href="#'+a+'_anchor"></a>')}}else{jQuery("#"+a+"_hcname span").wrap('<a href="#'+a+'_anchor"></a>')}jQuery('#overall_hitcnt').empty().append(overall_hitcount+"")}function clear_form(a){var i=0;while(document.forms[a].elements[i]){if(document.forms[a].elements[i].type=="text"){document.forms[a].elements[i].value=""}if(document.forms[a].elements[i].type=="checkbox"||document.forms[a].elements[i].type=="radio"){document.forms[a].elements[i].checked=false}if(document.forms[a].elements[i].type=="select-one"||document.forms[a].elements[i].type=="select-multiple"){document.forms[a].elements[i].selectedIndex=0}i++}}function cartPut(c){var d;if(c.href!=undefined)d=c;else d=this;var f=String(d);var g=_getParam(f);jQuery(d).append('<img src="/'+g["LOCATION"]+'/img/loading.gif" style="margin-left:0.5em;"/>');jQuery.get('/Digibib',g,function(a,b){jQuery(d).find('img').remove();if(b=="success"){ec=0;try{ec=parseInt(a.getElementsByTagName('error').item(0).firstChild.data)}catch(e){ec=931}if(ec>0){jQuery(d).parent().append('<p class="warning">Fehler '+ec+'!</p>')}else{jQuery('#jsmerkliste').empty().append(a.getElementsByTagName('cartlistlength').item(0).firstChild.data);jQuery(d).replaceWith("<del>"+jQuery(d).text()+"</del>")}}else{jQuery(d).parent().append('<p class="warning">'+"Fehler!"+'</p>')}});return false}function exportItem(d){var e;if(d.href!=undefined)e=d;else e=this;var f=String(e);var g=_getParam(f);jQuery(e).append('<img src="/'+g["LOCATION"]+'/img/loading.gif" style="margin-left:0.5em;"/>');jQuery.get('/Digibib',g,function(a,b){jQuery(e).find('img').remove();if(b=="success"){ec=parseInt(a.getElementsByTagName('error').item(0).firstChild.data);if(ec>0){var c=jQuery(e).parent();c.find('p.warning').remove();c.append('<p class="warning">Fehler '+ec+'!</p>')}else{jQuery(e).replaceWith("<del>"+jQuery(e).text()+"</del>")}}else{var c=jQuery(e).parent();c.find('p.warning').remove();c.append('<p class="warning">'+"Fehler!"+'</p>')}});return false}function getFull(d){var f;if(d.href!=undefined)f=d;else f=this;var g=String(f);var h=jQuery(f).parent().nextAll("dd.short:first");var i=jQuery(f).parent().nextAll("dd.long:first");if(alreadyIncluded[g]==true){if(h.is(':visible')){h.slideToggle('',function(){if(jQuery.browser.msie){i.find('dd.auto-tabs-content').css('overflow','visible');i.find('div').css('zoom','1')}i.slideToggle()})}else{if(h.is(':hidden'))h.slideDown('',function(){i.slideUp()});else i.slideToggle()}try{if(jQuery(f).text()==getFull_more)jQuery(f).text(getFull_less);else jQuery(f).text(getFull_more)}catch(e){}return false}var j=_getParam(g);h.hide();if(!i.children('em').length>0){i.append('<img src="/'+j["LOCATION"]+'/img/loading.gif" /> <em>Lade Daten</em>').css("display","block").slideDown()}jQuery.get('/Digibib',j,function(b,c){if(c=="success"){i.slideUp("",function(){i.empty().append(b);alreadyIncluded[g]=true;if(i.children('dl.no-auto-tabs').length>0){var a=new cAutoTabs;a.initialize(i.children('dl.no-auto-tabs'),a)}if(jQuery.browser.msie){if(i.children('dl.auto-tabs-content').length>0){i.find('dd.auto-tabs-content').css('overflow','visible')}i.find('div').css('zoom','1')}i.slideDown()})}else{i.empty().append('<p class="warning">'+"Fehler!"+'</p>')}try{if(getFull_more&&getFull_more!="")jQuery(f).text(getFull_less)}catch(e){}});return false}function _getParam(a){var b={};if(!(a=='')){a=a.substring(a.indexOf("?")+1,a.length);var c=a.split('&');for(var i=0;i<c.length;i++){var d=c[i].split('=');if(d[1]&&!b[d[0]]){b[d[0]]=decodeURIComponent(d[1])}}b['TEMPLATE']=b['SERVICE']+"."+b['SUBSERVICE']+'_AJAX';b['ERRORTEMPLATE']='TEMPLATE.ERROR_AJAX'};return b}function cDrillDown(){var b=this;var c;this.initialize=function(a){c=a;jQuery(c).children(':gt(2)').hide();if(jQuery(c).children(':hidden').length>0){jQuery(c).append('<li><a href="#" class="ddmore func">mehr</a></li>');jQuery(c).find('.ddmore').bind("click",b.showMore)}},this.showMore=function(){jQuery(c).children(':hidden').slice(0,6).show();if(jQuery(c).find('.ddless').length==0){jQuery(c).find('.ddmore').before('<a href="#" class="ddless func">weniger</a><span class="spacer"> | </span>');jQuery(c).find('.ddless').bind("click",b.showLess)}if(jQuery(c).children(':hidden').length==0){jQuery(c).find('.spacer').remove();jQuery(c).find('.ddmore').remove()}return false},this.showLess=function(){end=jQuery(c).children(':visible').length-1;var a=jQuery(c).children(':visible').length;if(a>10){a=-7}else{a=(a-3)*-1}jQuery(c).children(':visible').slice(a,end).hide();if(jQuery(c).find('.ddmore').length==0){jQuery(c).find('.ddless').after('<span class="spacer"> | </span><a href="#" class="ddmore func">mehr</a>');jQuery(c).find('.ddmore').bind("click",b.showMore)}if(jQuery(c).children(':visible').length==4){jQuery(c).find('.ddless').remove();jQuery(c).find('.spacer').remove()}return false}}var newWindow=null;function closeWin(){if(newWindow!=null){if(!newWindow.closed)newWindow.close()}}function popUpWin(a,b,c,d){closeWin();b=b.toLowerCase();if(b=="fullscreen"){c=screen.availWidth;d=screen.availHeight}var e="";if(b=="standard")e="resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+c+",height="+d+",top=0,left=0";if(b=="console"||b=="fullscreen")e="resizable,toolbar=no,location=no,scrollbars=yes,width="+c+",height="+d+",left=0,top=0";var f="";if(a.indexOf("?")!=-1){f=a+'&INPOPUP=TRUE'}else{f=a+'?INPOPUP=TRUE'}newWindow=window.open(f,'newWin',e);newWindow.focus()}function doPopUp(e){var t="console";var w="780";var h="580";attribs=this.rel.split(" ");if(attribs[1]!=null){t=attribs[1]}if(attribs[2]!=null){w=attribs[2]}if(attribs[3]!=null){h=attribs[3]}popUpWin(this.href,t,w,h);if(window.event){window.event.returnValue=false;window.event.cancelBubble=true}else if(e){e.stopPropagation();e.preventDefault()}}function fill_searchparam(a){var b=jQuery(this).attr('href');jQuery('form.searchform input[type="text"][name^="QUERY_"], form.searchform select').each(function(){var f=jQuery(this);if(f.attr('value')!="")b+='&'+f.attr('name')+'='+f.attr('value')});jQuery(this).attr('href',b)};function clearInput(a){var b=jQuery(this).offset().left+jQuery(this).width();if(a.pageX>(b-11)){jQuery(this).attr('value','')}}function delBtnShow(a){if(!jQuery(this).attr('value')==''){jQuery(this).css('background-image','url(/img/del-input.png)');jQuery(this).css('background-position','right center');jQuery(this).css('background-repeat','no-repeat');jQuery(this).bind("click",clearInput)}}function delBtnHide(a){jQuery(this).css('background-image','url()');jQuery(this).unbind("click",clearInput)}jQuery(document).ready(function(){jQuery.ajaxSetup({cache:false});jQuery('a.js_cartPut').removeAttr("onclick").bind("click",cartPut);jQuery('a.js_getFull').removeAttr("onclick").bind("click",getFull);jQuery('a.js_xBibSonomy').removeAttr("onclick").bind("click",exportItem);jQuery('a.js_xRefWorks').removeAttr("onclick").bind("click",exportItem);jQuery('a[rel^="popup"]').bind("click",doPopUp);jQuery('#col3_content input[type^="text"]').bind("mouseover",delBtnShow);jQuery('#col3_content input[type^="text"]').bind("mouseout",delBtnHide);var d=jQuery('ul.ddown');$.each(d,function(a,b){var c=new cDrillDown();c.initialize(b,c)});SearchMaskMoreOptions=false});
