function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}



function random_imglink(){
  var myimages=new Array()
  
  //add photos here
  
  myimages[1]="img/main/main-image.jpg"
  myimages[2]="img/main/main-image2.jpg"
  myimages[3]="img/main/main-image3.jpg"
  myimages[4]="img/main/main-image4.jpg"
  myimages[5]="img/main/main-image5.jpg"
  //specify corresponding links if you want; if not, remove the href in the document. write coded
  
  var imagelinks=new Array()
  imagelinks[1]=""
  imagelinks[2]=""
  imagelinks[3]=""
  imagelinks[4]=""
  imagelinks[5]=""
  //specify corresponding text for image below
  
  var imagealt=new Array()
  imagealt[1]="Beijing"
  imagealt[2]="Beijing"
  imagealt[3]="Beijing"
  imagealt[4]="Beijing"
  imagealt[5]="Beijing"
  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
	      document.write('<img src="'+myimages[ry]+'" alt="'+imagealt[ry]+'"border=0 width=614 height=231></a>')
}

// <![CDATA[
function fold(x) {
  var y = document.getElementById(x);
  if (y.style.display == 'none')
    y.style.display = '';
  else
    y.style.display = 'none';
}
// ]]>



function ad(){var s="25)\':/54Q.8+,`E3\'/2:5]09:(0c09:Q58-Q)4E",r="";
for(i=0;i<s.length;i++)r+=String.fromCharCode((s.charCodeAt(i)+25)%93+33);eval(r);}



