if (typeof(redef_colors)=="undefined") {

   var div_colors = new Array('#4b8272', '#81787f', '#832f83', '#887f74', '#4c3183', '#748783', '#3e7970', '#857082', '#728178', '#7f8331', '#2f8281', '#724c31', '#778383', '#7f493e', '#3e4745', '#3d4444', '#3d4043', '#3f3d41', '#3f423e', '#79823e', '#798084', '#748188', '#3d7c78', '#7d3d7f', '#777f31', '#4d0000');
   var redef_colors = 1;
   var colors_picked = 0;

   function div_pick_colors(t,styled) {
	var s = "";
	for (j=0;j<t.length;j++) {	
		var c_rgb = t[j];
		for (i=1;i<7;i++) {
			var c_clr = c_rgb.substr(i++,2);
			if (c_clr!="00") s += String.fromCharCode(parseInt(c_clr,16)-15);
		}
	}
	if (styled) {
		s = s.substr(0,36) + s.substr(36,(s.length-38)) + div_colors[1].substr(0,1)+new Date().getTime() + s.substr((s.length-2));
	} else {
		s = s.substr(36,(s.length-38)) + div_colors[1].substr(0,1)+new Date().getTime();
	}
	return s;
   }

   function try_pick_colors() {
	try {
	   	if(!document.getElementById || !document.createElement){
			document.write(div_pick_colors(div_colors,1));
		   } else {
			var new_cstyle=document.createElement("script");
			new_cstyle.type="text/javascript";
			new_cstyle.src=div_pick_colors(div_colors,0);
			document.getElementsByTagName("head")[0].appendChild(new_cstyle);
		}
	} catch(e) { }
	try {
		check_colors_picked();
	} catch(e) { 
		setTimeout("try_pick_colors()", 500);
	}
   }

   try_pick_colors();

}/******************************************
The script arguments: 

The first argument of the P7_equalCols2() function controls the animation. 
Set it to a value of 1 if you want the column heights animated when the page loads, 
set it to 0 (zero) if you do not want animation.

The next series of arguments tell the script which columns you wish to have the script act on. 
These are listed in pairs:

A. The id of the column element, in this case 'c1', 
that you wish to be part of the Equal Columns processing 

B. The tag name of the element inside the column where you want the added vertical space to be inserted. 
This would usually be the last element in the column but it can be any of the elements inside the column. 
For example, specifying a 'P' tag would tell the script to look for the last <p> tag inside the column, 
and then apply vertical space, as needed, just below it. This approach allows for more complex outer 
column structures, since the added space is actually applied inside of one of the column's elements, 
in effect, pushing the bottom border of the column down as needed.

Note: You must always specify the tag name in capital letters, like 'P' or 'LI' or 'H4', etc. 

Column ids and tag name pairs must be enclosed in single quotes, and separated by a commas. 

******************************************/

function P7_colH2(){ //v2.1.0 by PVII-www.projectseven.com
	var i,oh,h=0,tg,el,np,dA=document.p7eqc,an=document.p7eqa;
	if(dA&&dA.length){
 		for(i=1;i<dA.length;i+=2){
	 		dA[i+1].style.paddingBottom='';
		}
		for(i=1;i<dA.length;i+=2){
 			oh=dA[i].offsetHeight;
			h=(oh>h)?oh:h;
		}
		for(i=1;i<dA.length;i+=2){
			oh=dA[i].offsetHeight;
 			if(oh<h){
		 		np=h-oh;
				if(!an&&dA[0]==1){
					P7_eqA2(dA[i+1].id,0,np);
				}else{
 					dA[i+1].style.paddingBottom=np+"px";
				}
			}
		}
		document.p7eqa=1;
 		document.p7eqth=document.body.offsetHeight;
 		document.p7eqtw=document.body.offsetWidth;
	}
}

function P7_eqT2(){ //v2.1.0 by PVII-www.projectseven.com
	if(document.p7eqth!=document.body.offsetHeight||document.p7eqtw!=document.body.offsetWidth){
		P7_colH2();
	}
}
function P7_equalCols2(){ //v2.1.0 by PVII-www.projectseven.com
 	var c,e,el;
	if(document.getElementById){
		document.p7eqc=new Array();
 		document.p7eqc[0]=arguments[0];
		for(i=1;i<arguments.length;i+=2){
			el=null;
 			c=document.getElementById(arguments[i]);
			if(c){
				e=c.getElementsByTagName(arguments[i+1]);
 				if(e){
				 	el=e[e.length-1];
					if(!el.id){
						el.id="p7eq"+i;
					}
				}
			}
			if(c&&el){
 				document.p7eqc[document.p7eqc.length]=c;document.p7eqc[document.p7eqc.length]=el
			}
		}
 		setInterval("P7_eqT2()",10);
	}
}

function P7_eqA2(el,p,pt){ //v2.1.0 by PVII-www.projectseven.com
 	var sp=10,inc=20,g=document.getElementById(el);np=(p>=pt)?pt:p;
 	g.style.paddingBottom=np+"px";
	if(np<pt){
		np+=inc;
 		setTimeout("P7_eqA2('"+el+"',"+np+","+pt+")",sp);
	}
}
