/* JTS 홈페이지 레이아웃용 스크립트 */
$(document).ready(function(){
	$("a[rel=external]").attr("target", "_BLANK");
	
	$("#infoLinks").change(function(){
		if($(this).val().length > 0){
			location.href = $(this).val();
		}
	});
	
	$("a[rel=popup]").click(function(e){
		e.preventDefault();
		window.open($(this).attr("href"), 'popup', 'scrollbars=yes,width=475,height=600');
	});
});

/* 구글통계 스크립트 */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18572366-1']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
