function doClear(theText){
	if(theText.value == theText.defaultValue){
		theText.value = "";
	}
}

function unClear(theText){
	if(theText.value == ""){
	   theText.value = theText.defaultValue;
   }
}

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);}
}

function P7_colH22(){ //v2.1.0 by PVII-www.projectseven.com
 var i,oh,h=0,tg,el,np,dA=document.p7eq2c,an=document.p7eq2a;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_eq2A(dA[i+1].id,0,np);}else{
 dA[i+1].style.paddingBottom=np+"px";}}}document.p7eq2a=1;
 document.p7eq2th=document.body.offsetHeight;
 document.p7eq2tw=document.body.offsetWidth;}
}

function P7_eq2T(){ //v2.1.0 by PVII-www.projectseven.com
 if(document.p7eq2th!=document.body.offsetHeight||document.p7eq2tw!=document.body.offsetWidth){P7_colH22();}
}

function P7_equalCols22(){ //v2.1.0 by PVII-www.projectseven.com
 var c,e,el;if(document.getElementById){document.p7eq2c=new Array();
 document.p7eq2c[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 && e.length>0){el=e[e.length-1];if(!el.id){el.id="p7eq2"+i;}}}if(c&&el){
 document.p7eq2c[document.p7eq2c.length]=c;document.p7eq2c[document.p7eq2c.length]=el}}
 setInterval("P7_eq2T()",10);}
}

function P7_eq2A(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_eq2A('"+el+"',"+np+","+pt+")",sp);}
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

function topcontainheights(){
	P7_equalCols2(0,'box1','DIV','box2','DIV','box3','DIV');
}

//function bottomcontainheights(){
//	P7_equalCols22(1,'block-block-4','DIV','block-block-5','DIV','block-block-6','DIV');
//}

//Get Date
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;

//Get Time
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += (hours >= 12) ? " pm" : " am"


// JavaScript to interpolate random images into a page. 

var ic = 2; // Number of alternative images 
var xoxo = new Array(ic); 
// Array to hold filenames xoxo[0] = "http://www.yoursite.com/graphic1.gif"; 
xoxo[0] = "<img src=\"../images/img_award.jpg\" alt=\"\" align=\"left\" /><h3>Latest Award</h3><p>ImpactWatch won the PR News Platinum Award for our Media Measurement work with Hewlett Packard and Porter-Novelli. <br /><a href=\"http://www.impactwatch.com/2008/the-bivings-group-wins-platinum-pr-award/\" target=\"_blank\">Check it out</a>.</p>"; 
xoxo[1] = "<img src=\"../images/img_award_prsa.jpg\" alt=\"\" align=\"left\" /><h3>Latest Award</h3><p>ImpactWatch, together with Porter Novelli and Hewlett-Packard, won the PRSA Totem Award for Communication Audits honoring the best work of communications professionals in Washington state. <br /><a href=\"http://www.impactwatch.com/2009/iw-wins-totem-award//\" target=\"_blank\">Check it out</a>.</p>";  
function pickRandom(range) 
{ if (Math.random) return Math.round(Math.random() * (range-1)); else { var now 
= new Date(); return (now.getTime() / 1000) % range; } } // Write out an IMG tag, using a randomly-chosen image name. 
var choice = pickRandom(ic); 