﻿function bookmark(b,a){if(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)>=4)window.external.AddFavorite(b,a);else if(navigator.appName=="Netscape")window.sidebar.addPanel(a,b,"");else alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark")}function setMenu(e,d,g,c){if(e){var f=0,a=0,b=e.childNodes;for(a=0;a<b.length;a++){if(f==g-1)if(d){b[a].className+=" active";if(c)setMenu(b[a].childNodes[2],d,c,null)}else if(c)setMenu(b[a].childNodes[2],d,c,null);else b[a].className+=" active";if(b[a].tagName=="LI")f++}}}var theImages1=[];theImages1[0]="images/img_feature_left1.jpg";theImages1[1]="images/img_feature_left2.jpg";var j=0,p=theImages1.length,preBuffer=[];for(i=0;i<p;i++){preBuffer[i]=new Image;preBuffer[i].src=theImages1[i]}var whichImage=Math.round(Math.random()*(p-1));function showImage1(){document.write('<img src="'+theImages1[whichImage]+'" class="left" width="143" height="149" alt="">')}var theImages2=[];theImages2[0]="images/img_painting_front.jpg";theImages2[1]="images/homepage_small1.jpg";theImages2[2]="images/img_painting_front.jpg";theImages2[3]="images/homepage_small1.jpg";theImages2[4]="images/img_painting_front.jpg";var j=0,p=theImages2.length,preBuffer=[];for(i=0;i<p;i++){preBuffer[i]=new Image;preBuffer[i].src=theImages2[i]}var whichImage=Math.round(Math.random()*(p-1));function showImage2(){document.write('<img src="'+theImages2[whichImage]+'" border="0" >')}var theImages3=[];theImages3[0]="images/img_menu_smallmenu1.jpg";theImages3[1]="images/img_menu_smallmenu2.jpg";var j=0,p=theImages3.length,preBuffer=[];for(i=0;i<p;i++){preBuffer[i]=new Image;preBuffer[i].src=theImages3[i]}var whichImage=Math.round(Math.random()*(p-1));function showImage3(){document.write('<img src="'+theImages3[whichImage]+'" border="0" >')}var theImages4=[];theImages4[0]="images/img_feature_right1.jpg";theImages4[1]="images/img_feature_right2.jpg";var j=0,p=theImages4.length,preBuffer=[];for(i=0;i<p;i++){preBuffer[i]=new Image;preBuffer[i].src=theImages4[i]}var whichImage=Math.round(Math.random()*(p-1));function showImage4(){document.write('<img src="'+theImages4[whichImage]+'" class="right" >')}sfHover=function(){var b=document.getElementById("nav").getElementsByTagName("LI");for(var a=0;a<b.length;a++){b[a].onmouseover=function(){this.className+=" sfhover";this.style.zIndex=200};b[a].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}};if(window.attachEvent)window.attachEvent("onload",sfHover)
