var imgRoll = function(){
	
	var imgAry = [];
		init();
		
		function init(){
			for(i=0; i< $("img").length; i++){
				
				if($("img")[i].src.indexOf("_off.") != -1){
					var offset = $($("img")[i]).offset();
					var a = $("img")[i]
					
					a.ary = a.src.split('_off.');
					a.posX = offset.left;
					a.posY = offset.top;
					a.flag = true;
					
					imgAry.push(a);
					$(a).mouseover(function(){this.src = this.ary[0] + "_on." + this.ary[1]});
					$(a).mouseout(function(){this.src = this.ary[0] + "_off." + this.ary[1]});						   
				}
			}
		}
	
		function fade(a,b){
			$(a).stop();
			$(a).fadeTo(200, b)
		}
}


$(window).load(function(){var ir = new imgRoll();})
