function showDIV(num){ var cont = document.getElementById('main'); for(i=0;i<=cont.getElementsByTagName('div').length;i++){ if(i==num){ cont.getElementsByTagName('div')[i].style.display = ""; cont.getElementsByTagName('a')[i].style.backgroundColor = "#ff7200"; cont.getElementsByTagName('a')[i].style.color = "#ffffff"; } else{ cont.getElementsByTagName('div')[i].style.display = "none"; cont.getElementsByTagName('a')[i].style.backgroundColor = "#bdbdbd"; cont.getElementsByTagName('a')[i].style.color = "#ffffff"; } } } function newImg(bigimg){ var theImg = new Image(); theImg.src = bigimg; var imgw = theImg.width; var imgh = theImg.height; if(imgw<200){imgw = 500}; if(imgh<200){imgh = 550}; var ImgWin = window.open('','imgwin',config='height='+imgh+',width='+imgw+',top=250,left=425') with(ImgWin.document){ writeln('