m=document;
v=m.documentElement;
hd=window;
hf=Math;
hz=Array;
currentSection="position1";
tabTag="-tab";
paneTag="-pane";

function ScrollSection(link,scrollArea,offset){
	if(currentSection==link){
		return
		}
		lastSection=currentSection;
		currentSection=link;
		sectionTab=currentSection.split("-")[0]+tabTag;
		m.getElementById(sectionTab).className="active";
		if(lastSection){
			try{
				lastTab=lastSection.split("-")[0]+tabTag;m.getElementById(lastTab).className="inactive"
				}
				catch(err){}
				}
				zm=m.getElementById(scrollArea);
				position=findElementPos(m.getElementById(link));
				if(offset!=""){
					offsetPos=findElementPos(m.getElementById(offset));position[0]=position[0]-offsetPos[0]}scrollStart(zm,zm.scrollLeft,position[0],"horiz");
}
					
function ScrollArrow(direction,toolbar,scrollArea,offset){
						toolbarElem=m.getElementById(toolbar);
						toolbarNames=new hz();
						if(toolbarElem.hasChildNodes()){
							var children=toolbarElem.childNodes;
							for(var i=0;i<children.length;i++){
								if(toolbarElem.childNodes[i].tagName=="LI"){
									toolbarNames.push(toolbarElem.childNodes[i].id.split("-")[0]);
									}
									}
									}
									for(var i=0;i<toolbarNames.length;i++){
										if(toolbarNames[i]==currentSection.split("-")[0]){
											if(direction=="left"){if(i-1<0){
												gotoTab=toolbarNames[toolbarNames.length-1]
												}else{
													gotoTab=toolbarNames[i-1]
													}
													}else{
														if((i+1)>(toolbarNames.length-1)){
															gotoTab=toolbarNames[0]
															}else{
																gotoTab=toolbarNames[i+1]
																}
																}
																}
																}
																ScrollSection(gotoTab+paneTag,scrollArea,offset);
}
															
var scrollanim={time:0,begin:0,change:0.0,duration:0.0,element:null,timer:null};
function scrollStart(elem,start,end,direction){
	if(scrollanim.timer!=null){
																	clearInterval(scrollanim.timer);
																	scrollanim.timer=null
																	}
																	scrollanim.time=0;
																	scrollanim.begin=start;
																	scrollanim.change=end-start;
																	scrollanim.duration=25;
																	scrollanim.element=elem;
																	if(direction=="horiz"){
																		scrollanim.timer=setInterval("scrollHorizAnim();",15);
																		}else{
																			scrollanim.timer=setInterval("scrollVertAnim();",15);
																			}
}
																			function scrollVertAnim(){
																				if(scrollanim.time>scrollanim.duration){
																					clearInterval(scrollanim.timer);scrollanim.timer=null
																					}else{
																						vb=sineInOut(scrollanim.time,scrollanim.begin,scrollanim.change,scrollanim.duration);
																						scrollanim.element.scrollTop=vb;scrollanim.time++
																						}
																						}
																						function scrollHorizAnim(){
																							if(scrollanim.time>scrollanim.duration){
																								clearInterval(scrollanim.timer);scrollanim.timer=null
																								}else{
																									vb=sineInOut(scrollanim.time,scrollanim.begin,scrollanim.change,scrollanim.duration);
																									scrollanim.element.scrollLeft=vb;
																									scrollanim.time++
																									}
																									}
																									var zn=0,zo=0,zp=0;vc=0;vd=0;
																									function setOpacity(opacity,hcr){
																										var object=m.getElementById(hcr).style;
																										if(navigator.userAgent.indexOf("Firefox")!=-1){
																											if(opacity==100){
																												opacity=99.9999
																												}
																												}
																												object.filter="alpha(opacity="+opacity+")";
																												object.opacity=(opacity/100);
																												}
																												function linear(t,b,c,d){
																													return c*t/d+b
																													}
																													function sineInOut(t,b,c,d){
																														return-c/2*(hf.cos(hf.PI*t/d)-1)+b
																														}
																														function cubicIn(t,b,c,d){
																															return c*(t/=d)*t*t+b
																															}
																															function cubicOut(t,b,c,d){
																																return c*((t/=d-1)*t*t+1)+b
																																}
																																function cubicInOut(t,b,c,d){
																																	if((t/=d/2)<1)
																																	return c/2*t*t*t+b;
																																	return c/2*((t-=2)*t*t+2)+b
																																	}
																																	function bounceOut(t,b,c,d){if((t/=d)<(1/2.75)){
																																		return c*(7.5625*t*t)+b
																																		}else if(t<(2/2.75)){
																																			return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b
																																			}
																																			else if(t<(2.5/2.75)){
																																				return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b
																																				}else{
																																					return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b
																																					}
																																					}
																																					function getSize(){
																																						if(m.all){
															zn=(v.clientWidth)?v.clientWidth:m.body.clientWidth;zo=(v.clientHeight)?v.clientHeight:m.body.clientHeight;zp=(v.scrollTop)?v.scrollTop:m.body.scrollTop
															}else{
															zn=hd.innerWidth;zo=hd.innerHeight;zp=hd.pageYOffset}if(hd.innerHeight&&hd.scrollMaxY){vc=m.body.scrollWidth;vd=hd.innerHeight+hd.scrollMaxY
															}else if(m.body.scrollHeight>m.body.offsetHeight){
																vc=m.body.scrollWidth;vd=m.body.scrollHeight
																}else{
																vc=m.body.offsetWidth;vd=m.body.offsetHeight
																}
																}
																function findElementPos(elemFind){
																	var elemX=0;
																	var elemY=0;
																	do{
																		elemX+=elemFind.offsetLeft;elemY+=elemFind.offsetTop
																		}while(elemFind=elemFind.offsetParent);
																		return hz(elemX,elemY);
																		}
