/**This java script was created by Michael Roberts at SFU, it will handle IE 6.0 problem**/

//  This is the BEST THING I've found from Dreamweaver.
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

// This is something again from ALA.  A "Suckerfish dropdown" hack.

//get rid of audience since it is not needed

pullDowns = new Object();

//catch tag name pullDowns
pullDowns.name = "pullDowns";
pullDowns.transparent = false;

flyouts = Array( pullDowns );

/* This startlist was initially the IErepair function, less the param.*/
function setSubULs( obj, root ) {
	if (obj==null || obj.childNodes==null) return;  
	// IE needs these
	if (!root && obj.nodeName=='UL') {
		if (ns){
			if (browserVersion>=5) {
				target = obj.style;
			} 
		}
		else { 
			target = obj.style;
			}
//		MyImage = new OpacityObject(target,'images/back');  
// opacity for the flyouts.
//		MyImage.setBackground();
	}
	for (var i=0;i<obj.childNodes.length; i++) {
		setSubULs( obj.childNodes[i], false );
	}
}

startList = function() {
	for ( id in flyouts ) {
		props = flyouts[id];
		layerObject = MM_findObj( props.name );
		IErepair( layerObject );
//		if (props.transparent) setSubULs( layerObject, true );
	}/**/
	
}


window.onload=startList;

