

if(prototype == 1) {
	Event.observe(window, 'load', function() {
	    $$('a[rel="external"]').each(function(link){
	        if(link.readAttribute('href') != '' && link.readAttribute('href') != '#'){
	            link.writeAttribute('target','_blank');
	        }
	    });
	});
}

function ArrayToGet(array,suffix) {
	
	var pars;
	for( var i = 0, n = array.length;  i < n;  ++i ) {
        el = array[i];
        pars += "&"+suffix+"_"+i+"="+el;
    }
    
    return pars;
}

if(jquery == 1) {
	
	$(document).ready(function () {

       $('a[rel="external"]').each(function(){
			  $(this).attr('target', '_blank');
		});
        

	});

}

function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
