/* ================================================ PVII Horizontal Gallery scripts Copyright (c) 2006 Project Seven Development www.projectseven.com Version: 1.1.3 ================================================ */ 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(){ //v1.1.0 by PVII-www.projectseven.com var i,d='',tA,h="";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(){ //v1.1.0 by PVII-www.projectseven.com 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;ihh)?h:hh; ww=(w>ww)?w:ww;}for(i=0;ihh){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;iww)?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;i0){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| ';x=i+1; hv+=s+''+x+'';} nv.innerHTML=hv;a=nv.getElementsByTagName('A');for(i=0;i0){P7_HGStrig(h-1,9);}} } function P7_HGSover(a){ //v1.1.0 by PVII-www.projectseven.com var im=a.getElementsByTagName('IMG')[0];if(im.className!='p7GSon'){im.className='p7GSover';} } function P7_HGSout(a){ //v1.1.0 by PVII-www.projectseven.com var im=a.getElementsByTagName('IMG')[0];if(im.className!='p7GSon'){im.className='';} } function P7_HGSnvs(a,g){ //v1.1.0 by PVII-www.projectseven.com var i,p,ta;p=parseInt(a.id.replace('p7gsn',''));g=(g)?g:0; ta=document.getElementById('p7GSnv').getElementsByTagName('A');for(i=0;i=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){ //v1.1.0 by PVII-www.projectseven.com var tt=Math.abs(t-c),i=parseInt(tt*.08);i=(i<=20)?20:i;return i; } function P7_HGStrig(n,ug){ //v1.1.0 by PVII-www.projectseven.com 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){ //v1.1.0 by PVII-www.projectseven.com 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;i0){m=true;}}}if(m){x--; P7_HGStrig(x,9);}return m; } function P7_HGSshow(a,ug){ //v1.1.0 by PVII-www.projectseven.com 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-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){ //v1.1.0 by PVII-www.projectseven.com 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){ //v1.1.0 by PVII-www.projectseven.com 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+=''; aL=tB.getAttribute("alt");ci=P7GSgi();ci[4]+=1;ct=p7gstmb.length;cn='';if(p7gsa[7]==1){ cn=' ('+ci[4]+' of '+ct+')';}aC=''; 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+=''; if(p7gsa[2]==2){if(aL&&aL.length>0){tH+=aC;}}if(p7gsa[3]==1){if(dT.length>0){ tH+='';}}tH+='

'+aL+cn+'

'+aL+'
'+dT+'
';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(){ //v1.1.0 by PVII-www.projectseven.com var i,x,a,gi=new Array();x=p7gstmb.length-1;for(i=0;i0)?i-1:0;gi[2]=(ig.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(){ //v1.1.0 by PVII-www.projectseven.com 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='';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=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){ //v1.1.0 by PVII-www.projectseven.com var i,pl,dy=10,tL=document.getElementById('p7GSah'),im=tL.getElementsByTagName('IMG')[0]; if(p