window.addEvent('domready', function() {


	//
	/*$('goToTopPage').addEvent('click', function() {
		new Fx.Scroll(window).toElement('top')
	});*/

	//
	$('goToTop').addEvent('click', function() {
		new Fx.Scroll(window).toElement('top')
	});

});

function transparencyPng(){
	if(navigator.userAgent.toLowerCase().indexOf('msie')>0){ // detect for IE (could be more specific to PC and version, but this works for the test)
		is = document.getElementsByTagName('IMG'); // get all images
		for(x=0; x<is.length; x++){ // cycle through those images
			if(is[x].src.indexOf('.png')){ // only do this to png files
				w = is[x].offsetWidth;
				h = is[x].offsetHeight

				is[x].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+is[x].src+"')"; // apply the filter stuff that makes IE do it's magic
								is[x].width = w;
				is[x].height = h;
				is[x].src = "/images/z.gif";
			}
		}
	}
}