function $(a){return document.getElementById(a)}var currentPhoto;function getCookie(a){var b=a+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(b);if(offset!=-1){offset+=b.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}return unescape(document.cookie.substring(offset,end))}return false}return false}function setFont(a){$("main").style.fontSize=a+"px";document.cookie="fontsize="+a;return false}window.onload=function(){if(size=getCookie("fontsize")){setFont(size)}var e=new Image();e.src="images/1.jpg";var d=new Image();d.src="images/2.jpg";var c=new Image();c.src="images/3.jpg";var b=new Image();b.src="images/4.jpg";var a=new Image();a.src="images/5.jpg"};function lessOpacity(a){document.getElementById("photoBox").className="opacity"+a;a-=10;if(a>0){setTimeout("lessOpacity("+a+")",30)}else{changePhoto()}}function moreOpacity(a){document.getElementById("photoBox").className="opacity"+a;a+=10;if(a<=100){setTimeout("moreOpacity("+a+")",30)}}function changePhoto(){$("photoBox").src="images/"+currentPhoto+".jpg";moreOpacity(0)}function photo(a){currentPhoto=a;for(i=1;i<=5;i++){$("img"+i).className="";$("img"+a).className="active"}lessOpacity(100)};