// DOM Style Controls - by Paul @ Yellow Pencil .com
//modified by Jan Davis  - mark all main and sub links
function scriptInit() {
if (!document.getElementById) {
	return;
	}
}
function addEvent(elm, evType, fn, useCapture) {
	if (elm.addEventListener) {
	elm.addEventListener(evType, fn, useCapture);
	return true;
	} else if (elm.attachEvent) {
	var r = elm.attachEvent('on' + evType, fn);
	return r;
	} else {
	elm['on' + evType] = fn;
	}
}

function navMark() {
	var a = document.getElementsByTagName("a");
	var b=window.location;
	if (b.href.substr(location.href.length - 1, 1) == '/') {
		var loc = b.href + 'index.aspxl'; 
	}
	else {
				var loc = window.location.href;
	}
	for(var i=0; i < a.length; i++) {
			if (a[i].href == loc) {
				a[i].setAttribute("class", "nav_mark");
				a[i].setAttribute("className", "nav_mark");
			}
			if(arguments){
			for(var j=0; j<arguments.length; j++){
				if (a[i].innerHTML == arguments[j]){
					a[i].setAttribute("class", "nav_mark");
					a[i].setAttribute("className", "nav_mark");
				}
			}
	}
	}
}

//addEvent(window, 'load', checkActive, false);
var pop_up_win=0;

function pop_up_window(URLStr, left, top, width, height)

{

  if(pop_up_win)

  {

    if(!pop_up_win.closed) pop_up_win.close();

  }

  pop_up_win = open(URLStr, 'pop_up_win', 'toolbar=yes,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=800.height=600');
//  pop_up_win = open(URLStr, 'pop_up_win', //'toolbar=yes,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+h//eight+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}
