		// GRABS THE BROWSER NAME
        browserNaming();

		// ANIMATED MENU VARS
        delay = 70;
        imgs = new Array();
        counter = new Array();
        peelingup = new Array();
        peelingdown = new Array();
        oldsection = 'front';
        currentsection = 'front';
        lastover = '';

        
        // SETS THE COUNTER FOR THE MENUS, PEELS THEM UP

        counter['news33'] = 1;
		counter['services33'] = 1;
		counter['clients33'] = 1;
		counter['profile33'] = 1;
		counter['careers33'] = 1;
		counter['contact33'] = 1;
		counter['home33'] = 1;
		peelingup['news33'] = 1;
		peelingup['services33'] = 1;
		peelingup['clients33'] = 1;
		peelingup['profile33'] = 1;
		peelingup['careers33'] = 1;
		peelingup['contact33'] = 1;
		peelingup['home33'] = 1;

        
        // CHECKS THE INITIAL SECTION
        if (currentsection) {
            peelingup[currentsection] = 0;
            peelingdown[currentsection] = 1;
        }
        

        // MENU ANIMATION FUNCTIONS
        function clipMover(section,num) {
            newTop = 214 - (num * 22);
            if (browserNew) {
                obj = document.getElementById(section);
                obj.style.top = newTop+"px";
            } else {
                obj = document.all[section].style;
                obj.top = newTop+"px";
            }
        }
        
        function startpeelup(section) {
            if (section != currentsection) {
                startpeeldown(lastover);
                lastover = section;
                peelingup[section] = 1;
                peelingdown[section] = 0;
                peelup(section);
            }
        }

        function startpeeldown(section) {
            if (section != currentsection) {
                peelingdown[section] = 1;
                peelingup[section] = 0;
                peeldown(section);
            }
        }
        
        function peelup(section) {
            if (section != currentsection) {
                if (! peelingdown[section]) {
                    if (counter[section] < 7) {
                        clipMover(section,counter[section]);
                        if (counter[section] < 6) {
                            counter[section] = counter[section] + 1;
                            setTimeout("peelup('" + section + "')",delay);
                        }
                    }
                }
            }
        }

        function peeldown(section) {
            if (section != currentsection) {
                if (! peelingup[section]) {
                    if (counter[section] > -1) {
                        clipMover(section,counter[section]);
                        if (counter[section] > 0) {
                            counter[section] = counter[section] - 1;
                            setTimeout("peeldown('" + section + "')",delay);
                        }
                    }
                }
            }
        }

        function setsection(section) {
            if (preloadFlag) {
                if (section != currentsection) {
                    oldsection = currentsection;
                    currentsection = section;
                    if (browserName != "Opera") {
                        rewriteTextLayer('<span class=\'menusml\'>'+eval('text' + section)+'</span>', 'bottextoff');
                    }
                    hide('botoverdiv');
                    show('bottextoff');
                    if (checkSection(oldsection)) {
                        startpeeldown(oldsection);
                    } else {
                        changeImage(null,oldsection,oldsection + 'off');
                    }
                    if (checkSection(section)) {
                        clipMover(section,6);
                    } else {
                        changeImage(null,section,section + 'click');
                    }
                    if (((section == 'front') || (section == 'customize') || ((section == 'newsletter') && (oldsection == 'front'))) && (customSize == 'small')) {
                        if (isSmall == 0) {
                            move('newsletterback','208px','77px',false);
                            move('newsletterforms','220px','38px',false);
                            move('customizeback','208px','77px',false);
                            move('customizeforms','221px','38px',false);
                            hide('issuedrop');
                            show('menubackhide');
                            resizeK10k(true);
                            isSmall = 1;
                        }
                    }
                    else {
                        if (isSmall == 1) {
                            move('newsletterback','344px','77px',false);
                            move('newsletterforms','357px','38px',false);
                            move('customizeback','344px','77px',false);
                            move('customizeforms','357px','38px',false);
                            hide('menubackhide');
                            show('issuedrop');
                            top.k10kbot.location.href = '/pages/bottom.aspx?customSize=large';
                            resizeK10k(true);
                            isSmall = 0;
                        }
                    }
                    if ((section == 'front') || (section == 'customize') || ((section == 'newsletter') && (oldsection == 'front'))) {
                        hide('custbutton');
                    } else {
                        show('custbutton');
                    }
                }
            }
        }



        
// CHECK CLIENT BROWSER & PLATFORM
// Works: IE4+, NS4+, Opera

	var its;
	var browserName = '';
	var browserNameLong = '';
	var browserNew = '';
	var preloadFlag = false;
	var Macintosh = navigator.userAgent.indexOf('Mac')>0;

	function its() {
		var n = navigator;
		var ua = ' ' + n.userAgent.toLowerCase();
		var pl = n.platform.toLowerCase();
		var an = n.appName.toLowerCase();

		// browser version
		this.version = n.appVersion;
		this.nn = ua.indexOf('mozilla') > 0;

		// 'compatible' versions of mozilla aren't navigator
		if(ua.indexOf('compatible') > 0) {
			this.nn = false;
		}
		
		this.opera = ua.indexOf('opera') > 0;
		this.ie = ua.indexOf('msie') > 0;
		this.major = parseInt( this.version );
		this.minor = parseFloat( this.version );

		// platform
		this.mac = ua.indexOf('mac') > 0;
		this.win = ua.indexOf('win') > 0;

		// workaround for IE5 which reports itself as version 4.0
		if(this.ie) {
			if(ua.indexOf("msie 5") > 1) {
			var msieIndex = navigator.appVersion.indexOf("MSIE") + 5;
			this.major = parseFloat(navigator.appVersion.substr(msieIndex,3));
			}
		}

		return this;
	}

	function browserNaming() {
		its = new its();
		
		// is it a DOM-enabled browser?
		if (!document.getElementById) {
			browserNew = false;
		}
		else {
			browserNew = true;
		}

		// need the name, too
		if (its.opera) {
			browserName = "Opera";
		}
		else if (its.ie) {
			browserName = "IE";
		}
		else {
			browserName = "NS";
		}

		// and the number
		browserNameLong = browserName + its.major;
	}
	

// PRELOADING THE MOUSEOVER IMAGES
// Works: IE4+, NS4+, Opera

	function createObject(imgName,imgSrc) {
		if (loadingFlag) {
			eval(imgName + ' = new Image()');
			eval(imgName + '.src = "' + imgSrc + '"');
			return imgName;
		}
	}


// MOUSEOVER IMAGE SWITCHING
// Works: IE4+, NS4+, Opera
// Notes: NS4 needs the DIV-name in there if image is in a DIV

	function changeImage(layer,imgName,imgObj) {
		if (preloadFlag) {
			if (browserNew) {
				document.getElementById(imgName).src = eval(imgObj+'.src');
			}
			if ((!browserNew) && (browserName == "NS") && (layer!=null)) {
				eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src');
			}
			else {
				document.images[imgName].src = eval(imgObj+'.src');
			}
		}
	}


// POPUP WINDOW
// Works: IE4+, NS4+, Opera
// Notes: IE4/IE4.5 for the mac spawns windows 17px too short

	function spawn(desktopURL,windowName,width,height) {
		if ((Macintosh) && ((browserNameLong == "IE4") || (browserNameLong == "IE4.5"))) {
 			var newheight = parseInt(height + 17);
		}
		else {
			var newheight = height;
		}
		window.open(desktopURL,windowName,'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+width+',height='+newheight+',resizable=0');
	}


	function spawnEvil(desktopURL,windowName,width,height) {
 		window.open(desktopURL,windowName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width='+width+',height='+height+',resizable=0');
	}
	

	
// REMOVES THE LINK BORDER IN IE4+, NS6
// Works: IE4+, NS6+
// Notes: In NS6 the select tags are not blurred

	function unblur() {
		this.blur();
	}


	function getLinksToBlur() {
		if ((browserNew) || (browserName == "IE")) {
			if (browserNew) {
				links = document.getElementsByTagName("a");
			}
			else {
				links = document.all.tags("a");
			}
			for(i=0; i<links.length; i++) {
				links[i].onfocus = unblur
			}
		}
		if (browserName == "IE") {
			if (browserNew) {
				drops = document.getElementsByTagName("select");
			}
			else {
				drops = document.all.tags("select");
			}
			for(i=0; i<drops.length; i++) {
				drops[i].onfocus = unblur
			}
		}
	}


// SWITCHES BUTTON CLASS
// Works: IE4+, NS6+
	function buttonSwitcher(thisId,param) {
		if (browserNew) {
			d = document.getElementById(thisId);
			if (param == "off") {
				d.style.backgroundColor='#78AD1D';
			}
			else {
				d.style.backgroundColor='#FFA800';
			}
		}
		else {
			d = document.all[thisId];
			d.className = 'btn'+param;
		}
	}


// SWITCHES BUTTON TEXT CLASS
// Works: IE4+, NS6+
	function buttonTxtSwitcher(thisId,param) {
		if (browserNew) {
			d = document.getElementById(thisId);
			if (param == "off") {
				d.style.backgroundColor='#BCCF9D';
			}
			else {
				d.style.backgroundColor='#FFD82B';
			}
		}
		else {
			d = document.all[thisId];
			d.className = 'txtbtn'+param;
		}
	}


// DOM / GET PROPERTY
// Works: IE5+, NS6+, Opera

	function getIdProperty(id,property) {
		var styleObject = document.getElementById( id );
		if (styleObject != null) {
			styleObject = styleObject.style;
				if (styleObject[property]) {
					return styleObject[ property ];
				}
			}
		return (styleObject != null) ?
		styleObject[property] :
		null;
	}


// DOM / SET PROPERTY
// Works: IE5+, NS6+, Opera

	function setIdProperty(id,property,value) {
		var styleObject = document.getElementById( id );
		if (styleObject != null) {
			styleObject = styleObject.style;
			styleObject[ property ] = value;
		}
	}


// DOM / MASTER MOVE FUNCTION
// Works: IE5+, NS6+, Opera

	function generic_move(id,xValue,yValue,additive ) {
		var left = parseInt(getIdProperty(id, "left"));
		var top = parseInt(getIdProperty(id, "top"));
		if (additive) {
			setIdProperty(id,"left",left + xValue);
			setIdProperty(id,"top",top + yValue);
		}
		else {
			setIdProperty(id,"left",xValue);
			setIdProperty(id,"top",yValue);
		}
	}


// NON-DOM / MASTER MOVE FUNCTION
// Works: IE4, NS4

	function generic_move_nondom(id,xValue,yValue,additive) {
		// gets the id
		if (browserName == "NS") {
			var thisLayer = document.layers[id];
		}
		else {
			var thisLayer = document.all[id].style;
		}
		// gets the present values
		thisLayer.xpos = parseInt(thisLayer.left);
		thisLayer.ypos = parseInt(thisLayer.top);
		// move to, or move by?
		if (additive) {
			thisLayer.xpos += xValue;
			thisLayer.ypos += yValue;
			thisLayer.left = thisLayer.xpos;
			thisLayer.top = thisLayer.ypos;
		}
		else {
			thisLayer.left = xValue;
			thisLayer.top = yValue;
		}
	}


// MOVE TO - SHORTHAND
// Works: IE4+, NS4+, Opera
	
	function move(id,x,y,addit) {
		if (browserNew) {
			generic_move(id,x,y,addit);
		}
		else {
			generic_move_nondom(id,x,y,addit);
		}
	}


// HIDE AND SHOW LAYERS
// Works: IE4+, NS4+, Opera

	function hide(id) {
		if (browserNew) {
			setIdProperty(id,"visibility","hidden");
		}
		else {
			if (browserName == "NS") { document.layers[id].visibility = "hide"; }
			else { document.all[id].style.visibility = "hidden"; }
		}
	}

	function show(id) {
		if (browserNew) {
			setIdProperty(id,"visibility","visible");
		}
		else {
			if (browserName == "NS") { document.layers[id].visibility = "show"; }
			else { document.all[id].style.visibility = "visible"; }
		}
	}


// CHANGE DISPLAY VALUE FOR LAYERS
// Works: IE4+, NS4+, Opera

	function switchDisplay(id,value) {
		if (browserNew) {
			setIdProperty(id,"display",value);
		}
		else {
			if (browserName == "NS") {
				document.layers[id].display = value;
			}
			else {
				document.all[id].style.display = value;
			}
		}
	}

	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 P7_autoLayers() { //v1.1 PVII
 var g,b,k,f,args=P7_autoLayers.arguments;
 if(!document.p7setc) {p7c=new Array();document.p7setc=true;}
 for(k=0; k<p7c.length; k++) {
  if((g=MM_findObj(p7c[k]))!=null) {
   b=(document.layers)?g:g.style;b.visibility="hidden";}}
 for(k=0; k<args.length; k++) {
  if((g=MM_findObj(args[k])) != null) {
   b=(document.layers)?g:g.style;b.visibility="visible";f=false;
   for(j=0;j<p7c.length;j++) {
    if(args[k]==p7c[j]) {f=true;}}
  if(!f) {p7c[p7c.length++]=args[k];}}}
}

function P7_Snap() { //v2.61 by PVII
  var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,args=P7_Snap.arguments;a=parseInt(a);
  for (k=0; k<(args.length-3); k+=4)
   if ((g=MM_findObj(args[k]))!=null) {
    el=eval(MM_findObj(args[k+1]));
    a=parseInt(args[k+2]);b=parseInt(args[k+3]);
    x=0;y=0;ox=0;oy=0;p="";tx=1;da="document.all['"+args[k]+"']";
    if(document.getElementById) {
     d="document.getElementsByName('"+args[k]+"')[0]";
     if(!eval(d)) {d="document.getElementById('"+args[k]+"')";if(!eval(d)) {d=da;}}
    }else if(document.all) {d=da;} 
    if (document.all || document.getElementById) {
     while (tx==1) {p+=".offsetParent";
      if(eval(d+p)) {x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
      }else{tx=0;}}
     ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);var tw=x+ox+y+oy;
     if(tw==0 || (navigator.appVersion.indexOf("MSIE 4")>-1 && navigator.appVersion.indexOf("Mac")>-1)) {
      ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);
      }else{var w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;
      a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
      x=document.body.scrollLeft + event.clientX + bx;
      y=document.body.scrollTop + event.clientY;}}
   }else if (document.layers) {x=g.x;y=g.y;var q0=document.layers,dd="";
    for(var s=0;s<q0.length;s++) {dd='document.'+q0[s].name;
     if(eval(dd+'.document.'+args[k])) {x+=eval(dd+'.left');y+=eval(dd+'.top');break;}}}
   if(el) {e=(document.layers)?el:el.style;
   var xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
   if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)>4){xx+="px";yy+="px";}
   if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
    xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);
    xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
}

function P7_ReDoIt() { //v1.2 by PVII
 if(document.layers) {MM_reloadPage(false);}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function clicked(objShow,objHide) 
{ 
     Obj=eval((navigator.appName=="Netscape")?"document.layers['"+objShow+"']":"document.all['"+objShow+"'].style"); 
     Obj.visibility="visible"; 
     Obj=eval((navigator.appName=="Netscape")?"document.layers['"+objHide+"']":"document.all['"+objHide+"'].style"); 
     Obj.visibility="hidden"; 
} 





function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_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 == '');
}

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];}
}