
var gObj,gHex,timer;
function NN_tr_start(obj,hex,type){
	var isMoz = parseInt(navigator.appVersion) >= 5 && navigator.appName == 'Netscape' ? true : false;
	if (type == 'fade' && !isMoz){gHex=hex;gObj=obj;NN_tr_fadeIn();
	} else { obj.style.backgroundColor=hex;}
	obj.style.cursor='hand';
}

function NN_tr_fadeIn(){
	var cntr=0,pObj=gObj.style.backgroundColor;
	var r = parseInt(gHex.substring(1,3),16),g = parseInt(gHex.substring(3,5),16), b = parseInt(gHex.substring(5,7),16);
	var rr = parseInt(pObj.substring(1,3),16),gg = parseInt(pObj.substring(3,5),16),bb = parseInt(pObj.substring(5,7),16);
		if (r!=rr){if(rr<r){rr++;}else{rr--;}}else{cntr++;}
		if (g!=gg){if(gg<g){gg++;}else{gg--;}}else{cntr++;}
		if (b!=bb){if(bb<b){bb++;}else{bb--;}}else{cntr++;}
	rr=rr.toString(16);gg=gg.toString(16);bb=bb.toString(16);
	rr=rr.length==1?'0'+rr:rr;gg=gg.length==1?'0'+gg:gg;bb=bb.length==1?'0'+bb:bb;
	gObj.style.backgroundColor='#'+rr.toUpperCase()+gg.toUpperCase()+bb.toUpperCase();
	if (cntr!=3){timer=setTimeout('NN_tr_fadeIn()',1);}
}

function NN_tr_reset(obj,hex){
	obj.style.backgroundColor=hex;clearTimeout(timer);
}

function win(fileName)
	{
	myFloater = window.open('','myWindow','scrollbars=yes,status=no,width=600,height=550')
	myFloater.location.href = fileName;
	}

function Graph(fileName)
	{
	myFloater = window.open('','myWindow','scrollbars=No,status=no,width=320,height=250')
	myFloater.location.href = fileName;
	}

if ((!(navigator.appVersion.indexOf('MSIE') != -1) && 
	(parseInt(navigator.appVersion)==4))) 
{
	document.write("<STYLE TYPE=\"text/css\">");
	document.write("BODY { margin-top: -8px; margin-left: -8px; }"); 
	document.write("</style>");
};
if (document.images) {
	green_up = new Image();
	green_up.src = "images/green-anchor.gif";
	green_over = new Image();
	green_over.src = "images/grey-anchor.gif";
	green_click = new Image();
	green_click.src = "images/orange-anchor.gif";
	totop_up = new Image();
	totop_up.src = "images/blue-totop.gif";
	totop_over = new Image();
	totop_over.src = "images/grey-totop.gif";
	totop_click = new Image();
	totop_click.src = "images/orange-totop.gif";
}
function changeImage(where,what) {
	document.images[where].src = eval(what + ".src");
}
var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
hasDOM = (document.getElementById) ? true : false;
if (NS4) {
    origWidth = innerWidth;
    origHeight = innerHeight;
}
function open_marketing_win (lang) {
    var url = 'preview/' + lang;
    var mWin = window.open(url, 'Welcome','menubar=no,toolbar=no,scrollbars=no,resizable=no,width=760,height=500');
    mWin.focus();
}
function open_pdf_win(url) {
    var pdfWin = window.open(url,'PDF','scrollbars=yes,resizable=yes');
    pdfWin.focus();
}
function reDo() {
    if (innerWidth != origWidth || innerHeight != origHeight) 
        location.reload();
}
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

if (NS4) onresize = reDo;

SECTION = '<%=section%>';
TOPIC = '[none]';
SUBTOPIC = '[none]';
var loc = window.location.pathname;
var pageName = loc.substr(loc.lastIndexOf('/')+1);
TITLE = pageName.substr(0, pageName.indexOf('.'));
isExpanded = false;

function getIndex(el) {



	ind = null;



	for (i=0; i<document.layers.length; i++) {



		whichEl = document.layers[i];



		if (whichEl.id == el) {



			ind = i;



			break;



		}



	}



	return ind;



}


function arrange() {



	nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;



	for (i=firstInd+1; i<document.layers.length; i++) {



		whichEl = document.layers[i];



		if (whichEl.visibility != "hide") {



			whichEl.pageY = nextY;



			nextY += whichEl.document.height;



		}



	}



}


function initMenus(){



	if (NS4) {



		for (i=0; i<document.layers.length; i++) {



			whichEl = document.layers[i];



			if (whichEl.id.indexOf("Menu") != -1)



				whichEl.visibility = "hide";



		}



		arrange();



	}



	else {



		tempColl = hasDOM ? document.getElementsByTagName("DIV") : document.all.tags("DIV");



		for (i=0; i<tempColl.length; i++)



			if (tempColl[i].className == "child")



				tempColl[i].style.display = "none";



	}



	if (SECTION)



		expandIt(SECTION + 'Menu');



	if (TOPIC)



		hiliteIt(TOPIC);



	if (SUBTOPIC) {



		expandIt(SUBTOPIC + 'Menu');



		hiliteIt(SUBTOPIC);



	}



	if (TITLE)



		hiliteIt(TITLE);



}


function AnyVisible(){



	if (NS4) {



		for (i=0; i<document.layers.length; i++) {



			whichEl = document.layers[i];



				if ((whichEl.id.indexOf("Menu") != -1) && 



				    (whichEl.visibility == "show")) {



					return(true);



				}



		}



		arrange();



	}



	else {



		tempColl = hasDOM ? document.getElementsByTagName("DIV") : document.all.tags("DIV");



		for (i=0; i<tempColl.length; i++) {



			if ((tempColl[i].className == "child") &&



			    (tempColl[i].style.display == "block")) {



				return(true);



			}



		}



	}




	return(false);



}


function hiliteIt (el, no_img) {



    if (!IE4 && !hasDOM)



    	return;


	var text = getElem(el);



	if (text)



		text.className = 'SUBHILITE';


	if (!no_img) {



		var img = getElem(el + '_image');



		if (img)



			img.src = 'images/orange-bullet.gif';



	}



}


function getElem (el) {



    var elem;



	    if (NS4)



        return eval('document.' + el);



    else if (hasDOM)



        return document.getElementById(el);



    else if (IE4)



        return document.all[el];



}


function expandIt(el) {



	if (!(hasDOM || IE4 || NS4)) return;



	if (hasDOM || IE4) { expandDOM(el) }



	else if (hasDOM || NS4) { expandNS(el) }



}



function expandDOM(el) {



	whichEl = hasDOM ? document.getElementById(el) : document.all[el];



	if (!whichEl)



		return;



	if (whichEl.style.display == "none")



		whichEl.style.display = "block";



	else



		whichEl.style.display = "none";



}



function expandNS(el) {


whichEl = hasDOM ? document.getElementById(el) : document.all[el];



	if (!whichEl)



		return;



	if (whichEl.style.display == "none")



		whichEl.style.display = "block";



	else



		whichEl.style.display = "none";



}


//	whichEl = document.layers[el];



//	if (!whichEl)



//		return;



//	if (whichEl.visibility == "hide")



 //		whichEl.visibility = "show";



//	else



//		whichEl.visibility = "hide";



//	arrange();



// }



function showAll() {



	for (i=firstInd; i<document.layers.length; i++) {



		whichEl = document.layers[i];



		whichEl.visibility = "show";



	}


}


function expandAll(isBot) {



	Contract = AnyVisible();	// If any items are currently visible, then contract; else expand.



	if (NS4) {



		for (i=firstInd; i<document.layers.length; i++) {



			whichEl = document.layers[i];



			if (whichEl.id.indexOf("Menu") != -1)



				whichEl.visibility = (Contract) ? "hide" : "show";



		}



		arrange();



		if (isBot && Contract) scrollTo(0,document.layers[firstInd].pageY);



	}



	else {



		divColl = hasDOM ? document.getElementsByTagName("DIV") : document.all.tags("DIV");



		for (i=0; i<divColl.length; i++)



			if (divColl[i].className == "child")



				divColl[i].style.display = Contract ? "none" : "block";



	}



}


with (document) {



	write("<STYLE TYPE='text/css'>");



	if (NS4) {



		write(".parent {position:absolute; visibility:visible}");



		write(".parentTop {position:absolute; visibility:visible; margin-top:104px;}");



		write(".child {position:absolute; visibility:hidden}");



		write(".regular {position:absolute; visibility:visible}")



	}



	else {



		write(".child {display:none}")



	}



	write("</STYLE>");



}



onload = initMenus;







function doWindow(theURL,winName,features) { //v1.0



window.open(theURL,winName,features);



}



/*


Select and Copy form element script- By Dynamicdrive.com



For full source, Terms of service, and 100s DTHML scripts



Visit http://www.dynamicdrive.com



*/


//specify whether contents should be auto copied to clipboard (memory)



//Applies only to IE 4+



//0=no, 1=yes



var copytoclip=1







function HighlightAll(theField) {



var tempval=eval("document."+theField)



tempval.focus()



tempval.select()



if (document.all&&copytoclip==1){



therange=tempval.createTextRange()



therange.execCommand("Copy")



window.status="Contents highlighted and copied to clipboard!"



setTimeout("window.status=''",1800)



}



}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
