d=document;l=(d.layers)?1:0;op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1; function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W0&&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 ymax) yplace = ymax; shiftTo(theObj, xplace, yplace); yPos=yplace; setTimeout("scrollUp()",25); } } } function scrollDown() { if (mutex == 2){ var theObj = gE(newsId); if (yplace > ymin) { yplace = yplace - speed; if (yplace < ymin) yplace = ymin; shiftTo(theObj, xplace, yplace); yPos=yplace; setTimeout("scrollDown()",25); } } } function scrollIt(msg, dir) { window.status = msg; mutex = dir; if (mutex == 1) scrollUp(); else if (mutex == 2) scrollDown(); } function init() { ymin = (goH(gE(newsId))- goH(gE(newsClipId))) * -1; sY(gE(newsId),yPos) } function initLayers(){ if(!window.newsLayer)newsLayer = gE('news'); if(!window.contactdivLayer)contactdivLayer = gE('contactdiv'); if(!window.clipLayer)clipLayer = gE(newsClipId); if(!window.pressLayer)pressLayer = gE('press'); if(!window.imgPrev)imgPrev = gE("imgHolder"); xPos=20;yPos=10;yplace=10;xplace=20; sXY(newsLayer,20,0); sXY(pressLayer,20,0); } function instr(str,Src){ if(Src.toLowerCase().indexOf(str.toLowerCase())>-1){ return 1; } return 0; } function rollPreview(Src,hideNews){ document.title=docTitle; initLayers(); hE(contactdivLayer); preview = findObj("bigPic"); if(hideNews){ //if(document.all){ if(bc = findObj("biocell"))bc.className="litebg" if(prc = findObj("prcell"))prc.className="litebg"; //} hE(clipLayer); hE(newsLayer);hE(pressLayer); sE(imgPrev); } if(document.all){//boss doesn't want transitions doAlpha(Src.substring(Src.lastIndexOf("/"),Src.length)); with(preview){ /*if(navigator.appVersion.toLowerCase().indexOf("msie 5.5")>-1){ style.filter="progid:DXImageTransform.Microsoft.Fade(Overlap=0.00,Duration=1)"; }else{ style.filter="blendTrans(duration=crossFadeDuration)"; }*/ src=Src; /*filters[0].Apply(); filters[0].Play(); */ } }else{ content = '
'; if(0/*instr("mac",navigator.userAgent)*/){ content=" "; } wH(imgPrev,content); } } function showBio(){ document.title=docTitle; newsId="news"; init(); initLayers(); rollOver('bigPic','/assets/blank.gif'); hE(imgPrev); hE(contactdivLayer); sE(clipLayer); hE(pressLayer); sE(newsLayer); doAlpha("",1); // if(document.all){ // document.all("biocell").className="darkbg"; // if(findObj("prcell"))document.all("prcell").className="litebg" // } } function showPr(){ document.title=docTitle; newsId="press"; init(); initLayers(); rollOver('bigPic','/assets/blank.gif'); hE(imgPrev); sE(clipLayer); sE(pressLayer); hE(newsLayer); doAlpha("",1); // if(document.all){ // if(findObj("biocell"))document.all("biocell").className="litebg" // document.all("prcell").className="darkbg"; // } } function doAlpha(imgSrc,noFilters){ if(!document.all)return; for(i=0;i-1&&!noFilters)?"alphaImg":"noAlphaImg"; img.className=filterName; } }