//コンストラクタ
var Init = function() {
	
};

//Class定義
Init.prototype = {
    /** トップページの設定  */
	init_top:function(){
		$("#top_service h2 img").pngfix();
		$("#top_cat_performance").hide();
		$("#btn_performance").bind("click",function(){
			$("#top_cat_solusion").hide();
			$("#top_cat_performance").show();
		});
		$("#btn_solusion").bind("click",function(){
			$("#top_cat_solusion").show();
			$("#top_cat_performance").hide();
		});
		this.setRollOver($("#top_navi img"));
	},
    /** セカンドページの設定  */
	init_sec:function(){
		this.setRollOver($("#sec_navi img"));
		$("#sec_side p img").pngfix();
	},
	
	//ロールオーバー設定 jqueryObjリストを受取り設定
	setRollOver:function($imas){
		$imas
			.bind("mouseover",function(){
				this.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_over$2");
			})
			.bind("mouseout",function(){
				this.src = this.src.replace(/^(.+)_over(\.[a-z]+)$/, "$1$2");
			})
			.pngfix({mouseover:true,overimagePath:"_over"})
			.each(function(){
				var preload = new Image;
				var img = $("img",this);
				preload.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_over$2");
			});
	}
};
