var RWS = Aris.extend({
	pageReady: function() {
		forEach( document.getElementsByTagName('a'), this.popUpSafe );

		var divs = DOM.match("#aim div.col")
		var max = 0;
		for(var i=0,div;div=divs[i];i++) {
			max = Math.max(max, div.offsetHeight);
		}
		for(var i=0,div;div=divs[i];i++) {
			div.style.height = max +'px';
		}
		
	},
	popUpSafe: function(a) {
		var _files = /\.(pdf|doc)/i;
		var _rels = "external,sendtofriend,printpage";
		if ( a.href.length > 0 && (  _files.test(a.href) || (a.rel.length > 0 && _rels.indexOf(a.rel) > -1) )) {
			a.onclick = function() { return !Aris.popWin(this.href); }	
		}
		else if (a.rel.indexOf(':') > 0) {
			a.onclick = function(e) { args = this.rel.split(':'); return !Aris.popWin(this.href,args[0],args[1],args[2]);  }
		}
	}
});

