
/*$(function(){
	$('.tShadeLine01 tbody tr:even').addClass('even');
	$('.tShadeLine01 tbody tr:odd').addClass('odd');
});*/

/*$(function(){
	setEqualHeight($('.j_sameHight .j_sameHightChild'));
	toggleSwich($('.j_toggleSingle li'), $('.j_toggleAll li'));
	boxLink()
});


function setEqualHeight(columns){
	var tallestcolumn = 0;

	columns.each(
		function(){
			currentHeight = $(this).height();
			if(currentHeight > tallestcolumn){
				tallestcolumn  = currentHeight;
			}
		}
	);
	columns.height(tallestcolumn);
}

function toggleSwich(single, alle){
	var area = single.parent().prev();
	area.hide();

	single
	.click(function(){
		$(this)
		.toggleClass('close')
		.parent()
		.prev()
		.toggleClass('open')
		.slideToggle(300);
	});
	
	alle
	.click(function(){
		$(this)
		.toggleClass('close');
		
		if(!$(this).hasClass('close')){

			area
			.each(function(){
				if($(this).hasClass('open')){
					$(this)
					.removeClass('open')
					.slideUp(300)
					.next()
					.find('li')
					.removeClass('close');
				}
			});
		} else if($(this).hasClass('close')){

			area
			.each(function(){
				if(!$(this).hasClass('open')){
					$(this)
					.addClass('open')
					.slideDown(300)
					.next()
					.find('li')
					.addClass('close');
				}
			});
			
		}
	});
}*/


/************************ contactLink ************************/
function contactLink(pass) {
	
	function opeContactnWin(url){
		window.open(url + location.href,'contactwin');
	};
	
	var num = pass;
	if(num == '00'){
			location.href="/contact/index.html?" + location.href;
	}else if(num == '010'){
			opeContactnWin("/contact/con_id0100.html?");
	}else if(num == '020'){
			opeContactnWin("/contact/con_id0200.html?");
	}else if(num == '030'){
			opeContactnWin("/contact/con_id0300.html?");
	}else if(num == '040'){
			opeContactnWin("/contact/con_id0400.html?");
	}else if(num == '050'){
			opeContactnWin("/contact/con_id0500.html?");
	}else if(num == '060'){
			opeContactnWin("/contact/con_id0600.html?");
	}else if(num == '070'){
			opeContactnWin("/contact/con_id0700.html?");
	}else if(num == '090'){
			opeContactnWin("/contact/con_id0900.html?");
	}else if(num == '99'){
			opeContactnWin("/contact/global.html?");
	}else{
			location.href="/contact/index.html?" + location.href;
	}
}


function Link010(){
	text = location.search;
	text =text.substr(1,100);
	window.open("/contact/con_id0100.html?" + text);
}
function Link020(){
	text = location.search;
	text =text.substr(1,100);
	window.open("/contact/con_id0200.html?" + text);
}
function Link030(){
	text = location.search;
	text =text.substr(1,100);
	window.open("/contact/con_id0300.html?" + text);
}
function Link040(){
	text = location.search;
	text =text.substr(1,100);
	window.open("/contact/con_id0400.html?" + text);
}
function Link050(){
	text = location.search;
	text =text.substr(1,100);
	window.open("/contact/con_id0500.html?" + text);
}
function Link060(){
	text = location.search;
	text =text.substr(1,100);
	window.open("/contact/con_id0600.html?" + text);
}
function Link070(){
	text = location.search;
	text =text.substr(1,100);
	window.open("/contact/con_id0700.html?" + text);
}
function Link090(){
	text = location.search;
	text =text.substr(1,100);
	window.open("/contact/con_id0900.html?" + text);
}
function Link99(){
	text = location.search;
	text =text.substr(1,100);
	window.open("/contact/global.html?" + text);
}




/************************ openWin ************************/
function openWin(url, wn, ww, hh) {
	var url = url;
	var wn = wn;
	var ww = ww;
	var hh = hh;
	var tt = (screen.height-hh)/2;
	var ll = (screen.width-ww)/2;
	var fea = "top="+tt+",left="+ll+",width="+ww+",height="+hh+",scrollbars=1,resizable=0";
	window.open(url,wn,fea);
};


/************************ setEvent ************************/
function setEvent(target, ev, func){
	try {
		target.addEventListener(ev, func, false);
	} catch(e) {
		target.attachEvent("on" + ev, func);
	};	
};
