


function mImg(odds, url, alt, link, height) {
        this.odds = odds;
        this.url = url;
        this.alt = alt;
        this.link = link;
        this.height = height;
}

function chgTopImage(){


$("#mainimage")
	.css({height: 183});


}


function detectLang(){
	/*var ua = navigator.userAgent
	var bl = navigator.browserLanguage;
	var ref = document.referrer
	if(ua.indexOf("ja")==-1){
		if((!bl || bl!="ja") && ref.indexOf("/eng/")==-1 && location.href.indexOf("/eng/")==-1){
			location.replace(/eng/);
		}
	}*/

}





function chgTab (num){
	$('#infotab #info'+activeTab).hide();
	$('#infotab #info'+num).show();

	$('a#tab'+activeTab+' > img').attr('src',tabImg[(activeTab)].normal);
	if(tabImg[num].active){
		$('a#tab'+num+' > img').attr('src',tabImg[num].active);
	}
	activeTab = num;
}




function inithome(){
	detectLang();
	chgTopImage();
	//initTab();
}

$(document).ready(inithome);
