var tempval="";
var homedir="/";

var thisP=new String(location.href).toLowerCase();
thisP=thisP.slice(thisP.lastIndexOf("/")+1,thisP.length)


/* handle preloading of images */

var saImgs=new Array;
saImgs[0] = homedir + "/images/esilogo.gif";
saImgs[1] = homedir + "/images/bg.gif";
saImgs[2] = homedir + "/images/graduatedgrey.gif";
saImgs[3] = homedir + "/images/ltc.gif";
saImgs[4] = homedir + "/images/rtc.gif";
saImgs[5] = homedir + "/images/lbc.gif";
saImgs[6] = homedir + "/images/rbc.gif";

function preloadImages()
{
	var i;
	var o = new Array;

	for(i = 0; i < saImgs.length; i += 1)
	{
		o[i] = new Image();
		o[i].src = saImgs[i];
	}
}

/* calculate mouse position */

var iWinTop = window.screenTop || window.screenY || 200;
var iWinHeight = window.height || window.innerHeight || (document.body != null ? document.body.clientHeight : 200);
var iWinLeft = window.screenLeft || window.screenX || 200;
var iWinWidth = window.width || window.innerWidth || (document.body != null ? document.body.clientWidth : 200);

if(window.screenY == 0 && iWinTop==200)
	iWinTop=0;	

iWinTop=iWinTop+(window.outerHeight-window.innerHeight)-15;

if(isNaN(iWinTop))
	var iWinTop = window.screenTop || window.screenY || 200;


if(window.screenX == 0 && iWinLeft==200)
	iWinLeft=0;	
if(window.screenLeft == 0 && iWinLeft==200)
	iWinLeft=0;	


var iX=iWinLeft;
var iY=iWinTop;



/* check for flash */

var bHasFlash = false;
getFlash();


function getFlash()
{
	var sN, oPs, oP, iFlash = 0, i, s;
		
	if( (oPs = navigator.plugins) && oPs.length > 0)
	{
		if(typeof( (oP = oPs["Shockwave Flash"]) ) == "object")
			bHasFlash = true;
	}
	else 
	{
		sN = navigator.userAgent.toLowerCase();

		if(sN.indexOf("msie") > 0)
		{
			if(parseInt(sN.substring(sN.indexOf("msie") + 5)) >= 5)
			{
				s = "<" + "script language=\"JavaScript\">\n";
				s += "try{bHasFlash = typeof(new ActiveXObject(\"ShockwaveFlash.ShockwaveFlash\")) == \"object\";}catch(e){}\n";
				s += "<" + "/script>\n";
				document.write(s);
			}
			else
			{
				s = "<" + "script language=\"VBScript\">On Error Resume Next\n";
				s += "bHasFlash = isObject(CreateObject(\"ShockwaveFlash\"))\n";
				s += "<" + "/script>\n";
				document.write(s);
			}
		}
	}
}

	


//next function ensures menu appears on top

function setZs()
{//alert("setting zs")
	//if(isIE()){
		var oElements = document.getElementsByTagName ? document.getElementsByTagName("LI") : 
		document.all ? document.all.tags("LI") : null;
		var bDOM, oElement, sId;
		bDOM = (oElements.item(0).getAttribute != null && typeof(oElements.item(0).className) == "undefined");
		for(i = 0; i < oElements.length; i++)
		{
			oElement = oElements.item(i);
			if(oElement.id !="")
					oElement.style.zIndex = 500;
				
		}
	//}
}

function hideSelect()
{
	//if(isIE() && !isOpera()){
		var oElements = document.getElementsByTagName ? document.getElementsByTagName("DIV") : 
		document.all ? document.all.tags("DIV") : null;
		var bDOM, oElement, sId;
		bDOM = (oElements.item(0).getAttribute != null && typeof(oElements.item(0).className) == "undefined");
		for(i = 0; i < oElements.length; i++)
		{
			oElement = oElements.item(i);
			if(oElement.id =="hideselectlist"){
					var h = oElement.offsetHeight
					oElement.style.display = "none";
				}
			if(oElement.id =="hideselectimage"){
					oElement.style.height=h
					oElement.style.display = "block";
					break;
			}
				
		}
	//}
}

function unhideSelect()
{
	//if(isIE() && !isOpera()){
		var oElements = document.getElementsByTagName ? document.getElementsByTagName("DIV") : 
		document.all ? document.all.tags("DIV") : null;
		var bDOM, oElement, sId;
		bDOM = (oElements.item(0).getAttribute != null && typeof(oElements.item(0).className) == "undefined");
		for(i = 0; i < oElements.length; i++)
		{
			oElement = oElements.item(i);
			if(oElement.id =="hideselectlist")
					oElement.style.display = "block";
			if(oElement.id =="hideselectimage"){
					oElement.style.display = "none";
					break;
			}
				
		}
	//}
}

 /*window opener function */
 window.name="";
 var oWin=null;
var oWinExt=null;
 function wOpen(url, name, w, h)
{
w += 32;
h += 96;
	 var oWin = window.open(url,
	  name, 
	  'width=' + w + ', height=' + h + ', ' +
	  'location=yes, menubar=no, ' +
	  'menubar=yes status=yes, toolbar=yes, scrollbars=yes, resizable=yes');
	 oWin.resizeTo(w, h);
 	 oWin.focus();
}

 function wOpenExternal(url, name, w, h)
{
w += 32;
h += 96;
	 oWinExt = window.open('',
	  name, 
	  'width=' + w + ', height=' + h + ', ' +
	  'location=yes, menubar=no, ' +
	  'menubar=yes status=yes, toolbar=yes, scrollbars=yes, resizable=yes');
	 oWinExt.resizeTo(w, h);
	 oWinExt.location.href=url;
 	 oWinExt.focus();
 	 
}

//fix column heights on home page

function cellheightmain()
{
		var oElements = document.getElementsByTagName ? document.getElementsByTagName("TD") : 
		document.all ? document.all.tags("TD") : null;
		var bDOM, oElement, sId;
		bDOM = (oElements.item(0).getAttribute != null && typeof(oElements.item(0).className) == "undefined");
		var a = sucesscell.offsetHeight;
		var b = selectcell.offsetHeight;
		var c = contactcell.offsetHeight;
		var bigcell=0;
		if (a > bigcell)
			bigcell=a;
		if (b > bigcell)
			bigcell=b;
		if (c > bigcell)
			bigcell=c;
		for(i = 0; i < oElements.length; i++)
		{
			oElement = oElements.item(i);
			if(oElement.id =="contactcell"){
					sucesscell.height=bigcell-114;
					selectcell.height=sucesscell.offsetHeight;
			}
				
		}
}
function cellheightnews()
{
		var oElements = document.getElementsByTagName ? document.getElementsByTagName("TD") : 
		document.all ? document.all.tags("TD") : null;
		var bDOM, oElement, sId;
		bDOM = (oElements.item(0).getAttribute != null && typeof(oElements.item(0).className) == "undefined");
		var a = corpcell.offsetHeight;
		var b = indcell.offsetHeight;
		var c = newscell.offsetHeight;
		var bigcell=0;
		if (a > bigcell)
			bigcell=a;
		if (b > bigcell)
			bigcell=b;
		if (c > bigcell)
			bigcell=c;
		for(i = 0; i < oElements.length; i++)
		{
			oElement = oElements.item(i);
			if(oElement.id =="corpcell"){
					newscell.height=bigcell;
					indcell.height=bigcell;
					corpcell.height=bigcell;
			}
				
		}
}
function cellheightincols()
{
		selboxcell.height=cs1cell.offsetHeight+cs2cell.offsetHeight
		selboxcell2.height=cs1cell.offsetHeight+cs2cell.offsetHeight
		rc1cell.height=cs1cell.offsetHeight +2
		rc2cell.height=cs2cell.offsetHeight +2

}

/* display collapsible tree */

function showID(sId)
{
	var oElement = document.getElementById ? document.getElementById(sId) : 
		document.all ? document.all.ids(sId) : null;
	var bDOM;
	try{
		if(oElement.style.display=="none"){
			oElement.style.display="block"
			roundedCornersTable();
		}else{
				oElement.style.display="none"
		}
	}catch(e){;}

}
function showInlineID(sId)
{
	var oElement = document.getElementById ? document.getElementById(sId) : 
		document.all ? document.all.ids(sId) : null;
	var bDOM;
	try{
		if(oElement.style.display=="none"){
			oElement.style.display="inline"
		}else{
			oElement.style.display="none"
		}
	}catch(e){;}

}
function showSyll(sId)
{
	var oElement = document.getElementById ? document.getElementById(sId) : 
		document.all ? document.all.ids(sId) : null;

	var bDOM;

	if(!oElement)
		return(false);

	bDOM = (oElement.getAttribute != null);

	// try this first: IE5.0 doesn't seem to like DOM method:
	if(oElement.className != "undefined"){
		oElement.className = (oElement.className == "syll2") ? "hidden" : "syll2";
		oElement.parentNode.childNodes[0].childNodes[1].src= (oElement.className == "syll2") ? "/images/fldr_open.gif" : "/images/fldr_closed.gif";
		}
	else if(bDOM){
		oElement.setAttribute("class", (oElement.getAttribute("class") == "syll2") ? "hidden" : "syll2");
		oElement.parentNode.childNodes[0].childNodes[1].src= (oElement.className == "syll2") ? "/images/fldr_open.gif" : "/images/fldr_closed.gif";
		}
	return(false);
}

function showAllSyll(bHide)
{
	var oElements = document.getElementsByTagName ? document.getElementsByTagName("OL") :
		document.all ? document.all.tags("OL") : null;
	
	var oElement, bDOM;
	
	if(bHide)
	{
		sStyleSrc = "syll2";
		sStyleTarget = "hidden";
		sStyleFdr = "/images/fldr_closed.gif"
	}
	else
	{
		sStyleSrc = "hidden";
		sStyleTarget = "syll2";
		sStyleFdr = "/images/fldr_open.gif"
	}
	
	if(!oElements || oElements.length == 0)
		return(false);
		
	bDOM = (oElements.item(0).getAttribute != null);
	
	for(i = 0; i < oElements.length; i++)
	{
		oElement = oElements.item(i);
		
		if(oElement.className != "undefined")
		{
			if(oElement.className == sStyleSrc){
				oElement.className = sStyleTarget;
				oElement.parentNode.childNodes[0].childNodes[1].src=sStyleFdr
			}
		}
		else if(bDOM)
		{
			if(oElement.getAttribute("class") == sStyleSrc)
				oElement.setAttribute("class", sStyleTarget);
		}
	}
	return(false);
}


function doContentsx()
{
	var oElements = document.getElementsByTagName ? document.getElementsByTagName("UL") : 
	document.all ? document.all.tags("UL") : null;
	var bDOM, oElement, sId;
	bDOM = (oElements.item(0).getAttribute != null && typeof(oElements.item(0).className) == "undefined");
	var listitems=document.getElementById('contlist').getElementsByTagName('li');
	var thistitle= new String(document.title)
	if(thistitle.substring(0,19).toLowerCase()!="esi international: "){
	    var mTags = document.getElementsByTagName("meta");
		for( var i = 0; i < mTags.length; i++ ) {
			var tempattrib=new String(mTags[i].getAttribute("name")).toLowerCase();
		    if( tempattrib == "subject" ) {
		         thistitle=new String(mTags[i].getAttribute("content")) 				
		    }
		}
	}
	thistitle=thistitle.slice(19, thistitle.length)
	lctitle=thistitle.toLowerCase()
	for(var i=0;i<listitems.length;i++){
		var contvalue=new String(listitems[i].innerHTML)
		contvalue=contvalue.slice(contvalue.indexOf(">")+1, contvalue.lastIndexOf("<"))
		lccontvalue=contvalue.toLowerCase()
		if(lctitle==lccontvalue){ 
			listitems[i].className='current';
			listitems[i].innerHTML=contvalue;
		}
	}
	var listitems=document.getElementById('fixedlist').getElementsByTagName('li');
	var thistitle= new String(document.title)
	if(thistitle.substring(0,19).toLowerCase()!="esi international: "){
	    var mTags = document.getElementsByTagName("meta");
		for( var i = 0; i < mTags.length; i++ ) {
			var tempattrib=new String(mTags[i].getAttribute("name")).toLowerCase();
		    if( tempattrib == "subject" ) {
		         thistitle=new String(mTags[i].getAttribute("content")) 				
		    }
		}
	}
	thistitle=thistitle.slice(19, thistitle.length)
	lctitle=thistitle.toLowerCase()
	for(var i=0;i<listitems.length;i++){
		var contvalue=new String(listitems[i].innerHTML)
		contvalue=contvalue.slice(contvalue.indexOf(">")+1, contvalue.lastIndexOf("<"))
		lccontvalue=contvalue.toLowerCase()
		if(lctitle==lccontvalue){ 
			listitems[i].className='current';
			listitems[i].innerHTML=contvalue;
		}
	}

}
function doContents()
{
	try{
		var oElements = document.getElementsByTagName ? document.getElementsByTagName("UL") : 
		document.all ? document.all.tags("UL") : null;
		var bDOM, oElement, sId;
		bDOM = (oElements.item(0).getAttribute != null && typeof(oElements.item(0).className) == "undefined");
		var listitems=document.getElementById('contlist').getElementsByTagName('li');
		var thispage=new String(location.pathname)
		lcpage=thispage.toLowerCase()
		if(lcpage.substring(lcpage.length-3,lcpage.length)!="asp")
			lcpage=lcpage+"index.asp"
		for(var i=0;i<listitems.length;i++){
			var contvalue=new String(listitems[i].innerHTML)
			var stripcontvalue=contvalue.slice(contvalue.indexOf(">")+1, contvalue.lastIndexOf("<"))
			contvalue=contvalue.slice(contvalue.indexOf('<a href"')+10, contvalue.indexOf(">")-1)
			var lccontvalue=contvalue.toLowerCase()
			if(lcpage==lccontvalue){ 
				listitems[i].className='current';
				listitems[i].innerHTML=stripcontvalue;
				break;
			}
		}
		var listitems=document.getElementById('fixedlist').getElementsByTagName('li');
		for(var i=0;i<listitems.length;i++){
			var contvalue=new String(listitems[i].innerHTML)
			var stripcontvalue=contvalue.slice(contvalue.indexOf(">")+1, contvalue.lastIndexOf("<"))
			contvalue=contvalue.slice(contvalue.indexOf('<a href"')+10, contvalue.indexOf(">")-1)
			var lccontvalue=contvalue.toLowerCase()
			if(lcpage==lccontvalue){ 
				listitems[i].className='current';
				listitems[i].innerHTML=stripcontvalue;
				break;
			}
		}
	}catch(e){;}

}

function popPDFwindow(target) {
	var PDFw=window.open(target);
	PDFw.opener=window;
	try{
		PDFw.focus();
	}catch(e){
		alert('To view this PDF file you need to turn off popup blocking for this site');
	}
	
}

/*	-------------------------------------------------------------------
	Dynamic Table of contents writer (custom)
	-------------------------------------------------------------------
	Author: Paul Rieman, praximl ltd www.praximl.co.uk
	Date: Sep 2001
	-------------------------------------------------------------------*/


/*	--------------------------------
	iBrowser values:
	6 = Netscape 6(+): DOM1
	5.5 = IE5+
	5 = IE4
	4 = Netscape 4
	3 = IE3, Netscape 3
	0 = earlier
	-------------------------------- */


var iBrowser = document.implementation ? 6 : document.getElementsByTagName ? 5.5 :
	document.all ? 5 : document.layers ? 4 : document.images ? 3 : 0;
var getTags = iBrowser >= 5.5 ? fnMozGetTags : iBrowser == 5 ? fnIEGetTags : null;
var sImgOpen = homedir + "images/bullet-6pix-red.gif";
var sImgClosed = homedir + "images/bullet-6pix-red.gif";

var oTopic;

function isNetFour() {
	if(iBrowser == 4) {
		return (true);
	}else{
		return (false);
	}
}


//var oFrameMain="main_page"

function initMAP()
{
	var oRoot = getTags(document, "UL").item(0), oFrameMain;
	var idcount=1;
	while(oRoot.id !="sitemap"){
		oRoot = getTags(document, "UL").item(idcount), oFrameMain;
		idcount++;	
	}
	if(iBrowser == 6){
		iBrowser = document.implementation.hasFeature("Events", "2.0") == true ? 6 : 5.5;
	}
	// support IE4+, Netscape 6+:
	if(iBrowser > 5.5){
		oRoot.addEventListener("click", map_click, false);
		
	}else if(iBrowser > 4)
		oRoot.onclick = map_click;

	oTopic = getTags(document, "A").item(0);
}
function map_click(oEv)
{
	var oE, bIsOpen, oSubList, sStyle, sImg, iPos, sID;
			
	oEv = oEv || window.event;
	oEl = oEv.target || oEv.srcElement;

	// Netscape 6 doesn't bubble event, so intercept it here:
	while(typeof(oEl.tagName) == "undefined")
		oEl = oEl.parentNode;

	if("A|IMG".indexOf(oEl.tagName) > -1)
	{
		if(oTopic)
			setClass(oTopic, "");
	
		if(oEl.tagName == "A")
		{
			sID = oEl.href ? oEl.href : oEl.getAttribute("href");
		}
	
		while(oEl.tagName != "LI")
			oEl = oEl.parentNode || oEl.parentElement;	// DOM2 || IE4+

		with(getTags(oEl, "UL"))
		{
			if(length > 0)	// is folder
			{
				oSubList = item(0);
				sStyle = iBrowser >= 6 ? oSubList.getAttribute("class") :
					oSubList.className;
						
				if(sStyle == "clsMapHidden")
				{
					sStyle = ""
					sImg = sImgOpen;
				}
				else
				{
					sStyle = "clsMapHidden";
					sImg = sImgClosed;
				}
						
				if(iBrowser < 6)
				{
					getTags(oEl, "IMG").item(0).src = sImg;
					oSubList.className = sStyle;
				}
				else
				{
					getTags(oEl, "IMG").item(0).setAttribute("src", sImg);
					oSubList.setAttribute("class", sStyle);
				}
				return(false);
			}
			else
			{
				return(true);
			}
		}
	}
}
function fnIEGetTags(o, sTag)
{
	return(o.all.tags(sTag));
}

function fnMozGetTags(o, sTag)
{
	return(o.getElementsByTagName(sTag));
}

function setClass(o, s)
{
	if(iBrowser < 6) 
		oTopic.className = s;
	else
		oTopic.setAttribute("class", s);
}
/*	-------------------------------------------------------------------
	End Dynamic Table of contents writer (custom)
	-------------------------------------------------------------------
*/


function MM_jumpMenu(targ,selObj,restore){ //v3.0
	if(selObj.options[selObj.selectedIndex].value!=""){
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		if (restore) selObj.selectedIndex=0;
	}
}
function isOpera() {
	var agt=navigator.userAgent.toLowerCase();
	if(agt.search("opera")!=-1) {
		return (true);
	}else{
		return (false);
	}
}
if(isOpera()) {
   	document.write('<link href="/includes/emea-opera.css" rel="stylesheet" type="text/css">');
}

function isIE() {
	var agt=navigator.userAgent.toLowerCase();
	if((iBrowser > 4 && agt.search("netscape")==-1) && (iBrowser > 4 && agt.search("firefox")==-1)) {
		return (true);
	}else{
		return (false);
	}
}
function isFox() {
	var agt=navigator.userAgent.toLowerCase();
	if((iBrowser > 4 && agt.search("firefox")!=-1)) {
		return (true);
	}else{
		return (false);
	}
}
function isChrome() {
	var agt=navigator.userAgent.toLowerCase();
	if((agt.search("chrome")!=-1)) {
		return (true);
	}else{
		return (false);
	}
}
function isNetscape() {
	var agt=navigator.userAgent.toLowerCase();
	if((agt.search("netscape")!=-1)) {
		return (true);
	}else{
		return (false);
	}
}
function isNetscape9() {
	var agt=navigator.userAgent.toLowerCase();
	if((agt.search("firefox")!=-1) && (agt.search("navigator")!=-1)) {
		return (true);
	}else{
		return (false);
	}
}
function openCloseFolders() { 
	var lists = document.getElementsByTagName('li');
	var items = [];
	 for (var i = 0; i < lists.length; i++) { 
	 var container = lists[i].parentNode
		if(container.className=="syll1"){
			var original = lists[i].childNodes[0]
			var fdr = document.createElement('img');
			fdr.className='wanker'
			fdr.src = '/images/fldr_closed.gif'
			fdr.style.border = 'none'
			fdr.style.marginLeft = 5
			original.appendChild(fdr);
		}
	 } 
 
}

function roundedCorners() { 
 var divs = document.getElementsByTagName('div'); 
 var rounded_divs = []; 
 /* First locate all divs with 'rounded' in their class attribute */
 for (var i = 0; i < divs.length; i++) { 
   if (/\brounded\b/.exec(divs[i].className)) { 
     rounded_divs[rounded_divs.length] = divs[i]; 
   } 
 } 
 /* Now add additional divs to each of the divs we have found */ 
 for (var i = 0; i < rounded_divs.length; i++) {
   var original = rounded_divs[i]; 
   original.className = original.className.replace('rounded', ''); 
   var h=original.childNodes[0].height
   var w=original.childNodes[0].width
   original.style.position='relative'
   original.style.top='0px'
   original.style.left='0px'
   original.style.zindex='1'
   var one = document.createElement('div'); 
    one.style.position = 'relative'; 
   original.parentNode.replaceChild(one, original); 
   var two = document.createElement('div');
   two.style.position='absolute'
   two.style.top='0px'
   two.style.left='0px'
   two.style.zindex='2'
   var three = document.createElement('div');
   three.style.position='absolute'
   three.style.top='0px'
   three.style.left=w-10
   three.style.zindex='2'
   var four = document.createElement('div');
   four.style.position='absolute'
   four.style.top=h-11
   four.style.left='0px'
   four.style.zindex='2'
   var five = document.createElement('div');
   five.style.position='absolute'
   five.style.top=h-11
   five.style.left=w-10
   five.style.zindex='2'
   var ltc = document.createElement('img');
   ltc.src = '/images/ltc.gif'
   ltc.style.border = 'none'
   var rtc = document.createElement('img');
   rtc.src = '/images/rtc.gif'
   rtc.style.border = 'none'
   var lbc = document.createElement('img');
   lbc.src = '/images/lbc.gif'
   lbc.style.border = 'none'
   var rbc = document.createElement('img');
   rbc.src = '/images/rbc.gif'
   rbc.style.border = 'none'
  /* Now glue the nodes back in to the document */ 
   one.appendChild(original); 
   one.appendChild(two); 
   two.appendChild(ltc); 
   one.appendChild(three); 
   three.appendChild(rtc); 
   one.appendChild(four); 
   four.appendChild(lbc); 
   one.appendChild(five); 
   five.appendChild(rbc); 
  } 
} 
function findPosX(obj)
  {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
    return curleft;
  }

function roundedCornersTable() {    
 var divs = document.getElementsByTagName('div'); 
 var rounded_divs = []; 
 /* First locate all divs with 'rounded' in their class attribute */
 for (var i = 0; i < divs.length; i++) { 
   if (/\broundedtable\b/.exec(divs[i].className)) { 
     rounded_divs[rounded_divs.length] = divs[i]; 
   } 
 } 
/* Now add additional divs to each of the divs we have found */ 
 for (var i = 0; i < rounded_divs.length; i++) { 
   var original = rounded_divs[i]; 
   original.className = original.className.replace('roundedtable', ''); 
 var sh=original.parentNode.clientHeight
 if(isFox() || isChrome() || isOpera() || isNetscape() ||isNetscape9()){
	var lp=original.offsetWidth-original.childNodes[1].offsetWidth
	var mg=findPosX(original.childNodes[1])-findPosX(original)
	if(mg==0 && (isNetscape() || isNetscape9()))
		mg=20
	var extrat=original.childNodes[1].style.marginTop
	extrat=new String(extrat)
	try{
		extrat=new Number(extrat.slice(0,extrat.indexOf('px')))
	}catch(e){var extrat=0}
	if(sh!=0)
		original.childNodes[1].style.height=sh
}
 if(isIE() && !isOpera() && !isChrome() && !isNetscape() && !isNetscape9()){
	var extrat=original.childNodes[0].style.marginTop
	extrat=new String(extrat)
	try{
		extrat=new Number(extrat.slice(0,extrat.indexOf('px')))
	}catch(e){var extrat=0}
	if(sh!=0)
		original.childNodes[0].style.height=sh
 }
 if(isChrome()){
		var h=original.childNodes[1].style.height
		var w=original.childNodes[1].style.width
   }
   if(isOpera()){
		var h=original.childNodes[1].style.height
		var w=original.childNodes[1].style.width
   }
   if(isFox()){
		var h=original.childNodes[1].style.height
		var w=original.childNodes[1].style.width
	}
   if(isNetscape()){
		var h=original.childNodes[1].style.height
		var w=original.childNodes[1].style.width
	}
   if(isNetscape9()){
		var h=original.childNodes[1].style.height
		var w=original.childNodes[1].style.width
	}
   if(isIE() && !isChrome() && !isOpera()){
		var h=original.childNodes[0].style.height
		var w=original.childNodes[0].style.width
   }
   h=new Number(h.slice(0,h.length-2))
   w=new Number(w.slice(0,w.length-2))

   if(isFox()){	
		w=w+20
		h=h+12
   }
   if(isNetscape()){	
		w=w+20
		h=h+12
   }
   if(isNetscape9()){	
		w=w+20
   }
   if(isOpera()){	
		w=w+20
   }
   if(isChrome()){	
		w=w+20
   }
   original.style.position='relative'
   original.style.top='0px'
   original.style.left='0px'
   original.style.zindex='1'
   var one = document.createElement('div'); 
    one.style.position = 'relative'; 
   original.parentNode.replaceChild(one, original); 
   var two = document.createElement('div');
   two.style.position='absolute'
   if(isFox() && !isNetscape9()){
	two.style.top=extrat
    two.style.left=mg
  }else if(isNetscape()){
	two.style.top=extrat
    two.style.left=mg
  }else if(isNetscape9()){
	two.style.top=extrat
    two.style.left=mg
  }else if(isOpera()){
	two.style.top='0px'
    two.style.left=mg
   }else if(isChrome()){
	two.style.top='0px'
    two.style.left=mg
   }else{
	two.style.top='0px'
	two.style.left='0px'
   }
   two.style.zindex='2'
   var three = document.createElement('div');
   three.style.position='absolute'
   if(isFox() && !isNetscape9()){
	three.style.top=extrat
	three.style.left=w+mg-30
  }else if(isNetscape()){
	three.style.top=extrat
	three.style.left=w+mg-30
  }else if(isNetscape9()){
	three.style.top=extrat
	three.style.left=w+mg-50
  }else if(isOpera()){
	three.style.top='0px'
	three.style.left=w+mg-30
   }else if(isChrome()){
	three.style.top='0px'
	three.style.left=w+mg-30
   }else{
	three.style.top='0px'
	three.style.left=w-10
   }
   three.style.zindex='2'
   var four = document.createElement('div');
   four.style.position='absolute'
   if(isFox() && !isNetscape9()){	
	four.style.top=h-(21-extrat)
	four.style.left=mg
   }else if(isNetscape()){
	four.style.top=h-(21-extrat)
	four.style.left=mg
  }else if(isNetscape9()){
	four.style.top=h-(21-extrat)
	four.style.left=mg
  }else if(isOpera()){
	four.style.top=h-11
	four.style.left=mg
   }else if(isChrome()){
	four.style.top=h-11
	four.style.left=mg
   }else{
	four.style.top=h-11
	four.style.left='0px'
   }
   four.style.zindex='2'
   var five = document.createElement('div');
   five.style.position='absolute'
     five.style.position='absolute'
   if(isFox() && !isNetscape9()){	
	five.style.top=h-(21-extrat)
	five.style.left=w+mg-30
   }else if(isNetscape()){
	five.style.top=h-(21-extrat)
	five.style.left=w+mg-30
   }else if(isNetscape9()){
	five.style.top=h-(21-extrat)
	five.style.left=w+mg-50
   }else if(isOpera()){
	five.style.top=h-11
	five.style.left=w+mg-30
   }else if(isChrome()){
	five.style.top=h-11
	five.style.left=w+mg-30
   }else{
	five.style.top=h-11
	five.style.left=w-10
   }
   five.style.zindex='2'
   var ltc = document.createElement('img');
   ltc.src = '/images/ltc.gif'
   ltc.style.border = 'none'
   var rtc = document.createElement('img');
   rtc.src = '/images/rtc.gif'
   rtc.style.border = 'none'
   var lbc = document.createElement('img');
   lbc.src = '/images/lbc.gif'
   lbc.style.border = 'none'
   var rbc = document.createElement('img');
   rbc.src = '/images/rbc.gif'
   rbc.style.border = 'none'
  /* Now glue the nodes back in to the document */ 
   one.appendChild(original);
   one.appendChild(two); 
   two.appendChild(ltc); 
//   two.style.backgroundColor='red'
   one.appendChild(three); 
   three.appendChild(rtc); 
  // three.style.backgroundColor='green'
   one.appendChild(four); 
   four.appendChild(lbc); 
  // four.style.backgroundColor='yellow'
   one.appendChild(five); 
   five.appendChild(rbc); 
  //  five.style.backgroundColor='blue'
} 
} 

function topRoundedCorners() { 
 var divs = document.getElementsByTagName('div'); 
 var rounded_divs = []; 
 /* First locate all divs with 'rounded' in their class attribute */
 for (var i = 0; i < divs.length; i++) { 
   if (/\btoprounded\b/.exec(divs[i].className)) { 
     rounded_divs[rounded_divs.length] = divs[i]; 
   } 
 } 
 /* Now add additional divs to each of the divs we have found */ 
 for (var i = 0; i < rounded_divs.length; i++) {
   var original = rounded_divs[i]; 
   original.className = original.className.replace('rounded', ''); 
   var h=original.childNodes[0].height
   var w=original.childNodes[0].width
   original.style.position='relative'
   original.style.top='0px'
   original.style.left='0px'
   original.style.zindex='1'
   var one = document.createElement('div'); 
    one.style.position = 'relative'; 
   original.parentNode.replaceChild(one, original); 
   var two = document.createElement('div');
   two.style.position='absolute'
   two.style.top='0px'
   two.style.left='0px'
   two.style.zindex='2'
   var three = document.createElement('div');
   three.style.position='absolute'
   three.style.top='0px'
   three.style.left=w-10
   three.style.zindex='2'
   var four = document.createElement('div');
   four.style.position='absolute'
   four.style.top=h-11
   four.style.left='0px'
   four.style.zindex='2'
   var five = document.createElement('div');
   five.style.position='absolute'
   five.style.top=h-11
   five.style.left=w-10
   five.style.zindex='2'
   var ltc = document.createElement('img');
   ltc.src = '/images/ltc.gif'
   ltc.style.border = 'none'
   var rtc = document.createElement('img');
   rtc.src = '/images/rtc.gif'
   rtc.style.border = 'none'
   var lbc = document.createElement('img');
   lbc.src = '/images/lbc.gif'
   lbc.style.border = 'none'
   var rbc = document.createElement('img');
   rbc.src = '/images/rbc.gif'
   rbc.style.border = 'none'
  /* Now glue the nodes back in to the document */ 
   one.appendChild(original); 
   one.appendChild(two); 
   two.appendChild(ltc); 
   one.appendChild(three); 
   three.appendChild(rtc); 
   /*one.appendChild(four); 
   four.appendChild(lbc); 
   one.appendChild(five); 
   five.appendChild(rbc);*/ 
  } 
} 

function bottomRoundedCorners() { 
 var divs = document.getElementsByTagName('div'); 
 var rounded_divs = []; 
 /* First locate all divs with 'rounded' in their class attribute */
 for (var i = 0; i < divs.length; i++) { 
   if (/\bbottomrounded\b/.exec(divs[i].className)) { 
     rounded_divs[rounded_divs.length] = divs[i]; 
   } 
 } 
 /* Now add additional divs to each of the divs we have found */ 
 for (var i = 0; i < rounded_divs.length; i++) {
   var original = rounded_divs[i]; 
   original.className = original.className.replace('rounded', ''); 
   var h=original.childNodes[0].height
   var w=original.childNodes[0].width
   original.style.position='relative'
   original.style.top='0px'
   original.style.left='0px'
   original.style.zindex='1'
   var one = document.createElement('div'); 
    one.style.position = 'relative'; 
   original.parentNode.replaceChild(one, original); 
   var two = document.createElement('div');
   two.style.position='absolute'
   two.style.top='0px'
   two.style.left='0px'
   two.style.zindex='2'
   var three = document.createElement('div');
   three.style.position='absolute'
   three.style.top='0px'
   three.style.left=w-10
   three.style.zindex='2'
   var four = document.createElement('div');
   four.style.position='absolute'
   four.style.top=h-11
   four.style.left='0px'
   four.style.zindex='2'
   var five = document.createElement('div');
   five.style.position='absolute'
   five.style.top=h-11
   five.style.left=w-10
   five.style.zindex='2'
   var ltc = document.createElement('img');
   ltc.src = '/images/ltc.gif'
   ltc.style.border = 'none'
   var rtc = document.createElement('img');
   rtc.src = '/images/rtc.gif'
   rtc.style.border = 'none'
   var lbc = document.createElement('img');
   lbc.src = '/images/lbc.gif'
   lbc.style.border = 'none'
   var rbc = document.createElement('img');
   rbc.src = '/images/rbc.gif'
   rbc.style.border = 'none'
  /* Now glue the nodes back in to the document */ 
   one.appendChild(original); 
   /*one.appendChild(two); 
   two.appendChild(ltc); 
   one.appendChild(three); 
   three.appendChild(rtc);*/ 
   one.appendChild(four); 
   four.appendChild(lbc); 
   one.appendChild(five); 
   five.appendChild(rbc); 
  } 
} 

function roundedCornersLinked() { 
 var divs = document.getElementsByTagName('div'); 
 var rounded_divs = []; 
 /* First locate all divs with 'roundedlinked' in their class attribute */
 for (var i = 0; i < divs.length; i++) { 
   if (/\broundedlinked\b/.exec(divs[i].className)) { 
     rounded_divs[rounded_divs.length] = divs[i]; 
   } 
 } 
 /* Now add additional divs to each of the divs we have found */ 
 for (var i = 0; i < rounded_divs.length; i++) {
   var original = rounded_divs[i]; 
   original.className = original.className.replace('roundedlinked', ''); 
   var h=original.childNodes[0].childNodes[0].height
   var w=original.childNodes[0].childNodes[0].width
   original.style.position='relative'
   original.style.top='0px'
   original.style.left='0px'
   original.style.zindex='1'
   var one = document.createElement('div'); 
    one.style.position = 'relative'; 
   original.parentNode.replaceChild(one, original); 
   var two = document.createElement('div');
   two.style.position='absolute'
   two.style.top='0px'
   two.style.left='0px'
   two.style.zindex='2'
   var three = document.createElement('div');
   three.style.position='absolute'
   three.style.top='0px'
   three.style.left=w-10
   three.style.zindex='2'
   var four = document.createElement('div');
   four.style.position='absolute'
   four.style.top=h-11
   four.style.left='0px'
   four.style.zindex='2'
   var five = document.createElement('div');
   five.style.position='absolute'
   five.style.top=h-11
   five.style.left=w-10
   five.style.zindex='2'
   var ltc = document.createElement('img');
   ltc.src = '/images/ltc.gif'
   ltc.style.border = 'none'
   var rtc = document.createElement('img');
   rtc.src = '/images/rtc.gif'
   rtc.style.border = 'none'
   var lbc = document.createElement('img');
   lbc.src = '/images/lbc.gif'
   lbc.style.border = 'none'
   var rbc = document.createElement('img');
   rbc.src = '/images/rbc.gif'
   rbc.style.border = 'none'
  /* Now glue the nodes back in to the document */ 
   one.appendChild(original); 
   one.childNodes[0].appendChild(two); 
   two.appendChild(ltc); 
   one.childNodes[0].appendChild(three); 
   three.appendChild(rtc); 
   one.childNodes[0].appendChild(four); 
   four.appendChild(lbc); 
   one.childNodes[0].appendChild(five); 
   five.appendChild(rbc); 
  } 
} 



/*

          Tips & Tricks

             1: Use the 'enable_visual_design_mode' parameter below to turn the visual design pad on or off.
                When set to false the visual pad is not loaded and there is no overhead added to the menu. All
                required source code for the menu to function is included within this document.  There are no
                communications with OpenCube or other third party servers when the design pad is disabled.

             2: Adjust the "function imenus_data0()" numeric id in the statement below to match the numeric id of
                the id='imenus0' statement within the menu structure and links section above.  The numbers must
                match for the menu to work, multiple menus may be used on a single page by adding new sections
                with new id's.

             3: To specifically define settings for an individual item or container, apply classes or inline styles
                directly to the UL and A tags in the HTML tags which define your menus structure and links above.

             4: Use the parameter options below to define borders and padding.  Borders and padding specified
                within the menus HTML structure may cause positioning and actual sizing to be offset a bit in
                some browsers.

             5: Padding values in sequence apply to the top, right, bottom, and left edges in that order.

*/




/*-------------------------------------------------
************* Parameter Settings ******************
---------------------------------------------------*/


function imenus_data0(){


	this.unlock = "Add your unlock statement here."
	this.enable_visual_design_mode = false

	this.main_is_horizontal = true
	this.menu_showhide_delay = 150


   /*---------------------------------------------
   Images (expand and pointer icons)
   ---------------------------------------------*/


	this.main_expand_image = '/images/main_arrow.gif'
	this.main_expand_image_hover = '/images/main_arrow.gif'
	this.main_expand_image_width = '15'
	this.main_expand_image_height = '14'
	this.main_expand_image_offx = '0'
	this.main_expand_image_offy = '0'

	this.sub_expand_image = '/images/sub_arrow.gif'
	this.sub_expand_image_hover = '/images/sub_arrow.gif'
	this.sub_expand_image_width = '14'
	this.sub_expand_image_height = '14'
	this.sub_expand_image_offx = 'undefined'
	this.sub_expand_image_offy = 'undefined'






   /*---------------------------------------------
   Global Menu Styles
   ---------------------------------------------*/

	//Main Menu

	this.main_container_styles = "background-color:#006699; border-style:solid; border-color:#006699; border-width:0px; padding:0px; "
	this.main_item_styles = "color:#ffffff; text-align:left; font-family:verdana; font-size:11px; font-weight:normal; font-style:normal; text-decoration:none; border-style:none; border-color:#aaccfb; border-width:0px; padding:2px 0px 5px 10px; "
	this.main_item_hover_styles = "background-color:#37a8ef; color:#ffffff; "
	this.main_item_active_styles = ""



	//Sub Menu

	this.subs_container_styles = "background-color:#d3d3d3; border-style:solid; border-color:#006699; border-width:6px; padding:4px; margin:0px; "
	this.subs_item_styles = "color:#000000; text-align:left; font-family:verdana; font-size:11px; font-weight:normal; font-style:normal; text-decoration:none; border-style:none; border-color:#000000; border-width:1px; padding:2px 5px; "
	this.subs_item_hover_styles = "background-color:#37a8ef; color:#ffffff; "
	this.subs_item_active_styles = ""



}

//Below for home page only
function imenus_data1(){


	this.unlock = "Add your unlock statement here."
	this.enable_visual_design_mode = false

	this.main_is_horizontal = true
	this.menu_showhide_delay = 150


   /*---------------------------------------------
   Images (expand and pointer icons)
   ---------------------------------------------*/


	this.main_expand_image = '/images/main_arrow.gif'
	this.main_expand_image_hover = '/images/main_arrow.gif'
	this.main_expand_image_width = '15'
	this.main_expand_image_height = '14'
	this.main_expand_image_offx = '0'
	this.main_expand_image_offy = '0'

	this.sub_expand_image = '/images/sub_arrow.gif'
	this.sub_expand_image_hover = '/images/sub_arrow.gif'
	this.sub_expand_image_width = '14'
	this.sub_expand_image_height = '14'
	this.sub_expand_image_offx = 'undefined'
	this.sub_expand_image_offy = 'undefined'






   /*---------------------------------------------
   Global Menu Styles
   ---------------------------------------------*/

	//Main Menu

	this.main_container_styles = "background-color:#ffffff; border-style:solid; border-color:#ffffff; border-width:0px; padding:0px; "
	this.main_item_styles = "color:#000000; text-align:left; font-family:verdana; font-size:11px; font-weight:normal; font-style:normal; text-decoration:none; border-style:none; border-color:#aaccfb; border-width:0px; padding:2px 0px 5px 10px; "
	this.main_item_hover_styles = "background-color:#37a8ef; color:#ffffff; "
	this.main_item_active_styles = ""



	//Sub Menu

	this.subs_container_styles = "background-color:#d3d3d3; border-style:solid; border-color:#ffffff; border-width:6px; padding:4px; margin:0px; "
	this.subs_item_styles = "color:#000000; text-align:left; font-family:verdana; font-size:11px; font-weight:normal; font-style:normal; text-decoration:none; border-style:none; border-color:#000000; border-width:1px; padding:2px 5px; "
	this.subs_item_hover_styles = "background-color:#37a8ef; color:#ffffff; "
	this.subs_item_active_styles = ""



}


/*Tree Menus*/
node7 = true
function tmenudata0()
{


    /*---------------------------------------------
    Animation Settings
    ---------------------------------------------*/


	this.animation_jump = 10		//Measured in Milliseconds (1/1000s)
	this.animation_delay = 5		//Measured in pixels


    /*---------------------------------------------
    Image Settinngs (icons and plus minus symbols)
    ---------------------------------------------*/


	this.imgage_gap = 0			//The image gap is applied to the left and right of the folder and document icons.
						//In the absence of a folder or document icon the gap is applied between the
						//plus / minus symbols and the text only.


	this.plus_image = "/images/tree/sample1_main_icon_default.gif"	//specifies a custom plus image.
	this.minus_image = "/images/tree/sample1_main_icon_open.gif"		//specifies a custom minus image.
	this.pm_width_height = "20,9"					//Width & Height  - Note: Both images must be the same dimensions.


	this.folder_image = "/images/tree/treespacer.gif"				//Automatically applies to all items which may be expanded.
	//this.document_image = "/images/tree/sample1_sub_icon.gif"		//Automatically applies to all items which are not expandable.
	this.icon_width_height = "2,1"					//Width & Height  - Note: Both images must be the same dimensions.




    /*---------------------------------------------
    General Settings
    ---------------------------------------------*/


	this.indent = 15;			//The indent distance in pixels for each level of the tree.
	this.use_hand_cursor = true;		//Use a hand mouse cursor for expandable items, or the default arrow.


    /*---------------------------------------------
    Tree Menu Styles
    ---------------------------------------------*/


	this.main_item_styles =        "text-decoration:none; 			       		\
                                       margin-top:4px;						\
                                       font-weight:normal;			           	\
                                       font-family:verdana;			           	\
                                       font-size:11px;			               		\
                                       color:#ffffff;			               		\
                                       "


   	 this.sub_item_styles =        "text-decoration:none;					\
                                       padding:0;						\
                                       margin-top:2px;						\
                                       font-weight:normal;					\
                                       font-family:verdana;					\
                                       font-size:11px;						\
                                       color:#ffffff;"



	/* Styles may be formatted as multi-line (seen above), or on a single line as shown below.
	   The expander_hover_styles apply to menu items which expand to show child menus.*/



	this.main_container_styles = "width:140px;margin-right:150px;"
	this.sub_container_styles = " width:140px;padding-top:2px; padding-bottom:2px; padding-left:5px; background-color:#000000;"
//if(isIE() && !isOpera()){
//	this.main_link_styles = "color:#000000; text-decoration:none; padding:2; margin-left:-5px"
//}else{
	this.main_link_styles = "color:#000000; text-decoration:none; padding:2;margin-left:-1px"
//}
	this.main_link_hover_styles = "padding:2; background-color:#d3d3d3; color:#000000; opacity: .7; filter: alpha(opacity=70); -moz-opacity: .7;"
	this.main_link_hover_styles = "padding:2; color:#000000; opacity: .7; filter: alpha(opacity=70); -moz-opacity: .7;"


	this.sub_link_styles = "color:#ffffff; font-size:11px;"
	this.sub_link_hover_styles = "color:#ffffff; background-color:#B08D00; opacity: .7; filter: alpha(opacity=70); -moz-opacity: .7;"
	this.sub_link_hover_styles = "color:#B08D00;"


	this.main_expander_hover_styles = "color:#000000;"

	this.sub_expander_hover_styles = "padding-left:0px; background-color:#d3d3d3;  color:#000000; opacity: .7; -moz-opacity: .7;"
	this.sub_expander_hover_styles = "padding-left:0px; color:#B08D00;"


}
function tmenudata1()
{


    /*---------------------------------------------
    Animation Settings
    ---------------------------------------------*/


	this.animation_jump = 10		//Measured in Milliseconds (1/1000s)
	this.animation_delay = 5		//Measured in pixels


    /*---------------------------------------------
    Image Settinngs (icons and plus minus symbols)
    ---------------------------------------------*/


	this.imgage_gap = 0			//The image gap is applied to the left and right of the folder and document icons.
						//In the absence of a folder or document icon the gap is applied between the
						//plus / minus symbols and the text only.


	this.plus_image = "/images/tree/treespacer.gif"	//specifies a custom plus image.
	this.minus_image = "/images/tree/treespacer.gif"		//specifies a custom minus image.
	this.pm_width_height = "1,1"					//Width & Height  - Note: Both images must be the same dimensions.


	this.document_image = "/images/tree/fixed_main_icon_default.gif"		//Automatically applies to all items which are not expandable.
	this.icon_width_height = "20,12"					//Width & Height  - Note: Both images must be the same dimensions.




    /*---------------------------------------------
    General Settings
    ---------------------------------------------*/


	this.indent = 0;			//The indent distance in pixels for each level of the tree.
	this.use_hand_cursor = true;		//Use a hand mouse cursor for expandable items, or the default arrow.


    /*---------------------------------------------
    Tree Menu Styles
    ---------------------------------------------*/


	this.main_item_styles =        "text-decoration:none; 			       		\
                                       padding-top:0;						\
                                       padding-bottom:0;						\
                                       font-weight:normal;			           	\
                                       font-family:verdana;			           	\
                                       font-size:1px;			               		\
                                       color:#ffffff;			               		\
                                       "


   	 this.sub_item_styles =        "text-decoration:none;					\
                                       padding-top:4;						\
                                       font-weight:normal;					\
                                       font-family:verdana;					\
                                       font-size:11px;						\
                                       color:#ffffff;"



	/* Styles may be formatted as multi-line (seen above), or on a single line as shown below.
	   The expander_hover_styles apply to menu items which expand to show child menus.*/



	this.main_container_styles = ""
	this.sub_container_styles = " padding-top:2px; padding-bottom:2px; padding-left:0px; margin-left:-1px; background-color:#888A6D;"

	this.main_link_styles = "color:#000000; text-decoration:none; padding:2;"
	this.main_link_hover_styles = "padding:2; background-color:#888A6D; color:#ffcc33; opacity: .7; filter: alpha(opacity=70); -moz-opacity: .7;"


	this.sub_link_styles = "color:#ffffff; font-size:11px;"
	this.sub_link_hover_styles = "color:#ffcc33; background-color:#888A6D; opacity: .7; filter: alpha(opacity=70); -moz-opacity: .7;"


	//this.main_expander_hover_styles = "color:#d3d3d3;"

	this.sub_expander_hover_styles = "padding-left:0px; background-color:#000000;  color:#ffcc33; opacity: .7; -moz-opacity: .7;"


}


//Sliding News

function cswapdata0()
{


    /*---------------------------------------------
    Content Dimensions
    ---------------------------------------------*/

	this.container_width = 414
	this.container_height = 35



    /*---------------------------------------------
    Message Timing
    ---------------------------------------------*/

	this.initial_swap_delay = 0			//measured in seconds
	this.swap_delay = 6				//measured in seconds



    /*---------------------------------------------
    Container Styles and Padding
    ---------------------------------------------*/

	this.container_padding = "10,3,5,26"
	this.container_styles = "border-width:0px; border-color:#666666; border-style:solid; background-image:url(/images/sswap_bg.gif); background-color:#ffffff;";



    /*---------------------------------------------
    Container Styles and Padding
    ---------------------------------------------*/

	this.item_styles = "color:#006b92; cursor:default; text-decoration:none; font-family:verdana, Helvetica, sans-serif; font-size:12px; border-style:none; border-width:0px;";
	this.item_link_styles = "color:#333333; text-decoration:none; font-weight:normal; font-family:verdana, Helvetica, sans-serif; font-size:12px;border-color:#FFFFFF; border-style:none;border-width:0px;";
	this.item_link_hover_styles = "color:#000000; text-decoration:none; font-family:verdana, Helvetica, sans-serif; font-size:12px; border-color:#666666; border-style:none;border-width:0px;";



    /*---------------------------------------------
    Animated Transitions (IE 5.5 & Up only)
    ---------------------------------------------*/

	this.item_transitions = "filter:progid:DXImageTransform.Microsoft.Slide(duration=1, slideStyle='hide', bands=20);";


}


//GO1.1


///////////////////////////////////////
//
//  Generic onload by Brothercake
//  http://www.brothercake.com/
//
///////////////////////////////////////



//onload function
function generic()
{
	preloadImages();
	try{
		fixedlinks.style.display="block"
	}catch(e){;}
	openCloseFolders();
	try{
	showAllSyll(true);
	}catch(e){;}
	try{
		setZs();
	}catch(e){;}
	roundedCorners();
	roundedCornersTable();
	topRoundedCorners();
	bottomRoundedCorners();
	roundedCornersLinked();
}



//setup onload function
if(typeof window.addEventListener != 'undefined')
{
	//.. gecko, safari, konqueror and standard
	window.addEventListener('load', generic, false);
}
else if(typeof document.addEventListener != 'undefined')
{
	//.. opera 7
	document.addEventListener('load', generic, false);
}
else if(typeof window.attachEvent != 'undefined')
{
	//.. win/ie
	window.attachEvent('onload', generic);
}

//** remove this condition to degrade older browsers
else
{
	//.. mac/ie5 and anything else that gets this far
	
	//if there's an existing onload function
	if(typeof window.onload == 'function')
	{
		//store it
		var existing = onload;
		
		//add new onload handler
		window.onload = function()
		{
			//call existing onload function
			existing();
			
			//call generic onload function
			generic();
		};
	}
	else
	{
		//setup onload function
		window.onload = generic;
	}
}



//Esconde y muestra parte del formulario de e-training

		function hideReg(sID)
		{
			var oElements = document.getElementsByTagName ? document.getElementsByTagName("DIV") : 
			document.all ? document.all.tags("DIV") : null;
			var bDOM, oElement, sId;
			bDOM = (oElements.item(0).getAttribute != null && typeof(oElements.item(0).className) == "undefined");
			for(i = 0; i < oElements.length; i++)
			{
				oElement = oElements.item(i);
				if(sID==oElement.id){
					oElement.style.display = "none"
				}
			}
		}
		function showReg(sID)
		{
			var oElements = document.getElementsByTagName ? document.getElementsByTagName("DIV") : 
			document.all ? document.all.tags("DIV") : null;
			var bDOM, oElement, sId;
			bDOM = (oElements.item(0).getAttribute != null && typeof(oElements.item(0).className) == "undefined");
			for(i = 0; i < oElements.length; i++)
			{
				oElement = oElements.item(i);
				if(sID==oElement.id){
					oElement.style.display = "block"
				}
			}
		}