/* 
  ------------------------------------------------
  PVII Equal CSS Columns scripts -Version 2
  Copyright (c) 2005 Project Seven Development
  www.projectseven.com
  Version: 2.1.0
  ------------------------------------------------
*/
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);}
}

/*
	----------------------------------------------------------------------------------------------------------------
	1.  Place the script file in your web site folder.
	2.  Place a link to the script file in the <head> region of any page on which you wish to use the script:
		ex.  <script type="text/javascript" src="p7_eqCols2_10.js"></script>
	3.  Place an onLoad call on your page's <body> tag:
		ex.  <body onLoad="P7_equalCols2(1,'c1','P','c2','P')">
	----------------------------------------------------------------------------------------------------------------
	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.
	----------------------------------------------------------------------------------------------------------------
*/
