// JavaScript Document


	function pngCorrection() {
	   for(var i=0; i<document.images.length; i++) {
		  var img = document.images[i]
		  var imgName = img.src.toUpperCase()
		  if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
			 var imgID = (img.id) ? "id='" + img.id + "' " : ""
			 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
			 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
			 var imgStyle = "display:inline-block;" + img.style.cssText 
			 if (img.align == "left") imgStyle = "float:left;" + imgStyle
			 if (img.align == "right") imgStyle = "float:right;" + imgStyle
			 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
			 var strNewHTML = "<span " + imgID + imgClass + imgTitle
			 + " style=\"" + "width:100%; height:100%;" + imgStyle + ";"
			 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.src + "', sizingMethod='scale');\""
			 + "></span>" 
			 img.outerHTML = strNewHTML
			 i = i-1
		  }
	   }
	}
	window.attachEvent("onload", pngCorrection);	


	function reSize() {
		try {	
			var oBody	=	ifrm.document.body;
			var oFrame	=	document.all("ifrm");
				
			oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight);
			oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth);
		}
		
		catch(e) {
			window.status =	'Error: ' + e.number + '; ' + e.description;
		}
	}
		
		
	function random_imglink() {
		var image=new Array()
		image[1] = 'images/intro/img_intro_1.jpg'
		image[2] = 'images/intro/img_intro_2.jpg'
		image[3] = 'images/intro/img_intro_3.jpg'
		image[4] = 'images/intro/img_intro_4.jpg'
		image[5] = 'images/intro/img_intro_5.jpg'
		
		var ry=Math.floor(Math.random()*image.length)
		if (ry==0)
		ry=1
		document.write('<img src="'+image[ry]+'" width="804" height="457" border="0">')
	}
	
	
	
	
	
