
/* 
Win ie6.0,7.0 ns8.XX opera9 firefox Mac Safari
*/

function getPrototype(){
	var 
		ve = navigator.appVersion.toLowerCase(),
		ua = navigator.userAgent.toLowerCase(),
		is = function(t){ return ua.indexOf(t) != -1; },
		val = ((/opera/i.test(ua))&&(/^[1-7]/i.test(ve))||
			(/msie 5.0/i.test(ve))||(/netscape[4-6]/i.test(ua))|| is("mac")&&(/msie/i.test(ve)))? false : true;
	return val;
}

var setPrototypeCls = function(){
	var hs = document.getElementsByTagName('html')[0],
		cls = (getPrototype())? " prototype" : "";
	hs.className += cls;
}();

function setContents(){
	return this;
}
setContents.prototype = {
	initialize: function(){
		btnEnterId = document.getElementById("btn-Enter");
		hovers = btnEnterId.getElementsByTagName("a");
		for(var i=0,f=hovers.length; i < f; i++) {
			(function(i) {
				var img = hovers[i].getElementsByTagName('img')[0];
				var filetype = img.src.substring(img.src.lastIndexOf('.'), img.src.length);
				hovers[i].off = img.src;
				hovers[i].on = img.src.replace('-off' + filetype, '-on' + filetype);
				hovers[i].onmouseover = function(){img.src = hovers[i].on;}
				hovers[i].onmouseout = function(){img.src = hovers[i].off;}
			})(i);
		}
	}
}
var c = new setContents();
window.addOnload(c.initialize);
