// JavaScript Document
var imgP = ["/media/images/img_employers_d.jpg","/media/images/img_seekers_d.jpg"];

function preLoad() {
 if (document.images) {
        for (var i=0; i<imgP.length; i++) {
                var  preImg = new Image;
                preImg.src = imgP[i];
        }
 }
}

function img_Roll(button,state) {
        var img_src="/media/images/img_"+button+state+".jpg";
        document.getElementById(button).src = img_src;
}

function colEQ () {
	var lefth, righth, dif;
    try {
	    lefth=document.getElementById('left').offsetHeight;
	    righth=document.getElementById('right').offsetHeight;
	    if (lefth > righth) {
		    dif = lefth - righth;
		    dif2=dif+10;
		    document.getElementById('eqr').style.paddingBottom=dif2+"px";
	    } 
	    if (righth > lefth) {
		    dif = righth - lefth;
		    document.getElementById('star').style.paddingBottom=dif+"px";
	    } 
	}
	catch(e){/*alert(e.description);*//*do nothing element does not exist*/}
}