function imageLinkSlideFormCookie(a,d,k,i,j,h){var g=readCookie(a);if(g)if(g==1){linktochange=a+"_opener";var f=document.getElementById(linktochange),e=document.getElementById(linktochange).className,b,c=new Boolean;document.getElementById(linktochange).innerHTML=h;if(d>0){b=e.replace("_off","_on");c=1}else{b=e.replace("_on","_off");c=0}f.setAttribute("className",b);f.setAttribute("class",b);closingStr="document.getElementById('"+linktochange+"').href = 'javascript: imageLinkSlidedown(\""+a+'",'+-d+","+k+","+i+',"'+h.replace("'","\\\\'")+'","'+j.replace("'","\\\\'")+"\")'";createCookie(a,c,100);slidedown(a,d,1,i,closingStr)}}function imageLinkSlidedown(a,b,e,f,c,d){imageLinkSlidedownCookie(a,b,e,f,c,d,false)}function imageLinkSlidedownCookie(a,c,f,g,j,e,k){linktochange=a+"_opener";var i=document.getElementById(linktochange),h=document.getElementById(linktochange).className,b,d=new Boolean;document.getElementById(linktochange).innerHTML=e;if(c>0){b=h.replace("_off","_on");d=1}else{b=h.replace("_on","_off");d=0}i.setAttribute("className",b);i.setAttribute("class",b);document.getElementById(linktochange).href="javascript: void(0)";if(k==false)closingStr="document.getElementById('"+linktochange+"').href = 'javascript: imageLinkSlidedown(\""+a+'",'+-c+","+f+","+g+',"'+e.replace("'","\\\\'")+'","'+j.replace("'","\\\\'")+"\")'";else{closingStr="document.imageLinkSlidedownCookie('"+linktochange+"').href = 'javascript: imageLinkSlidedown(\""+a+'",'+-c+","+f+","+g+',"'+e.replace("'","\\\\'")+'","'+j.replace("'","\\\\'")+'"true")\'';createCookie(a,d,100)}slidedown(a,c,f,g,closingStr)}function linkSlidedown(a,b,c,d){linktochange=a+"_opener";document.getElementById(linktochange).href="javascript: void(0)";closingStr="document.getElementById('"+linktochange+"').href = 'javascript: linkSlidedown(\""+a+'",'+-b+","+c+","+d+")'";slidedown(a,b,c,d,closingStr)}function slidedown(b,f,c,d,e){startHeight=parseInt(document.getElementById(b).style.height);stepValue=0;var a=0;animationStr="";animationStr=animationStr+"setTimeout ( \"document.getElementById('"+b+"').style.visibility = 'visible'\" , 0 ); ";if(c==1)animationStr=animationStr+"setTimeout ( \"document.getElementById('"+b+"').style.height = '"+Math.round(f+startHeight)+"' + 'px'\" , "+a*d+" ); ";else{for(a=0;a<c;a++){animationStr=animationStr+"setTimeout ( \"document.getElementById('"+b+"').style.height = '"+Math.round(stepValue*f+startHeight)+"' + 'px'\" , "+a*d+" ); ";stepValue=Math.pow(a/c,.4)}if(Math.round(stepValue*f+startHeight)<.5)animationStr=animationStr+"setTimeout ( \"document.getElementById('"+b+"').style.visibility = 'hidden'\" , "+a*d+" ); "}e=e.replace(/\"/g,'\\"');animationStr=animationStr+'setTimeout ( "'+e+'" , '+c*d+" ); ";changeheight(animationStr);animationStr=""}function changeheight(a){eval(a);a=""}function createCookie(e,d,b){if(b){var a=new Date;a.setTime(a.getTime()+b*24*60*60*1e3);var c="; expires="+a.toGMTString()}else var c="";document.cookie=e+"="+d+c+"; path=/"}function readCookie(e){for(var c=e+"=",d=document.cookie.split(";"),b=0;b<d.length;b++){var a=d[b];while(a.charAt(0)==" ")a=a.substring(1,a.length);if(a.indexOf(c)==0)return a.substring(c.length,a.length)}return null}function eraseCookie(a){createCookie(a,"",-1)}
