var bg=Math.floor(Math.random()*10);function showname(v){document.getElementById(v).style.visibility="visible";}function hidename(v){document.getElementById(v).style.visibility="hidden";}function openCard(u,n){window.open(u,n,"resizable,width=400,height=240,left=20,top=20,scrollbars=1'");}function popCart(u,n){window.open(u,n,"resizable,width=300,height=100,left=100,top=200'");}function openCart(u,n){window.open(u,n,"resizable,width=600,height=600,left=100,top=200,scrollbars=1'");}function openRelease(u,n){window.open(u,n,"resizable,width=550,height=700,left=20,top=20,scrollbars=1'");}function openReportInfo(u,n){window.open(u,n,"resizable,width=550,height=500,left=20,top=20,scrollbars=1'");}function openColorCodes(u,n){window.open(u,n,"resizable,width=510,height=320,left=50,top=50'");}function openImage(u,n){window.open(u,n,"resizable,width=825,height=750,left=50,top=50,scrollbars=1'");}function popWin(p){window.open("/popup.htm?"+p,"","resizable=1,height=300,width=300");}function popMap(u,n){window.open(u,n,"resizable,width=530,height=330,left=50,top=50'");}function popTest(u,n){window.open(u,n,"resizable,width=800,height=520,left=50,top=50,scrollbars=1'");}function load_bg(){if(bg==0)bg=1;var t=new Array('','Iliamna','Mount Rechesnoi','Roundtop, Isanotski, and Shishaldin','Drum','Peulik','Sanford','Wrangell','Douglas','Emmons Lake Caldera');var dir="/images/";var head=dir+bg+"header.jpg)";headimg="url("+head;if(document.getElementById){document.getElementById("header").style.backgroundImage=headimg;document.getElementById("header").setAttribute("title",t[bg]);}}function sh(v){var d=new Array('none','activity','downloads','about','pubs','atlas');var i;for(i=1;i<6;i++){if(d[i]==v)document.getElementById(d[i]).style.visibility="visible";else document.getElementById(d[i]).style.visibility="hidden";}}function sw(t){var tb=new Array('tab_home','tab_act','tab_down','tab_about','tab_atlas','tab_pubs');var a=new Array('home','act','down','about','atlas','pubs');var i;for(i=0;i<5;i++){if(a[i]==t){document.getElementById(tb[i]).className="hover";st(i);}else document.getElementById(tb[i]).className='navbar';}}function st(v){var i;var x;var s=new Image();var r=new Image();s.src="/images/triside.gif";r.src="/images/triangle.gif";for(i=1;i<5;i++){x="tri"+i;if(i==v)document.getElementById(x).src=s.src;else document.getElementById(x).src=r.src;}}
