

	function alertSize() {
	  var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	  }
	
	  document.getElementById("maincontainer").style.top = (myHeight - 460) /2 +"px"
	}
		

	iLayer = 1
	function swapPics(smyPic, alt){
		if(iLayer==1){
			tmpLayer =2
		}else{
			tmpLayer =1		
		}


			Element.setOpacity('photo' + tmpLayer,0)
			
		document.getElementById('photo' + tmpLayer).innerHTML  = "<img src='"+smyPic+"' alt='"+alt+"' onload=\"showPics(tmpLayer)\">"
	}
	
	function showPics(iID){
		if(iID == 1){
			iFade = 2
		}else{
			iFade = 1
		}
		
		new Effect.Appear('photo' + iID, { duration: 2, from: 0, to: 1.0 });
		document.getElementById('photo'+iID).style.zIndex=200;
		document.getElementById('photo'+iFade).style.zIndex=100;
		iLayer = iID
	}
	



