/* divaPOP.js v2.0.5; */
/* Copyright (c) 2007-2008 divaHTML : Thierry Koblentz and E Michael Brandt.  All rights reserved. h; */function divaPOPgold(){

var openDim=400,popm=1,iScrollbars=1;/*1 or 0*/

if(!document.getElementById||(!document.createElement&&!document.createElementNS)){return }if(!document.getElementsByTagName("body")[0]){return }var dPOP=gDivaPOP;if(!dPOP){return }dPOP=dPOP.split("|");var temp,str="",nw="(opens in new window) ";var POPpath=(document.URL.substring(0,7)=="file://")?document.getElementsByTagName("head")[0].innerHTML.match(/src=\"([\S]*diva\/divaPOP\/)divaPOPgold.js/)[1]:"/diva/divaPOP/";var forVals=dPOP[0].split(";");var forExts=forVals[1]||"";forVals=forVals[0]?","+forVals[0]+",":"";var zWraps=[];if(dPOP[1]){temp=dPOP[1].split(",");for(i=0,tLen=temp.length;i<tLen;i++){zWraps[i]=document.getElementById(temp[i])}}else{zWraps[0]=document.getElementsByTagName("body")[0]}var noicons=dPOP[2].indexOf("x")!=-1?" divaPOP_imgX":"";var noiconsOnImages=dPOP[2].indexOf("noii")!=-1;var addRels=dPOP[2].indexOf("rel")!=-1?true:false;var noimaps=dPOP[2].indexOf("noimap")!=-1;var noctc=dPOP[2].indexOf("noctc")!=-1?1:"";var noicon,addRel;var geogs=dPOP[3]||";;;;";var useBrowserDefault,hug="",center="";useBrowserDefault=geogs=="_blank";if(!useBrowserDefault){var customE="",customP="",customI="";geogs=geogs.split(";");var geog=geogs[0],temp=[];var wow=window.outerWidth,dbcw=document.body.clientWidth,woh=window.outerHeight,dbch=document.body.clientHeight;if(!geog||!geog.length){temp[0]="left=6"}else{if(geog!="x"){locs(geog,temp)}}temp.push("resizable=yes");features(4,temp,dPOP);customP=temp.join(",");var geog=geogs[1],temp=[];if(!geog||!geog.length){temp[0]="left=6"}else{if(geog!="x"){locs(geog,temp)}}temp.push("resizable=yes");features(5,temp,dPOP);customE=temp.join(",");var geog=geogs[2],temp=[];if(!geog||!geog.length){var AW=self.screen.availWidth;var AH=self.screen.availHeight;center=1;temp.push("left="+(AW-openDim)/2+",top="+(AH-openDim)/2)}else{if(geog!="x"){geog=geog.split(",");if(geog[0]){temp.push("left="+geog[0]+",top="+geog[1])}}}var geog=geogs[3];if(!geog||!geog.length){hug=1;temp.push("width="+openDim+",height="+openDim)}else{if(geog!="x"){geog=geog.split(",");if(geog[0]){temp.push("width="+geog[0]+",height="+geog[1])}}}temp.push("resizable=yes,scrollbars=yes");customI=temp.join(",")}var dPOP_domain=dPOP[6]||"";var for_outlink=forVals.indexOf(",outlink,")!=-1;var for_pdf=forVals.indexOf(",pdf,")!=-1;var for_i=forVals.indexOf(",image,")!=-1;if(forExts&&forExts.search(".pdf")!=-1){forExts.replace(/,?\.pdf,?/,"");for_pdf=true}forExts=forExts.split(",");var theDomain;if(for_outlink){theDomain=(document.domain&&document.domain.indexOf("localhost")==-1)?document.domain:dPOP_domain;theDomain=theDomain.toLowerCase().replace(/www\./,"")}var temp,isIEmal;if(document.all&&
/*@cc_on!@*/
false){isIEmal=1}for(var j=0,wLen=zWraps.length;j<wLen;j++){temp=zWraps[j];if(!temp){continue}var zAs=temp.getElementsByTagName("a");for(var k=0;k<2;k++){if(k){if(!noimaps){zAs=temp.getElementsByTagName("area")}else{continue}}for(var i=0;i<zAs.length;i++){var newClass="",cn="",manual="",ieWrap=0;if(!zAs[i].href){continue}noicon=noicons;addRel=addRels;var zA=zAs[i];zA.className=zA.className.replace(/divaPOP_/g,"divaPOP").replace(/divaPOP/g,"divaPOP_");var cn=zA.className;if(cn){if(cn.indexOf("divaPOP_skip")!=-1){continue}if(cn.search(/divaPOP_\b/)!=-1){manual="divaPOP_"}if(cn.indexOf("divaPOP_img")!=-1||cn.indexOf("divaPOPicon")!=-1){noicon=""}if(cn.indexOf("divaPOP_norel")!=-1){addRel=false}else{if(cn.indexOf("divaPOP_rel")!=-1){addRel=true}}if(cn.indexOf("divaPOP_pdf")!=-1){manual="divaPOP_pdf"}if(cn.indexOf("divaPOP_image")!=-1){manual="divaPOP_image"}else{if(cn.indexOf("divaPOP_outlink")!=-1){manual="divaPOP_outlink"}}if(isIEmal&&cn.indexOf("divaPOP_iewrap")!=-1){ieWrap=1}}var theHref=zA.href.toLowerCase().replace(/www\./,"");theHref=theHref.split("?")[0].split("#")[0];var isOutlink=(theHref.indexOf("file://")==-1&&theHref.indexOf("://")!=-1&&theHref.indexOf(theDomain)==-1)?true:false;var isIdo=false,thisExt="";if(for_i){isIdo=diva_isitI(theHref)}if(manual){if(manual=="divaPOP_"){newClass="divaPOP_"+diva_getHrefExt(theHref).substr(1)}newClass+=newClass?" "+noicon:noicon}else{if(for_pdf&&(diva_getHrefExt(theHref)==".pdf"||theHref.indexOf("pdf/")>0||zA.getAttribute("type")=="application/pdf")){newClass="divaPOP_pdf"}else{if(isIdo){newClass="divaPOP_ divaPOP_image"}else{if(thisExt=diva_for_thisExt(theHref,forExts)){newClass="divaPOP_ divaPOP_"+thisExt}else{if(for_outlink&&isOutlink){newClass="divaPOP_outlink"}}}}if(newClass){newClass+=noicon}}if(newClass||manual){zA.className+=cn?" "+newClass:newClass;if(popm){if(useBrowserDefault){zA.setAttribute("target","_blank")}if(newClass.indexOf("divaPOP_pdf")!=-1||manual=="divaPOP_pdf"||manual=="divaPOP_"){zA.title=nw+zA.title;if(!useBrowserDefault){diva_fancyOpener(zA,customP)}}else{if(newClass.indexOf("divaPOP_image")!=-1||manual=="divaPOP_image"){if(!onImg(zA,"setImageTitle",nw)){zA.title=nw+zA.title}if(!useBrowserDefault){if(diva_isIEmac){zA.onclick=function(){divaWinI=window.open(this.href,"divaPOPwinI",customI);if(window.focus){divaWinI.focus()}return false}}else{zA.onclick=function(){var r=0,i,alt="",titl="";while(i=this.childNodes[r++]){if(i.nodeType==1&&i.tagName.toLowerCase()=="img"){alt=i.getAttribute("alt");titl=i.getAttribute("title");if(titl){titl=titl.replace(nw,"")}break}}if(!titl){titl=this.getAttribute("title")||""}if(titl){titl=diva_qs(titl.replace(nw,""))}if(!iScrollbars){customI=customI.replace("scrollbars=yes","scrollbars=no")}divaWinI=window.open(POPpath+"divaPOPgold_img.htm?i="+this.href+"&amp;c="+titl+"&amp;a="+alt+"&amp;h="+hug+"&amp;n="+center+"&amp;x="+noctc+"&amp;s="+(iScrollbars?15:0),"divaPOPwinI",customI);if(window.focus){divaWinI.focus()}return false}}}}else{zA.title=nw+zA.title;if(!useBrowserDefault){if(thisExt){diva_fancyOpener(zA,customP)}else{zA.onclick=function(){divaWinE=window.open(this.href,"divaPOPwinE",customE);if(window.focus){divaWinE.focus()}return false}}}}}if(addRel&&(for_pdf||for_outlink)&&isOutlink){var rel=zA.getAttribute("rel")||"";if(!rel||rel.indexOf("nofollow")==-1){rel="nofollow "+rel}zA.setAttribute("rel",rel)}}if(noiconsOnImages&&onImg(zA)){zA.className+=" divaPOP_imgX"}}if(ieWrap&&zA.className.indexOf("P_imgX")==-1){var zI=document.createElement("img");var zIsrc=zA.currentStyle.backgroundImage;zIsrc=zIsrc.replace(/%22/g,'"');zI.src=zIsrc.split('("')[1].split('")')[0];zI.className="divaPOP_iewrap_private";zI.setAttribute("alt","");if(parseInt(zA.currentStyle.paddingLeft)){zI.style.paddingRight="4px";zA.parentNode.insertBefore(zI,zA)}else{insertAfter(zI,zA);zI.style.paddingLeft="4px"}zA.className+=" divaPOP_imgX"}}}}}function features(C,A,D){var B=D[C]||"";if(B.length){if(B.indexOf("t")!=-1){A.push("toolbar=yes")}A.push((B.indexOf("s")!=-1)?"scrollbars=yes":"scrollbars=no");if(B.indexOf("m")!=-1){A.push("menubar=yes")}if(B.indexOf("l")!=-1){A.push("location=yes")}}else{A.push("scrollbars=yes");if(C==4){A.push("location=yes");A.push("menubar=yes");A.push("toolbar=yes")}}}function locs(F,A){F=F.split(",");var E=F[0],C=F[1];var D=F[2]||wow||dbcw+20;var B=F[3]||woh||dbch+30;if(E=="c"){E=Math.max((screen.availWidth-D)/2,0)}if(C=="c"){C=Math.max((screen.availHeight-B-60)/2,0)}if(E!=""){A.push("left="+E)}if(C!=""){A.push("top="+C)}if(D){A.push("width="+D)}if(B){A.push("height="+B)}}function insertAfter(C,A){var B=A.parentNode;if(B.lastChild==A){B.appendChild(C)}else{B.insertBefore(C,A.nextSibling)}}function onImg(B,C,A){var E=0;while(x=B.childNodes[E++]){if(x.nodeType==1&&x.tagName.toLowerCase()=="img"){var D=x.getAttribute("title")||"";if(C){x.setAttribute("title",A+D)}return true}}return false}function diva_fancyOpener(B,A){B.onclick=function(){divaWin=window.open(this.href,"divaPOPwin",A);if(window.focus){try{divaWin.focus()}catch(C){divaWin.close();divaWin=window.open(this.href,"divaPOPwin",A)}}return false}}function diva_for_thisExt(C,D){var A=diva_getHrefExt(C),F="";for(var B=0,E=D.length;B<E;B++){F=D[B];if(F==""){continue}if(F.charAt(0)=="."){if(A==F){return A.replace(/^\./,"")}}else{if(C.search(F.replace(/ /g,"%20"))!=-1){return A}}}return""}function diva_qs(A){return A.replace(/#/g,"%23").replace(/&/g,"%26")}function diva_isitI(D){var B=false,D=diva_getHrefExt(D);for(var C=0,A=divaArrI.length;C<A;C++){if(D===divaArrI[C]){B=true;break}}return B}function diva_getHrefExt(A){return A.substr(A.lastIndexOf(".")).toLowerCase().replace("/","")}var diva_isIEmac=false;if(typeof Array.prototype.push=="undefined"){diva_isIEmac=true;Array.prototype.push=function(){for(var B=0,A=arguments.length;B<A;B++){this[this.length]=arguments[B]}}}var divaWin,divaWinE,divaWinI;var divaArrI=[".jpg",".gif",".jpeg",".png",".jpe"];vwd_addEvent(window,"load",divaPOPgold);
