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_openBrWindow(theURL,winName,features) { //v2.0
  return window.open(theURL,winName,features);
}

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_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_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_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}


MM_reloadPage(true);



/* 
 ================================================
 PVII Horizontal Glider Magic scripts
 Copyright (c) 2009-2010 Project Seven Development
 www.projectseven.com
 Version: 1.2.3 -build 33
 ================================================
 
 */


// define the image swap file naming convention

// rollover image for any image in the normal state
var p7HGMover='_over';

// image for any trigger that has an open sub menu -no rollover
var p7HGMopen='_down';

// image to be used for current marker -no roll over
var p7HGMmark='_overdown';

var p7HGMctl=[],p7HGMi=false,p7HGMa=false,p7HGMadv=[];
function P7_HGMset(){
	var h,sh,hd;
	if (!document.getElementById){
		return;
	}
	sh='.p7HGM_viewport_wrapper {width:auto;}\n';
	sh+='.p7HGM_viewport {overflow:hidden;position:relative;width:auto;}\n';
	sh+='.p7HGM_panels_wrapper {width:auto;position:relative;left:0px;overflow:hidden;}\n';
	sh+='.p7HGM_panel {width:auto;float:left;}\n';
	sh+='.p7HGM_controls {width:auto;}\n';
	sh+='.p7HGM_controls div, .p7HGMpaginator, .p7HGMvcr, .p7HGMvcrtext, .p7HGMtrig {display:block !important;}\n';
	sh+='.p7HGMtrig {width:auto;}\n';
	sh+='.p7HGMpaginator {width:auto;}\n';
	if (document.styleSheets){
		h='\n<st' + 'yle type="text/css">\n' + sh + '\n</s' + 'tyle>';
		document.write(h);
	}
	else{
		h=document.createElement('style');
		h.type='text/css';
		h.appendChild(document.createTextNode(sh));
		hd=document.getElementsByTagName('head');
		hd[0].appendChild(h);
	}
}
P7_HGMset();
function P7_opHGM(){
	var x;
	if(!document.getElementById){
		return;
	}
	x=p7HGMctl.length;
	p7HGMctl[x]=arguments;
	if(p7HGMctl[x][1]<=0){
		p7HGMctl[x][1]='auto';
	}
	if(p7HGMctl[x][2]<=0){
		p7HGMctl[x][2]='auto';
	}
}
function P7_HGMaddLoad(){
	if(!document.getElementById){
		return;
	}
	if(window.addEventListener){
		document.addEventListener("DOMContentLoaded",P7_initHGM,false);
		window.addEventListener("load",P7_HGMload,false);
		window.addEventListener("unload",P7_HGMrf,false);
		window.addEventListener("resize",P7_HGMrs,false);
	}
	else if(document.addEventListener){
		document.addEventListener("load",P7_initHGM,false);
		document.addEventListener("resize",P7_HGMrs,false);
	}
	else if(window.attachEvent){
		document.write("<script id=p7ie_hgm defer src=\"//:\"><\/script>");
		document.getElementById("p7ie_hgm").onreadystatechange=function(){
			if(this.readyState=="complete"){
				if(p7HGMctl.length>0){
					P7_initHGM();
				}
			}
		};
		window.attachEvent("onload",P7_HGMload);
		window.attachEvent("onresize",P7_HGMrs);
	}
	else if(typeof window.onload=='function'){
		var p7vloadit=onload;
		window.onload=function(){
			p7vloadit();
			P7_HGMload();
		};
		window.onresize=P7_HGMrs;
	}
	else{
		window.onload=P7_initHGM;
		window.onresize=P7_HGMrs;
	}
}
P7_HGMaddLoad();
function P7_HGMload(){
	P7_initHGM();
	P7_HGMrs();
}
function P7_HGMrf(){
	return;
}
function P7_initHGM(){
	var i,j,k,x,tB,d,tD,tA,ck,hl,iM,sr,fnA,fnB,swp,s1,s2,s3,wP,zz,pw,vP,pV;
	if(p7HGMi){
		return;
	}
	p7HGMi=true;
	document.p7HGMpreload=[];
	for(i=p7HGMctl.length-1;i>-1;i--){
		tB=document.getElementById(p7HGMctl[i][0]);
		if(tB){
			tB.p7opt=p7HGMctl[i];
			tB.hgmPanels=[];
			tB.hgmTriggers=[];
			tB.hgmPaginators=[];
			tB.hgmCurrentPanel=1;
			tB.hgmPrevPanelID='none';
			tB.hgmDelay=15;
			tB.hgmTargetLeft=0;
			tB.hgmFrameRate=1;
			tB.hgmAnimRunning=false;
			tB.hgmRotate='';
			tB.hgmAutoPlay=false;
			tB.hgmDirection='forward';
			wP=document.getElementById(tB.id.replace('_','wp_'));
			vP=document.getElementById(tB.id.replace('_','vp_'));
			if(tB.p7opt[1]!='auto'){
				vP.style.width=tB.p7opt[1]+'px';
				document.getElementById(tB.id.replace('_','vpw_')).style.width=tB.p7opt[1]+'px';
			}
			if(navigator.appVersion.indexOf("MSIE 6")>-1 || navigator.appVersion.indexOf("MSIE 5")>-1){
				vP.style.width='100%';
			}
			pw=vP.offsetWidth;
			d=tB.id.replace("_","pn_");
			tD=tB.getElementsByTagName('DIV');
			ck=-1;
			hl=0;
			for(j=0;j<tD.length;j++){
				if(tD[j].id&&tD[j].id.indexOf(d)===0){
					x=tB.hgmPanels.length;
					tB.hgmPanels[x]=tD[j].id;
					tD[j].hgmDiv=tB.id;
					tD[j].hgmPanelNum=x+1;
					if(tB.p7opt[1]=='auto'){
						tD[j].style.width=pw+'px';
					}
					else{
						tD[j].style.width=tB.p7opt[1]+'px';
					}
					if(tB.p7opt[2]!='auto'){
						tD[j].style.height=tB.p7opt[2]+'px';
						tD[j].style.overflow='auto';
					}
					tD[j].style.position='absolute';
					tD[j].style.cssFloat="none";
					tD[j].style.top='0px';
					tD[j].style.left=((tD[j].hgmPanelNum-1)*vP.offsetWidth)+'px';
					zz=9000;
					if(ck<0){
						ck=j;
						tB.hgmCurrentPanelID=tD[ck].id;
						tD[j].style.position='relative';
						if(tB.p7opt[3]==4){
							tD[j].style.zIndex='9200';
						}
						tD[j].style.left='0px';
					}
					else{
						if(tB.p7opt[3]==4){
							tD[j].style.zIndex=zz;
							tD[j].style.left=(tD[j].offsetWidth*-1)+'px';
						}
					}
				}
			}
			tB.hgmPanelNums=tB.hgmPanels.length;
			if(tB.p7opt[1]=='auto'){
				wP.style.width =(tB.hgmPanelNums*pw)+'px';
			}
			else{
				wP.style.width=(tB.p7opt[1]*tB.hgmPanelNums)+'px';
			}
			d=tB.id.replace("_","trg_");
			tD=document.getElementById(d);
			if(tD){
				if(tB.p7opt[1]!='auto'){
					tD.style.width=tB.p7opt[1]+'px';
				}
				tA=tD.getElementsByTagName('A');
				if(tA){
					d=tB.id.replace('M_','Mt');
					for(k=0;k<tA.length;k++){
						if(tA[k].id&&tA[k].id.indexOf(d)===0){
							tA[k].hgmDiv=tB.id;
							tA[k].hgmPanelNum=0;
							pV=document.getElementById(tA[k].id.replace('Mt','Mpn_'));
							if(pV&&pV.hgmPanelNum){
								tA[k].hgmPanelNum=pV.hgmPanelNum;
							}
							tB.hgmTriggers[tB.hgmTriggers.length]=tA[k].id;
							tA[k].onclick=function(){
								return P7_HGMcontrol(this,'show');
							};
							if(tB.p7opt[17]==1){
								tA[k].onmouseover=function(){
									P7_HGMcontrol(this,'show');
								};
							}
							iM=tA[k].getElementsByTagName("IMG");
							if(iM&&iM[0]){
								sr=iM[0].getAttribute("src");
								swp=tB.p7opt[13];
								iM[0].hgmSwap=swp;
								x=sr.lastIndexOf(".");
								fnA=sr.substring(0,x);
								fnB='.'+sr.substring(x+1);
								s1=fnA+p7HGMover+fnB;
								s2=fnA+p7HGMopen+fnB;
								s3=fnA+p7HGMmark+fnB;
								if(swp==1){
									iM[0].p7imgswap=[sr,s1,s1,s1];
									P7_HGMpreloader(s1);
								}
								else if(swp==2){
									iM[0].p7imgswap=[sr,s1,s2,s2];
									P7_HGMpreloader(s1,s2);
								}
								else if(swp==3){
									iM[0].p7imgswap=[sr,s1,s2,s3];
									P7_HGMpreloader(s1,s2,s3);
								}
								else{
									iM[0].p7imgswap=[sr,sr,sr,sr];
								}
								iM[0].p7state='closed';
								iM[0].mark=false;
								iM[0].rollover=tB.p7opt[14];
								if(swp>0){
									tA[k].hasImg=true;
									iM[0].onmouseover=function(){
										P7_HGMimovr(this);
									};
									iM[0].onmouseout=function(){
										P7_HGMimout(this);
									};
									tA[k].onfocus=function(){
										P7_HGMimovr(this.getElementsByTagName('IMG')[0]);
									};
									tA[k].onblur=function(){
										P7_HGMimout(this.getElementsByTagName('IMG')[0]);
									};
								}
							}
						}
					}
				}
			}
			d=tB.id.replace("_","pg_");
			tD=document.getElementById(d);
			if(tD){
				if(tB.p7opt[1]!='auto'){
					tD.style.width=tB.p7opt[1]+'px';
				}
				tA=tD.getElementsByTagName('A');
				if(tA){
					for(k=0;k<tA.length;k++){
						if(tA[k].id&&tA[k].id.indexOf('p7HGMpg')===0){
							tA[k].hgmDiv=tB.id;
							tB.hgmPaginators[tB.hgmPaginators.length]=tA[k].id;
							tA[k].hgmPanelNum=[tB.hgmPaginators.length];
							tA[k].onclick=function(){
								return P7_HGMpaginator(this);
							};
							if(tB.p7opt[18]==1){
								tA[k].onmouseover=function(){
									P7_HGMpaginator(this);
								};
							}
						}
					}
				}
			}
			d=tB.id.replace('_','wp_');
			tD=document.getElementById(d);
			if(tD){
				tD.style.left='0px';
				tD.hgmDiv=tB.id;
			}
			if(tB.p7opt[9]==1){
				tD.onmouseover=function(){
					var d=document.getElementById(this.hgmDiv);
					if(d.hgmAutoPlay=='play'){
						this.hgmRestart=true;
						P7_HGMpause(d.id);
					}
					else{
						this.hgmRestart=false;
					}
				};
				tD.onmouseout=function(){
					var d=document.getElementById(this.hgmDiv);
					if(this.hgmRestart){
						this.restart=false;
						P7_HGMplay(d.id,true,true);
					}
				};
			}
			tB.hgmControls=new Array(12);
			d=tB.id.replace("_","mpn_");
			tD=document.getElementById(d);
			if(tD){
				if(tB.p7opt[1]!='auto'){
					tD.style.width=tB.p7opt[1]+'px';
				}
			}
			tB.hgmControls[0]=P7_HGMsetCC(tB.id,'bp_','prev');
			tB.hgmControls[1]=P7_HGMsetCC(tB.id,'bn_','next');
			d=tB.id.replace("_","vcr_");
			tD=document.getElementById(d);
			if(tD){
				if(tB.p7opt[1]!='auto'){
					tD.style.width=tB.p7opt[1]+'px';
				}
			}
			tB.hgmControls[2]=P7_HGMsetCC(tB.id,'rf_','first');
			tB.hgmControls[3]=P7_HGMsetCC(tB.id,'rp_','prev');
			d=tB.id.replace('_','rpp_');
			tD=document.getElementById(d);
			if(tD){
				tD.p7state='pause';
				tD.hgmDiv=tB.id;
				tB.hgmControls[4]=tD;
				tD.onclick=function(){
					return P7_HGMpausePlay(this);
				};
			}
			tB.hgmControls[5]=P7_HGMsetCC(tB.id,'rn_','next');
			tB.hgmControls[6]=P7_HGMsetCC(tB.id,'rl_','last');
			d=tB.id.replace("_","vcx_");
			tD=document.getElementById(d);
			if(tD){
				if(tB.p7opt[1]!='auto'){
					tD.style.width=tB.p7opt[1]+'px';
				}
			}
			tB.hgmControls[7]=P7_HGMsetCC(tB.id,'xf_','first');
			tB.hgmControls[8]=P7_HGMsetCC(tB.id,'xp_','prev');
			d=tB.id.replace('_','xpp_');
			tD=document.getElementById(d);
			if(tD){
				tD.p7state='pause';
				tD.hgmDiv=tB.id;
				tB.hgmControls[9]=tD;
				tD.onclick=function(){
					return P7_HGMpausePlay(this);
				};
			}
			tB.hgmControls[10]=P7_HGMsetCC(tB.id,'xn_','next');
			tB.hgmControls[11]=P7_HGMsetCC(tB.id,'xl_','last');
			d=tB.id.replace('_','pgpp_');
			tD=document.getElementById(d);
			if(tD){
				tD.p7state='pause';
				tD.hgmDiv=tB.id;
				tB.hgmControls[12]=tD;
				tD.onclick=function(){
					return P7_HGMpausePlay(this);
				};
			}
			x=tB.p7opt[5];
			if(x==-1){
				x=Math.floor(Math.random()*tB.hgmPanels.length+1);
			}
			if(x>0){
				P7_HGMcontrol(tB.id,'show',x);
			}
			else{
				P7_HGMcontrol(tB.id,'first');
			}
			if(tB.p7opt[15]==1){
				P7_HGMcurrentMark(tB);
			}
			P7_HGMurl(tB.id);
			if(tB.p7opt[7]==1){
				P7_HGMplay(tB.id,true,true);
			}
		}
	}
	p7HGMa=true;
	P7_HGMrs();
}
function P7_HGMshowPanel(md,d){
	var i,tB,tD,tA,tW,vP,x,w,n,tl,ca,a,op,m=false,iM,pa;
	tB=document.getElementById(md);
	tA=tB.hgmTriggers;
	ca=document.getElementById(d.replace('pn_','t'));
	for(i=0;i<tA.length;i++){
		a=document.getElementById(tA[i]);
		if(a){
			P7_HGMremClass(a,'panel_open');
			if(a==ca){
				P7_HGMsetClass(a,'panel_open');
				if(a.hasImg){
					iM=a.getElementsByTagName("IMG")[0];
					iM.p7state='open';
					iM.src=iM.p7imgswap[2];
				}
			}
			else{
				if(a.hasImg){
					iM=a.getElementsByTagName("IMG")[0];
					iM.p7state='closed';
					if(iM.mark){
						iM.src=iM.p7imgswap[3];
					}
					else{
						iM.src=iM.p7imgswap[0];
					}
				}
			}
		}
	}
	tA=tB.hgmPaginators;
	pa=document.getElementById(d.replace('pn_','pg'));
	for(i=0;i<tA.length;i++){
		a=document.getElementById(tA[i]);
		if(a){
			P7_HGMremClass(a,'panel_open');
			if(a==pa){
				P7_HGMsetClass(a,'panel_open');
			}
		}
	}
	tD=document.getElementById(d);
	if(!tD){
		if(ca&&ca.href!=document.location.href){
			if(ca.href.indexOf('javascr')==-1){
				m=true;
			}
		}
		return m;
	}
	if(d==tB.hgmCurrentPanelID){
		P7_HGMsetControlStates(tB);
		return m;
	}
	tB.hgmPrevPanelID=tB.hgmCurrentPanelID;
	tB.hgmCurrentPanel=tD.hgmPanelNum;
	tB.hgmCurrentPanelID=tD.id;
	tW=document.getElementById(tB.id.replace('_','wp_'));
	vP=document.getElementById(tB.id.replace('_','vp_'));
	tl=(tD.hgmPanelNum-1)*vP.offsetWidth*-1;
	if(vP.scrollLeft !== 0){
		vP.scrollLeft=0;
	}
	if(vP.scrollTop !== 0){
		vP.scrollTop=0;
	}
	op=tB.p7opt[3];
	if(!p7HGMa&&op>0&&op!=4){
		op=0;
		P7_HGMsetGlide(tB,tl,true);
	}
	P7_HGMsetControlStates(tB);
	if(op>0){
		P7_HGMsetGlide(tB,tl);
	}
	else{
		tW.style.left=tl+'px';
		P7_HGMsetPanels(tB);
		P7_HGMrs();
	}
	if(tB.hgmAutoPlay=='play'){
		if(tB.hgmCurrentPanelID==tB.hgmPanels[tB.hgmPanels.length-1]&&tB.p7opt[6]!=1&tB.p7opt[11]!=1){
			P7_HGMpause(tB.id,true);
		}
		else{
			tB.hgmRotate=setTimeout("P7_HGMplay('"+tB.id+"',true)",tB.p7opt[8]);
		}
	}
	return m;
}
function P7_HGMsetPanels(ob){
	var i,tD;
	for(i=0;i<ob.hgmPanels.length;i++){
		tD=document.getElementById(ob.hgmPanels[i]);
		if(tD.id==ob.hgmCurrentPanelID){
			tD.style.position='relative';
		}
		else{
			tD.style.position='absolute';
		}
	}
}
function P7_HGMcontrol(d,ac,n){
	var a,m=false,tB,pn,cp,sh=false;
	if(typeof(d)=='object'){
		a=d;
		n=a.hgmPanelNum;
		d=a.hgmDiv;
	}
	tB=document.getElementById(d);
	cp=tB.hgmCurrentPanel;
	if(ac=='first' || ac=='prev' || ac=='next' || ac=='last'){
		pn=P7_HGMgetPanel(tB,ac);
		sh=true;
	}
	else if(ac=='show'){
		if(n<1&&a){
			pn=a.id.replace('t','pn_');
			sh=true;
		}
		else{
			if(n<tB.hgmPanels.length+1){
				pn=tB.hgmPanels[n-1];
				sh=true;
			}
		}
	}
	else if(ac=='pause'){
		P7_HGMpause(d);
	}
	else if(ac=='play'){
		P7_HGMplay(d);
	}
	if(sh){
		if(tB.p7opt[10]==1&&tB.hgmRotate){
			P7_HGMpause(d);
		}
		m=P7_HGMshowPanel(d,pn);
	}
	return m;
}
function P7_HGMpaginator(pG){
	P7_HGMcontrol(pG.hgmDiv,'show',pG.hgmPanelNum);
	return false;
}
function P7_HGMplay(d,sh,de){
	var tB,np;
	tB=document.getElementById(d);
	if(tB){
		if(tB.hgmRotate){
			clearTimeout(tB.hgmRotate);
		}
		np=P7_HGMgetPanel(tB,'next',true);
		if(np==tB.hgmCurrentPanelID){
			if(!sh){
				np=tB.hgmPanels[0];
			}
			else{
				P7_HGMpause(d,sh);
				return;
			}
		}
		P7_HGMsetPlay(tB.hgmControls[4]);
		P7_HGMsetPlay(tB.hgmControls[9]);
		P7_HGMsetPlay(tB.hgmControls[12]);
		tB.hgmAutoPlay='play';
		if(de){
			tB.hgmRotate=setTimeout("P7_HGMshowPanel('"+tB.id+"','"+np+"')",tB.p7opt[8]);
		}
		else{
			P7_HGMshowPanel(tB.id,np);
		}
	}
}
function P7_HGMpause(d){
	var tB;
	tB=document.getElementById(d);
	if(tB){
		if(tB.hgmRotate){
			clearTimeout(tB.hgmRotate);
		}
		P7_HGMsetPause(tB.hgmControls[4]);
		P7_HGMsetPause(tB.hgmControls[9]);
		P7_HGMsetPause(tB.hgmControls[12]);
		tB.hgmAutoPlay='pause';
	}
}
function P7_HGMsetPlay(bt){
	if(bt){
		bt.p7state='play';
		bt.className='pause';
		if(bt.tagName&&bt.tagName=='A'){
			if(bt.firstChild&&bt.firstChild.nodeType==3){
				bt.firstChild.nodeValue='Pause';
			}
		}
	}
}
function P7_HGMsetPause(bt){
	if(bt){
		bt.p7state='pause';
		bt.className='play';
		if(bt.tagName&&bt.tagName=='A'){
			if(bt.firstChild&&bt.firstChild.nodeType==3){
				bt.firstChild.nodeValue='Play';
			}
		}
	}
}
function P7_HGMrotate(d,ac){
	if(ac=='play'){
		P7_HGMplay(d);
	}
	else
	if(ac=='pause'){
		P7_HGMpause(d);
	}
}
function P7_HGMpausePlay(bb,d){
	if(bb.p7state=='pause'){
		P7_HGMplay(bb.hgmDiv);
	}
	else{
		P7_HGMpause(bb.hgmDiv);
	}
	return false;
}
function P7_HGMgetPanel(dd,ac,sh){
	var i,j,cp,tP,k=0,dv='';
	cp=dd.hgmCurrentPanelID;
	tP=dd.hgmPanels;
	j=tP.length-1;
	for(i=0;i<tP.length;i++){
		if(tP[i]==cp){
			k=i;
			break;
		}
	}
	if(ac=='first'){
		dv=tP[0];
	}
	else if(ac=='prev'){
		k--;
		if(k<0){
			if(dd.p7opt[6]==1){
				k=j;
			}
			else{
				k++;
			}
		}
		dv=tP[k];
	}
	else if(ac=='next'){
		k++;
		if(sh&&dd.p7opt[11]==1){
			if(dd.hgmDirection=='reverse'){
				k=i-1;
				if(k<0){
					dd.hgmDirection='forward';
					k=i+1;
				}
			}
			else if(dd.hgmDirection=='forward'){
				if(k>j){
					dd.hgmDirection='reverse';
					k=i-1;
				}
			}
		}
		if(k>j){
			if(dd.p7opt[6]==1){
				k=0;
			}
			else{
				k--;
			}
		}
		dv=tP[k];
	}
	else if(ac=='last'){
		dv=tP[j];
	}
	return dv;
}
function P7_HGMsetControlStates(dd){
	var cp,tP,j,cl;
	if(dd.p7opt[6]===0){
		cp=dd.hgmCurrentPanelID;
		tP=dd.hgmPanels;
		j=tP.length-1;
		cl='off';
		if(tP[0]==cp){
			P7_HGMsetClass(dd.hgmControls[0],cl);
			P7_HGMsetClass(dd.hgmControls[2],cl);
			P7_HGMsetClass(dd.hgmControls[3],cl);
			P7_HGMsetClass(dd.hgmControls[7],cl);
			P7_HGMsetClass(dd.hgmControls[8],cl);
		}
		else{
			P7_HGMremClass(dd.hgmControls[0],cl);
			P7_HGMremClass(dd.hgmControls[2],cl);
			P7_HGMremClass(dd.hgmControls[3],cl);
			P7_HGMremClass(dd.hgmControls[7],cl);
			P7_HGMremClass(dd.hgmControls[8],cl);
		}
		if(tP[j]==cp){
			P7_HGMsetClass(dd.hgmControls[1],cl);
			P7_HGMsetClass(dd.hgmControls[5],cl);
			P7_HGMsetClass(dd.hgmControls[6],cl);
			P7_HGMsetClass(dd.hgmControls[10],cl);
			P7_HGMsetClass(dd.hgmControls[11],cl);
		}
		else{
			P7_HGMremClass(dd.hgmControls[1],cl);
			P7_HGMremClass(dd.hgmControls[5],cl);
			P7_HGMremClass(dd.hgmControls[6],cl);
			P7_HGMremClass(dd.hgmControls[10],cl);
			P7_HGMremClass(dd.hgmControls[11],cl);
		}
	}
}
function P7_HGMsetGlide(dd,tl,bp){
	var tW,dur,dy,stp,fr,frh,ds,cl,tP,th,ch,dh,vP;
	tW=document.getElementById(dd.id.replace('_','wp_'));
	vP=document.getElementById(dd.id.replace('_','vp_'));
	dur=dd.p7opt[4];
	dur=(dur>0)?dur:250;
	dy=(dd.p7opt[3]==2)?15:20;
	dd.hgmDelay=dy;
	dd.hgmTargetLeft=tl;
	stp=dur/dy;
	cl=parseInt(tW.style.left,10);
	ds=Math.abs(Math.abs(tl)-Math.abs(cl));
	if(dd.p7opt[3]==3){
		ds=vP.offsetWidth;
	}
	fr=parseInt(ds/stp,10);
	fr=(fr<=1)?1:fr;
	dd.hgmFrameRate=fr;
	if(dd.p7opt[2]!='auto'){
		th=tW.offsetHeight;
	}
	else{
		tP=document.getElementById(dd.hgmCurrentPanelID);
		th=tP.offsetHeight;
	}
	ch=tW.offsetHeight;
	dh=Math.abs(Math.abs(th)-Math.abs(ch));
	frh=parseInt(dh/stp,10);
	frh=(frh<=1)?1:frh;
	dd.hgmFrameRateHeight=frh;
	dd.hgmTargetHeight=th;
	if(!bp){
		if(dd.p7opt[3]==4){
			if(dh>0&&!dd.hgmAnimRunning){
				dd.hgmAnimRunning=true;
				dd.hgmGlider=setInterval("P7_HGMglider('"+dd.id+"')",dd.hgmDelay);
			}
			else{
				P7_HGMsetPanels(dd);
				P7_HGMsetFader(dd);
			}
		}
		else if((ds>0||dh>0)&&!dd.hgmAnimRunning){
			dd.hgmAnimRunning=true;
			P7_HGMsetOverflow(dd);
			dd.hgmGlider=setInterval("P7_HGMglider('"+dd.id+"')",dd.hgmDelay);
		}
	}
}
function P7_HGMsetFader(dd){
	var i,zz,cP,pP,tPS,p,tW;
	tW=document.getElementById(dd.id.replace('_','wp_'));
	dd.hgmFrameRateFader=4;
	dd.hgmDelayFader=30;
	cP=document.getElementById(dd.hgmCurrentPanelID);
	if(p7HGMa){
		if(!cP.filters){
			cP.style.opacity=0.01;
		}
		else{
			cP.style.filter='alpha(opacity=1)';
		}
	}
	cP.hgmOpacity=1;
	cP.style.zIndex=9200;
	cP.style.left='0px';
	pP=document.getElementById(dd.hgmPrevPanelID);
	tPS=dd.hgmPanels;
	for(i=0;i<tPS.length;i++){
		p=document.getElementById(tPS[i]);
		if(p.id!=cP.id){
			zz=9000;
			if(p==pP){
				zz=9100;
				if(p7HGMa){
					if(!p.filters){
						p.style.opacity=0.99;
					}
					else{
						p.style.filter='alpha(opacity=99)';
					}
				}
				else{
					p.style.left=(p.offsetWidth*-1)+'px';
				}
				p.hgmOpacity=100;
				p.style.zIndex=zz;
			}
			else{
				p.style.zIndex=zz;
				p.hgmOpacity=100;
				p.style.left=(p.offsetWidth*-1)+'px';
			}
		}
	}
	tW.style.left='0px';
	if(!dd.hgmFaderRunning){
		dd.hgmFaderRunning=true;
		dd.hgmFader=setInterval("P7_HGMfader('"+dd.id+"')",dd.hgmDelayFader);
	}
}
function P7_HGMfader(dv){
	var tB,cP,pP,co,po,ulm=99,llm=1,fr;
	tB=document.getElementById(dv);
	fr=tB.hgmFrameRateFader;
	cP=document.getElementById(tB.hgmCurrentPanelID);
	pP=document.getElementById(tB.hgmPrevPanelID);
	co=cP.hgmOpacity;
	po=pP.hgmOpacity;
	co+=fr;
	po -= fr;
	if(cP.id==pP.id){
		po=llm;
	}
	co=(co >= ulm)?ulm:co;
	po=(po<=llm)?llm:po;
	cP.hgmOpacity=co;
	pP.hgmOpacity=po;
	if(!cP.filters){
		cP.style.opacity=(co / 100);
		if(cP.id!=pP.id){
			pP.style.opacity=(po / 100);
		}
	}
	else{
		cP.style.filter='alpha(opacity='+(co)+')';
		if(cP.id!=pP.id){
			pP.style.filter='alpha(opacity='+(po)+')';
		}
	}
	if(co==ulm&&po==llm){
		tB.hgmFaderRunning=false;
		clearInterval(tB.hgmFader);
		pP.style.left=(pP.offsetWidth*-1)+'px';
		if(cP.filters){
			cP.style.filter='';
			pP.style.filter='';
		}
		else{
			pP.style.opacity=1;
			cP.style.opacity=1;
		}
		P7_HGMrs();
	}
}
function P7_HGMglider(d){
	var tB,tW,tl,th,cl,ch,fr,frh,dy,nl=0,nh=0,op,tt,tp,pc=0.15,m=false;
	tB=document.getElementById(d);
	tW=document.getElementById(tB.id.replace('_','wp_'));
	tl=tB.hgmTargetLeft;
	cl=parseInt(tW.style.left,10);
	fr=tB.hgmFrameRate;
	dy=tB.hgmDelay;
	op=tB.p7opt[3];
	if(op==2){
		tt=Math.abs(Math.abs(tl)-Math.abs(cl));
		tp=parseInt(tt*pc,10);
		fr=(tp<1)?1:tp;
	}
	if(tB.p7opt[3]==4){
		cl=tl;
	}
	th=tB.hgmTargetHeight;
	ch=parseInt(tW.style.height,10);
	if(!ch){
		ch=tW.offsetHeight;
	}
	frh=tB.hgmFrameRateHeight;
	if(op==2){
		tt=Math.abs(Math.abs(th)-Math.abs(ch));
		tp=parseInt(tt*pc,10);
		frh=(tp<1)?1:tp;
	}
	if(tl<cl){
		nl=cl-fr;
		nl=(nl<=tl)?tl:nl;
		tW.style.left=nl+'px';
		m=true;
	}
	else if(tl>cl){
		nl=cl+fr;
		nl=(nl>=tl)?tl:nl;
		tW.style.left=nl+'px';
		m=true;
	}
	if(th<ch){
		nh=ch-frh;
		nh=(nh<=th)?th:nh;
		tW.style.height=nh+'px';
		m=true;
	}
	else if(th>ch){
		nh=ch+frh;
		nh=(nh>=th)?th:nh;
		tW.style.height=nh+'px';
		m=true;
	}
	if(!m){
		clearInterval(tB.hgmGlider);
		tB.hgmAnimRunning=false;
		P7_HGMrestoreOverflow(tB);
		P7_HGMsetPanels(tB);
		if(tB.p7opt[2]=='auto'){
			tW.style.height='auto';
		}
		P7_HGMrs();
		if(tB.p7opt[3]==4){
			P7_HGMsetFader(tB);
		}
	}
}
function P7_HGMpreloader(){
	var i,x;
	for(i=0;i<arguments.length;i++){
		x=document.p7HGMpreload.length;
		document.p7HGMpreload[x]=new Image();
		document.p7HGMpreload[x].src=arguments[i];
	}
}
function P7_HGMimovr(im){
	var m=false,r=im.rollover;
	if(im.mark){
		m=(r>1)?true:false;
	}
	else
	if(im.p7state=='open'){
		m=(r==1 || r==3)?true:false;
	}
	else{
		m=true;
	}
	if(m){
		im.src=im.p7imgswap[1];
	}
}
function P7_HGMimout(im){
	var r=im.rollover;
	if(im.mark){
		if(im.p7state=='open'){
			im.src=im.p7imgswap[2];
		}
		else{
			im.src=im.p7imgswap[3];
		}
	}
	else
	if(im.p7state=='open'){
		if(r==1 || r==3){
			im.src=im.p7imgswap[2];
		}
	}
	else{
		im.src=im.p7imgswap[0];
	}
}
function P7_HGMmark(){
	p7HGMadv[p7HGMadv.length]=arguments;
}
function P7_HGMcurrentMark(el){
	var j,i,x,wH,cm=false,mt=['',1,'',''],op,r1,k,kk,tA,aU,pp,tr,aT,aP,d,pn;
	wH=window.location.href;
	if(el.p7opt[16]!=1){
		wH=wH.replace(window.location.search,'');
	}
	if(wH.charAt(wH.length-1)=='#'){
		wH=wH.substring(0,wH.length-1);
	}
	for(k=0;k<p7HGMadv.length;k++){
		if(p7HGMadv[k][0]&&p7HGMadv[k][0]==el.id){
			mt=p7HGMadv[k];
			cm=true;
			break;
		}
	}
	op=mt[1];
	if(op<1){
		return;
	}
	r1=/index\.[\S]*/i;
	k=-1;
	kk=-1;
	tA=[];
	d=document.getElementById(el.id.replace("_","trg_"));
	if(d){
		aT=d.getElementsByTagName('A');
		if(aT&&aT.length>0){
			for(i=0;i<aT.length;i++){
				tA[tA.length]=aT[i];
			}
		}
	}
	d=document.getElementById(el.id.replace("_","wp_"));
	if(d){
		aP=d.getElementsByTagName('A');
		if(aP&&aP.length>0){
			for(i=0;i<aP.length;i++){
				tA[tA.length]=aP[i];
			}
		}
	}
	for(j=0;j<tA.length;j++){
		aU=tA[j].href.replace(r1,'');
		if(op>0){
			if(tA[j].href==wH || aU==wH){
				k=j;
				kk=-1;
			}
		}
		if(op==2){
			if(tA[j].firstChild){
				if(tA[j].firstChild.nodeValue==mt[2]){
					kk=j;
				}
			}
		}
		if(op==3&&tA[j].href.indexOf(mt[2])>-1){
			kk=j;
		}
		if(op==4){
			for(x=2;x<mt.length;x+=2){
				if(wH.indexOf(mt[x])>-1){
					if(tA[j].firstChild&&tA[j].firstChild.nodeValue){
						if(tA[j].firstChild.nodeValue==mt[x+1]){
							kk=j;
						}
					}
				}
			}
		}
	}
	k=(kk>k)?kk:k;
	if(k>-1){
		if(tA[k].hgmPanelNum){
			tr=tA[k];
			pn=tA[k].id.replace("t","pn_");
		}
		else{
			P7_HGMsetClass(tA[k],'current_mark');
			pp=tA[k].parentNode;
			while (pp){
				if(pp.id&&pp.id.indexOf(el.id.replace('_','pn_'))===0){
					tr=document.getElementById(pp.id.replace("pn_","t"));
					pn=pp.id;
					break;
				}
				pp=pp.parentNode;
			}
		}
		if(tr){
			P7_HGMsetClass(tr,'current_mark');
			P7_HGMsetClass(tr.parentNode,'current_mark');
			if(tr.hasImg){
				im=tr.getElementsByTagName('IMG')[0];
				im.mark=true;
				im.src=im.p7imgswap[3];
			}
			P7_HGMshowPanel(el.id,pn);
		}
	}
}
function P7_HGMurl(dv){
	var i,h,s,x,d='hgm',pn,n=dv.replace("p7HGM_","");
	if(document.getElementById){
		h=document.location.search;
		if(h){
			h=h.replace('?','');
			s=h.split(/[=&]/g);
			if(s&&s.length){
				for(i=0;i<s.length;i+=2){
					if(s[i]==d){
						x=s[i+1];
						if(n!=x.charAt(0)){
							x=false;
						}
						if(x){
							pn='p7HGMpn_'+x;
							P7_HGMshowPanel(dv,pn);
						}
					}
				}
			}
		}
		h=document.location.hash;
		if(h){
			x=h.substring(1,h.length);
			if(n!=x.charAt(3)){
				x=false;
			}
			if(x&&x.indexOf(d)===0){
				pn='p7HGMpn_'+x.substring(3);
				P7_HGMshowPanel(dv,pn);
			}
		}
	}
}
function P7_HGMov(ob){
	var s,m;
	s=ob.style.overflow;
	if(!s){
		if(ob.currentStyle){
			s=ob.currentStyle.overflow;
		}
		else
		if(document.defaultView.getComputedStyle(ob,"")){
			s=document.defaultView.getComputedStyle(ob,"").getPropertyValue("overflow");
		}
	}
	m=(s&&s=='auto')?true:false;
	return m;
}
function P7_HGMsetCC(dd,rp,ac){
	var d,tD;
	d=dd.replace('_',rp);
	tD=document.getElementById(d);
	if(tD){
		tD.onclick=function(){
			return P7_HGMcontrol(dd,ac);
		};
	}
	return tD;
}
function P7_HGMsetClass(ob,cl){
	if(ob){
		var cc,nc,r=/\s+/g;
		cc=ob.className;
		nc=cl;
		if(cc&&cc.length>0){
			if(cc.indexOf(cl)==-1){
				nc=cc+' '+cl;
			}
			else{
				nc=cc;
			}
		}
		nc=nc.replace(r,' ');
		ob.className=nc;
	}
}
function P7_HGMremClass(ob,cl){
	if(ob){
		var cc,nc,r=/\s+/g;
		cc=ob.className;
		if(cc&&cc.indexOf(cl>-1)){
			nc=cc.replace(cl,'');
			nc=nc.replace(r,' ');
			nc=nc.replace(/\s$/,'');
			ob.className=nc;
		}
	}
}
function P7_HGMhasOverflow(ob){
	var s,m;
	s=ob.style.overflow;
	if(!s){
		if(document.defaultView.getComputedStyle(ob,"")){
			s=document.defaultView.getComputedStyle(ob,"").getPropertyValue("overflow");
		}
	}
	m=(s&&s.indexOf('auto')>-1)?true:false;
	return m;
}
function P7_HGMsetOverflow(tB){
	if(navigator.userAgent.toLowerCase().indexOf('gecko')>-1){
		var i,dv,tD=tB.hgmPanels;
		for(i=0;i<tD.length;i++){
			dv=document.getElementById(tD[i]);
			if(P7_HGMhasOverflow(dv)){
				dv.hgmOverflow='auto';
				dv.style.overflow='hidden';
			}
			else{
				dv.hgmOverflow='';
			}
		}
	}
}
function P7_HGMrestoreOverflow(tB){
	if(navigator.userAgent.toLowerCase().indexOf('gecko')>-1){
		var i,dv,tD=tB.hgmPanels;
		for(i=0;i<tD.length;i++){
			dv=document.getElementById(tD[i]);
			if(dv.hgmOverflow=='auto'){
				if(!tB.hgmAnimRunning){
					dv.style.overflow='auto';
				}
			}
		}
	}
}
function P7_HGMrs(){
	var i,j,tB,vP,wP,tD,pP,tl,h=0,oh,w=0,jj,n;
	if(!p7HGMa){
		return;
	}
	for(i=p7HGMctl.length-1;i>-1;i--){
		if(p7HGMctl[i][1]=='auto'){
			tB=document.getElementById(p7HGMctl[i][0]);
			if(tB.hgmAnimRunning){
				continue;
			}
			wP=document.getElementById(tB.id.replace('_','wp_'));
			vP=document.getElementById(tB.id.replace('_','vp_'));
			w=vP.offsetWidth;
			for(j=0;j<tB.hgmPanels.length;j++){
				pP=document.getElementById(tB.hgmPanels[j]);
				pP.style.width=w+'px';
				if(tB.p7opt[3]==4){
					if(pP.id!=tB.hgmCurrentPanelID){
						pP.style.left=(pP.offsetWidth*-1)+'px';
					}
				}
				else{
					pP.style.left=((pP.hgmPanelNum-1)*w)+'px';
				}
			}
			n=tB.hgmPanelNums;
			if(n&&n>0){
				if(tB.p7opt[1]=='auto'){
					wP.style.width =(n*w)+'px';
				}
				else{
					wP.style.width=(tB.p7opt[1]*n)+'px';
				}
			}
			tl=(tB.hgmCurrentPanel-1)*vP.offsetWidth*-1;
			tB.targetLeft=tl;
			if(tB.p7opt[3]!=4){
				wP.style.left=tl+'px';

			}
		}
	}
}
function P7_HGMparsePN(d){
	var x=d.lastIndexOf('_');
	return parseInt(d.substr(x+1));
}





/* 

  ================================================
  PVII Elevator Panel Magic scripts
  Copyright (c) 2008-2009 Project Seven Development
  www.projectseven.com
  Version:  2.1.2 - script build: 1-27
  ================================================
  
*/

var p7EPMa=false,p7EPMi=false,p7EPMctl=[],p7EPMmo,p7EPMmanim=false,p7EPMadv=[];;
function P7_EPMset(){
	var i,h,sh,hd,x,v;
	if(!document.getElementById){
		return;
	}
	sh='.p7epm_cwrapper {height:0px;overflow:hidden;}\n';
	if(document.styleSheets){
		h='\n<st' + 'yle type="text/css">\n'+sh+'\n</s' + 'tyle>';
		document.write(h);
	}
	else{
		h=document.createElement('style');
		h.type='text/css';
		h.appendChild(document.createTextNode(sh));
		hd=document.getElementsByTagName('head');
		hd[0].appendChild(h);
	}
}
P7_EPMset();
function P7_EPMaddLoad(){
	if(window.addEventListener){
		if(!/KHTML|WebKit/i.test(navigator.userAgent)){
			document.addEventListener("DOMContentLoaded",P7_initEPM,false);
		}
		window.addEventListener("load",P7_initEPM,false);
		window.addEventListener("unload",P7_EPMff,false);
	}
	else if(document.addEventListener){
		document.addEventListener("load",P7_initEPM,false);
	}
	else if(window.attachEvent){
		document.write("<script id=p7ie_epm defer src=\"//:\"><\/script>");
		document.getElementById("p7ie_epm").onreadystatechange=function(){
			if (this.readyState=="complete"){
				if(p7EPMctl.length>0){
					P7_initEPM();
				}
			}
		};
		window.attachEvent("onload",P7_initEPM);
	}
	else if(typeof window.onload=='function'){
		var p7vloadit=onload;
		window.onload=function(){
			p7vloadit();
			P7_initEPM();
		};
	}
	else{
		window.onload=P7_initEPM;
	}
}
P7_EPMaddLoad();
function P7_EPMff(){
	return;
}
function P7_opEPM(){
	var h='',hh,b,cn,sD,d,tB,cTD,mD;
	if(!document.getElementById){
		return;
	}
	p7EPMctl[p7EPMctl.length]=arguments;
}
function P7_initEPM(){
	var i,j,x,tB,tD,tA,tg,cP,dh,tr,ob,cl;
	if(!document.getElementById){
		return;
	}
	if(p7EPMi){
		return;
	}
	p7EPMi=true;
	for(i=0;i<p7EPMctl.length;i++){
		tB=document.getElementById(p7EPMctl[i][0]);
		if(tB){
			tB.p7opt=p7EPMctl[i];
			if(tB.p7opt[8]==1){
				tB.onmouseout=P7_EPMout;
			}
			cl=parseInt(tB.className.replace('p7EPM',''));
			if(navigator.appVersion.indexOf("MSIE 5")>-1){
				tB.p7opt[2]=0;
			}
			tB.p7EPMtrig=new Array();
			tB.p7EPMcont=new Array();
			tD=document.getElementById(tB.id.replace("EPM_","EPMt_"));
			if(tD){
				tA=tD.getElementsByTagName("A");
				if(tB.p7opt[8]==1){
					tD.onmouseout=P7_EPMout;
				}
				tg='p7EPMtrg';
				x=0;
				for(j=0;j<tA.length;j++){
					if(tA[j].id && tA[j].id.indexOf(tg)===0){
						tA[j].onclick=function(){
							return P7_EPMtrig(this);
						};
						if(tB.p7opt[4]==1){
							tA[j].onmouseover=function(){
								if(p7EPMmo){
									clearTimeout(p7EPMmo);
								}
								p7EPMmanim=true;
								p7EPMmo=setTimeout("P7_EPMmtrg('"+this.id+"',1)",200);
							};
							tA[j].onmouseout=function(){
								if(p7EPMmo){
									clearTimeout(p7EPMmo);
								}
								p7EPMmanim=false;
							};
						}
						tB.p7EPMtrig[x]=tA[j];
						x++;
						tA[j].p7state='closed';
						tA[j].p7EPMpr=tB.id;
						cP=document.getElementById(tA[j].id.replace("trg","w"));
						tB.p7EPMcont[tB.p7EPMcont.length]=(cP)?cP:null;
						if(cP){
							tA[j].p7EPMw=cP.id;
							cP.p7state='closed';
							cP.p7EPMtrg=tA[j].id;
							if(cl&&cl>49){
								cP.style.position='absolute';
							}
							if(tB.p7opt[2]==1||tB.p7opt[2]==2){
								cP.style.height='0px';
								cP.p7EPMtarget=0;
								cP.p7EPMrate=10;
								cP.p7ch=0;
							}
							else{
								cP.style.display='none';
								cP.style.height='auto';
							}
						}
						else{
							tA[j].p7EPMw=false;
							P7_EPMsetClass(tA[j],'p7EPM_ext');
						}
					}
				}
				tr=tB.id.replace("_","trg")+"_"+tB.p7opt[1];
				ob=document.getElementById(tr);
				if(ob){
					P7_EPMopen(ob);
				}
				if(tB.p7opt[10]==1){
					P7_EPMcurrentMark(tB);
				}
				if(tB.p7opt[5]>0){
					P7_EPMrotate(tB.id,tB.p7opt[5]);
				}
			}
		}
	}
	for(i=0;i<p7EPMctl.length;i++){
		P7_EPMurl(p7EPMctl[i][0]);
	}
	p7EPMa=true;
}
function P7_EPMmtrg(d){
	P7_EPMtrig(document.getElementById(d),1);
}
function P7_EPMout(evt){
	var tg,m=true,pp,idd,tR,cR;
	idd=this.id.replace("t",'');
	evt=(evt)?evt:event;
	tg=(evt.relatedTarget)?evt.relatedTarget:evt.toElement;
	tR=idd.replace('_','t_');
	cR=idd.replace('_','c');
	if(tg){
		pp=tg;
		while(pp){
			if(pp&&pp.id){
				if(pp.id.indexOf(tR)===0||pp.id.indexOf(cR)===0){
					m=false;
					break;
				}
			}
			pp=pp.parentNode;
		}
	}
	if(m){
		P7_EPMall(idd,'close');
	}
}
function P7_EPMctl(tr,ac,bp){
	var tA=document.getElementById(tr);
	if(tA){
		if(ac=='open'){
			if(tA.p7state!='open'){
				P7_EPMtrig(tA,0,bp);
			}
		}
		else if(ac=='close'){
			if(tA.p7state!='closed'){
				P7_EPMtrig(tA,0,bp);
			}
		}
		else if(ac=='trigger'){
			P7_EPMtrig(tA,0,bp);
		}
	}
	return false;
}
function P7_EPMall(dv,ac){
	var i,j,mD,a;
	if(dv=='all'){
		for(i=0;i<p7EPMctl.length;i++){
			if(ac=='open'){
				mD=document.getElementById(p7EPMctl[i][0]);
				for(j=0;j<mD.p7EPMtrig.length;j++){
					if(mD.p7EPMtrig[j].p7state!='open'){
						P7_EPMopen(mD.p7EPMtrig[j]);
					}
				}
			}
			else{
				P7_EPMtoggle(p7EPMctl[i][0]);
			}
		}
	}
	else{
		mD=document.getElementById(dv);
		if(mD){
			if(ac=='open'){
				for(j=0;j<mD.p7EPMtrig.length;j++){
					if(mD.p7EPMtrig[j].p7state!='open'){
						P7_EPMopen(mD.p7EPMtrig[j]);
					}
				}
			}
			else{
				P7_EPMtoggle(dv);
			}
		}
	}
}
function P7_EPMtrig(a,mv,bp){
	var i,j,mD,tB,m=true;
	if(!bp&&mv!=1&&a.href!=document.location.href){
		if(a.hash.indexOf('#p7EPMc')==-1){
			if(a.href.replace(/index\.[\S]*/i,'')!=document.location.href){
				if(a.href.indexOf('/')>-1||a.href.indexOf('.')>-1){
					return true;
				}
			}
		}
	}
	if(!p7EPMa&&!bp){
		return false;
	}
	if(mv==1&&a.p7state=='open'){
		return false;
	}
	if(a.p7EPMw){
		m=false;
	}
	mD=document.getElementById(a.p7EPMpr);
	if(!mv&&p7EPMmanim){
		return m;
	}
	if(mD.p7rtmr){
		clearTimeout(mD.p7rtmr);
	}
	if(mD.p7opt[3]==1){
		P7_EPMtoggle(a.p7EPMpr,a);
	}
	else if(mD.p7opt[3]==2){
		for(j=0;j<p7EPMctl.length;j++){
			P7_EPMtoggle(p7EPMctl[j][0],a);
		}
	}
	if(a.p7state=='open'){
		if(mD.p7opt[7]==1 && mD.p7opt[3]>0){
			return m;
		}
		else{
			P7_EPMclose(a);
		}
	}
	else{
		P7_EPMopen(a);
	}
	return m;
}
function P7_EPMtoggle(dv,a){
	var i,mD;
	mD=document.getElementById(dv);
	if(mD){
		for(i=0;i<mD.p7EPMtrig.length;i++){
			if(mD.p7EPMtrig[i].p7state!='closed'){
				if(mD.p7EPMtrig[i]!=a){
					P7_EPMclose(mD.p7EPMtrig[i]);
				}
			}
		}
	}
}
function P7_EPMopen(a){
	var i,mD,wD,cD,ch,th,ov=false,cl,op;
	a.p7state='open';
	P7_EPMsetClass(a,'p7epm_open');
	mD=document.getElementById(a.p7EPMpr);
	wD=document.getElementById(a.p7EPMw);
	op=mD.p7opt[2];
	if(!p7EPMa){
		op=0;
	}
	if(wD){
		cD=document.getElementById(wD.id.replace('w','c'));
		if(op>0){
			if(navigator.userAgent.toLowerCase().indexOf("gecko")>-1){
				if(P7_EPMov(cD)){
					cD.style.overflow="hidden";
					cD.p7ov=true;
				}
			}
			wD.style.height='0px';
			wD.p7ch=0;
			P7_EPMsetGlide(a,op,mD.p7opt[9]);
			if(!mD.p7EPMrunning){
				mD.p7EPMrunning=true;
				mD.p7EPMglide=setInterval("P7_EPMglide('"+mD.id+"')",wD.p7EPMdy);
			}
		}
		else{
			p7EPMmanim=false;
			if(mD.p7opt[2]==0){
				wD.style.display='block';
			}
			else{
				wD.style.height='auto';
				P7_EPMsetGlide(a,op,mD.p7opt[9]);
				wD.p7ch=wD.p7EPMtarget;
			}
		}
	}
}
function P7_EPMclose(a){
	var i,mD,wD,cD,ch,th,ov=false,op;
	a.p7state='closed';
	P7_EPMremClass(a,'p7epm_open');
	mD=document.getElementById(a.p7EPMpr);
	op=mD.p7opt[2];
	if(!p7EPMa){
		op=0;
	}
	wD=document.getElementById(a.p7EPMw);
	if(wD){
		cD=document.getElementById(wD.id.replace('w','c'));
		if(op>0){
			if(navigator.userAgent.toLowerCase().indexOf("gecko")>-1){
				if(P7_EPMov(cD)){
					cD.style.overflow="hidden";
					cD.p7ov=true;
				}
			}
			wD.p7ch=wD.offsetHeight;
			P7_EPMsetGlide(a,op,mD.p7opt[9]);
			if(!mD.p7EPMrunning){
				mD.p7EPMrunning=true;
				mD.p7EPMglide=setInterval("P7_EPMglide('"+mD.id+"')",wD.p7EPMdy);
			}
		}
		else{
			p7EPMmanim= false;
			if(mD.p7opt[2]==0){
				wD.style.display='none';
			}
			else{
				wD.style.height='0px';
				wD.p7ch=0;
				P7_EPMsetGlide(a,op,mD.p7opt[9]);
			}
		}
	}
}
function P7_EPMrotate(dv,md,pn){
	var i;
	tB=document.getElementById(dv);
	if(md===0){
		if(tB.p7rtmr){
			clearTimeout(tB.p7rtmr);
		}
		if(tB.p7rtrun){
			tB.p7rtcntr--;
			tB.p7rtrun=false;
		}
		return;
	}
	else{
		if(tB.p7rtrun){
			return;
		}
	}
	if(tB&&tB.p7EPMtrig){
		if(md>0){
			tB.p7rtmd=md;
			tB.p7rtcy=1;
			tB.p7rtcntr=1;
		}
		if(!pn){
			pn=-1;
			for(i=0;i<tB.p7EPMtrig.length;i++){
				if(tB.p7EPMtrig[i].p7state=='open'){
					pn=i;
					break;
				}
			}
		}
		else{
			pn--;
		}
		pn=(pn<-1)?0:pn;
		pn=(pn>tB.p7EPMtrig.length-1)?tB.p7EPMtrig.length-1:pn;
		if(md>0){
			tB.p7rtsp=pn;
		}
		if(tB.p7rtmr){
			clearTimeout(tB.p7rtmr);
		}
		tB.p7rtmr=setTimeout("P7_EPMrunrt('"+dv+"',"+pn+")",10);
	}
}
function P7_EPMrunrt(dv,n){
	var a,tB;
	tB=document.getElementById(dv);
	tB.p7rtrun=true;
	if(tB.p7rtmr){
		clearTimeout(tB.p7rtmr);
	}
	if(n>-1&&n<tB.p7EPMtrig.length){
		a=tB.p7EPMtrig[n];
		if(a.p7state!="open"){
			P7_EPMtrig(a,0,true);
		}
		tB.p7rtcntr++;
	}
	n++;
	if(tB.p7rtcntr>tB.p7EPMtrig.length){
		tB.p7rtcy++;
		tB.p7rtcntr=1;
	}
	if(n>=tB.p7EPMtrig.length){
		n=0;
	}
	if(tB.p7rtcy>tB.p7rtmd){
		if(tB.p7rtsp==-1){
			tB.p7rtmr=setTimeout("P7_EPMall('"+dv+"','all')",tB.p7opt[6]);
		}
		else{
			tB.p7rtmr=setTimeout("P7_EPMctl('"+	tB.p7EPMtrig[n].id+"','open',true)",tB.p7opt[6]);
		}
		tB.p7rtrun=false;
	}
	else{
		tB.p7rtmr=setTimeout("P7_EPMrunrt('"+dv+"',"+n+")",tB.p7opt[6]);
	}
}
function P7_EPMglide(d){
	var i,ht,tB,tA,tC,st,ch,th,nh,inc,tt,tp,pc=.15,m=false,cD;
	tB=document.getElementById(d);
	tA=tB.p7EPMtrig;
	tC=tB.p7EPMcont;
	for(i=0;i<tA.length;i++){
		st=tA[i].p7state;
		if(tC[i]){
			ch=tC[i].p7ch;
			if(st=='open'&&tC[i].p7EPMtarget==0){
				tC[i].p7EPMtarget=tC[i].offsetHeight;
			}
			th=(st=='closed')?0:tC[i].p7EPMtarget;
			inc=tC[i].p7EPMrate;
			if(tB.p7opt[2]==2){
				tt=Math.abs( parseInt(ch-th) );
				tp=parseInt(tt*pc);
				inc=(tp<1)?1:tp;
			}
			if(st=='closed'&&ch!==0){
				nh=ch-inc;
				nh=(nh<=0)?0:nh;
				m=true;
				tC[i].style.height=nh+'px';
				tC[i].p7ch=nh;
			}
			else if(st=='open'&&ch!=th){
				nh=ch+inc;
				nh=(nh>=th)?th:nh;
				m=true;
				tC[i].style.height=nh+'px';
				tC[i].p7ch=nh;
			}
			else{
				if(st=='open'){
					tC[i].style.height='auto';
					cD=document.getElementById(tC[i].id.replace("w","c"));
					if(cD.p7ov){
						cD.style.overflow="auto";
						cD.p7ov=false;
					}
				}
			}
		}
	}
	if(!m){
		p7EPMmanim=false;
		tB.p7EPMrunning=false;
		clearInterval(tB.p7EPMglide);
	}
}
function P7_EPMsetGlide(a,op,dur){
	var tC,tS,th,stp,fr,dy;
	dur=(dur>0)?dur:250;
	dy=(op==2)?15:20;
	tC=document.getElementById(a.p7EPMw);
	tC.p7EPMdy=dy;
	tS=document.getElementById(a.id.replace('trg','c'));
	th=tS.offsetHeight;
	tC.p7EPMtarget=th;
	stp=dur/dy;
	fr=parseInt(th/stp);
	fr=(fr<=1)?1:fr;
	tC.p7EPMrate=fr;
}
function P7_EPMmark(){
	p7EPMadv[p7EPMadv.length]=arguments;
}
function P7_EPMcurrentMark(el){
	var j,i,k,wH,cm=false,mt=['',1,'',''],op,r1,k,kk,tA,aU,pp,a,im;;
	wH=window.location.href;
	if(el.p7opt[12!=1]){
		wH=wH.replace(window.location.search,'');
	}
	if(wH.charAt(wH.length-1)=='#'){
		wH=wH.substring(0,wH.length-1);
	}
	for(k=0;k<p7EPMadv.length;k++){
		if(p7EPMadv[k][0]&&p7EPMadv[k][0]==el.id){
			mt=p7EPMadv[k];
			cm=true;
			break;
		}
	}
	op=mt[1];
	if(op<1){
		return;
	}
	r1=/index\.[\S]*/i;
	k=-1,kk=-1;
	tA=el.getElementsByTagName("A");
	for(j=0;j<tA.length;j++){
		aU=tA[j].href.replace(r1,'');
		if(op>0){
			if(tA[j].href==wH||aU==wH){
				k=j;
				kk=-1;
			}
		}
		if(op==2){
			if(tA[j].firstChild){
				if(tA[j].firstChild.nodeValue==mt[2]){
					kk=j;
				}
			}
		}
		if(op==3&&tA[j].href.indexOf(mt[2])>-1){
			kk=j;
		}
		if(op==4){
			for(x=2;x<mt.length;x+=2){
				if(wH.indexOf(mt[x])>-1){
					if(tA[j].firstChild&&tA[j].firstChild.nodeValue){
						if(tA[j].firstChild.nodeValue==mt[x+1]){
							kk=j;
						}
					}
				}
			}
		}
	}
	k=(kk>k)?kk:k;
	if(k>-1){
		if(tA[k].p7EPMpr){
			tr=tA[k];
		}
		else{
			P7_EPMsetClass(tA[k],'current_mark');
			pp=tA[k].parentNode;
			while(pp){
				if(pp.id&&pp.id.indexOf('p7EPMw')==0){
					tr=document.getElementById(pp.p7EPMtrg);
					break;
				}
				pp=pp.parentNode;
			}
		}
		if(tr){
			P7_EPMsetClass(tr,'current_mark');
			P7_EPMsetClass(tr.parentNode,'current_mark');
			if(el.p7opt[11]==1){
				if(tr.p7state!='open'){
					P7_EPMtrig(tr,0,true);
				}
			}
		}
	}
}
function P7_EPMurl(dv){
	var i,h,s,x,d='epm',a,n=dv.replace("p7EPM_","");
	if(document.getElementById){
		h=document.location.search;
		if(h){
			h=h.replace('?','');
			s=h.split(/[=&]/g);
			if(s&&s.length){
				for(i=0;i<s.length;i+=2){
					if(s[i]==d){
						x=s[i+1];
						if(n!=x.charAt(0)){
							x=false;
						}
						if(x){
							a=document.getElementById('p7EPMtrg'+x);
							if(a&&a.p7state!="open"){
								P7_EPMtrig(a,0,true);
							}
						}
					}
				}
			}
		}
		h=document.location.hash;
		if(h){
			x=h.substring(1,h.length);
			if(n!=x.charAt(3)){
				x=false;
			}
			if(x&&x.indexOf(d)===0){
				a=document.getElementById('p7EPMtrg'+x.substring(3));
				if(a&&a.p7state!="open"){
					P7_EPMtrig(a,0,true);
				}
			}
		}
	}
}
function P7_EPMov(ob){
	var s,m;
	s=ob.style.overflow;
	if(!s){
		if(ob.currentStyle){
			s=ob.currentStyle.overflow;
		}
		else if(document.defaultView.getComputedStyle(ob,"")){
			s=document.defaultView.getComputedStyle(ob,"").getPropertyValue("overflow");
		}
	}
	m=(s&&s=='auto')?true:false;
	return m;
}
function P7_EPMsetClass(ob,cl){
	var cc,nc,r=/\s+/g;
	cc=ob.className;
	nc=cl;
	if(cc&&cc.length>0){
		if(cc.indexOf(cl)==-1){
			nc=cc+' '+cl;
		}
		else{
			return;
		}
	}
	nc=nc.replace(r,' ');
	ob.className=nc;
}
function P7_EPMremClass(ob,cl){
	var cc,nc,r=/\s+/g;;
	cc=ob.className;
	if(cc&&cc.indexOf(cl>-1)){
		nc=cc.replace(cl,'');
		nc=nc.replace(r,' ');
		ob.className=nc;
	}
}





/* 

  ================================================
  PVII Lightshow Magic scripts
  Copyright (c) 2008-2010 Project Seven Development
  www.projectseven.com
  Version:  1.3.3 - script build: 1-59
  ================================================
  
*/

// Global text content for Help and Table of Contents boxes
// Any single quotes (') MUST be preceded by a backward slash (\)

// Help Box Heading Text:
var p7LSMHLP='Help: Keyboard Shortcuts';

// Help Box text items:
// A new line is created for each p7Help[x] item
var p7LSMHelp=[];
p7LSMHelp[0]='To advance to the next box click the VCR controls in the header or press your Space Bar.';
p7LSMHelp[1]='You can move forward or backward with the Left Arrow, Right Arrow, Page Up and Page Down keys.';
p7LSMHelp[2]='The "P" key toggles the Pause and Play mode.';
p7LSMHelp[3]='The "T" key toggles the Table of Contents.';
p7LSMHelp[4]='To close the presentation press "X", "ESC", or click off the presentation box.';
p7LSMHelp[5]='Use the "H" key to toggle this Help screen.';
	
// Table Of Contents Heading Text:
var p7LSMTOC='Table of Contents';

// Minimum width setting for display box (effective only if toolbar is active)
var p7LSMminwidth=200;

// Delay before fade in or animation
var p7lsmdly=500;

var p7LSMi=false,p7LSMf=false,p7LSMctl=[],p7LSMcshow=[],p7LSMmode='pause',p7LSMantmr,p7LSMimtmr,p7LSMoptmr,p7LSMshowtmr,p7LSMan=false;
var p7LSMstat=false,p7lsmA=navigator.userAgent.toLowerCase(),p7LSMcan=true,p7LSMnextMode='',p7LSMtocActive=false,p7LSMhlpActive=false;
if(!document.getElementById||typeof document.appendChild=='undefined'||p7lsmA.indexOf('msie 5')>-1){
	p7LSMcan=false;
}
function P7_LSMset(){
	var i,h,sh,hd,x,v;
	if(!p7LSMcan){
		return;
	}
	sh='.p7lsm_link {display:none;}\n';
	sh+='.p7lsm_description {display:none;}\n';
	sh+='.p7lsm_content {display:none;}\n';
	sh+='.p7lsm_link {display:none;}\n';
	sh+='#p7LSM_ovr {position:absolute;top:0px;left:0px;display:none;z-index:9999900;}\n';
	sh+='#p7lsm_overlay {position:fixed;width:100%;height:100%;left:0px;top:0px;z-index:9999900;display:none;}\n';
	sh+='#p7LSM_box {position:absolute;display:block;top:0px;left:-9000px;width:100px;overflow:hidden;z-index:9999930;}\n';
	sh+='#p7lsm_abox {position:absolute;top:0px;left:0px;display:none;z-index:9999960;}\n';
	sh+='#p7LSM_loading {display:none;position:absolute;top:0px;left:0px;z-index:9999980;}\n';
	sh+='#p7LSM_helpbox {display:block;position:absolute;top:0px;left:-9000px;z-index:9999990;}\n';
	sh+='#p7LSM_tocbox {display:block;position:absolute;top:0px;left:-9000px;z-index:9999995;}\n';
	sh+='#p7LSM_descboxW {display:block;position:absolute;top:0px;left:-9000px;z-index:9999985;overflow:hidden;}\n';
	if(P7_LSMisIE8()){
		sh+='#p7lsm_overlay {position:absolute;}\n';
	}
	if(document.styleSheets){
		h='\n<st' + 'yle type="text/css">\n'+sh+'\n</s' + 'tyle>';
		document.write(h);
	}
	else{
		h=document.createElement('style');
		h.type='text/css';
		h.appendChild(document.createTextNode(sh));
		hd=document.getElementsByTagName('head');
		hd[0].appendChild(h);
	}
}
P7_LSMset();
function P7_LSMaddLoad(){
	if(!p7LSMcan){
		return;
	}
	if(window.addEventListener){
		window.addEventListener("load",P7_LSMinit,false);
		window.addEventListener("resize",P7_LSMrsz,false);
		window.addEventListener("unload",P7_LSMclose,false);
		document.addEventListener("keydown",P7_LSMkey,false);
	}
	else if(window.attachEvent){
		window.attachEvent("onload",P7_LSMinit);
		window.attachEvent("onresize",P7_LSMrsz);
		window.attachEvent("onunload",P7_LSMclose);
		document.attachEvent("onkeydown",P7_LSMkey);
	}
}
P7_LSMaddLoad();
function P7_LSMop(){
	if(!document.getElementById||!p7LSMcan){
		return;
	}
	p7LSMctl[p7LSMctl.length]=arguments;
}
function P7_LSMinit(){
	var i,j,x=0,el,ob,h,tx,tD,tA,cntr=0,tIM,tB,bA,li,ul,tR,obb;
	if(p7LSMi||!p7LSMcan){
		return;
	}
	p7LSMi=true;
	P7_LSMbuildpop();
	el=document.createElement('div');
	el.setAttribute("id","p7lsm_abox");
	document.getElementsByTagName('body')[0].appendChild(el);
	el=document.createElement('div');
	el.setAttribute("id","p7lsm_overlay");
	document.getElementsByTagName('body')[0].appendChild(el);
	el=document.createElement('div');
	el.setAttribute("id","p7LSM_ovr");
	ob=document.createElement('img');
	ob.setAttribute('id','p7LSM_ovrimg');
	el.appendChild(ob);
	document.getElementsByTagName('body')[0].appendChild(el);
	el=document.createElement('div');
	ob=document.createElement('a');
	ob.appendChild(document.createTextNode("X"));
	ob.setAttribute("href","javascript:;");
	ob.setAttribute("title","Close Box");
	ob.onclick=function(){
		return P7_LSMhelp();
	};
	obb=document.createElement('div');
	obb.setAttribute("class","p7LSM_helpbox_close");
	obb.appendChild(ob);
	el.appendChild(obb);
	ob=document.createElement('p');
	ob.appendChild(document.createTextNode(p7LSMHLP));
	el.appendChild(ob);
	ob=document.createElement('ul');
	for(i=0;i<p7LSMHelp.length;i++){
		li=document.createElement('li');
		li.appendChild(document.createTextNode(p7LSMHelp[i]));
		ob.appendChild(li);
	}
	el.appendChild(ob);
	el.setAttribute("id","p7LSM_helpbox");
	el.p7status="closed";
	document.getElementsByTagName('body')[0].appendChild(el);
	el=document.createElement('div');
	ob=document.createElement('a');
	ob.appendChild(document.createTextNode("X"));
	ob.setAttribute("href","javascript:;");
	ob.setAttribute("title","Close Box");
	ob.onclick=function(){
		return P7_LSMtoc();
	};
	obb=document.createElement('div');
	obb.setAttribute("class","p7LSM_tocbox_close");
	obb.appendChild(ob);
	el.appendChild(obb);
	ob=document.createElement('p');
	ob.appendChild(document.createTextNode(p7LSMTOC));
	el.appendChild(ob);
	el.setAttribute("id","p7LSM_tocbox");
	el.p7status="closed";
	document.getElementsByTagName('body')[0].appendChild(el);
	el=document.createElement('div');
	el.setAttribute("id","p7LSM_descboxW");
	el.p7status="closed";
	obb=document.createElement('div');
	obb.setAttribute("id","p7LSM_descboxInner");
	el.appendChild(obb);
	ob=document.createElement('div');
	ob.setAttribute("id","p7LSM_descbox");
	obb.appendChild(ob);
	document.getElementsByTagName('body')[0].appendChild(el);
	bA=document.getElementById("p7LSM_box");
	bA.p7status="closed";
	bA=document.getElementById("p7LSM_help");
	if(bA){
		bA.onclick=function(){
			return P7_LSMhelp();
		};
	}
	bA=document.getElementById("p7LSM_toc");
	if(bA){
		bA.onclick=function(){
			return P7_LSMtoc();
		};
	}
	bA=document.getElementById("p7LSM_first");
	if(bA){
		bA.onclick=function(){
			return P7_LSMctrl('first');
		};
	}
	bA=document.getElementById("p7LSM_prev");
	if(bA){
		bA.onclick=function(){
			return P7_LSMctrl('previous');
		};
	}
	bA=document.getElementById("p7LSM_next");
	if(bA){
		bA.onclick=function(){
			return P7_LSMctrl('next');
		};
	}
	bA=document.getElementById("p7LSM_last");
	if(bA){
		bA.onclick=function(){
			return P7_LSMctrl('last');
		};
	}
	bA=document.getElementById("p7LSM_pauseplay");
	if(bA){
		bA.onclick=function(){
			return P7_LSMppTrig();
		};
	}
	bA=document.getElementById("p7LSM_close");
	if(bA){
		bA.onclick=function(){
			return P7_LSMclose();
		};
	}
	bA=document.getElementById("p7lsm_overlay");
	if(bA){
		bA.onclick=function(){
			return P7_LSMclose();
		};
	}
	document.p7lsmpre=[];
	document.getElementById("p7LSM_desc").p7src=false;
	document.getElementById("p7LSM_cnt").p7src=false;
	for(j=0;j<p7LSMctl.length;j++){
		tD=document.getElementById(p7LSMctl[j][0]);
		if(tD){
			cntr=-1;
			tD.p7opt=p7LSMctl[j];
			tD.p7slides=[];
			tR=document.getElementById(tD.id.replace("_","trg_"));
			tA=tR.getElementsByTagName("a");
			for(i=0;i<tA.length;i++){
				if(tA[i].className&&tA[i].className.indexOf("p7lsm_type")>-1){
					cntr++;
					tD.p7slides[cntr]=tA[i];
					tA[i].onclick=function(){
						return P7_LSMshow(this);
					};
					tA[i].parentNode.onmouseover=function(){
						this.className="over";
					};
					tA[i].parentNode.onmouseout=function(){
						this.className="";
					};
					tA[i].p7lsmdiv=tD.id;
					tA[i].p7lsmsnum=cntr+1;
					if(tA[i].className=="p7lsm_type_img"){
						if(tD.p7opt[10]==1){
							tA[i].onmouseover=function(){
								P7_LSMrollover(this);
							};
							tA[i].onmouseout=P7_LSMrollout;
						}
						document.p7lsmpre[x]=new Image();
						document.p7lsmpre[x].cmp=false;
						document.p7lsmpre[x].onload=function(){
							this.cmp=true;
						};
						document.p7lsmpre[x].onerror=function(){
							this.cmp=true;
							this.width=300;
							this.height=300;
						};
						tA[i].p7imindex=x;
						x++;
					}
				}
			}
			tD.p7lsmnum=tD.p7slides.length;
		}
	}
	P7_LSMpause(1);
	p7LSMf=true;
}
function P7_LSMrollover(a){
	var tp,rD,rI,tI,dm,rw,rh,tt,tl;
	tp=a.className;
	if(tp&&tp.indexOf("_img")>-1){
		rD=document.getElementById("p7LSM_ovr");
		rI=document.getElementById("p7LSM_ovrimg");
		tI=a.getElementsByTagName("img");
		dm=P7_LSMdims(a);
		rI.setAttribute("src",tI[0].getAttribute("src"));
		rD.style.visibility="hidden";
		rD.style.display="block";
		rw=rD.offsetWidth;
		rh=rD.offsetHeight;
		tt=dm[1]-rh;
		tl= dm[0]-((rw-dm[2])/2);
		tt-=5;
		if(tt<0){
			tt=dm[1]+a.offsetHeight+2;
		}
		if(tl<0){
			tl=0;
		}
		rD.style.top=tt+"px";
		rD.style.left=tl+"px";
		rD.style.visibility="visible";
	}
}
function P7_LSMrollout(){
	var rD=document.getElementById("p7LSM_ovr");
	rD.style.display="none";
}
function P7_LSMctrl(ag,sd,bp){
	var n,x,cDB,toc,op;
	if(!p7LSMf){
		return false;
	}
	if(!ag){
		ag='next';
	}
	if(ag=='pause'){
		P7_LSMpause();
		return false;
	}
	if(ag=='play'){
		P7_LSMplay();
		return false;
	}
	if(ag=='close'){
		P7_LSMclose();
		return false;
	}
	if(!sd){
		if(p7LSMcshow[0]){
			sd=p7LSMcshow[0];
		}
		else{
			sd=p7LSMctl[0][0];
		}
	}
	if(!p7LSMcshow[0]){
		p7LSMcshow[0]=sd;
		p7LSMcshow[1]=1;
	}
	cDB=document.getElementById(sd);
	if(!cDB||!cDB.p7lsmnum){
		return false;
	}
	if(sd!=p7LSMcshow[0]){
		p7LSMcshow[1]=1;
	}
	op=P7_LSMopts();
	if(ag=='first'){
		n=1;
		if(op[5]==3&&sd!=p7LSMctl[0][0]){
			sd=p7LSMctl[0][0];
			cDB=document.getElementById(sd);
			P7_LSMtochelpStat();
			P7_LSMclose();
		}
		else{
			if(n==p7LSMcshow[1]&&cDB.p7status=='open'){
				return false;
			}
		}
	}
	else if(ag=='last'){
		n=cDB.p7lsmnum;
		if(op[5]==3&&sd!=p7LSMctl[0][p7LSMctl.length-1]){
			sd=p7LSMctl[p7LSMctl.length-1][0];
			cDB=document.getElementById(sd);
			n=cDB.p7lsmnum;
			P7_LSMtochelpStat();
			P7_LSMclose();
		}
		else{
			if(n==p7LSMcshow[1]&&cDB.p7status=='open'){
				return false;
			}
		}
	}
	else if(ag=='next'){
		n=p7LSMcshow[1]+1;
		if(n>cDB.p7lsmnum){
			if(op[5]==0){
				return false;
			}
			else if(cDB.p7opt[5]==1){
				n=1;
			}
			else if(cDB.p7opt[5]==2){
				return false;
			}
			else if(op[5]==3){
				x=P7_LSMnextShow();
				sd=p7LSMctl[x][0];
				cDB=document.getElementById(sd);
				n=1;
				if(p7LSMmode=="auto"){
					p7LSMnextMode='auto';
				}
				P7_LSMtochelpStat();
				P7_LSMclose();
			}
		}
	}
	else if(ag=='previous'){
		n=p7LSMcshow[1]-1;
		if(n<1){
			if(op[5]==0){
				return false;
			}
			else if(cDB.p7opt[5]==1){
				n=cDB.p7lsmnum;
			}
			else if(cDB.p7opt[5]==2){
				return false;
			}
			else if(op[5]==3){
				x=P7_LSMprevShow();
				sd=p7LSMctl[x][0];
				cDB=document.getElementById(sd);
				n=cDB.p7lsmnum;
				P7_LSMtochelpStat();
				P7_LSMclose();
			}
			else{
				return false;
			}
		}
	}
	else{
		n=parseInt(ag,10);
	}
	if(!n||n<1){
		n=1;
	}
	else if(n>cDB.p7lsmnum){
		n=cDB.p7lsmnum;
	}
	n--;
	if(op[8]==1&&p7LSMnextMode!='auto'&&bp!=1){
		P7_LSMpause();
	}
	P7_LSMshow(cDB.p7slides[n]);
	return false;
}
function P7_LSMppTrig(){
	if(!p7LSMf){
		return false;
	}
	var a=document.getElementById('p7LSM_pauseplay');
	if(a.p7state=='play'){
		P7_LSMpause();
	}
	else{
		P7_LSMplay();
	}
	return false;
}
function P7_LSMplay(bp){
	var n,b=document.getElementById('p7LSM_pauseplay');
	if(p7LSMmode=='auto'&&bp!=1){
		return;
	}
	b.p7state='play';
	p7LSMmode='auto';
	b.title='Pause';
	b.className='p7LSM_pause';
	if(bp!=1){
		P7_LSMctrl('next','',1);
	}
}
function P7_LSMpause(bp){
	var b=document.getElementById('p7LSM_pauseplay');
	if(p7LSMshowtmr){
		clearTimeout(p7LSMshowtmr);
	}
	b.p7state='pause';
	if(bp!=1){
		p7LSMmode='pause';
	}
	b.title='Play';
	b.className='p7LSM_play';
}
function P7_LSMdescpop(ac,bp){
	var dP,dPC,op,tl,tt,th,tw,cl,ct,cw,ch;
	dP=document.getElementById("p7LSM_descboxW");
	dPC=document.getElementById("p7LSM_descbox");
	op=P7_LSMopts();
	if(ac=='show'){
		dP.p7status="open";
		if(op[1]>1&&bp!=1){
			dP.style.width=dP.offsetWidth+"px";
			dP.style.visibility="hidden";
			dP.style.height="auto";
			P7_LSMposdesc();
			tt=parseInt(dP.style.top,10);
			th=dP.offsetHeight;
			ct=tt+th-1;
			ch=1;
			dP.style.height=ch+"px";
			dP.style.top=ct+"px";
			dP.style.visibility="visible";
			P7_LSMglide(dP.id,ct,tt,ch,th,'open');
		}
		else{
			P7_LSMposdesc();
			P7_LSMshow_fin2();
		}
	}
	else{
		if(op[1]>1&&bp!=1){
			ct=parseInt(dP.style.top,10);
			ch=dP.offsetHeight;
			th=0;
			tt=ct+ch;
			P7_LSMglide(dP.id,ct,tt,ch,th,'close');
		}
		else{
			dP.p7status="closed";
			dP.style.left="-9000px";
			dP.style.top="0px";
			dP.style.height="10px";
			if(bp==2){
				P7_LSMshowB();
			}
		}
	}
}
function P7_LSMglide(id,ct,tt,ch,th,dr){
	var inc=2,dy=10,pc=0.08,tv,sp,dV=document.getElementById(id);
	p7LSMan=true;
	tv=Math.abs( parseInt( Math.abs(ct)-Math.abs(tt),10 ) );
	sp=inc;
	inc=tv*pc;
	inc=(inc<=sp)?sp:inc;
	inc=(dr!='open')?inc:inc*-1;
	dV.style.top=ct+"px";
	dV.style.height=ch+"px";
	if(ct==tt){
		p7LSMan=false;
		if(dr=='open'){
			dV.style.height="auto";
			if(dV.id=='p7LSM_descboxW'){
				P7_LSMshow_fin2();
			}
		}
		else{
			dV.style.left="-9000px";
			dV.style.height="10px";
			dV.style.top="0px";
			if(dV.id=='p7LSM_descboxW'){
				dV.p7status="closed";
				P7_LSMshowB();
			}
		}
	}
	else{
		ct+=inc;
		ch-=inc;
		if(dr=='open'&&ct<tt){
			ct=tt;
			ch=th;
		}
		if(dr=='close'&&ct>tt){
			ct=tt;
			ch=th;
		}
		p7LSMantmr=setTimeout("P7_LSMglide('"+id+"',"+ct+","+tt+","+ch+","+th+",'"+dr+"')",dy);
	}
}
function P7_LSMhelp(ac){
	var hp,tR,tB;
	hp=document.getElementById("p7LSM_helpbox");
	tR=document.getElementById('p7LSM_help');
	if(null==ac){
		ac=(hp.p7status=='closed')?'show':'hide';
	}
	if(ac=='show'){
		hp.p7status="open";
		if(tR){
			tR.className='down';
		}
		tB=document.getElementById(p7LSMcshow[0]);
		if(!tB){
			tB=document.getElementById(p7LSMctl[0][0]);
		}
		hp.className=tB.className;
		P7_LSMposhelp();
	}
	else{
		if(tR){
			tR.className='';
		}
		hp.style.left="-9000px";
		hp.style.top="0px";
		hp.style.height="10px";
		hp.p7status="closed";
	}
	return false;
}
function P7_LSMtitle(a){
	var tt,im,nt='Item';
	tt=a.getAttribute("title");
	if(!tt||tt==''){
		im=a.getElementsByTagName("img");
		if(im&&im[0]){
			tt=im[0].getAttribute("alt");
		}
		else{
			tt=a.textContent;
			if(!tt||tt==''){
				tt=a.innerText;
			}
			if(!tt||tt==''){
				tt=a.innerHTML;
			}
		}
	}
	if(tt&&tt!=''){
		nt=tt;
	}
	return nt;
}
function P7_LSMtoc(ac,sd){
	var i,x=0,toc,wd,h,t,tB,tLI,tt,ea,ol,li,tIM,tA,tx,tR,tD,tSP,cDB;
	toc=document.getElementById("p7LSM_tocbox");
	if(ac==null){
		ac=(toc.p7status=='closed')?'show':'hide';
	}
	tR=document.getElementById('p7LSM_toc');
	if(ac=='show'){
		P7_LSMclrtag(toc,'ol');
		if(!sd){
			tB=document.getElementById(p7LSMcshow[0]);
			if(!tB){
				tB=document.getElementById(p7LSMctl[0][0]);
			}
		}
		else{
			tB=document.getElementById(sd);
		}
		toc.className=tB.className;
		ol=document.createElement('ol');
		tD=document.getElementById(tB.id.replace("_","trg_"));
		tA=tD.getElementsByTagName("a");
		for(i=0;i<tA.length;i++){
			if(tA[i].className&&tA[i].className.indexOf('p7lsm_type')>-1){
				tt=P7_LSMtitle(tA[i]);
				ea=document.createElement('a');
				ea.appendChild(document.createTextNode(tt));
				ea.setAttribute("href","javascript:;");
				ea.p7num=(x);
				x++;
				ea.onclick=function(){
					P7_LSMctrl(this.p7num+1,sd);
					return false;
				};
				li=document.createElement("li");
				li.appendChild(ea);
				ol.appendChild(li);
			}
		}
		toc.appendChild(ol);
		toc.p7status="open";
		if(tR){
			tR.className='down';
		}
		P7_LSMsetTOC();
		P7_LSMpostoc();
	}
	else{
		toc.style.left="-9000px";
		toc.style.top="0px";
		toc.p7status="closed";
		if(tR){
			tR.className='';
		}
		P7_LSMclrtag(toc,'ol');
	}
	return false;
}
function P7_LSMsetTOC(){
	var i,tT,tA,cI;
	cI=p7LSMcshow[1]-1;
	tT=document.getElementById('p7LSM_tocbox');
	tA=tT.getElementsByTagName("a");
	if(tA&&tA.length>cI){
		for(i=0;i<tA.length;i++){
			if((i-1)==cI){
				tA[i].className='down';
			}
			else{
				tA[i].className='';
			}
		}
	}
}
function P7_LSMtochelpStat(){
	var tD=document.getElementById('p7LSM_tocbox');
	if(tD.p7status=="open"){
		p7LSMtocActive=true;
	}
	else{
		p7LSMtocActive=false;
	}
	tD=document.getElementById('p7LSM_helpbox');
	if(tD.p7status=="open"){
		p7LSMhlpActive=true;
	}
	else{
		p7LSMhlpActive=false;
	}
}
function P7_LSMclrtag(ob,tg){
	var i,tG;
	tG=ob.getElementsByTagName(tg);
	if(tG&&tG[0]){
		ob.removeChild(tG[0]);
	}
}
function P7_LSMshow(a){
	var pB,op;
	if(!p7LSMf){
		return false;
	}
	P7_LSMrollout();
	if(p7LSMantmr){
		clearTimeout(p7LSMantmr);
	}
	if(p7LSMoptmr){
		clearTimeout(p7LSMoptmr);
	}
	if(p7LSMimtmr){
		clearTimeout(p7LSMimtmr);
	}
	if(p7LSMshowtmr){
		clearTimeout(p7LSMshowtmr);
	}
	document.getElementById('p7LSM_loading').style.display="none";
	p7LSMcshow[0]=a.p7lsmdiv;
	p7LSMcshow[1]=a.p7lsmsnum;
	p7LSMcshow[2]=a;
	op=P7_LSMopts();
	pB=document.getElementById('p7LSM_descboxW');
	if(pB.p7status=="open"&&op[17]!=1){
		P7_LSMdescpop('hide',2);
	}
	else{
		P7_LSMshowB();
	}
	return false;
}
function P7_LSMshowB(){
	var i,a,cAB,cOV,cDB,sD,bw=0,bh=0,x,pI,prg,op,opp;
	a=p7LSMcshow[2];
	P7_LSMsetTOC();
	op=P7_LSMopts();
	P7_LSMbuttons();
	if(op[19]==0){
		P7_LSMsetdsp('p7LSM_toolbar','none');
		document.getElementById("p7LSM_container").className="hideToolbar";
	}
	else{
		P7_LSMsetdsp('p7LSM_toolbar','block');
		document.getElementById("p7LSM_container").className="";
	}
	cAB=document.getElementById('p7lsm_abox');
	cOV=document.getElementById('p7lsm_overlay');
	cDB=document.getElementById('p7LSM_box');
	if(cDB.p7status=='closed'){
		if(op[9]==1||p7LSMnextMode=='auto'){
			if(p7LSMmode!="auto"){
				p7LSMmode="auto";
				P7_LSMplay(1);
			}
		}
	}
	p7LSMnextMode='';
	cDB.style.display="block";
	P7_LSMhsel('hide');
	cOV.style.display="block";
	p7LSMstat=true;
	opp=1.00;
	if(!cAB.filters){
		cAB.style.opacity=opp;
	}
	else{
		cAB.style.zoom="100%";
		cAB.style.filter='alpha(opacity='+opp*100+')';
	}
	if(cDB.p7status=='open'){
		cDB.p7new=false;
		bw=cDB.offsetWidth;
		bh=cDB.offsetHeight;
		cDB.p7bl=parseInt(cDB.style.left,10);
		cDB.p7bt=parseInt(cDB.style.top,10);
		cDB.p7status='closed';
	}
	else{
		cDB.p7new=true;
		sD=document.getElementById(p7LSMcshow[0]);
		cDB.className=sD.className;
		cAB.className=sD.className;
		cOV.className=sD.className;
		document.getElementById('p7LSM_helpbox').className=sD.className;
		document.getElementById('p7LSM_tocbox').className=sD.className;
		document.getElementById('p7LSM_descboxW').className=sD.className;
		if(op[13]==1||p7LSMtocActive){
			P7_LSMtoc('show');
			p7LSMtocActive=false;
		}
		if(op[16]==1||p7LSMhlpActive){
			P7_LSMhelp('show');
			p7LSMhlpActive=false;
		}
	}
	if(op[1]==1 || op[1]>1&&op[7]==1){
		cAB.style.height=bh+"px";
		cAB.style.width=bw+"px";
		cAB.style.display="block";
		P7_LSMpos(cAB.id);
	}
	if(op[1]>0){
		cDB.style.left="-9000px";
	}
	cDB.p7bw=bw;
	cDB.p7bh=bh;
	cDB.style.height="auto";
	if(a.className=='p7lsm_type_img'){
		x=a.p7imindex;
		pI=document.p7lsmpre[x];
		if(!pI.cmp){
			P7_LSMposldng();
			pI.src=a.href;
			P7_LSMload_img(x);
		}
		else{
			if(op[1]>0){
				p7LSMantmr=setTimeout("P7_LSMshow_dsp()",p7lsmdly);
			}
			else{
				P7_LSMshow_dsp();
			}
		}
	}
	else if(a.className=='p7lsm_type_cnt'){
		if(op[1]>0){
			p7LSMantmr=setTimeout("P7_LSMshow_dsp()",p7lsmdly);
		}
		else{
			P7_LSMshow_dsp();
		}
	}
}
function P7_LSMshow_dsp(){
	var i,a,cF,cB,cAB,cDB,cIM,cTM,an,el,ob,cN,tA,w,op,th,tw,cl,ct,cw,ch,fd,hs,sc,tl,tt,t,tSP,pB,pBC;
	a=p7LSMcshow[2];
	P7_LSMrestore();
	cDB=document.getElementById('p7LSM_box');
	cAB=document.getElementById('p7lsm_abox');
	pB=document.getElementById('p7LSM_descboxW');
	pBC=document.getElementById('p7LSM_descbox');
	cB=document.getElementById(p7LSMcshow[0]);
	cN=a.parentNode.childNodes;
	an=cB.p7opt[1];
	if(cB.p7opt[6]==1){
		el=P7_LSMsetdsp('p7LSM_counter','block');
		ob=document.createTextNode('Slide '+a.p7lsmsnum+' of '+cB.p7lsmnum);
		if(el.hasChildNodes){
			for(i=0;i<el.childNodes.length;i++){
				el.removeChild(el.childNodes[i]);
			}
		}
		el.appendChild(ob);
	}
	else{
		P7_LSMsetdsp('p7LSM_counter','none');
	}
	if(cB.p7opt[12]==1){
		el=P7_LSMsetdsp('p7LSM_caption','block');
		ob=document.createTextNode(P7_LSMtitle(a));
		if(el.hasChildNodes){
			for(i=0;i<el.childNodes.length;i++){
				el.removeChild(el.childNodes[i]);
			}
		}
		el.appendChild(ob);
	}
	else{
		P7_LSMsetdsp('p7LSM_caption','none');
	}
	tw=cB.p7opt[4];
	cDB.style.width=tw+"px";
	P7_LSMsetdsp('p7LSM_cnt','none');
	P7_LSMsetdsp('p7LSM_img','none');
	P7_LSMsetdsp('p7LSM_desc','none');
	if(a.className=='p7lsm_type_img'){
		cIM=document.getElementById('p7LSMfsim');
		cIM.src=a.href;
		cIM.setAttribute("width",document.p7lsmpre[a.p7imindex].width);
		cIM.setAttribute("height",document.p7lsmpre[a.p7imindex].height);
		P7_LSMsetdsp('p7LSM_img','block');
		P7_LSMsetdsp('p7LSM_toolbar','none');
		P7_LSMsetdsp('p7LSM_info','none');
		cTM=a.getElementsByTagName("img")[0];
		cIM.setAttribute("alt",cTM.getAttribute("alt"));
		cDB.style.width="auto";
		tw=cDB.offsetWidth;
		cDB.style.width=tw+"px";
		if(cB.p7opt[19]!=0){
			P7_LSMsetdsp('p7LSM_toolbar','block');
		}
		P7_LSMsetdsp('p7LSM_info','block');
		tA=document.getElementById('p7LSMfslink');
		tA.removeAttribute("href");
		tA.setAttribute("title","");
		tA.onclick=null;
		for(i=0;i<cN.length;i++){
			if(cN[i].className&&cN[i].className=='p7lsm_link'){
				el=cN[i].getElementsByTagName("a");
				if(el&&el[0]){
					tA.setAttribute("title",P7_LSMtitle(el[0]));
					tA.setAttribute("href",el[0].getAttribute("href"));
					if(el[0].onclick){
						tA.onclick=el[0].onclick;
					}
				}
			}
		}
	}
	else{
		hs=a.hash;
		if(hs&&hs.length>1){
			ob=document.getElementById(hs.substring(1));
			if(ob){
				el=P7_LSMsetdsp('p7LSM_cnt','block');
				P7_LSMcopyCN(el,ob);
				el.p7src=ob;
			}
		}
	}
	pB.p7show=false;
	for(i=0;i<cN.length;i++){
		if(cN[i].className&&cN[i].className=='p7lsm_description'){
			if(cB.p7opt[15]==1){
				P7_LSMcopyCN(pBC,cN[i]);
				pBC.p7src=cN[i];
				pB.p7show=true;
			}
			else{
				el=P7_LSMsetdsp('p7LSM_desc','block');
				P7_LSMcopyCN(el,cN[i]);
				el.p7src=cN[i];
			}
		}
	}
	if(cB.p7opt[15]==1){
		if(cB.p7opt[17]==1&&pB.p7status=='open'){
			P7_LSMposdesc();
		}
	}
	th=cDB.offsetHeight;
	if(cB.p7opt[19]!=0&&cDB.offsetWidth<p7LSMminwidth){
		if(!cB.p7hideButtons){
			cDB.style.width=p7LSMminwidth+"px";
			tw=p7LSMminwidth;
		}
	}
	if(an==0){
		P7_LSMpos('p7LSM_box');
		cDB.p7status="open";
		P7_LSMshow_fin();
	}
	else if(an==1){
		cDB.style.visiblity="hidden";
		P7_LSMpos('p7LSM_box');
		cAB.style.top=cDB.style.top;
		cAB.style.left=cDB.style.left;
		cAB.style.height=cDB.offsetHeight+"px";
		cAB.style.width=cDB.offsetWidth+"px";
		cDB.style.visbility="visible";
		P7_LSMfadeOut(cAB.id,0.99);
	}
	else if(an>1){
		if(an==2||an==3){
			cw=6;
			ch=20;
		}
		else{
			cw=tw;
			ch=th;
		}
		if(cB.p7opt[7]==1&&!cDB.p7new){
			ch=(cDB.p7bh>10)?cDB.p7bh:ch;
			cw=(cDB.p7bw>20)?cDB.p7bw:cw;
		}
		else{
			cAB.style.width=cw+"px";
			cAB.style.height=ch+"px";
			cAB.style.display="block";
			P7_LSMpos(cAB.id);
		}
		cl=parseInt(cAB.style.left,10);
		ct=parseInt(cAB.style.top,10);
		cDB.style.visibility="hidden";
		P7_LSMpos(cDB.id);
		tl=parseInt(cDB.style.left,10);
		tt=parseInt(cDB.style.top,10);
		fd=0;
		if(cB.p7opt[2]==1){
			fd=1;
			if(cB.p7opt[7]!=1||cDB.p7new){
				ct=parseInt(ct-(ch/2)+(th/2),10);
				fd=0;
			}
		}
		else if(cB.p7opt[2]==2){
			fd=2;
			if(cB.p7opt[7]!=1||cDB.p7new){
				cl=parseInt(cl-(cw/2)+(tw/2),10);
				fd=0;
			}
		}
		else if(cB.p7opt[2]==3){
			fd=3;
			if(cB.p7opt[7]!=1||cDB.p7new){
				cl=parseInt(cl-(cw/2)+(tw/2),10);
				ct=parseInt(ct-(ch/2)+(th/2),10);
				fd=0;
			}
		}
		P7_LSMgrow(cAB.id,cl,tl,ct,tt,ch,th,cw,tw,an,fd);
	}
}
function P7_LSMshow_fin(){
	var pB,op=P7_LSMopts();
	p7LSMan=false;
	if(op[15]==1){
		pB=document.getElementById('p7LSM_descboxW');
		if((pB.p7show&&op[17]!=1) || (op[17]==1&&pB.p7status!='open')){
			P7_LSMdescpop('show');
		}
		else{
			if(op[17]==1){
				pB.p7status='open';
			}
			P7_LSMshow_fin2();
		}
	}
	else{
		P7_LSMshow_fin2();
	}
}
function P7_LSMshow_fin2(){
	var i,j,cn,n,nn,tn,op,nA,tS,tB,tA,im,px,sd,m=false;
	p7LSMan=false;
	tB=document.getElementById('p7LSM_box');
	tB.p7status='open';
	tB.p7new=false;
	P7_LSMrsz();
	tS=document.getElementById(p7LSMcshow[0]);
	op=tS.p7opt;
	nn=p7LSMcshow[1]+1;
	n=nn;
	sd=p7LSMcshow[0];
	if(op[14]==1){
		if(nn>tS.p7lsmnum){
			if(op[5]==1){
				nA=tS.p7slides[0];
			}
			else if(op[5]==3){
				j=P7_LSMnextShow();
				sd=p7LSMctl[j][0];
				nA=document.getElementById(sd).p7slides[0];
			}
			else{
				nA=null;
			}
		}
		else{
			nA=tS.p7slides[nn-1];
		}
		if(nA&&nA.p7imindex){
			px=nA.p7imindex;
			im=document.p7lsmpre[px];
			if(!im.cmp){
				im.src=nA.href;
			}
		}
	}
	if(p7LSMmode=="auto"){
		if(n>tS.p7lsmnum&&op[5]==0){
			P7_LSMpause();
		}
		else if(n>tS.p7lsmnum&&op[5]==2){
			p7LSMshowtmr=setTimeout("P7_LSMclose()",op[11]*1000);
		}
		else{
			p7LSMshowtmr=setTimeout("P7_LSMctrl('next','',1)",op[11]*1000);
		}
	}
}
function P7_LSMnextShow(){
	var i,cs,j=-1;
	cs=p7LSMcshow[0];
	for(i=0;i<p7LSMctl.length;i++){
		if(p7LSMctl[i][0]==cs){
			if(i>=p7LSMctl.length-1){
				j=0;
			}
			else{
				j=i+1;
			}
			break;
		}
	}
	return j;
}
function P7_LSMprevShow(){
	var i,cs,j=-1;
	cs=p7LSMcshow[0];
	for(i=0;i<p7LSMctl.length;i++){
		if(p7LSMctl[i][0]==cs){
			if(i==0){
				j=p7LSMctl.length-1;
			}
			else{
				j=i-1;
			}
			break;
		}
	}
	return j;
}
function P7_LSMrestore(){
	var el;
	el=document.getElementById("p7LSM_cnt");
	if(el.p7src){
		P7_LSMcopyCN(el.p7src,el);
	}
	el.p7src=false;
	el=document.getElementById("p7LSM_desc");
	if(el.p7src){
		P7_LSMcopyCN(el.p7src,el);
	}
	el.p7src=false;
	el=document.getElementById("p7LSM_descbox");
	if(el.p7src){
		P7_LSMcopyCN(el.p7src,el);
	}
	el.p7src=false;
}
function P7_LSMload_img(ix,kn){
	var pR,op,im=document.p7lsmpre[ix];
	kn=(kn)?kn:0;
	if(im.cmp){
		im.cmp=true;
		document.getElementById("p7LSM_loading").style.display="none";
		p7LSMantmr=setTimeout("P7_LSMshow_dsp()",p7lsmdly);
	}
	else{
		if(p7LSMimtmr){
			clearTimeout(p7LSMimtmr);
		}
		kn++;
		if(kn<500){
			p7LSMimtmr=setTimeout("P7_LSMload_img("+ix+","+kn+")",60);
		}
		else{
			document.getElementById("p7LSM_loading").style.display="none";
			im.cmp=true;
			im.width=300;
			im.height=300;
			op=P7_LSMopts();
			if(op[1]>0){
				p7LSMantmr=setTimeout("P7_LSMshow_dsp()",p7lsmdly);
			}
			else{
				P7_LSMshow_dsp();
			}
		}
	}
}
function P7_LSMbuttons(){
	var i,tS,tn,opt;
	tS=document.getElementById(p7LSMcshow[0]);
	tn=tS.p7lsmnum;
	if(tn==1){
		tS.p7hideButtons=true;
		P7_LSMsetdsp('p7LSM_toc','none');
		P7_LSMsetdsp('p7LSM_first','none');
		P7_LSMsetdsp('p7LSM_prev','none');
		P7_LSMsetdsp('p7LSM_pauseplay','none');
		P7_LSMsetdsp('p7LSM_next','none');
		P7_LSMsetdsp('p7LSM_last','none');
		P7_LSMsetdsp('p7LSM_help','none');
	}
	else{
		tS.p7hideButtons=false;
		P7_LSMsetdsp('p7LSM_toc','block');
		P7_LSMsetdsp('p7LSM_first','block');
		P7_LSMsetdsp('p7LSM_prev','block');
		P7_LSMsetdsp('p7LSM_pauseplay','block');
		P7_LSMsetdsp('p7LSM_next','block');
		P7_LSMsetdsp('p7LSM_last','block');
		P7_LSMsetdsp('p7LSM_help','block');
	}
}
function P7_LSMclose(){
	var i,cAB,cOV,cDB,j,v;
	if(p7LSMantmr){
		clearTimeout(p7LSMantmr);
	}
	if(p7LSMoptmr){
		clearTimeout(p7LSMoptmr);
	}
	if(p7LSMimtmr){
		clearTimeout(p7LSMimtmr);
	}
	if(p7LSMshowtmr){
		clearTimeout(p7LSMshowtmr);
	}
	P7_LSMpause();
	p7LSMstat=false;
	P7_LSMtoc('hide');
	P7_LSMhelp('hide');
	P7_LSMdescpop('hide',1);
	cAB=document.getElementById('p7lsm_abox');
	cOV=document.getElementById('p7lsm_overlay');
	cDB=document.getElementById('p7LSM_box');
	cDB.p7status="closed";
	cDB.style.left="-9000px";
	cDB.style.height="10px";
	cDB.style.top="0px";
	P7_LSMrestore();
	cAB.style.display="none";
	document.getElementById("p7LSM_loading").style.display="none";
	P7_LSMhsel('show');
	cOV.style.display="none";
	if(P7_LSMisIE8()){
		cOV.style.height="10px";
	}
	return false;
}
function P7_LSMopts(){
	var sd,tD;
	if(!p7LSMcshow[0]){
		p7LSMcshow[0]=p7LSMctl[0][0];
		p7LSMcshow[1]=1;
	}
	tD=document.getElementById(p7LSMcshow[0]);
	if(tD&&tD.p7opt){
		return tD.p7opt;
	}
	else{
		return ['',0,0,0,0,0];
	}
}
function P7_LSMrsz(){
	var tB=document.getElementById('p7LSM_box');
	if(tB.p7status=='open'&&!p7LSMan){
		P7_LSMpos('p7LSM_box');
		P7_LSMpostoc();
		P7_LSMposhelp();
		P7_LSMposdesc();
	}
}
function P7_LSMpostoc(){
	var tB,h,t,wd,sc,l=10;
	tB=document.getElementById("p7LSM_tocbox");
	wd=P7_LSMwin();
	if(tB.p7status=="open"){
		tB.style.height="auto";
		h=tB.offsetHeight;
		t=wd[0]-h-20;
		if(t<10){
			h=wd[0]-20;
			t=10;
			tB.style.height=h+"px";
		}
		sc=P7_LSMsclb();
		t+=sc[1];
		l+=sc[0];
		t=(t<0)?0:t;
		tB.style.top=t+"px";
		tB.style.left=l+"px";
	}
}
function P7_LSMposhelp(){
	var tB,h,w,t,l,wd,sc;
	tB=document.getElementById("p7LSM_helpbox");
	wd=P7_LSMwin();
	if(tB.p7status=="open"){
		tB.style.height="auto";
		h=tB.offsetHeight;
		w=tB.offsetWidth;
		t=wd[0]-h-20;
		l=wd[1]-w-20;
		sc=P7_LSMsclb();
		t+=sc[1];
		l+=sc[0];
		t=(t<0)?0:t;
		tB.style.top=t+"px";
		tB.style.left=l+"px";
	}
}
function P7_LSMposdesc(){
	var tB,tBC,h,w,t,l,wd,sc,lm;
	tB=document.getElementById("p7LSM_descboxW");
	tBC=document.getElementById("p7LSM_descbox");
	wd=P7_LSMwin();
	if(tB.p7status=="open"){
		tB.style.height="auto";
		h=tB.offsetHeight;
		w=tB.offsetWidth;
		t=wd[0]-h-20;
		l=wd[1]-w-20;
		sc=P7_LSMsclb();
		t+=sc[1];
		l+=sc[0];
		t=(t<0)?0:t;
		lm=P7_LSMminleft();
		l=(l<lm)?lm:l;
		tB.style.top=t+"px";
		tB.style.left=l+"px";
	}
}
function P7_LSMposldng(){
	var tD,dB,wd,x,y,lw,sc;
	tD=document.getElementById('p7LSM_loading');
	dB=document.getElementById('p7LSM_box');
	tD.style.visibility="hidden";
	tD.style.display="block";
	if(!dB.p7new&&dB.p7bl){
		x=parseInt(dB.p7bl,10)+((dB.p7bw-tD.offsetWidth)/2);
		y=parseInt(dB.p7bt,10)+((dB.p7bh-tD.offsetHeight)/2);
	}
	else{
		sc=P7_LSMsclb();
		wd=P7_LSMwin();
		x=((wd[1]-tD.offsetWidth)/2)+sc[0];
		y=((wd[0]-tD.offsetHeight)/2)+sc[1];
	}
	tD.style.left=x+"px";
	tD.style.top=y+"px";
	tD.style.visibility="visible";
}
function P7_LSMminleft(){
	var d=document.getElementById('p7LSM_box');
	return parseInt(d.style.left,10)+d.offsetWidth+5;
}
function P7_LSMpos(d){
	var x,y,wd,tB,dB,h,w,sh,oD,op,v,j,t,bx,by,bh,bw,sc;
	wd=P7_LSMwin();
	tB=document.getElementById(d);
	op=P7_LSMopts();
	w=tB.offsetWidth;
	h=tB.offsetHeight;
	x=parseInt((wd[1]-w)/2,10);
	x=(x<0)?0:x;
	y=parseInt((wd[0]-h)/2,10);
	y=(y<0)?0:y;
	if(op[2]==1){
		y=op[3];
	}
	else if(op[2]==2){
		x=op[18];
	}
	else if(op[2]==3){
		y=op[3];
		x=op[18];
	}
	sc=P7_LSMsclb();
	if(op[2]!=3){
		if(op[2]!=2){
			x+=sc[0];
		}
		if(op[2]!=1){
			y+=sc[1];
		}
	}
	tB.style.left=x+"px";
	tB.style.top=y+"px";
	if(P7_LSMisIE8()){
		sh=document.body.parentNode.scrollHeight;
		oD=document.getElementById('p7lsm_overlay');
		h=(wd[0]>0)?wd[0]:h;
		h=(h>sh)?h:sh;
		oD.style.height=h+"px";
		oD.style.position="absolute";
	}
}
function P7_LSMdims(ob){
	var pp,h,w,l=0,t=0,r=[4];
	pp=ob;
	while(pp){
		l+=(pp.offsetLeft)?pp.offsetLeft:0;
		t+=(pp.offsetTop)?pp.offsetTop:0;
		if(typeof(opera)!='undefined'||navigator.userAgent.indexOf("Safari")>-1){
			if(pp.nodeName=="BODY"){
				l-=(pp.offsetLeft)?pp.offsetLeft:0;
				t-=(pp.offsetTop)?pp.offsetTop:0;
			}
		}
		pp=pp.offsetParent;
	}
	r[0]=l;
	r[1]=t;
	r[2]=ob.offsetWidth;
	r[3]=ob.offsetHeight;
	return r;
}
function P7_LSMsclb(){
	var x,y;
	y=document.body.parentNode.scrollTop;
	if(!y){
		y=document.body.scrollTop;
	}
	y=(y)?y:0;
	x=document.body.parentNode.scrollLeft;
	if(!x){
		x=document.body.scrollLeft;
	}
	x=(x)?x:0;
	return [x,y];
}
function P7_LSMgrow(id,cl,tl,ct,tt,ch,th,cw,tw,op){
	var il=10,it=10,ih=1,iw=1,dy=10,sp;
	var cD,nw=0,nh=0,nl=0,nt=0,tv,pc=0.10;
	tv=Math.abs( parseInt( Math.abs(th)-Math.abs(ch),10 ) );
	sp=ih;
	ih=tv*pc;
	ih=(ih<=1)?1:ih;
	tv=Math.abs( parseInt( Math.abs(tw)-Math.abs(cw),10 ) );
	sp=iw;
	iw=tv*pc;
	iw=(iw<=1)?1:iw;
	il=iw/2;
	it=ih/2;
	if(tw<cw){
		iw=iw*-1;
	}
	if(th<ch){
		ih=ih*-1;
	}
	if(tt<ct){
		it=it*-1;
	}
	if(tl<cl){
		il=il*-1;
	}
	p7LSMan=true;
	cD=document.getElementById(id);
	cD.style.height=ch+'px';
	cD.style.width=cw+'px';
	cD.style.left=cl+"px";
	cD.style.top=ct+"px";
	if(ch==th && cw==tw && ct==tt && cl==tl){
		document.getElementById('p7LSM_box').style.visibility="visible";
		if(op==3){
			P7_LSMfadeOut(cD.id,0.99);
		}
		else{
			cD.style.display='none';
			P7_LSMshow_fin();
		}
	}
	else{
		nl=cl+il;
		nt=ct+it;
		if(op==2||op==3){
			nw=cw+iw;
			if(cw==tw){
				nh=ch+ih;
			}
			else{
				nh=ch;
				nt=ct;
			}
		}
		if(ih<0){
			nh=(nh<=th)?th:nh;
		}
		else{
			nh=(nh>=th)?th:nh;
		}
		if(iw<0){
			nw=(nw<=tw)?tw:nw;
		}
		else{
			nw=(nw>=tw)?tw:nw;
		}
		if(it<0){
			nt=(nt<=tt)?tt:nt;
		}
		else{
			nt=(nt>=tt)?tt:nt;
		}
		if(il<0){
			nl=(nl<=tl)?tl:nl;
		}
		else{
			nl=(nl>=tl)?tl:nl;
		}
		p7LSMantmr=setTimeout("P7_LSMgrow('"+id+"',"+nl+","+tl+","+nt+","+tt+","+nh+","+th+","+nw+","+tw+","+op+")",dy);
	}
}
function P7_LSMfadeOut(id,op){
	var im,dy=10,lm=0.01,inc,d=document.getElementById(id);
	p7LSMan=true;
	inc=(typeof(opera)!='undefined')?0.15:0.04;
	op=(op<=lm)?lm:op;
	if(!d.filters){
		d.style.opacity=op;
	}
	else{
		inc=0.10;
		dy=30;
		d.style.filter='alpha(opacity='+op*100+')';
	}
	if(op>lm){
		op-=inc;
		p7LSMoptmr=setTimeout("P7_LSMfadeOut('"+id+"',"+op+")",dy);
	}
	else{
		d.style.display="none";
		P7_LSMpos('p7LSM_box');
		P7_LSMshow_fin();
	}
}
function P7_LSMkey(evt){
	var k,tg,nn,pp,m=true,tb=false,i,dB,tA;
	if(p7LSMstat){
		evt=(evt)?evt:event;
		tg=(evt.target)?evt.target:evt.srcElement;
		nn=tg.nodeName.toLowerCase();
		if(!evt.altKey&&!evt.ctrlKey){
			if(nn!='input'&&nn!='textarea'){
				k=evt.keyCode;
				if(k==33||k==37||k==109 || k==32&&evt.shiftKey){
					P7_LSMctrl('previous');
					m=false;
				}
				else if(k==34||k==39||k==107||k==32){
					P7_LSMctrl('next');
					m=false;
				}
				else if(k==35){
					P7_LSMctrl('last');
					m=false;
				}
				else if(k==36){
					P7_LSMctrl('first');
					m=false;
				}
				else if(k==80){
					P7_LSMppTrig();
					m=false;
				}
				else if(k==27 || (k==88&&typeof(opera)!='object')){
					P7_LSMclose();
					m=false;
				}
				else if(k==72&&typeof(opera)!='object'){
					P7_LSMhelp();
					m=false;
				}
				else if(k==84){
					P7_LSMtoc();
					m=false;
				}
			}
		}
	}
	if(!m){
		if(evt.preventDefault){
			evt.preventDefault();
		}
	}
	return m;
}
function P7_LSMwin(){
	var h,w;
	if(window.innerHeight){
		if(document.documentElement.clientWidth){
			w=document.documentElement.clientWidth;
		}
		else{
			w=window.innerWidth;
		}
		h=window.innerHeight;
	}
	else if(document.documentElement&&document.documentElement.clientHeight){
		w=document.documentElement.clientWidth;
		h=document.documentElement.clientHeight;
	}
	else if(document.body){
		w=document.body.clientWidth;
		h=document.body.clientHeight;
	}
	return [h,w];
}
function P7_LSMsetdsp(dd,dt){
	var el=document.getElementById(dd);
	if(el){
		el.style.display=dt;
	}
	return el;
}
function P7_LSMcopyCN(tD,tS){
	while(tD.childNodes.length>0){
		tD.removeChild(tD.childNodes[0]);
	}
	while(tS.childNodes.length>0){
		tD.appendChild(tS.childNodes[0]);
	}
}
function P7_LSMbuildpop(){
	var el,a,i,li,ul,ob,tb,bx,cn;
	tb=document.createElement('div');
	tb.setAttribute('id','p7LSM_toolbar');
	i=document.createElement('i');
	i.appendChild(document.createTextNode('contents'));
	a=document.createElement('a');
	a.appendChild(i);
	a.setAttribute('id','p7LSM_toc');
	a.setAttribute('href','#');
	a.setAttribute('title','Table of Contents');
	ob=document.createElement('div');
	ob.setAttribute('id','p7LSM_toolbartoc');
	ob.appendChild(a);
	tb.appendChild(ob);
	ul=document.createElement('ul');
	i=document.createElement('i');
	i.appendChild(document.createTextNode('first'));
	a=document.createElement('a');
	a.appendChild(i);
	a.setAttribute('id','p7LSM_first');
	a.setAttribute('href','#');
	a.setAttribute('title','First');
	li=document.createElement('li');
	li.appendChild(a);
	ul.appendChild(li);
	i=document.createElement('i');
	i.appendChild(document.createTextNode('previous'));
	a=document.createElement('a');
	a.appendChild(i);
	a.setAttribute('id','p7LSM_prev');
	a.setAttribute('href','#');
	a.setAttribute('title','Previous');
	li=document.createElement('li');
	li.appendChild(a);
	ul.appendChild(li);
	i=document.createElement('i');
	i.appendChild(document.createTextNode('pause/play'));
	a=document.createElement('a');
	a.appendChild(i);
	a.setAttribute('id','p7LSM_pauseplay');
	a.setAttribute('href','#');
	a.setAttribute('title','Play');
	a.setAttribute('class','p7LSM_play');
	li=document.createElement('li');
	li.appendChild(a);
	ul.appendChild(li);
	i=document.createElement('i');
	i.appendChild(document.createTextNode('next'));
	a=document.createElement('a');
	a.appendChild(i);
	a.setAttribute('id','p7LSM_next');
	a.setAttribute('href','#');
	a.setAttribute('title','Next');
	li=document.createElement('li');
	li.appendChild(a);
	ul.appendChild(li);
	i=document.createElement('i');
	i.appendChild(document.createTextNode('last'));
	a=document.createElement('a');
	a.appendChild(i);
	a.setAttribute('id','p7LSM_last');
	a.setAttribute('href','#');
	a.setAttribute('title','Last');
	li=document.createElement('li');
	li.appendChild(a);
	ul.appendChild(li);
	ob=document.createElement('div');
	ob.setAttribute('id','p7LSM_vcr');
	ob.appendChild(ul);
	tb.appendChild(ob);
	i=document.createElement('i');
	i.appendChild(document.createTextNode('help'));
	a=document.createElement('a');
	a.appendChild(i);
	a.setAttribute('id','p7LSM_help');
	a.setAttribute('href','#');
	a.setAttribute('title','Help for Keyboard Users');
	ob=document.createElement('div');
	ob.setAttribute('id','p7LSM_toolbarhelp');
	ob.appendChild(a);
	tb.appendChild(ob);
	i=document.createElement('i');
	i.appendChild(document.createTextNode('close'));
	a=document.createElement('a');
	a.appendChild(i);
	a.setAttribute('id','p7LSM_close');
	a.setAttribute('href','#');
	a.setAttribute('title','Close');
	ob=document.createElement('div');
	ob.setAttribute('id','p7LSM_toolbarclose');
	ob.appendChild(a);
	tb.appendChild(ob);
	cn=document.createElement('div');
	cn.setAttribute('id','p7LSM_container');
	cn.appendChild(tb);
	ob=document.createElement('div');
	ob.setAttribute('id','p7LSM_cnt');
	cn.appendChild(ob);
	ob=document.createElement('div');
	ob.setAttribute('id','p7LSM_img');
	cn.appendChild(ob);
	bx=document.createElement('div');
	bx.setAttribute('id','p7LSM_box');
	bx.appendChild(cn);
	el=document.createElement('div');
	el.setAttribute('id','p7LSM_info');
	ob=document.createElement('div');
	ob.setAttribute('id','p7LSM_caption');
	el.appendChild(ob);
	ob=document.createElement('div');
	ob.setAttribute('id','p7LSM_desc');
	el.appendChild(ob);
	ob=document.createElement('div');
	ob.setAttribute('id','p7LSM_counter');
	el.appendChild(ob);
	cn.appendChild(el);
	document.getElementsByTagName('body')[0].appendChild(bx);
	el=document.createElement('div');
	el.setAttribute("id","p7LSM_loading");
	document.getElementsByTagName('body')[0].appendChild(el);
	el=document.createElement('a');
	el.setAttribute("id","p7LSMfslink");
	ob=document.createElement('img');
	ob.setAttribute("id","p7LSMfsim");
	el.appendChild(ob);
	document.getElementById('p7LSM_img').appendChild(el);
}
function P7_LSMhsel(ac){
	var i,tg,vs;
	if(P7_LSMisIE6()){
		tg=document.getElementsByTagName("select");
		if(tg){
			vs=(ac=='hide')?'hidden':'visible';
			for(i=0;i<tg.length;i++){
				tg[i].style.visibility=vs;
			}
		}
	}
}
function P7_LSMisIE6(){
	var j,v,m=false;
	j=p7lsmA.indexOf("msie");
	v=parseInt(p7lsmA.substring(j+4,j+6),10);
	if(v<7){
		m=true;
	}
	return m;
}
function P7_LSMisIE8(){
	var j,v,m=false;
	j=p7lsmA.indexOf("msie");
	v=parseInt(p7lsmA.substring(j+4,j+6),10);
	if(v<9){
		m=true;
	}
	return m;
}

