/*--------------------------------------------------------------------------*
 *  
 *  heightLine JavaScript Library beta4
 *  
 *  MIT-style license. 
 *  
 *  2007 Kazuma Nishihata 
 *  http://www.webcreativepark.net
 *  
 *--------------------------------------------------------------------------*/
new function(){function A(){this.className="heightLine";this.parentClassName="heightLineParent";reg=new RegExp(this.className+"-([a-zA-Z0-9-_]+)","i");objCN=new Array();var J=document.getElementsByTagName?document.getElementsByTagName("*"):document.all;for(var G=0;G<J.length;G++){var C=J[G].className.split(/\s+/);for(var F=0;F<C.length;F++){if(C[F]==this.className){if(!objCN["main CN"]){objCN["main CN"]=new Array();}objCN["main CN"].push(J[G]);break;}else{if(C[F]==this.parentClassName){if(!objCN["parent CN"]){objCN["parent CN"]=new Array();}objCN["parent CN"].push(J[G]);break;}else{if(C[F].match(reg)){var E=C[F].match(reg);if(!objCN[E]){objCN[E]=new Array();}objCN[E].push(J[G]);break;}}}}}var I=document.createElement("div");var H=document.createTextNode("S");I.appendChild(H);I.style.visibility="hidden";I.style.position="absolute";I.style.top="0";document.body.appendChild(I);var D=I.offsetHeight;changeBoxSize=function(){for(var P in objCN){if(objCN.hasOwnProperty(P)){if(P=="parent CN"){for(var O=0;O<objCN[P].length;O++){var N=0;var Q=objCN[P][O].childNodes;for(var M=0;M<Q.length;M++){if(Q[M]&&Q[M].nodeType==1){Q[M].style.height="auto";N=N>Q[M].offsetHeight?N:Q[M].offsetHeight;}}for(var M=0;M<Q.length;M++){if(Q[M].style){var L=Q[M].currentStyle||document.defaultView.getComputedStyle(Q[M],"");var K=N;if(L.paddingTop){K-=L.paddingTop.replace("px","");}if(L.paddingBottom){K-=L.paddingBottom.replace("px","");}if(L.borderTopWidth&&L.borderTopWidth!="medium"){K-=L.borderTopWidth.replace("px","");}if(L.borderBottomWidth&&L.borderBottomWidth!="medium"){K-=L.borderBottomWidth.replace("px","");}Q[M].style.height=K+"px";}}}}else{var N=0;for(var O=0;O<objCN[P].length;O++){objCN[P][O].style.height="auto";N=N>objCN[P][O].offsetHeight?N:objCN[P][O].offsetHeight;}for(var O=0;O<objCN[P].length;O++){if(objCN[P][O].style){var L=objCN[P][O].currentStyle||document.defaultView.getComputedStyle(objCN[P][O],"");var K=N;if(L.paddingTop){K-=L.paddingTop.replace("px","");}if(L.paddingBottom){K-=L.paddingBottom.replace("px","");}if(L.borderTopWidth&&L.borderTopWidth!="medium"){K-=L.borderTopWidth.replace("px","");}if(L.borderBottomWidth&&L.borderBottomWidth!="medium"){K-=L.borderBottomWidth.replace("px","");}objCN[P][O].style.height=K+"px";}}}}}};checkBoxSize=function(){if(D!=I.offsetHeight){changeBoxSize();D=I.offsetHeight;}};changeBoxSize();setInterval(checkBoxSize,1000);window.onresize=changeBoxSize;}function B(F,D,C){try{F.addEventListener(D,C,false);}catch(E){F.attachEvent("on"+D,C);}}B(window,"load",A);};