// JavaScript Document

/*
  -----------------------------------------
  QSI JS
  -----------------------------------------
*/

<!--
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];}
}
//-->

// Hide Email Addresses from Harvesters
function hideaddy(em1, em2, atxt) {
if (em1 && em2) {
if (!atxt) { var atxt = "E-Mail"; }
document.write('<a href=\"mailto:' + em1 + '@' + em2 +'\">' + atxt + '</a>');
} else {
document.write(' -- No email address supplied -- ');
}
}

/* 
  ================================================
  PVII Uberlink Script
  Copyright (c) 2006 Project Seven Development
  www.projectseven.com
  Version: 1.0.0
  ================================================
*/
function P7_Uberlink(cl,d){
	var i,ob,tA,h=document.location.href;
	if(document.getElementById){
	ob=(d)?document.getElementById(d):document;
	if(ob){
	tA=ob.getElementsByTagName('A');
	for(i=0;i<tA.length;i++){
	if(tA[i].href==h){
	tA[i].className=cl;
}}}}}


/* 

  ================================================
  PVII Horizontal Gallery scripts
  Copyright (c) 2006 Project Seven Development
  www.projectseven.com
  Version: 1.1.5
  ================================================
  
*/

var p7gsiem=(navigator.appVersion.indexOf("MSIE 5")>-1&&navigator.userAgent.indexOf("Mac")>-1)?true:false;
var p7gsca,p7gsa=new Array(),p7gsplot=new Array(),p7gstmb = new Array();
function P7_setHGS(){
	var i,d='',tA,h="<sty"+"le type=\"text/css\">";
	if(!document.getElementById){
		return;
	}
	tA=navigator.userAgent.toLowerCase();
	if(window.opera){
		if(tA.indexOf("opera 5")>-1 || tA.indexOf("opera 6")>-1){
			return;
		}
	}
	h+="#p7GS{visibility:hidden;}";
	h+="<"+"/sty"+"le>";
	document.write(h);
}
P7_setHGS();
function P7_HGSinit(){
	var i,x,s,vp,sc,ul,li,h,hh=0,w,ww=0,uw,n,nn,im,a,nv,hv,bh,bw,ed,eh,ew,cv,j,kw,tA;
	if(!document.getElementById){
		return;
	}
	tA=navigator.userAgent.toLowerCase();
	if(window.opera){
		if(tA.indexOf("opera 5")>-1 || tA.indexOf("opera 6")>-1){
			return;
		}
	}
	p7gsa=arguments;
	if(p7gsiem||tA.indexOf('scape6/6')>-1){
		p7gsa[1]=0;
	}
	vp=document.getElementById('p7GSvp');
	sc=document.getElementById('p7GSsc');
	li=sc.getElementsByTagName('LI');
	im=sc.getElementsByTagName('IMG');
	for(i=0;i<im.length;i++){
		im[i].style.display='block';
	}
	for(i=0;i<li.length;i++){
		li[i].style.position='absolute';
		h=li[i].offsetHeight;
		w=li[i].offsetWidth;
		hh=(h>hh)?h:hh;
		ww=(w>ww)?w:ww;
	}
	for(i=0;i<li.length;i++){
		li[i].style.height=hh+'px';
		li[i].style.width=ww+'px';
	}
	for(i=0;i<li.length;i++){
		h=li[i].offsetHeight;
		w=li[i].offsetWidth;
		if(h>hh){
			n=hh-(h-hh);
			li[i].style.height=n+'px';
		}
		if(w>ww){
			n=ww-(w-ww);
			li[i].style.width=n+'px';
		}
	}
	ul=sc.getElementsByTagName('UL');
	ww=0;
	for(i=0;i<ul.length;i++){
		li=ul[i].getElementsByTagName('LI');
		kw=0;
		for(j=0;j<li.length;j++){
			w=li[j].offsetWidth;
			h=li[j].offsetHeight;
			li[j].style.left=kw+'px';
			kw+=w;
			ww=(kw>ww)?kw:ww;
		}
		ul[i].style.position='relative';
		ul[i].style.height=h+'px';
	}
	if(ul.length==1){
		document.getElementById('p7GSnv').style.display='none';
	}
	sc.style.position='absolute';
	sc.style.top='0px';
	sc.style.left='0px';
	vp.style.height=h+'px';
	vp.style.width=ww+'px';
	vp.style.overflow='hidden';
	if(p7gsa[0]==1){
		li=sc.getElementsByTagName('LI');
		for(i=0;i<li.length;i++){
			im=li[i].getElementsByTagName('IMG')[0];
			h=im.offsetHeight;
			w=im.offsetWidth;
			hh=parseInt(li[i].style.height);
			ww=parseInt(li[i].style.width);
			n=parseInt((hh-h)/2);
			nn=parseInt((ww-w)/2);
			if(n>0){
				im.style.marginTop=n+'px';
			}
			if(nn>0){
				im.style.marginLeft=nn+'px';
			}
		}
	}
	document.p7gspre=new Array();
	a=sc.getElementsByTagName('A');
	x=0;
	for(i=0;i<a.length;i++){
		if(a[i].parentNode.nodeName=='LI'){
			a[i].onmouseover=function(){
				P7_HGSover(this);
			};
			a[i].onfocus=function(){
				P7_HGSover(this);
			};
			a[i].onmouseout=function(){
				P7_HGSout(this);
			};
a[i].onclick= function(){
	return P7_HGSshow(this);
};
document.p7gspre[x]=new Image();
document.p7gspre[x].cmp=false;
document.p7gspre[x].onload=function (){
	this.cmp=true;
};
a[i].p7gsindex=x;
p7gstmb[x]=a[i];
x++;
}
}
nv=document.getElementById('p7GSnv');
x=0;
if(nv){
hv=nv.innerHTML;
ul=sc.getElementsByTagName('UL');
for(i=0;i<ul.length;i++){
s=(i===0)?'':' <span>|</span> ';
x=i+1;
hv+=s+'<a id="p7gsn'+x+'" href="javascript:;" title="View Thumbnail Panel '+x+'">'+x+'</a>';
}
nv.innerHTML=hv;
a=nv.getElementsByTagName('A');
for(i=0;i<a.length;i++){
a[i].onclick= function(){
	return P7_HGSnvs(this);
};
}
}
document.getElementById('p7GS').style.visibility="visible";
h=p7gsa[4];
if(!P7_HGSurl()){
if(h>0){
P7_HGStrig(h-1,9);
}
}
}
function P7_HGSover(a){
	var im=a.getElementsByTagName('IMG')[0];
	if(im.className!='p7GSon'){
		im.className='p7GSover';
	}
}
function P7_HGSout(a){
	var im=a.getElementsByTagName('IMG')[0];
	if(im.className!='p7GSon'){
		im.className='';
	}
}
function P7_HGSnvs(a,g){
	var i,p,ta;
	p=parseInt(a.id.replace('p7gsn',''));
	g=(g)?g:0;
	ta=document.getElementById('p7GSnv').getElementsByTagName('A');
	for(i=0;i<ta.length;i++){
		if(ta[i].className){
			ta[i].className='';
		}
	}
	a.className='p7GSnvon';
	P7_HGSmove(p,g);
	return false;
}
function P7_HGSmove(p,g){
	var i,h,sc,t,c,m;
	sc=document.getElementById('p7GSsc');
	h=sc.getElementsByTagName('LI')[0].offsetHeight;
	t=((h*p)-h)*-1;
	c=parseInt(sc.style.top);
	c=(c)?c:0;
	m=(c<t)?1:0;
	P7_HGSvon();
	if(p7gsa[5]==1&&g!=9&&g!=6){
		P7_HGSscr(t,m);
	}
	else{
		sc.style.top=t+'px';
		P7_HGSvoff();
	}
}
function P7_HGSvoff(){
	var ta,i,j,ul,m=false;
	ta=document.getElementById('p7GSnv').getElementsByTagName('A');
	for(i=0;i<ta.length;i++){
		if(ta[i].className=='p7GSnvon'){
			m=true;
			break;
		}
	}
	if(m){
		ul=document.getElementById('p7GSsc').getElementsByTagName('UL');
		for(j=0;j<ul.length;j++){
			if(j==i){
				ul[j].style.visibility='visible';
			}
			else{
				ul[j].style.visibility='hidden';
			}
		}
	}
}
function P7_HGSvon(){
	var i,ul=document.getElementById('p7GSsc').getElementsByTagName('UL');
	for(i=0;i<ul.length;i++){
		ul[i].style.visibility='visible';
	}
}
function P7_HGSscr(t,m){
	var d,r,y=30;
	d=document.getElementById('p7GSsc');
	c=parseInt(d.style.top);
	r=P7_HGSrate(c,t);
	c+=(m==1)?r:r*-1;
	if(m==1){
		c=(c>=t)?t:c;
	}
	else{
		c=(c<=t)?t:c;
	}
	d.style.top=c+"px";
	if(c!=t){
		d.p7hgsan=setTimeout("P7_HGSscr("+t+","+m+")",y);
	}
	else{
		P7_HGSvoff();
	}
}
function P7_HGSrate(c,t){
	var tt=Math.abs(t-c),i=parseInt(tt*0.08,10);
	i=(i<=20)?20:i;
	return i;
}
function P7_HGStrig(n,ug){
	var i,sc,a,f;
	ug=(ug)?ug:0;
	a=p7gstmb[n];
	if(a){
		P7_HGStrigp(a,ug);
		f=P7_HGSshow(a,ug);
	}
}
function P7_HGStrigp(a,ug){
	var i,nv,ul,pp,f;
	nv=document.getElementById('p7GSnv').getElementsByTagName('A');
	ul=document.getElementById('p7GSsc').getElementsByTagName('UL');
	pp=a.parentNode;
	while(pp){
		if(pp.nodeName=='UL'){
			break;
		}
		pp=pp.parentNode;
	}
	for(i=0;i<ul.length;i++){
		if(ul[i]==pp){
			break;
		}
	}
	f = P7_HGSnvs(nv[i],ug);
}
function P7_HGSurl(){
	var i,h,s,x,m=false,p='pic';
	if(document.getElementById){
		h=document.location.search;
		if(h){
			h=h.replace('?','');
			s=h.split('=');
			if(s&&s.length){
				for(i=0;i<s.length;i+=2){
					if(s[i]==p){
						x=parseInt(s[i+1]);
						if(x){
							P7_HGStrig(x,9);
							m=true;
							break;
						}
					}
				}
			}
		}
		h=document.location.hash;
		if(h){
			x=parseInt(h.substring(1,h.length));
			if(x&&x>0){
				m=true;
			}
		}
	}
	if(m){
		x--;
		P7_HGStrig(x,9);
	}
	return m;
}
function P7_HGSshow(a,ug){
	var i,ti,im,fM,pM,dM,cM,dD,ds,h,w;
	ug=(ug)?ug:0;
	im=a.getElementsByTagName('IMG')[0];
	ti=document.getElementById('p7GSvp').getElementsByTagName('IMG');
	if(p7gsca){
		if(p7gsca==a){
			return false;
		}
	}
	for(i=0;i<ti.length;i++){
		ti[i].className='';
	}
	im.className='p7GSon';
	dM=document.getElementById('p7GSfs');
	fM=dM.getElementsByTagName('IMG')[0];
	pM=document.p7gspre[a.p7gsindex];
	if(document.p7gswait){
		clearTimeout(document.p7gswait);
	}
	p7gsca=a;
	if(!pM.cmp){
		P7_GSpbs(fM);
		pM.src=a.href;
		P7_GSwait(a.p7gsindex,ug);
	}
	else{
		P7_GSfin(pM,ug);
	}
	return false;
}
function P7_GSpbs(im,ug){
	var i,l,t,p,pb,pw,ph,ih,iw;
	pb=document.getElementById('p7GSpb');
	pw=pb.offsetWidth;
	ph=pb.offsetHeight;
	if(im){
		ih=(p7gsiem)?im.height:im.offsetHeight;
		iw=(p7gsiem)?im.width:im.offsetWidth;
		t=(ih-ph)/2;
		l=(iw-pw)/2;
		p=P7_getPos(im);
		l+=p[0];
		t+=p[1];
		pb.style.left=l+'px';
		pb.style.top=t+'px';
		pb.style.visibility="visible";
	}
}
function P7_getPos(im){
	var p,pp,l=0,t=0,r=new Array(2);
	pp=im;
	while(pp){
		l+=(pp.offsetLeft)?pp.offsetLeft:0;
		t+=(pp.offsetTop)?pp.offsetTop:0;
		if(window.opera||navigator.userAgent.indexOf("Safari")>-1){
			if(pp.nodeName=="BODY"){
				l-=(pp.offsetLeft)?pp.offsetLeft:0;
				t-=(pp.offsetTop)?pp.offsetTop:0;
			}
		}
		pp=pp.offsetParent;
	}
	if(p7gsiem){
		l+=parseInt(document.body.currentStyle.marginLeft);
		t+=parseInt(document.body.currentStyle.marginTop);
	}
	r[0]=l;
	r[1]=t;
	return r;
}
function P7_GSwait(ix,ug){
	var im=document.p7gspre[ix];
	if(im.cmp || (!document.all&&im.height>1)){
		im.cmp=true;
		document.getElementById('p7GSpb').style.visibility='hidden';
		P7_GSfin(im,ug);
	}
	else{
		document.p7gswait=setTimeout("P7_GSwait("+ix+","+ug+")",200);
	}
}
function P7_GSfin(im,ug){
	var dM,fM,cM,aL,cD,ds,tB,dT='',tH='',aC,fS,an,st='',h,h1,h2,ti,ci,ct,cn;
	an=p7gsa[1];
	if(an>0){
		st=' style="visibility:hidden"';
	}
	fS=document.getElementById('p7GSfs');
	dM=document.getElementById('p7GSfs');
	fM=dM.getElementsByTagName('IMG')[0];
	tB=p7gsca.getElementsByTagName('IMG')[0];
	tH+='<table class="p7GSfst" align="center" cellpadding="0" cellspacing="0">';
	aL=tB.getAttribute("alt");
	ci=P7GSgi();
	ci[4]+=1;
	ct=p7gstmb.length;
	cn='';
	if(p7gsa[7]==1){
		cn=' <span class="p7GScounter">('+ci[4]+' of '+ct+')</span>';
	}
	aC='<tr><td class="p7GSfsc"><p>'+aL+cn+'</p></td></tr>';
	ds=p7gsca.parentNode.getElementsByTagName('DIV');
	if(ds&&ds[0]){
		dT=ds[0].innerHTML;
	}
	if(p7gsa[2]==1){
		if(aL&&aL.length>0){
			tH+=aC;
		}
	}
	tH+='<tr><td class="p7GSfsi"><i'+'mg s'+'rc="'+im.src+'" alt="'+aL+'"'+st+'></td></tr>';
	if(p7gsa[2]==2){
		if(aL&&aL.length>0){
			tH+=aC;
		}
	}
	if(p7gsa[3]==1){
		if(dT.length>0){
			tH+='<tr><td class="p7GSfsd"><div>'+dT+'</div></td></tr>';
		}
	}
	tH+='</table>';
	dM.innerHTML=tH;
	if(fS){
		fS.style.display='block';
	}
	if(ug<7){
		if(an==1||an==2){
			P7_GSfan();
		}
		else if(an>2){
			P7_GSfie();
		}
	}
	else{
		document.getElementById('p7GSfs').getElementsByTagName('IMG')[0].style.visibility='visible';
	}
}
function P7GSgi(){
	var i,x,a,gi=new Array();
	x=p7gstmb.length-1;
	for(i=0;i<p7gstmb.length;i++){
		if(p7gstmb[i]==p7gsca){
			break;
		}
	}
	gi[0]=0;
	gi[1]=(i>0)?i-1:0;
	gi[2]=(i<x)?i+1:x;
	gi[3]=x;
	gi[4]=i;
	return gi;
}
function P7_GSfie(){
	var i,d,im,f,ff,pim,g=new Array(),an=p7gsa[1];
	im=document.getElementById('p7GSfs').getElementsByTagName('IMG')[0];
	pim=im.parentNode;
	if(!im.parentNode.filters){
		p7gsa[1]=1;
		P7_GSfan();
		return;
	}
	f='progid:DXImageTransform.Microsoft.';
	d=' Duration=1';
	g[0]='Fade';
	g[1]='Fade';
	g[2]='Fade';
	g[3]='Fade';
	g[4]='Iris(irisstyle="SQUARE", motion="in"'+d+')';
	g[5]='Iris(irisstyle="SQUARE", motion="out"'+d+')';
	g[6]='Iris(irisstyle="CIRCLE", motion="in"'+d+')';
	g[7]='Iris(irisstyle="CIRCLE", motion="out"'+d+')';
	g[8]='Blinds(direction="up", bands=1'+d+')';
	g[9]='Blinds(direction="down", bands=1'+d+')';
	g[10]='Blinds(direction="right", bands=1'+d+')';
	g[11]='Blinds(direction="left", bands=1'+d+')';
	g[12]='Blinds(direction="right"'+d+')';
	g[13]='Blinds(direction="down"'+d+')';
	g[14]='CheckerBoard(direction="right"'+d+')';
	g[15]='CheckerBoard(direction="down"'+d+')';
	g[16]='RandomDissolve('+d+')';
	g[17]='Barn(orientation="vertical", motion="in"'+d+')';
	g[18]='Barn(orientation="vertical", motion="out"'+d+')';
	g[19]='Barn(orientation="horizontal", motion="in"'+d+')';
	g[20]='Barn(orientation="horizontal", motion="out"'+d+')';
	g[21]='Strips(motion="leftdown"'+d+')';
	g[22]='Strips(motion="leftup"'+d+')';
	g[23]='Strips(motion="rightdown"'+d+')';
	g[24]='Strips(motion="rightup"'+d+')';
	g[25]='RandomBars(orientation="horizontal"'+d+')';
	g[26]='RandomBars(orientation="vertical"'+d+')';
	g[27]='Wipe(GradientSize=1.0, wipeStyle=0, motion="forward"'+d+')';
	g[28]='Inset()';
	g[29]='Pixelate(MaxSquare=50,Duration=1,Enabled=false'+d+')';
	g[30]='RadialWipe(wipeStyle="clock"'+d+')';
	g[31]='RadialWipe(wipeStyle="wedge"'+d+')';
	g[32]='RadialWipe(wipeStyle="radial"'+d+')';
	g[33]='Slide(slideStyle="PUSH", bands=1'+d+')';
	g[34]='Slide(slideStyle="SWAP", bands=5'+d+')';
	g[35]='Slide(slideStyle="HIDE", bands=2'+d+')';
	g[36]='Spiral(GridSizeX=16, GridSizeY=16'+d+')';
	g[37]='Stretch(stretchStyle="hide"'+d+')';
	g[38]='Stretch(stretchStyle="spin"'+d+')';
	g[39]='Stretch(stretchStyle="push"'+d+')';
	g[40]='Wheel(spokes=4'+d+')';
	g[41]='Wheel(spokes=16'+d+')';
	g[42]='zigzag(GridSizeX=8, GridSizeY=8'+d+')';
	an=(an>g.length)?3:an;
	f+=g[an];
	pim.style.filter=f;
	if(pim.filters.length<1){
		p7gsa[1]=1;
		P7_GSfan();
		return;
	}
	pim.filters[0].Apply();
	im.style.visibility='visible';
	pim.filters[0].Play();
}
function P7_GSfan(){
	var im,fh,fw,tB,tF,tL,l,t,dt,dl,df,fr,dn,pl,an,c=10,i,ih,iw,ih2,iw2,l2,t2,lm=false,tm=false,ch=c,cw=c;
	an=p7gsa[1];
	im=document.getElementById('p7GSfs').getElementsByTagName('IMG')[0];
	tF=P7_getPos(im);
	fh=im.offsetHeight;
	fw=im.offsetWidth;
	tB=p7gsca.getElementsByTagName('IMG')[0];
	tD=P7_getPos(tB);
	if(an==1){
		l=parseInt((tB.offsetWidth/2))-5+tD[0];
		t=parseInt((tB.offsetHeight/2))-5+tD[1];
	}
	else{
		l=parseInt((fw/2))-5+tF[0];
		t=parseInt((fh/2))-5+tF[1];
	}
	tL=document.getElementById('p7GSah');
	tL.innerHTML='<img src="'+im.src+'" height="'+c+'" width="'+c+'">';
	tL.style.left=l+'px';
	tL.style.top=t+'px';
	dt=tF[1]-t;
	dl=tF[0]-l;
	fr=20;
	p7gsplot.length=0;
	ih=fh-c;
	iw=fw-c;
	if(ih>iw){
		dn=parseInt(ih/fr)+1;
		ih2=fr;
		iw2=parseInt(iw/dn)+1;
	}
	else{
		dn=parseInt(iw/fr)+1;
		iw2=fr;
		ih2=parseInt(ih/dn)+1;
	}
	l2=parseInt( Math.abs(dl)/dn)+1;
	if(dl<0){
		l2=l2*-1;
		lm=true;
	}
	t2=parseInt( Math.abs(dt)/dn)+1;
	if(dt<0){
		t2=t2*-1;
		tm=true;
	}
	for(i=1;i<dn+1;i++){
		t+=t2;
		if(tm){
			t=(t<=tF[1])?tF[1]:t;
		}
		else{
			t=(t>=tF[1])?tF[1]:t;
		}
		l+=l2;
		if(lm){
			l=(l<=tF[0])?tF[0]:l;
		}
		else{
			l=(l>=tF[0])?tF[0]:l;
		}
		cw+=iw2;
		cw=(cw>=fw)?fw:cw;
		ch+=ih2;
		ch=(ch>=fh)?fh:ch;
		p7gsplot[i-1]=t+','+l+','+cw+','+ch;
	}
	tL.style.visibility="visible";
	P7_GSfanim(0);
}
function P7_GSfanim(p){
	var i,pl,dy=10,tL=document.getElementById('p7GSah'),im=tL.getElementsByTagName('IMG')[0];
	if(p<p7gsplot.length){
		pl=p7gsplot[p].split(',');
		tL.style.top=pl[0]+'px';
		tL.style.left=pl[1]+'px';
		im.style.width=pl[2]+'px';
		im.style.height=pl[3]+'px';
		p++;
		setTimeout("P7_GSfanim("+p+")",dy);
	}
	else{
		document.getElementById('p7GSfs').getElementsByTagName('IMG')[0].style.visibility='visible';
		tL.style.visibility='hidden';
	}
}


/* 

  ================================================
  PVII Slide Show scripts
  Copyright (c) 2007 Project Seven Development
  www.projectseven.com
  Version: 1.2.7 -version build 4-30
  ================================================

*/

var P7ssma,p7ssmfrst,p7sscur=-1,p7ssmmode='manual',p7ssmtimer,p7ssmbusy=false,p7ssmsobj,p7ofX,p7ofY,p7ssmspd,p7ssmMinSpeed=2,p7ssmMaxSpeed=25;
var p7sstmb=new Array(),P7ssmpnls=new Array(),p7ssmn=false,p7ssmih,p7ssgld,p7ssmAlt;
var p7SMsaf=0;
function P7_setSSM(){
	if(!document.getElementById){
		return;
	}
	var h,uA=navigator.userAgent.toLowerCase();
	if(window.opera){
		if(uA.indexOf("opera 5")>-1 || uA.indexOf("opera 6")>-1){
			return;
		}
	}
	h='\n<st'+'yle type="text/css">\n';
	h+='.p7ssm_thumb_section{display:none;}\n';
	if(uA.indexOf("applewebkit")>-1){
		h+='#p7ssm_thumb_wrapper {display:none;}\n';
		h+='#p7SSMwnav div {display:none;}\n';
	}
	h+='</s'+'tyle>';
	document.write(h);
}
P7_setSSM();
function P7_SSMinit(){
	var i,x,tM,uA,tB,tA,tP,tD,id,d,tC,ds,bT,pV,iV;
	tM=document.getElementById("p7ssm");
	if(!tM){
		return;
	}
	if(arguments.length>1){
		P7ssma=arguments;
	}
	uA=navigator.userAgent.toLowerCase();
	if(uA.indexOf("applewebkit")>-1 && p7SMsaf==0){
		p7SMsaf=1;
		window.addEventListener("load",P7_SSMinit,false);
		return;
	}
	if(p7ssmn){
		return;
	}
	if(window.opera){
		if(uA.indexOf("opera 5")>-1 || uA.indexOf("opera 6")>-1){
			return;
		}
	}
	else if(uA.indexOf("netscape")>-1 || uA.indexOf("konqueror")>-1){
		P7ssma[3]=0;
	}
	if(navigator.appVersion.indexOf("MSIE 5")>-1){
		P7ssma[1]=0;
		P7ssma[3]=0;
	}
	p7ssmfrst=true;
	document.p7sspre=new Array();
	tB=document.getElementById("p7ssm_thumbs");
	tA=tB.getElementsByTagName("A");
	x=0;
	for(i=0;i<tA.length;i++){
		if(tA[i].parentNode.nodeName=="LI"){
			document.p7sspre[x]=new Image();
			document.p7sspre[x].cmp=false;
			document.p7sspre[x].onload=function (){
				this.cmp=true;
			};
			tA[i].p7ssindex=x;
			p7sstmb[x]=tA[i];
			x++;
			tA[i].onmouseover=function (){
				P7_SSMtmb_ovr(this);
			};
			tA[i].onmouseout=function (){
				P7_SSMtmb_out(this);
			};
tA[i].onclick= function(){
	return P7_SSMtmb(this);
};
}
}
tA=document.getElementsByTagName("A");
x=0;
for(i=0;i<tA.length;i++){
id=tA[i].id;
if(id && id.indexOf('p7SSMt')==0){
if(id=='p7SSMthmb' || id=='p7SSMtnav'){
	tA[i].onclick=function (){
		return P7_SSMtrgPanel(this.id,0);
	};
}
else{
	tA[i].onclick=function (){
		return P7_SSMtrgPanel(this.id,1);
	};
}
d=id.replace("t","w");
tD=document.getElementById(d);
if(tD){
	tC=tD.getElementsByTagName("DIV")[0];
	if(tA[i].className&&tA[i].className=="down"){
		tA[i].p7state="open";
	}
	else{
		tA[i].p7state="closed";
		tC.style.display="none";
	}
	P7ssmpnls[x]=id;
	x++;
	tA[i].p7type='normal';
	tA[i].p7panel=d;
	if(id.indexOf('_')>-1){
		tA[i].p7type='toggle';
	}
}
}
}
if(P7ssma[6]==1){
p7ssmmode='auto';
}
else{
p7ssmmode='manual';
}
bT=document.getElementById('p7ssm_pp');
bT.onclick=function(){
return P7_SSMppTrig(this);
};
if(P7ssma[6]==1){
P7_SSMplay(1);
}
else{
P7_SSMpause(1);
}
tB=document.getElementById('p7ssm_first');
tB.onclick=function(){
return P7_SSMctrl('first');
};
tB=document.getElementById('p7ssm_last');
tB.onclick=function(){
return P7_SSMctrl('last');
};
tB=document.getElementById('p7ssm_prev');
tB.onclick=function(){
return P7_SSMctrl('previous');
};
tB=document.getElementById('p7ssm_next');
tB.onclick=function(){
return P7_SSMctrl('next');
};
P7_SSMsetDelay();
document.onmousedown=P7_SSMeng;
document.onmousemove = P7_SSMdrg;
document.onmouseup = P7_SSMrel;
pV=document.getElementById("p7ssm_preview");
iV=P7_getChildIm(pV);
iV.busy=false;
if(iV){
iV.removeAttribute("width");
iV.removeAttribute("height");
}
tA=document.getElementById("p7ssm_fslink");
if(tA){
tA.onclick=function(){
return P7_imgClick(this);
};
}
p7ssmn=true;
x=P7ssma[5];
P7_SSMtrig(x);
P7_SSMurl();
}
function P7_SSMurl(){
	var i,h,s,x,d='ssm';

	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(x){
							P7_SSMtrig(x);
						}
					}
				}
			}
		}
		h=document.location.hash;
		if(h){
			x=h.substring(1,h.length);
			if(x && x.indexOf("ssm")==0){
				P7_SSMtrig(x.substring(3));
			}
		}
	}
}
function P7_SSMtrig(n){
	var i,td,pp,tA,td,tP;
	P7_SSMclear();
	if(!n){
		n=p7sscur;
		n++;
	}
	else{
		n--;
	}
	if(n>=p7sstmb.length || n<0){
		n=0;
	}
	tA=p7sstmb[n];
	pp=tA.parentNode;
	while(pp){
		if(pp.nodeName=='DIV' && pp.id && pp.id.indexOf('p7SSMwp'==0)){
			td=pp.id.replace('w','t');
			tP=document.getElementById(td);
			break;
		}
		pp=pp.parentNode;
	}
	if(tP){
		if(tP.p7state!='open'){
			P7_SSMopenPanel(tP.id);
		}
	}
	P7_SSMtmb(tA,1);
}
function P7_SSMclear(){
	if(p7ssmtimer){
		clearTimeout(p7ssmtimer);
	}
	if(document.p7ssmwait){
		clearTimeout(document.p7ssmwait);
	}
}
function P7_SSMppTrig(){
	if(!p7ssmn){
		return false;
	}
	var a=document.getElementById('p7ssm_pp');
	if(a.p7state=='play'){
		P7_SSMpause();
	}
	else{
		P7_SSMplay();
	}
	return false;
}
function P7_SSMplay(bp){
	var b=document.getElementById('p7ssm_pp');
	if(p7ssmmode=='auto'&&bp!=1){
		return;
	}
	b.p7state='play';
	p7ssmmode='auto';
	b.title='Pause Slideshow';
	b.className='p7ssm_pause';
	if(bp!=1){
		P7_SSMtrig();
	}
}
function P7_SSMpause(bp){
	var b=document.getElementById('p7ssm_pp');
	P7_SSMclear();
	b.p7state='pause';
	if(bp!=1){
		p7ssmmode='pause';
	}
	b.title='Play Slideshow';
	b.className='p7ssm_play';
}
function P7_SSMctrl(ag,bp){
	if(!p7ssmn){
		return false;
	}
	var n;
	if(ag=='pause'){
		P7_SSMpause();
		return false;
	}
	if(p7ssmbusy){
		return false;
	}
	if(ag=='play'){
		P7_SSMplay();
		return false;
	}
	if(bp!=1){
		P7_SSMpause();
	}
	if(ag=='first'){
		n=1;
	}
	else if(ag=='last'){
		n=p7sstmb.length;
	}
	else if(ag=='next'){
		n=p7sscur+1;
		n++;
		if(n>p7sstmb.length){
			n=1;
		}
	}
	else if(ag=='previous'){
		n=p7sscur+1;
		n--;
		if(n<1){
			n=p7sstmb.length;
		}
	}
	else{
		n=parseInt(ag);
	}
	if(n<1){
		n=1;
	}
	if(n>p7sstmb.length){
		n=p7sstmb.length;
	}
	P7_SSMclear();
	P7_SSMtrig(n);
	return false;
}
function P7_SSMshowImage(n){
	var x,i,tA,tI,pV,iV,pI,fsw,cI,lD;
	x=n-1;
	if(n>p7sstmb.length || n<1 || x==p7sscur){
		return;
	}
	p7ssmbusy=true;
	var cf=document.getElementById("p7ssm_cf");
	cf.innerHTML='';
	cf.style.left="0px";
	cf.style.top="0px";
	if(p7sstmb[p7sscur]){
		p7sstmb[p7sscur].className='';
	}
	tA=p7sstmb[x];
	tA.className="down";
	p7sscur=x;
	tI=P7_getChildIm(tA);
	pV=document.getElementById("p7ssm_preview");
	iV=P7_getChildIm(pV);
	if(!iV.busy){
		iV.src=tI.src;
		iV.alt=tI.alt;
	}
	pI=document.p7sspre[x];
	if(document.p7ssmwait){
		clearTimeout(document.p7ssmwait);
	}
	if(!pI.cmp){
		lD=document.getElementById("p7ssm_loading");
		P7_SSMshowPRG();
		pI.src=tA.href;
		P7_SSMwait(x);
	}
	else{
		P7_SSMdisplay();
	}
}
function P7_SSMdisplay(){
	var i,x,n,op,fsw,fsc,fsimg,fslnk,ch,cw,gld=false,tC,tA,tI,tD,hr,alT,fd,a,cIM,nIM,oiw,oih,niw,nih,nw,nh,fDS,cf,nrw,cDim;
	op=(p7ssmfrst)?0:P7ssma[3];
	p7ssgld=false;
	x=p7sscur;
	fsw=document.getElementById("p7ssm_fsw");
	fsc=document.getElementById("p7ssm_fsc");
	cf=document.getElementById("p7ssm_cf");
	cf.style.visibility="hidden";
	cf.innerHTML='<im'+'g sr'+'c="'+document.p7sspre[x].src+'">';
	if(fsc.p7hssz){
		clearTimeout(fsc.p7hssz);
	}
	fsw.style.overflow="visible";
	fsc.style.height="auto";
	ch=fsw.offsetHeight;
	cw=fsw.offsetWidth;
	fsc.style.width=cw+"px";
	tC=document.getElementById("p7ssm_counter");
	n=p7sstmb.length;
	if(tC){
		tC.innerHTML='Image '+(x+1)+' of '+n;
	}
	tA=p7sstmb[x];
	tI=P7_getChildIm(tA);
	tD=tA.parentNode.getElementsByTagName("DIV");
	hr=null;
	p7ssmAlt=tI.alt;
	fd=null;
	if(tD){
		for(i=0;i<tD.length;i++){
			if(tD[i].className=="p7ssm_lk"){
				a=tD[i].getElementsByTagName("A")[0];
				if(a){
					hr=a.href;
					p7ssmAlt=a.innerHTML;
				}
			}
			if(tD[i].className=="p7ssm_fd"){
				fd=tD[i].innerHTML;
			}
		}
	}
	fDS=document.getElementById("p7ssm_description");
	fDS.p7desc=fd;
	fslnk=document.getElementById("p7ssm_fslink");
	if(hr){
		fslnk.setAttribute("href",hr);
	}
	else{
		fslnk.removeAttribute("href");
	}
	nih=cf.offsetHeight;
	niw=cf.offsetWidth;
	fsimg=document.getElementById("p7ssm_fsimg");
	cIM=document.getElementById("p7ssm_im");
	oiw=cIM.offsetWidth;
	oih=cIM.offsetHeight;
	nih=(nih>20)?nih:oih;
	niw=(niw>20)?niw:oiw;
	nw=oiw-niw;
	nh=oih-nih;
	fsc.p7cw=cw;
	fsc.p7ch=ch;
	nrw=cw-oiw+niw;
	fsc.p7nw=nrw;
	if(op==1){
		if(Math.abs(nw)>0 || Math.abs(nh)>0){
			p7ssgld=true;
			fsc.style.overflow="hidden";
			fsc.style.height=ch+"px";
			fsc.style.width=cw+"px";
		}
	}
	if(p7ssgld){
		P7_SSMfadeOut("p7ssm_im",.95);
	}
	else{
		fsc.style.width=nrw+"px";
		if(fDS.p7desc){
			fDS.innerHTML=fDS.p7desc;
			fDS.style.display="block";
		}
		else{
			fDS.innerHTML='';
			fDS.style.display="none";
		}
		if(op==1){
			cDim=P7_SSMgetPos(cIM);
			P7_SSMsetPos('p7ssm_cf',cDim[1],cDim[0]);
			P7_SSMcrossFade('p7ssm_cf',.05,'p7ssm_im',.95);
		}
		else{
			cIM.src=document.p7sspre[x].src;
			cf.innerHTML='';
			if(nih<1 || niw<1){
				cIM.height=null;
				cIM.width=null;
			}
			else{
				cIM.setAttribute("width",niw);
				cIM.setAttribute("height",nih);
			}
			cIM.setAttribute("alt",p7ssmAlt);
			P7_SSMdispFin();
		}
	}
}
function P7_SSMdispFin(){
	var x,pI;
	p7ssmfrst=false;
	p7ssmbusy=false;
	if(p7ssmmode=='auto'){
		x=p7sscur;
		x++;
		if(x<0||x>=p7sstmb.length){
			x=0;
		}
		if(P7ssma[7]==1){
			pI=document.p7sspre[x];
			if(!pI.cmp){
				pI.src=p7sstmb[x].href;
			}
		}
		p7ssmtimer=setTimeout("P7_SSMtrig()",P7ssma[8]*1000);
	}
}
function P7_SSMdisplayCf(){
	var x=p7sscur;
	var cIM=document.getElementById("p7ssm_im");
	var cf=document.getElementById("p7ssm_cf");
	cIM.src=document.p7sspre[x].src;
	cIM.setAttribute("width",cf.offsetWidth);
	cIM.setAttribute("height",cf.offsetHeight);
	cIM.setAttribute("alt",p7ssmAlt);
	if((navigator.appVersion.indexOf("MSIE")>-1)){
		cIM.style.filter='';
	}
	else{
		cIM.style.opacity=0.99;
	}
	var cf=document.getElementById("p7ssm_cf");
	cf.style.visibility="hidden";
	cf.innerHTML='';
	P7_SSMdispFin();
}
function P7_SSMdisplayGa(){
	var fsw,fsc,fDS,cIM,nh,cf;
	fsc=document.getElementById("p7ssm_fsc");
	fsw=document.getElementById("p7ssm_fsw");
	cf=document.getElementById("p7ssm_cf");
	fDS=document.getElementById("p7ssm_description");
	fsw.style.visibility="hidden";
	fsw.style.width=fsc.p7nw+"px";
	if(fDS.p7desc){
		fDS.innerHTML=fDS.p7desc;
		fDS.style.display="block";
	}
	else{
		fDS.innerHTML='';
		fDS.style.display="none";
	}
	cIM=document.getElementById("p7ssm_im");
	cIM.src=document.p7sspre[p7sscur].src;
	cIM.setAttribute("width",cf.offsetWidth);
	cIM.setAttribute("height",cf.offsetHeight);
	cf.innerHTML='';
	cIM.setAttribute("alt",p7ssmAlt);
	nh=fsw.offsetHeight;
	fsw.style.display="none";
	P7_SSMszg("p7ssm_fsc","p7ssm_fsw",fsc.p7ch,fsc.p7cw,nh,fsc.p7nw);
}
function P7_SSMdisplayGb(){
	P7_SSMdispFin();
}
function P7_SSMwait(x){
	var im=document.p7sspre[x];
	if(im.cmp || (!document.all&&im.height>1)){
		im.cmp=true;
		document.getElementById("p7ssm_loading").style.visibility="hidden";
		P7_SSMdisplay();
	}
	else{
		if(document.p7ssmwait){
			clearTimeout(document.p7ssmwait);
		}
		document.p7ssmwait=setTimeout("P7_SSMwait("+x+")",60);
	}
}
function P7_SSMshowPRG(g){
	var i,im,tD,tB,ph,pw,ih,iw,nh,nw,lf,tp,cp;
	tD=document.getElementById("p7ssm_loading");
	tB=document.getElementById("p7ssm_fsimg");
	im=P7_getChildIm(tB);
	if(p7ssmfrst){
		im=document.getElementById("p7ssm");
	}
	if(im){
		ph=tD.offsetHeight;
		pw=tD.offsetWidth;
		ih=im.offsetHeight;
		iw=im.offsetWidth;
		lf=parseInt((iw-pw)/2);
		tp=parseInt((ih-ph)/2);
		cp=P7_SSMgetPos(im);
		lf+=cp[0];
		tp+=cp[1];
		P7_SSMsetPos(tD.id,tp,lf);
		tD.style.visibility="visible";
	}
}
function P7_SSMszg(id,id2,ch,cw,th,tw){
	var i,d,dd,mh,mw,ih=5,iw=5,dy=20;
	d=document.getElementById(id);
	dd=document.getElementById(id2);
	d.style.height=ch+'px';
	d.style.width=cw+'px';
	mh=(ch<=th)?0:1;
	mw=(cw<=tw)?0:1;
	ih=(mh==1)?ih*-1:ih;
	iw=(mw==1)?iw*-1:iw;
	if(ch==th && cw==tw){
		dd.style.display="block";
		d.style.overflow="visible";
		d.style.height=dd.offsetHeight+"px";
		dd.style.visibility="visible";
		setTimeout("P7_SSMfadeIn('p7ssm_im',.05)",250);
	}
	else{
		ch+=ih;
		cw+=iw;
		if(mh==0){
			ch=(ch>=th)?th:ch;
		}
		else{
			ch=(ch<=th)?th:ch;
		}
		if(mw==0){
			cw=(cw>=tw)?tw:cw;
		}
		else{
			cw=(cw<=tw)?tw:cw;
		}
		if(d.p7hssz){
			clearTimeout(d.p7hssz);
		}
		d.p7hssz=setTimeout("P7_SSMszg('"+id+"','"+id2+"',"+ch+","+cw+","+th+','+tw+")",dy);
	}
}
function P7_SSMfadeIn(id,op){
	var im,dy,lm=.99,inc,d=document.getElementById(id);
	inc=(window.opera)?.15:.10;
	dy=(window.opera)?20:20;
	if(d.style.visibility!="visible"){
		d.style.visibility="visible";
	}
	op=(op>=lm)?lm:op;
	if((navigator.appVersion.indexOf("MSIE")>-1)){
		d.style.filter='alpha(opacity='+op*100+')';
	}
	else{
		d.style.opacity=op;
	}
	if(op<lm){
		if(d.p7ssmfade){
			clearTimeout(d.p7ssmfade);
		}
		op+=inc;
		d.p7ssmfade=setTimeout("P7_SSMfadeIn('"+id+"',"+op+")",dy);
	}
	else{
		if((navigator.appVersion.indexOf("MSIE")>-1)){
			d.style.filter='';
		}
		P7_SSMdisplayGb();
	}
}
function P7_SSMfadeOut(id,op){
	var im,dy,inc,cf,lm=.01,d=document.getElementById(id);
	inc=(window.opera)?.12:.10;
	dy=(window.opera)?20:20;
	if(d.style.visibility!="visible"){
		d.style.visibility="visible";
	}
	op=(op<=lm)?lm:op;
	if((navigator.appVersion.indexOf("MSIE")>-1)){
		d.style.filter='alpha(opacity='+op*100+')';
	}
	else{
		d.style.opacity=op;
	}
	if(op>lm){
		if(d.p7ssmfade){
			clearTimeout(d.p7ssmfade);
		}
		op-=inc;
		d.p7ssmfade=setTimeout("P7_SSMfadeOut('"+id+"',"+op+")",dy);
	}
	else{
		d.style.visibility="hidden";
		setTimeout("P7_SSMdisplayGa()",150);
	}
}
function P7_SSMcrossFade(di,opi,dou,opo){
	var dIn,dOut,inc,dy,lm=01,hl=.99;
	inc=.05;
	dy=20;
	dIn=document.getElementById(di);
	dOut=document.getElementById(dou);
	if(dIn.style.visibility!="visible"){
		dIn.style.visibility="visible";
	}
	if(dOut.style.visibility!="visible"){
		dOut.style.visibility="visible";
	}
	opi=(opi>=hl)?hl:opi;
	opo=(opo<=lm)?lm:opo;
	if((navigator.appVersion.indexOf("MSIE")>-1)){
		dIn.style.filter='alpha(opacity='+opi*100+')';
		dOut.style.filter='alpha(opacity='+opo*100+')';
	}
	else{
		dIn.style.opacity=opi;
		dOut.style.opacity=opo;
	}
	if(opo>lm || opi<hl){
		if(dIn.p7ssmfade){
			clearTimeout(dIn.p7ssmfade);
		}
		opi+=inc;
		opo-=inc;
		dIn.p7ssmfade=setTimeout("P7_SSMcrossFade('"+di+"',"+opi+",'"+dou+"',"+opo+")",dy);
	}
	else{
		if((navigator.appVersion.indexOf("MSIE")>-1)){
			dIn.style.filter='';
		}
		P7_SSMdisplayCf();
	}
}
function P7_SSMtmb(a,bp){
	var m=(bp==1)?true:false;
	if(!p7ssmn){
		return m;
	}
	if(bp!=1 && p7ssmbusy){
		return m;
	}
	if(bp!=1){
		P7_SSMpause();
	}
	P7_SSMshowImage(a.p7ssindex+1);
	return m;
}
function P7_SSMtmb_ovr(a){
	if(!p7ssmn){
		return;
	}
	var iM,pV,iV,cl,ph,pw,of,newTop,newLeft,wW,scl,tw;
	iM=P7_getChildIm(a);
	pV=document.getElementById("p7ssm_preview");
	iV=P7_getChildIm(pV);
	iV.busy=true;
	iV.src=iM.src;
	iV.alt=iM.alt;
}
function P7_SSMtmb_out(a){
	if(!p7ssmn){
		return;
	}
	var pI,tI,pV=document.getElementById("p7ssm_preview");
	pI=P7_getChildIm(pV);
	tI=P7_getChildIm(p7sstmb[p7sscur]);
	pI.busy=false;
	pI.src=tI.src;
	pI.alt=tI.alt;
}
function P7_SSMtrgPanel(d,c){
	if(!p7ssmn){
		return false;
	}
	var i,a,x,td;
	if(c==1){
		P7_SSMpause();
	}
	a=document.getElementById(d);
	if(a){
		if(a.p7state=="open"){
			P7_SSMclosePanel(d,c);
		}
		else{
			P7_SSMopenPanel(d,c);
		}
	}
	return false;
}
function P7_SSMtoggle(id,c){
	var i,x,pd,nd;
	for(i=0;i<P7ssmpnls.length;i++){
		pd=P7ssmpnls[i];
		x=pd.indexOf("_");
		nd=pd.substring(0,x+1);
		if(x>0&&pd.indexOf(nd)==0&&pd!=id){
			P7_SSMclosePanel(pd,c);
		}
	}
}
function P7_SSMclosePanel(iD,c){
	var i,a,wD,tW,tC,h;
	a=document.getElementById(iD);
	if(a){
		if(a.p7state=="closed"){
			return;
		}
		if(c==1){
			P7_SSMpause();
		}
		wD=iD.replace('t','w');
		tW=document.getElementById(wD);
		if(tW){
			tC=tW.getElementsByTagName("DIV")[0];
			if(tC){
				a.p7state="closed";
				a.className='';
				if(P7ssma[1]==1){
					if(P7_hasOverflow(tW)||P7_hasOverflow(tC)){
						tC.style.display="block";
						return;
					}
					h=tW.offsetHeight;
					tW.style.overflow="hidden";
					P7_SSMglide(tW.id,h,0);
				}
				else{
					tC.style.display="none";
				}
			}
		}
	}
}
function P7_SSMopenPanel(iD,c){
	var i,a,wD,tW,tC,h;
	a=document.getElementById(iD);
	if(a){
		if(a.p7state=="open"){
			return;
		}
		if(c==1){
			P7_SSMpause();
		}
		wD=iD.replace('t','w');
		tW=document.getElementById(wD);
		if(tW){
			tC=tW.getElementsByTagName("DIV")[0];
			if(tC){
				a.p7state="open";
				a.className="down";
				if(P7ssma[1]==1){
					if(P7_hasOverflow(tW)||P7_hasOverflow(tC)){
						tC.style.display="block";
						return;
					}
					tW.style.overflow="hidden";
					tW.style.height="1px";
					tC.style.display="block";
					h=tC.offsetHeight;
					if(h>0){
						P7_SSMglide(tW.id,1,h);
					}
					else{
						tW.style.height="auto";
						tC.style.display="block";
					}
				}
				else{
					tC.style.display="block";
				}
				if(a.p7type=='toggle'){
					if(P7ssma[2]==1){
						P7_SSMtoggle(iD,c);
					}
				}
			}
		}
	}
}
function P7_SSMglide(dd,ch,th){
	var w,m,d,tC,tt,dy=10,inc=10,pc=.15;
	d=document.getElementById(dd);
	m=(ch<=th)?0:1;
	tt=Math.abs( parseInt( Math.abs(th)-Math.abs(ch) ) );
	inc=(tt*pc<1)?1:tt*pc;
	inc=(m==1)?inc*-1:inc;
	d.style.height=ch+"px";
	if(ch==th){
		if(th==0){
			tC=d.getElementsByTagName('DIV')[0];
			tC.style.display="none";
			d.style.height="auto";
		}
		else{
			d.style.height="auto";
		}
	}
	else{
		ch+=inc;
		if(m==0){
			ch=(ch>=th)?th:ch;
		}
		else{
			ch=(ch<=th)?th:ch;
		}
		if(d.p7ssG){
			clearTimeout(d.p7ssG);
		}
		d.p7ssG=setTimeout("P7_SSMglide('"+dd+"',"+ch+","+th+")",dy);
	}
}
function P7_SSMeng(evt){
	if(!p7ssmn){
		return false;
	}
	var x,mx,tx,y,my,ty;
	evt=(evt)?evt:event;
	var m=true,tS,tg=(evt.target)?evt.target:evt.srcElement;
	p7ssmsobj=null;
	if(tg.id&&tg.id=='p7ssm_slidebar'){
		p7ssmsobj=document.getElementById('p7ssm_slider');
	}
	else if(tg.id&&tg.id=='p7ssm_dragbar'){
		p7ssmsobj=document.getElementById('p7SSMwhmb');
	}
	if(p7ssmsobj){
		if(evt.clientX){
			x=(p7ssmsobj.offsetLeft)?p7ssmsobj.offsetLeft:0;
			y=(p7ssmsobj.offsetTop)?p7ssmsobj.offsetTop:0;
			mx=parseInt(P7_getPropValue(p7ssmsobj,'marginLeft','margin-left'));
			mx=(mx)?mx:0;
			my=parseInt(P7_getPropValue(p7ssmsobj,'marginTop','margin-top'));
			my=(my)?my:0;
			p7ofX=evt.clientX-(x-mx);
			p7ofY=evt.clientY-(y-my);
		}
		m=false;
		if(tg.id=='p7ssm_slidebar'){
			document.getElementById('p7ssm_slidebar').title='';
			tS=document.getElementById('p7ssm_speed');
			if(tS){
				tS.style.display='block';
			}
			p7ssmspd=P7ssma[8];
			if(p7ssmmode=='auto'){
				P7_SSMpause();
			}
		}
	}
	return m;
}
function P7_SSMdrg(evt){
	evt=(evt)?evt:event;
	var m=true;
	if(p7ssmsobj){
		if(evt.clientX){
			if(p7ssmsobj.id=='p7ssm_slider'){
				P7_SSMshift(p7ssmsobj,(evt.clientX-p7ofX));
			}
			else{
				P7_SSMshiftThumb(p7ssmsobj,(evt.clientX-p7ofX),(evt.clientY-p7ofY));
			}
		}
		evt.cancelBubble=true;
		m=false;
	}
	return m;
}
function P7_SSMshiftThumb(obj,x,y){
	obj.style.left=x+"px";
	obj.style.top=y+"px";
}
function P7_SSMshift(obj,x){
	var r,sr,sp,tS,tC,tT;
	tS=document.getElementById('p7ssh_speed');
	if(tS){
		tS.style.display='block';
	}
	tC=document.getElementById('p7ssm_slidechannel');
	r=tC.offsetWidth-obj.offsetWidth;
	x=(x<=0)?0:x;
	x=(x>=r)?r:x;
	obj.style.left=x+"px";
	sp = Math.round( (x/r) * p7ssmMaxSpeed );
	if(sp<=p7ssmMinSpeed){
		sp=p7ssmMinSpeed;
	}
	tT=document.getElementById('p7ssm_speed');
	if(tT){
		tT.innerHTML='Delay:&nbsp;'+sp+'&nbsp;seconds';
	}
	p7ssmspd=sp;
}
function P7_SSMrel(evt){
	var tS;
	if(p7ssmsobj){
		if(p7ssmsobj.id=='p7ssm_slider'){
			tS=document.getElementById('p7ssm_speed');
			if(tS){
				tS.style.display='none';
			}
			P7ssma[8]=p7ssmspd;
			document.getElementById('p7ssm_slidebar').title='Delay: '+P7ssma[8]+' seconds';
			if(p7ssmmode=='pause'){
				P7_SSMplay();
			}
		}
		p7ssmsobj=null;
	}
}
function P7_SSMsetDelay(s){
	var rr,x,r,tC,sD,tT;
	tC=document.getElementById('p7ssm_slidechannel');
	sD=document.getElementById('p7ssm_slider');
	r=tC.offsetWidth-sD.offsetWidth;
	if(!s){
		s=P7ssma[8];
	}
	s=(s<=p7ssmMinSpeed)?p7ssmMinSpeed:s;
	s=(s>=p7ssmMaxSpeed)?p7ssmMaxSpeed:s;
	x=Math.round( (s / p7ssmMaxSpeed) *r );
	sD.style.left=x+'px';
	P7ssma[8]=s;
	tT=document.getElementById('p7ssm_speed');
	if(tT){
		tT.innerHTML='Delay:&nbsp;'+s+'&nbsp;seconds';
	}
	document.getElementById('p7ssm_slidebar').title='Delay: '+P7ssma[8]+' seconds';
}
function P7_getChildIm(d){
	return d.getElementsByTagName('IMG')[0];
}
function P7_hasOverflow(ob){
	var s,m;
	s=ob.style.overflow;
	if(!s){
		s=P7_getPropValue(ob,'overflow','overflow');
	}
	m=(s&&s=='auto')?true:false;
	return m;
}
function P7_getPropValue(ob,prop,prop2){
	var h,v=null;
	if(ob){
		if(ob.currentStyle){
			v=eval('ob.currentStyle.'+prop);
		}
		else if(document.defaultView.getComputedStyle(ob,"")){
			v=document.defaultView.getComputedStyle(ob,"").getPropertyValue(prop2);
		}
		else{
			v=eval("ob.style."+prop);
		}
	}
	return v;
}
function P7_SSMgetPos(obj){
	var t=0,l=0,pp,pos=new Array(),ct,cl,bt=0,bl=0;
	var isFF=navigator.userAgent.indexOf("Firefox")>-1;
	pp=obj;
	var ct,di;
	while(pp){
		l+=(pp.offsetLeft)?pp.offsetLeft:0;
		t+=(pp.offsetTop)?pp.offsetTop:0;
		if(isFF){
			pp.p7pn=true;
		}
		pp=pp.offsetParent;
	}
	if(isFF){
		pp=obj.parentNode;
		while(pp){
			if(!pp.p7pn&&pp.clientHeight){
				ct=(pp.offsetHeight-pp.clientHeight)/2;
				bt=(ct)?bt+ct:bt;
				cl=(pp.offsetWidth-pp.clientWidth)/2;
				bl=(cl)?bl+cl:bl;
			}
			if(pp.nodeName=="BODY"){
				break;
			}
			pp=pp.parentNode;
		}
		if(cl>0 || bl>0){
		}
	}
	pos[0]=l;
	pos[1]=t;
	return pos;
}
function P7_SSMsetPos(d,t,l){
	var i,pp,p,pf,tD=document.getElementById(d);
	pp=tD.parentNode;
	while(pp){
		if(pp.style){
			p=P7_getPropValue(pp,'position','position');
			if(p=="absolute" || p=="relative"){
				pf=P7_SSMgetPos(pp);
				l-=pf[0];
				t-=pf[1];
				break;
			}
		}
		pp=pp.parentNode;
	}
	tD.style.top=t+"px";
	tD.style.left=l+"px";
}
function P7_imgClick(a){
	if(a.href && a.href.indexOf(".")>-1){
		P7_SSMpause();
		document.p7NW=window.open(a.href,'ImageLink');
		document.p7NW.focus();
	}
	return false;
}
if(window.addEventListener){
	window.addEventListener("unload",P7_FFfix,false);
}
function P7_FFfix(){
	return;
}


/* 

  ================================================
  PVII Accordian Panel scripts
  Copyright (c) 2007 Project Seven Development
  www.projectseven.com
  Version: 1.0.4 -build 27
  ================================================
  
*/

var p7AB=false;
var p7ABi=false;
function P7_setAB(){
	if(!document.getElementById){
		return;
	}
	var h,tA=navigator.userAgent.toLowerCase();
	if(window.opera){
		if(tA.indexOf("opera 5")>-1 || tA.indexOf("opera 6")>-1){
			return;
		}
	}
	h=String.fromCharCode(60,115,116,121,108,101,32,116,121,112,101,61,34,116,101,120,116,47,99,115,115,34,62,46,112,55,65,66,99,111,110,116,101,110,116,123,100,105,115,112,108,97,121,58,110,111,110,101,59,125,60,47,115,116,121,108,101,62);
	h+='\n'+String.fromCharCode(60,33,45,45,91,105,102,32,108,116,101,32,73,69,32,55,93,62,60,115,116,121,108,101,62,46,112,55,65,66,44,46,112,55,65,66,32,100,105,118,123,122,111,111,109,58,49,48,48,37,59,125,60,47,115,116,121,108,101,62,60,33,91,101,110,100,105,102,93,45,45,62);
	h+='\n'+String.fromCharCode(60,33,45,45,91,105,102,32,108,116,101,32,73,69,32,54,93,62,60,115,116,121,108,101,62,46,112,55,65,66,44,46,112,55,65,66,99,111,110,116,101,110,116,44,46,112,55,65,66,116,114,105,103,32,97,123,104,101,105,103,104,116,58,49,37,59,125,60,47,115,116,121,108,101,62,60,33,91,101,110,100,105,102,93,45,45,62);
	document.write(h);
}
P7_setAB();
function P7_opAB(){
	var x,c,tC,ab,tB;
	if(document.getElementById){
		ab='p7ABW'+arguments[0];
		tB=document.getElementById(ab);
		tB.p7Aba=arguments;
		x=arguments[3];
		if(x>0&&x<11){
			c='p7ABc'+arguments[0]+'_'+x;
			tC=document.getElementById(c);
			if(tC){
				tC.style.display='block';
			}
		}
		if(!p7ABi){
			p7ABi=true;
			if(window.addEventListener){
				window.addEventListener("load",P7_initAB,false);
			}
			else if(document.addEventListener){
				document.addEventListener("load",P7_initAB,false);
			}
			else if(window.attachEvent){
				window.attachEvent("onload",P7_initAB);
			}
			else if(typeof window.onload=='function'){
				var p7loadit=onload;
				window.onload=function(){
					p7loadit();
					P7_initAB();
				};
			}
			else{
				window.onload=P7_initAB;
			}
		}
	}
}
function P7_initAB(){
	var i,j,ab,tB,tD,tA,op,ob,tg;
	if(!document.getElementById){
		return;
	}
	for(i=10;i>0;i--){
		ab='p7ABW'+i;
		tB=document.getElementById(ab);
		if(tB){
			tA=tB.getElementsByTagName("A");
			tg='p7ABt'+i;
			for(j=0;j<tA.length;j++){
				if(tA[j].id && tA[j].id.indexOf(tg)==0){
					tA[j].onclick=function(){
						return P7_ABtrig(this);
					};
					tA[j].p7ABstate=0;
					tA[j].p7ABpr=ab;
				}
			}
			ob=i+'_'+tB.p7Aba[3];
			P7_ABopen(ob);
		}
	}
	p7AB=true;
	P7_ABurl();
	P7_ABauto();
}
function P7_ABopen(s){
	var a,g,d='p7ABt'+s;
	a=document.getElementById(d);
	g=s.split("_");
	if(g&&g.length>1&&g[1]==99){
		a=P7_randAB(g[0]);
	}
	if(g&&g.length>1&&g[1]=='a'){
		P7_ABall(s);
	}
	else{
		if(a&&a.p7ABpr){
			if(a.p7ABstate==0){
				P7_ABtrig(a);
			}
		}
	}
}
function P7_ABclose(s){
	var a,d='p7ABt'+s;
	a=document.getElementById(d);
	if(a&&a.p7ABpr){
		if(a.p7ABstate==1){
			P7_ABtrig(a);
		}
	}
}
function P7_ABclick(s){
	var a,d='p7ABt'+s;
	a=document.getElementById(d);
	if(a&&a.p7ABpr){
		P7_ABtrig(a);
	}
}
function P7_randAB(r){
	var i,k,j=0,d,dd,tA,a,rD=new Array();
	dd='p7ABW'+r;
	d=document.getElementById(dd);
	if(d){
		tA=d.getElementsByTagName("A");
		for(i=0;i<tA.length;i++){
			if(tA[i].p7ABpr && tA[i].p7ABpr==dd){
				rD[j]=tA[i].id;
				j++;
			}
		}
		if(j>0){
			k=Math.floor(Math.random()*j);
			a=document.getElementById(rD[k]);
		}
	}
	return a;
}
function P7_ABall(s){
	var i,m,d,dd,st,et,tA,g=s.split("_");
	if(g&&g.length==2){
		st=parseInt(g[0]);
		if(st){
			et=st+1;
		}
		else{
			st=1;
			et=11;
		}
		m=p7AB;
		p7AB=false;
		for(i=st;i<et;i++){
			dd='p7ABW'+i;
			d=document.getElementById(dd);
			if(d){
				tA=d.getElementsByTagName("A");
				for(j=0;j<tA.length;j++){
					if(tA[j].p7ABpr && tA[j].p7ABpr==dd){
						if(g[1]=='a' && tA[j].p7ABstate==0){
							P7_ABtrig(tA[j]);
						}
						else if(g[1]=='c' && tA[j].p7ABstate==1){
							P7_ABtrig(tA[j]);
						}
					}
				}
			}
		}
		p7AB=m;
	}
}
function P7_ABurl(){
	var i,h,s,x,d='pab';
	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(x){
							P7_ABopen(x);
						}
					}
				}
			}
		}
		h=document.location.hash;
		if(h){
			x=h.substring(1,h.length);
			if(x && x.indexOf("pab")==0){
				P7_ABopen(x.substring(3));
			}
		}
	}
}
function P7_ABtrig(a){
	var i,j=null,op,pD,ad,aT,m=true,cp='p7ABc'+a.p7ABpr.substring(a.p7ABpr.length-1);
	var iD=a.id.replace('t','c'),tD=document.getElementById(iD);
	if(tD){
		m=false;
		pD=document.getElementById(a.p7ABpr);
		op=pD.p7Aba;
		if(op[4]==1&&op[1]==1&&a.p7ABstate==1){
			return m;
		}
		tD=pD.getElementsByTagName("DIV");
		for(i=0;i<tD.length;i++){
			if( tD[i].id && tD[i].id.indexOf(cp)>-1 ){
				if(tD[i].id==iD){
					j=i;
					if( a.className=="p7ABtrig_down"){
						a.p7ABstate=0;
						a.className='';
						P7_ABhide(tD[j],op);
					}
					else{
						a.p7ABstate=1;
						a.className="p7ABtrig_down";
						P7_ABshow(tD[j],op);
					}
				}
				else{
					if(op[1]==1){
						ad=tD[i].id.replace('c','t');
						aT=document.getElementById(ad);
						aT.className='';
						aT.p7ABstate=0;
						P7_ABhide(tD[i],op);
					}
				}
			}
		}
	}
	P7_checkEQH();
	return m;
}
function P7_checkEQH(){
	if(typeof(P7_colH2)=='function'){
		P7_colH2();
	}
	if(typeof(P7_colH)=='function'){
		P7_colH();
	}
}
function P7_ABshow(d,op){
	var h,wd,wP,isIE5=(navigator.appVersion.indexOf("MSIE 5")>-1);
	if(p7AB&&op[2]==3){
		d.style.display='block';
		P7_ABfadeIn(d.id,0);
	}
	else if( (p7AB&&op[2]==1||p7AB&&op[2]==2) && !isIE5 ){
		wd=d.id.replace("c","w");
		wP=document.getElementById(wd);
		if(P7_hasOverflow(d)||P7_hasOverflow(wP)){
			d.style.display='block';
			return;
		}
		wP.style.overflow="hidden";
		wP.style.height="1px";
		d.style.display='block';
		h=d.offsetHeight;
		P7_ABglide(wd,1,h,op[2]);
	}
	else{
		d.style.display='block';
	}
}
function P7_ABhide(d,op){
	var h,wd,wP,isIE5=(navigator.appVersion.indexOf("MSIE 5")>-1);
	if((p7AB&&op[2]==1||p7AB&&op[2]==2)&&!isIE5){
		wd=d.id.replace("c","w");
		wP=document.getElementById(wd);
		if(d.style.display!="none"){
			if(P7_hasOverflow(d)||P7_hasOverflow(wP)){
				d.style.display='none';
				return;
			}
			h=wP.offsetHeight;
			wP.style.overflow="hidden";
			P7_ABglide(wd,h,0,op[2]);
		}
	}
	else{
		d.style.display='none';
	}
}
function P7_hasOverflow(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_ABfadeIn(id,op){
	var d=document.getElementById(id);
	op+=.05;
	op=(op>=1)?1:op;
	if((navigator.appVersion.indexOf("MSIE")>-1)){
		d.style.filter='alpha(opacity='+op*100+')';
	}
	else{
		d.style.opacity=op;
	}
	if(op<1){
		setTimeout("P7_ABfadeIn('"+id+"',"+op+")",40);
	}
}
function P7_ABglide(dd,ch,th,p){
	var w,m,d,wd,wC,tt,dy=10,inc=10,pc=.15;
	d=document.getElementById(dd);
	m=(ch<=th)?0:1;
	if(p==1){
		tt=Math.abs( parseInt( Math.abs(th)-Math.abs(ch) ) );
		inc=(tt*pc<1)?1:tt*pc;
	}
	inc=(m==1)?inc*-1:inc;
	d.style.height=ch+"px";
	if(ch==th){
		if(th==0){
			wd=d.id.replace("w","c");
			wC=document.getElementById(wd);
			wC.style.display="none";
			d.style.height="auto";
		}
		else{
			d.style.height="auto";
		}
		P7_checkEQH();
	}
	else{
		ch+=inc;
		if(m==0){
			ch=(ch>=th)?th:ch;
		}
		else{
			ch=(ch<=th)?th:ch;
		}
		if(d.p7abG){
			clearTimeout(d.p7abG);
		}
		d.p7abG=setTimeout("P7_ABglide('"+dd+"',"+ch+","+th+","+p+")",dy);
	}
}
function P7_ABauto(){
	var i,k,ab,tB,wH,tr,pp;
	wH=window.location.href;
	for(k=1;k<11;k++){
		tr=null;
		ab='p7ABW'+k;
		tB=document.getElementById(ab);
		if(tB&&tB.p7Aba[5]&&tB.p7Aba[5]==1){
			tA=tB.getElementsByTagName('A');
			if(tA){
				for(i=0;i<tA.length;i++){
					if(tA[i].href==wH){
						if(tA[i].p7ABpr){
							tr=tA[i].id.replace('p7ABt','');
							break;
						}
						else{
							tA[i].className="p7ap_currentmark";
							pp=tA[i].parentNode;
							while(pp){
								if(pp.id&&pp.id.indexOf('p7ABc')==0){
									tr=pp.id.replace('p7ABc','');
									break;
								}
								pp=pp.parentNode;
							}
							break;
						}
					}
				}
				if(tr){
					P7_ABopen(tr);
				}
				else{
					if(typeof(p7ABcm)!='undefined'&&p7ABcm.length){
						for(i=0;i<p7ABcm.length;i++){
							if(p7ABcm[i]&&p7ABcm[i].length>0){
								if(k==p7ABcm[i].charAt(0)){
									P7_ABopen(p7ABcm[i]);
								}
							}
						}
					}
				}
			}
		}
	}
}

function P7_TMenu(b,og) { //v2.5 by Project Seven Development(PVII)
 var i,s,c,k,j,tN,hh;if(document.getElementById){
 if(b.parentNode && b.parentNode.childNodes){tN=b.parentNode.childNodes;}else{return;}
 for(i=0;i<tN.length;i++){if(tN[i].tagName=="DIV"){s=tN[i].style.display;
 hh=(s=="block")?"none":"block";if(og==1){hh="block";}tN[i].style.display=hh;}}
 c=b.firstChild;if(c.data){k=c.data;j=k.charAt(0);if(j=='+'){k='-'+k.substring(1,k.length);
 }else if(j=='-'){k='+'+k.substring(1,k.length);}c.data=k;}if(b.className=='p7plusmark'){
 b.className='p7minusmark';}else if(b.className=='p7minusmark'){b.className='p7plusmark';}}
}

function P7_setTMenu(){ //v2.5 by Project Seven Development(PVII)
 var i,d='',h='<style type=\"text/css\">';if(document.getElementById){
 var tA=navigator.userAgent.toLowerCase();if(window.opera){
 if(tA.indexOf("opera 5")>-1 || tA.indexOf("opera 6")>-1){return;}}
 for(i=1;i<20;i++){d+='div ';h+="\n#p7TMnav div "+d+"{display:none;}";}
 document.write(h+"\n</style>");}
}
P7_setTMenu();

function P7_TMopen(){ //v2.5 by Project Seven Development(PVII)
 var i,x,d,hr,ha,ef,a,ag;if(document.getElementById){d=document.getElementById('p7TMnav');
 if(d){hr=window.location.href;ha=d.getElementsByTagName("A");if(ha&&ha.length){
 for(i=0;i<ha.length;i++){if(ha[i].href){if(hr.indexOf(ha[i].href)>-1){
 ha[i].className="p7currentmark";a=ha[i].parentNode.parentNode;while(a){
 if(a.firstChild && a.firstChild.tagName=="A"){if(a.firstChild.onclick){
 ag=a.firstChild.onclick.toString();if(ag&&ag.indexOf("P7_TMenu")>-1){
 P7_TMenu(a.firstChild,1);}}}a=a.parentNode;}}}}}}}
}

function P7_TMall(a){ //v2.5 by Project Seven Development(PVII)
 var i,x,ha,s,tN;if(document.getElementById){ha=document.getElementsByTagName("A");
 for(i=0;i<ha.length;i++){if(ha[i].onclick){ag=ha[i].onclick.toString();
 if(ag&&ag.indexOf("P7_TMenu")>-1){if(ha[i].parentNode && ha[i].parentNode.childNodes){
 tN=ha[i].parentNode.childNodes;}else{break;}for(x=0;x<tN.length;x++){
 if(tN[x].tagName=="DIV"){s=tN[x].style.display;if(a==0&&s!='block'){P7_TMenu(ha[i]);
 }else if(a==1&&s=='block'){P7_TMenu(ha[i]);}break;}}}}}}
}

function P7_TMclass(){ //v2.5 by Project Seven Development(PVII)
 var i,x,d,tN,ag;if(document.getElementById){d=document.getElementById('p7TMnav');
 if(d){tN=d.getElementsByTagName("A");if(tN&&tN.length){for(i=0;i<tN.length;i++){
 ag=(tN[i].onclick)?tN[i].onclick.toString():false;if(ag&&ag.indexOf("P7_TMenu")>-1){
 tN[i].className='p7plusmark';}else{tN[i].className='p7defmark';}}}}}
}


/* 

  ================================================
  PVII TabPanel scripts
  Copyright (c) 2006 Project Seven Development
  www.projectseven.com
  Version: 1.0.8
  ================================================
  
*/

var p7tpa=new Array();
var isIE5=(navigator.appVersion.indexOf("MSIE 5")>-1);
function P7_setTP(){ //v1.0.8 by PVII-www.projectseven.com
 var i,h="<sty"+"le type=\"text/css\">\n";h+=".p7TP_tabs{display: block;}.p7TPcontent div{display:none;}\n";
 h+=".p7TPcontent div div{display:block;}\n";if(document.getElementById){for(i=1;i<11;i++){
 h+="#p7tpc"+i+"_1 {display:block;}\n";}h+="\n<"+"/sty"+"le>";document.write(h);}
}
P7_setTP();
function P7_initTP(){ //v1.0.8 by PVII-www.projectseven.com
 var i,j,tb,tD,tP,tA,pb="p7TP";if(!document.getElementById){return;};p7tpa=arguments;
 for(i=1;i<11;i++){tb=pb+i;tP=document.getElementById(tb);if(tP){tD=tP.getElementsByTagName("DIV");
 if(tD){for(j=0;j<tD.length;j++){if(tD[j].id&&tD[j].id.indexOf("p7tpb")==0){
 tA=tD[j].getElementsByTagName("A");if(tA[0]){tA[0].p7tpn=new Array(i,tD[j].id);
 tA[0].onclick=function(){return P7_TPtrig(this);};}}}}}}
}
function P7_TPtrig(a){ //v1.0.8 by PVII-www.projectseven.com
 var i,tD,tA,tC,c,d,sb,an=p7tpa[1],wP,h,cP,ch,hD,hh;if(typeof(a)!='object'){c=a.replace("p7tpc","p7tpb");
 d=document.getElementById(c);if(d){a=d.getElementsByTagName("A")[0];}}if(a.p7tpn){
 tD=document.getElementById(a.p7tpn[1]);if(tD){tA=tD.parentNode.getElementsByTagName("A");
 if(an==29&&!isIE5){wP=P7_getCD(a);h=P7_getPH(wP);cP=getTPc(a);ch=P7_getPH(cP);hD=h-ch;
 if(window.opera){P7_setPW(wP);}wP.style.height=h+"px";wP.style.overflow="hidden";}
 for(i=0;i<tA.length;i++){if(tA[i].p7tpn){sb=tA[i].p7tpn[1].replace("p7tpb","p7tpc");
 tC=document.getElementById(sb);if(tA[i]==a){tA[i].className="down";
 document.getElementById(tA[i].p7tpn[1]).className="down";if(tC){if(an>0&&an!=29){
 tC.style.visibility="hidden";tC.style.display="block";setTimeout("P7_TPanim('"+tC.id+"')",100);}
 else{tC.style.display="block";}if(an==29&&!isIE5){hh=P7_getPH(tC);P7_TPglide(tC.id,h,hh+hD);}}}
 else{tA[i].className='';document.getElementById(tA[i].p7tpn[1]).className='';if(tC){
 tC.style.display="none";}}}}}}if(typeof(P7_colH2)=='function'){P7_colH2();}
 if(typeof(P7_colH)=='function'){P7_colH();}return false;
}
function P7_TPanim(iD){ //v1.0.8 by PVII-www.projectseven.com
 var i,f,tC,g=new Array(),an=p7tpa[1],ob=document.getElementById(iD);tC=ob.parentNode;
 if(!tC.filters){ob.style.opacity="0.10";ob.style.visibility='visible';
 P7_TPfadeIn(ob.id,0.00);return;}f='progid:DXImageTransform.Microsoft.';d=' Duration=1';
g[0]='Fade';
g[1]='Fade';
g[2]='Wipe(GradientSize=0.5, wipeStyle=0, motion="forward"'+d+')';
g[3]='Pixelate(MaxSquare=50,Duration=1,Enabled=false'+d+')';
g[4]='RandomDissolve('+d+')';
g[5]='Iris(irisstyle="SQUARE", motion="in"'+d+')';
g[6]='Iris(irisstyle="SQUARE", motion="out"'+d+')';
g[7]='Iris(irisstyle="CIRCLE", motion="in"'+d+')';
g[8]='Iris(irisstyle="CIRCLE", motion="out"'+d+')';
g[9]='Blinds(direction="up", bands=1'+d+')';
g[10]='Blinds(direction="down", bands=1'+d+')';
g[11]='Blinds(direction="right", bands=1'+d+')';
g[12]='Blinds(direction="left", bands=1'+d+')';
g[13]='Barn(orientation="vertical", motion="in"'+d+')';
g[14]='Barn(orientation="vertical", motion="out"'+d+')';
g[15]='Barn(orientation="horizontal", motion="in"'+d+')'
g[16]='Barn(orientation="horizontal", motion="out"'+d+')'
g[17]='Strips(motion="leftdown"'+d+')';
g[18]='Strips(motion="leftup"'+d+')';
g[19]='Strips(motion="rightdown"'+d+')';
g[20]='Strips(motion="rightup"'+d+')';
g[21]='RadialWipe(wipeStyle="clock"'+d+')';
g[22]='RadialWipe(wipeStyle="wedge"'+d+')';
g[23]='RadialWipe(wipeStyle="radial"'+d+')';
g[24]='Slide(slideStyle="PUSH", bands=1'+d+')';
g[25]='Slide(slideStyle="SWAP", bands=5'+d+')';
g[26]='Slide(slideStyle="HIDE", bands=1'+d+')';
g[27]='Wheel(spokes=4'+d+')';
g[28]='Wheel(spokes=16'+d+')';
 an=(an>g.length)?3:an;f+=g[an];tC.style.filter=f;if(tC.filters.length<1){
 p7tpa[1]=0;ob.style.visibility='visible';return;}tC.filters[0].Apply();
 ob.style.visibility='visible';tC.filters[0].Play();
}
function P7_TPfadeIn(id,op){ //v1.0.8 by PVII-www.projectseven.com
 var d=document.getElementById(id);op+=.05;op=(op>=1)?1:op;d.style.opacity=op;
 if(op<1){setTimeout("P7_TPfadeIn('"+id+"',"+op+")",60);}
}
function P7_getPH(d){ //v1.0.8 by PVII-www.projectseven.com
 var h,nh,dh,oh;d.style.height="auto";oh=d.offsetHeight;d.style.height=oh+"px";
 nh=d.offsetHeight;if(oh!=nh){nh=(oh-(nh-oh));}d.style.height="auto";return nh;
}
function P7_setPW(d){ //v1.0.8 by PVII-www.projectseven.com
 var w,nw,dw,ow;d.style.width="auto";ow=d.offsetWidth;d.style.width=ow+"px";
 nw=d.offsetWidth;if(ow!=nw){nw=(ow-(nw-ow));}d.style.width=nw+"px";
}
function P7_getCD(a){ //v1.0.8 by PVII-www.projectseven.com
 var g,tP=a.p7tpn[1].replace("p7tpb","p7tpc");g=document.getElementById(tP);return g.parentNode;
}
function getTPc(a){ //v1.0.8 by PVII-www.projectseven.com
 var i,tA,cD,tC=null;tA=a.parentNode.parentNode.getElementsByTagName("A");
 for(i=0;i<tA.length;i++){if(tA[i].className && tA[i].className=="down"){
 cD=tA[i].p7tpn[1].replace("p7tpb","p7tpc");tC=document.getElementById(cD);break;}}
 return tC;
}
function P7_TPglide(pn,ch,th){ //v1.0.8 by PVII-www.projectseven.com
 var tt,inc,dy=10,w,m;w=document.getElementById(pn).parentNode;m=(ch<=th)?0:1;
 tt=Math.abs(parseInt(Math.abs(th)-Math.abs(ch)));inc=(tt*.15<1)?1:tt*.15;
 inc=(m==1)?inc*-1:inc;w.style.height=ch+"px";
 if(ch==th){w.style.height="auto";w.style.overflow="visible";}else{ch+=inc;
 if(m==0){ch=(ch>=th)?th:ch;}else{ch=(ch<=th)?th:ch;}if(w.p7tpG){clearTimeout(w.p7tpG);}
 w.p7tpG=setTimeout("P7_TPglide('"+pn+"',"+ch+","+th+")",dy);}
}

/* 

  ================================================
  PVII Glide Panel Magic scripts
  Copyright (c) 2008 Project Seven Development
  www.projectseven.com
  Version: version 1.7.3 build: 1-07
  ================================================
  
 */

var p7GP=false,p7GPMi=false,p7GPMctl=[],p7gpmA=navigator.userAgent.toLowerCase();
function P7_setGPM(){
	var i,h;
	if(!document.getElementById){
		return;
	}
	h='\n<st'+'yle type="text/css">\n';
	h+='.p7GPW {overflow:hidden;}\n';
	h+='.p7GPcontentwrapper {display:none}\n';
	h+='.p7GPsidebar {display:none}\n';
	for(i=1;i<21;i++){
		h+="#p7GPc"+i+"_1 {display:block;}\n";
	}
	h+='</s'+'tyle>';
	document.write(h);
}
P7_setGPM();

function P7_GPMaddLoad(){
	if(!document.getElementById){
		return;
	}
	if(window.addEventListener){
		window.addEventListener("load",P7_initGPM,false);
	}
	else if(window.attachEvent){
		window.attachEvent("onload",P7_initGPM);
	}
	else if(typeof window.onload=='function'){
		var p7vloadit=onload;
		window.onload=function(){
			p7vloadit();
			P7_initGPM();
		};
	}
	else{
		window.onload=P7_initGPM;
	}
	p7GPMi=true;
}
function P7_opGPM(){
	var h='',hh,b,cn,sD,d,tB,cTD,mD;
	if(!document.getElementById){
		return;
	}
	p7GPMctl[p7GPMctl.length]=arguments;
	if(!p7GPMi){
		P7_GPMaddLoad();
	}
}
function P7_initGPM(){
	var i,j,tB,dd,tD,tA,tg,cP,dh;
	for(i=0;i<p7GPMctl.length;i++){
		tB=document.getElementById(p7GPMctl[i][0]);
		if(tB){
			tB.p7opt=p7GPMctl[i];
			if(navigator.appVersion.indexOf("MSIE 5")>-1){
				tB.p7opt[2]=0;
			}
			dd=tB.id.replace("GP_","GPt_");
			tD=document.getElementById(tB.id.replace("GP_","GPt_"));
			if(tD){
				tA=tD.getElementsByTagName("A");
				tg='p7GPtrg';
				for(j=0;j<tA.length;j++){
					if(tA[j].id && tA[j].id.indexOf(tg)===0){
						tA[j].onclick=function(){
							return P7_GPMshow(this);
						};
						tA[j].p7state='closed';
						tA[j].p7GPMpr=tB.id;
						tA[j].p7GPMtr=tD.id;
						cP=document.getElementById(tA[j].id.replace("trg","c"));
						if(cP){
							tA[j].p7GPMc=cP.id;
						}
						else{
							tA[j].p7GPMc=false;
						}
					}
				}
				dh='p7GPtrg'+tA[0].id.slice(7,8)+'_'+tB.p7opt[1];
				P7_GPMtrig(dh);
				if(tB.p7opt[3]==1){
					P7_GPMmark(tB.id);
				}
			}
		}
	}
	P7_GPMurl();
	p7GP=true;
}
function P7_GPMtrig(tr){
	var tA=document.getElementById(tr);
	if(tA){
		P7_GPMshow(tA);
	}
}
function P7_GPMshow(a){
	var i,m=true,pD,tR,tA,ch,nh,vP,tP,th=-1,op,cd,wH;
	wH=window.location.href;
	if(!a.p7GPMc){
		a.className='p7GPcurrentmark';
		if(wH==a.href){
			return false;
		}
		else{
			return true;
		}
	}
	pD=document.getElementById(a.p7GPMpr);
	tR=document.getElementById(a.p7GPMtr);
	vP=document.getElementById(a.p7GPMtr.replace("t","w"));
	if(pD.p7opt[4]==1&&p7GP){
		window.location.hash="#gpm"+a.id.substring(7);
	}
	tA=tR.getElementsByTagName("A");
	if(pD.p7opt[2]>0){
		if(vP.p7gpmG){
			clearTimeout(vP.p7gpmG);
		}
	}
	ch=vP.offsetHeight;
	vP.style.height=ch+"px";
	for(i=0;i<tA.length;i++){
		if(tA[i].p7GPMtr){
			if(tA[i].p7GPMc){
				tP=document.getElementById(tA[i].p7GPMc);
			}
			if(tA[i]==a){
				tA[i].className="down";
				tA[i].p7state="open";
				if(tA[i].p7GPMc){
					m=false;
					tP.style.visiblity="hidden";
					tP.style.display="block";
					if(pD.p7opt[2]==3&&p7GP){
						op=0.05;
						cd=tP.id;
						if((navigator.appVersion.indexOf("MSIE")>-1)){
							tP.style.zoom="100%";
							tP.style.filter='alpha(opacity='+op*100+')';
						}
						else{
							tP.style.opacity=op;
						}
					}
					tP.style.visiblity="visible";
					if (pD.p7opt[5] == 1){
						P7_GPMside(a,tP);
					}
					if(pD.p7opt[2]>0&&p7GP){
						th=tP.offsetHeight;
					}
					else{
						vP.style.height="auto";
					}
				}
			}
			else{
				if(tA[i].p7GPMc){
					tA[i].className='';
					tA[i].p7state="closed";
					tP.style.display="none";
				}
			}
		}
	}
	if(th>-1){
		if(pD.p7opt[2]==3&&p7GP){
			vP.style.height="auto";
			P7_GPMfadeIn(cd,0.10);
		}
		else{
			P7_GPMglide(vP.id,ch,th,pD.p7opt[2]);
		}
	}
	return m;
}
function P7_GPMside(a,d){
	var i,tD,sb,tS;
	tD=d.getElementsByTagName("DIV");
	if(tD&&tD.length>0){
		for(i=0;i<tD.length;i++){
			if(tD[i].className&&tD[i].className=='p7GPsidebar'){
				sb=a.p7GPMpr.replace("p7GP","p7GPsb");
				tS=document.getElementById(sb);
				if(tS){
					tS.innerHTML=tD[i].innerHTML;
				}
				break;
			}
		}
	}
}
function P7_GPMph(d){
	var h,nh,dh,oh;
	d.style.height="auto";
	oh=d.offsetHeight;
	d.style.height=oh+"px";
	nh=d.offsetHeight;
	if(oh!=nh){
		nh=(oh-(nh-oh));
	}
	d.style.height="auto";
	return nh;
}
function P7_GPMglide(dd,ch,th,p){
	var w,m,d,wd,wC,tt,dy=10,inc=10,pc=0.15;
	d=document.getElementById(dd);
	m=(ch<=th)?0:1;
	if(p==2){
		tt=Math.abs( parseInt( Math.abs(th)-Math.abs(ch),10 ) );
		inc=(tt*pc<1)?1:tt*pc;
	}
	inc=(m==1)?inc*-1:inc;
	d.style.height=ch+"px";
	if(ch==th){
		d.style.height="auto";
	}
	else{
		ch+=inc;
		if(m===0){
			ch=(ch>=th)?th:ch;
		}
		else{
			ch=(ch<=th)?th:ch;
		}
		d.p7gpmG=setTimeout("P7_GPMglide('"+dd+"',"+ch+","+th+","+p+")",dy);
	}
}
function P7_GPMfadeIn(id,op){
	var im,dy=30,lm=0.99,inc,d=document.getElementById(id);
	inc=(window.opera)?0.15:0.10;
	op=(op>=lm)?lm:op;
	if((navigator.appVersion.indexOf("MSIE")>-1)){
		d.style.filter='alpha(opacity='+op*100+')';
	}
	else{
		d.style.opacity=op;
	}
	if(op<lm){
		op+=inc;
		d.p7ssmfade=setTimeout("P7_GPMfadeIn('"+id+"',"+op+")",dy);
	}
	else{
		if(d.style.filter){
			d.style.removeAttribute("filter");
		}
	}
}
function P7_GPMmark(dD){
	var i,wH,tB,tA,hH;
	wH=window.location.href;
	hH=window.location.hash;
	if(hH=="#"||hH.indexOf("#gpm")===0){
		wH=wH.replace(hH,'');
	}
	tB=document.getElementById(dD);
	if(tB){
		if(tB){
			tA=tB.getElementsByTagName("A");
			for(i=0;i<tA.length;i++){
				if(tA[i].p7GPMtr){
					if(tA[i].href==wH){
						if(tA[i].p7GPMc){
							P7_GPMshow(tA[i]);
						}
						else{
							tA[i].className='p7GPcurrentmark';
						}
						break;
					}
				}
			}
		}
	}
}
function P7_GPMurl(){
	var i,h,s,x,d='gpm';
	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(x){
							P7_GPMtrig('p7GPtrg'+x);
						}
					}
				}
			}
		}
		h=document.location.hash;
		if(h){
			x=h.substring(1,h.length);
			if(x && x.indexOf("gpm")===0){
				P7_GPMtrig('p7GPtrg'+x.substring(3));
			}
		}
	}
}

function P7_TMenu(b,og) { //v2.5 by Project Seven Development(PVII)
 var i,s,c,k,j,tN,hh;if(document.getElementById){
 if(b.parentNode && b.parentNode.childNodes){tN=b.parentNode.childNodes;}else{return;}
 for(i=0;i<tN.length;i++){if(tN[i].tagName=="DIV"){s=tN[i].style.display;
 hh=(s=="block")?"none":"block";if(og==1){hh="block";}tN[i].style.display=hh;}}
 c=b.firstChild;if(c.data){k=c.data;j=k.charAt(0);if(j=='+'){k='-'+k.substring(1,k.length);
 }else if(j=='-'){k='+'+k.substring(1,k.length);}c.data=k;}if(b.className=='p7plusmark'){
 b.className='p7minusmark';}else if(b.className=='p7minusmark'){b.className='p7plusmark';}}
}

function P7_setTMenu(){ //v2.5 by Project Seven Development(PVII)
 var i,d='',h='<style type=\"text/css\">';if(document.getElementById){
 var tA=navigator.userAgent.toLowerCase();if(window.opera){
 if(tA.indexOf("opera 5")>-1 || tA.indexOf("opera 6")>-1){return;}}
 for(i=1;i<20;i++){d+='div ';h+="\n#p7TMnav div "+d+"{display:none;}";}
 document.write(h+"\n</style>");}
}
P7_setTMenu();

function P7_TMopen(){ //v2.5 by Project Seven Development(PVII)
 var i,x,d,hr,ha,ef,a,ag;if(document.getElementById){d=document.getElementById('p7TMnav');
 if(d){hr=window.location.href;ha=d.getElementsByTagName("A");if(ha&&ha.length){
 for(i=0;i<ha.length;i++){if(ha[i].href){if(hr.indexOf(ha[i].href)>-1){
 ha[i].className="p7currentmark";a=ha[i].parentNode.parentNode;while(a){
 if(a.firstChild && a.firstChild.tagName=="A"){if(a.firstChild.onclick){
 ag=a.firstChild.onclick.toString();if(ag&&ag.indexOf("P7_TMenu")>-1){
 P7_TMenu(a.firstChild,1);}}}a=a.parentNode;}}}}}}}
}

function P7_TMall(a){ //v2.5 by Project Seven Development(PVII)
 var i,x,ha,s,tN;if(document.getElementById){ha=document.getElementsByTagName("A");
 for(i=0;i<ha.length;i++){if(ha[i].onclick){ag=ha[i].onclick.toString();
 if(ag&&ag.indexOf("P7_TMenu")>-1){if(ha[i].parentNode && ha[i].parentNode.childNodes){
 tN=ha[i].parentNode.childNodes;}else{break;}for(x=0;x<tN.length;x++){
 if(tN[x].tagName=="DIV"){s=tN[x].style.display;if(a==0&&s!='block'){P7_TMenu(ha[i]);
 }else if(a==1&&s=='block'){P7_TMenu(ha[i]);}break;}}}}}}
}

function P7_TMclass(){ //v2.5 by Project Seven Development(PVII)
 var i,x,d,tN,ag;if(document.getElementById){d=document.getElementById('p7TMnav');
 if(d){tN=d.getElementsByTagName("A");if(tN&&tN.length){for(i=0;i<tN.length;i++){
 ag=(tN[i].onclick)?tN[i].onclick.toString():false;if(ag&&ag.indexOf("P7_TMenu")>-1){
 tN[i].className='p7plusmark';}else{tN[i].className='p7defmark';}}}}}
}

// Attach File

var upload_number = 2;
function addFileInput() {
 	var d = document.createElement("div");
 	var file = document.createElement("input");
 	file.setAttribute("type", "file");
 	file.setAttribute("name", "attachment"+upload_number);
 	d.appendChild(file);
 	document.getElementById("moreUploads").appendChild(d);
 	upload_number++;
}

// Email Validate
function isEmailAddress(string) {
return /^[^@]+@[^.]+(\.[^.]+)+$/.test(string);
}

function validate(form) {
var controls = form.elements,
emailAddress = controls['em'].value;

/* Validate other controls */

if (!isEmailAddress(emailAddress)) {
alert('Please enter your email address.');
return false;
}
if (emailAddress != controls['coem'].value) {
alert('You may have mistyped your email address.'
+ ' Please check both fields carefully and try again.');
return false;
}

/* More validation */

return true;
}

if (obja.value==objb.value) {}
else {alert("The email fields aren't the same!!")}

/* 
  ------------------------------------------------
  PVII Equal CSS Columns scripts -Version 2
  Copyright (c) 2005 Project Seven Development
  www.projectseven.com
  Version: 2.1.0
  ------------------------------------------------
*/
function P7_colH2(){ //v2.1.0 by PVII-www.projectseven.com
 var i,oh,h=0,tg,el,np,dA=document.p7eqc,an=document.p7eqa;if(dA&&dA.length){
 for(i=1;i<dA.length;i+=2){dA[i+1].style.paddingBottom='';}for(i=1;i<dA.length;i+=2){
 oh=dA[i].offsetHeight;h=(oh>h)?oh:h;}for(i=1;i<dA.length;i+=2){oh=dA[i].offsetHeight;
 if(oh<h){np=h-oh;if(!an&&dA[0]==1){P7_eqA2(dA[i+1].id,0,np);}else{
 dA[i+1].style.paddingBottom=np+"px";}}}document.p7eqa=1;
 document.p7eqth=document.body.offsetHeight;
 document.p7eqtw=document.body.offsetWidth;}
}
function P7_eqT2(){ //v2.1.0 by PVII-www.projectseven.com
 if(document.p7eqth!=document.body.offsetHeight||document.p7eqtw!=document.body.offsetWidth){P7_colH2();}
}
function P7_equalCols2(){ //v2.1.0 by PVII-www.projectseven.com
 var c,e,el;if(document.getElementById){document.p7eqc=new Array();
 document.p7eqc[0]=arguments[0];for(i=1;i<arguments.length;i+=2){el=null;
 c=document.getElementById(arguments[i]);if(c){e=c.getElementsByTagName(arguments[i+1]);
 if(e){el=e[e.length-1];if(!el.id){el.id="p7eq"+i;}}}if(c&&el){
 document.p7eqc[document.p7eqc.length]=c;document.p7eqc[document.p7eqc.length]=el}}
 setInterval("P7_eqT2()",10);}
}
function P7_eqA2(el,p,pt){ //v2.1.0 by PVII-www.projectseven.com
 var sp=10,inc=20,g=document.getElementById(el);np=(p>=pt)?pt:p;
 g.style.paddingBottom=np+"px";if(np<pt){np+=inc;
 setTimeout("P7_eqA2('"+el+"',"+np+","+pt+")",sp);}
}
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += '> </embed>';
  }

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}