
var textNode2Title = {
	init:function(){
		$("*").each( function(){
				var e = $(this);
				if( e.css("textIndent").match(/^-/) ){
					e.attr("title", e.text() );
				}
		});
		$("img").each( function(){
				var e = $(this);
				if(e.attr("alt")!=""){
					e.attr("title",e.attr("alt"));
				}
		});
	}
}
textNode2Title.init();

var dupulicateBreadList = {
	init:function(){
		var bl = $("#boxBreadList");
		if(bl.length){
			$("#footerBreadList").html( bl.html() );
		}
	}
}
dupulicateBreadList.init();

var activateNavigation = {
	config:[
		{
			regex:"\/product\/",
			id:"naviMainProduct"
		},{
			regex:"\/about\/",
			id:"naviMainAbout"
		},{
			regex:"\/case\/",
			id:"naviMainCase"
		}
	],
	init:function(){
		var loc = location.href;
		var c;
		while( c = this.config.shift() ){
			if(loc.match(c.regex)){
				$("#" + c.id + " a").addClass("active");
				return;
			}
		}
	}
}
activateNavigation.init();

var linkPageTop = {
	init:function(){
		$("a").each( function(){
				if( this.href.indexOf(location.href)!=-1 && this.href.match(/#header/)){
					$(this).bind("click",linkPageTop.move);
				}
		});
	},
	move:function(e){
		scrollTo(0,0);
		return false;
	}
}
linkPageTop.init();

var linkBox = {
	init:function(){
		$(".linkbox a.headlink").bind("mouseover",function(){
			$(this).parent().css({
				backgroundPosition:"left bottom"
			});
		}).bind("mouseout",function(){
			$(this).parent().css({
				backgroundPosition:"left top"
			});
		});
	}
};
linkBox.init();

/*
var IE6Style = {
	isIE6:(typeof document.documentElement.style.maxHeight == "undefined"),
	load:function(obj){
		if(!isIE6) return;
		for(i in obj){
			alert(i);
		}
	}
};

*/