/* ***** js functions ***** */

/* Used to clear the floats for IE/Mac: http://www.positioniseverything.net/easyclearing.html */

function fixmacie(classname) {        
	var divs=document.getElementsByTagName("DIV");   
	for (var d=0; d < divs.length;d++) {     
	if (divs[d].className.indexOf(classname)==0) {    
		divs[d].innerHTML += "<div class='mac-clearfix'> </div>"; 
		/* The above html tags get added to the end of 
		the cleared container if the browser is IE/mac. */  
		}
	}
}

function init() {
	/* Check if the browser is IE5 Mac */
	if (navigator.appVersion.indexOf('Mac')!=-1 && document.all) {     
		/* Pass the class name on the container to fixmacie 
		(must be the FIRST classname if multiple classnames 
		are used on the div!) */    
		fixmacie("clearfix");  
	}
}

/* start the ball rolling when the page loads */
window.onload = init;

/* New windows when we need them */
function openWindow(document,name,width,height) {
   window.open(document,name,'width='+width+',height='+height+',scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=100,top=100');
}