function openWindow(urlStr,nameStr){ 
	wind=window.open( urlStr , nameStr , "screenx=0, screeny=0, location, width=640, height=440, scrollbars, menubar, resizable, status, titlebar, toolbar"); 
}
function _hcc_popUp(urlStr,nameStr){ 
	wind=window.open( urlStr , nameStr , "screenx=0, screeny=0, width=640, height=440, scrollbars, resizable"); 
}
function goform(fname){
	fname.submit();
	return false;
}
function gem(sfx,dom,usr,nam,op,stl){
	var nStr=usr;
	nStr+="@";
	nStr+=dom + "." + sfx;
	var oStr="<a ";
	if(stl) oStr+=stl;
	oStr+=" href=\"m";
	oStr+="ail";
	oStr+="to";
	oStr+=":" + nStr;
	if(nam=="-")nam=nStr;
	oStr+="\">" + nam + "</a>";
	if(op) document.write(oStr);
	return oStr;
}
function show_props(obj, obj_name) {
	for (var i in obj){
		document.write("<br>" + obj_name + "." + i + " = " + obj[i] );
	}
}
function init(fn) {
	if(self!=top){
		alert("This page has been opened within a window - contrary to copyright laws. The screen will reload immediately.");
		top.location.href=self.location.href; 
	}
	if(rooturl>""){
		ilen=rooturl.length;
		testhref=self.location.href.toLowerCase();
		if(rooturl.toLowerCase()!=testhref.substring(0,ilen) && testhref.substring(0,21)!="file:///c:/datafiles/" && testhref.substring(0,17)!="http://localhost/"){
alert(testhref);
			alert ("This page has been copied contrary to copyright laws. The screen will reload.");
			newhref=rooturl;
			if(pageurl>"" && pageurl.substr(0,1)!="<") newhref=rooturl+pageurl;
			top.location.href=newhref;
		}
	}
	if(!isIE){
		window.scrollbars.visible=true; 
		window.menubar.visible=true; 
		window.statusbar.visible=true; 
		window.toolbar.visible=true; 
		window.locationbar.visible=true; 
	}
	cssjsmenu('navbar');
	cssjsmenu('drs-config');
	if (document.getElementById) {
		var kill = document.getElementById('hoverJS'); 
		kill.disabled = true;
	}
	adjustTextSize();
}
function adjustTextSize(chgsize,rs) {
	if (!document.documentElement || !document.body) return;
	var newSize;
	var startSize = parseInt(_hcc_getTextSize());
	if (!startSize) startSize = 14;
	switch (chgsize) {
		case 'incr': newSize = startSize + 2; break;
		case 'decr': newSize = startSize - 2; break;
		case 'reset': if(rs)newSize = rs; else newSize = 14; break;
		default: 
			newSize = parseInt(_hcc_ReadCookie('drs-textsize', true));
			if (!newSize) newSize = startSize;
			break;
	}
	if (newSize < 10) newSize = 10;
	newSize += 'px';
	document.documentElement.style.fontSize = newSize;
	document.body.style.fontSize = newSize;
	_hcc_SetCookie('drs-textsize', newSize, 365, true);
}
function _hcc_getTextSize() {
	if (!document.body) return 0;
	var size = 0;
	var body = document.body;
	if (body.style && body.style.fontSize) {
		size = body.style.fontSize;
	} else if (typeof(getComputedStyle) != 'undefined') {
		size = getComputedStyle(body,'').getPropertyValue('font-size');
	} else if (body.currentStyle) {
		size = body.currentStyle.fontSize;
	}
	return size;
}
function _hcc_SetCookie(name,value,days,useLang) {
	var langString = useLang ? _hcc_GetDocumentLanguage() : '';
	var cookie = name + langString + '=' + value + ';';
	if (days) {
		var date = new Date();
		var _hcc_MilliSecondsInDay = 86400000; 
		date.setTime(date.getTime()+(days*_hcc_MilliSecondsInDay));
		cookie += ' expires=' + date.toGMTString() + ';';
	}
	cookie += ' path=/';
	document.cookie = cookie;
}
function _hcc_ReadCookie(name, useLang) {
	var langString = useLang ? _hcc_GetDocumentLanguage() : '';
	var nameEQ = name + langString + '=';
	var ca = document.cookie.split(';');
	for(var i = 0; i < ca.length; i++) {
		var c = ca[i];
		while (c.charAt(0) == ' ') c = c.substring(1, c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
function _hcc_GetDocumentLanguage(){
	var langString = '';
	if (document.documentElement){
		langString = document.documentElement.lang;
		if (langString != '') langString = '-' + langString;
	} 
	return langString;
}
function printAlert() {
	oStr='Thanks to the use of a print-media stylesheet, '
		+ 'this page is already printer-friendly! '
		+ 'Just print the page from a CSS-capable browser to get the print styles on paper.';
	alert(oStr);
}
function elementContains(elmOuter, elmInner){
	while (elmInner && elmInner != elmOuter) elmInner = elmInner.parentNode;
	if (elmInner == elmOuter) return true;
	return false;
}
function getPageXY(elm){
	var point = { x: 0, y: 0 };
	while (elm){
		point.x += elm.offsetLeft;
		point.y += elm.offsetTop;
		elm = elm.offsetParent;
	}
	return point;
}
function setPageXY(elm, x, y){
	var parentXY = {x: 0, y: 0 };
	if (elm.offsetParent) parentXY = getPageXY(elm.offsetParent);
	elm.style.left = (x - parentXY.x) + 'px';
	elm.style.top = (y - parentXY.y) + 'px';
}
function cssjsmenu(menuid){
	if (!document.getElementById) return true; 
	var i; var j; var node; var child; var parent; var version; 
	var offset = navigator.userAgent.indexOf('Opera');
	if (offset != -1) {
		version = parseInt('0' + navigator.userAgent.substr(offset + 6), 10);
		if (version < 7) return true;
	}
	offset = navigator.userAgent.indexOf('MSIE');
	if (offset != -1) if (navigator.userAgent.indexOf('Mac') != -1) return true;
	var menudiv = document.getElementById(menuid);
	var ul = new Array();
	for (i = 0; i < menudiv.childNodes.length; i++) {
		node = menudiv.childNodes[i];
		if (node.nodeName.toUpperCase() == 'UL') ul[ul.length] = node;
	}
	var ul_gt_li = new Array();
	for (i = 0; i < ul.length; i++) {
		node = ul[i];
		for (j = 0; j < node.childNodes.length; j++) {
			child = node.childNodes[j];
			if (child.nodeName.toUpperCase() == 'LI') {
				ul_gt_li[ul_gt_li.length] = child;
				child.style.display = 'inline';
				child.style.listStyle = 'none';
				child.style.position = 'static';
	}}}
	var ul_gt_li_gt_ul = new Array();
	for (i = 0; i < ul_gt_li.length; i++) {
		node = ul_gt_li[i];
		for (j = 0; j < node.childNodes.length; j++) {
			child = node.childNodes[j];
			if (child.nodeName.toUpperCase() == 'UL') {
				ul_gt_li_gt_ul[ul_gt_li_gt_ul.length] = child;
				child.style.position = 'absolute';
				child.style.left = '-13em';
				child.style.visibility = 'hidden';
				parent = child.parentNode;
				parent.onmouseover = function (e) {
					var i;
					var child;
					var point;
					this.style.paddingBottom = '0';
					for (i = 0; i < this.childNodes.length; i++) {
						child = this.childNodes[i];
						if (child.nodeName.toUpperCase() == 'UL') {
							point = getPageXY(this);
							setPageXY(child, point.x, point.y + this.offsetHeight);
							child.style.visibility = 'visible';
				}} return false; };
				parent.onmouseout = function (e) {
					var relatedTarget = null;
					if (e) {
						relatedTarget = e.relatedTarget;
						if (navigator.product == 'Gecko' && navigator.platform.indexOf('Linux') != -1 && !relatedTarget) relatedTarget = e.originalTarget;
					}else if (window.event) {
						relatedTarget = window.event.toElement;
					}
					if (elementContains(this, relatedTarget)) return false;
					var i;
					var child;
					for (i = 0; i < this.childNodes.length; i++) {
						child = this.childNodes[i];
						if (child.nodeName.toUpperCase() == 'UL') child.style.visibility = 'hidden';
				} return false; };
}}} return true; }
var isIE = false
if ( navigator.userAgent.indexOf("MSIE") != -1 && navigator.appVersion.substring(0,1) > 3 &&
	((navigator.userAgent.indexOf("Windows") != -1) || (navigator.userAgent.indexOf("HP-UX") != -1))){
	isIE = true;
}
