jQuery.noConflict();
jQuery(document).ready(function(){
/*---------------------------------------------------------
	外部リンクを新規ウィンドウで開く
----------------------------------------------------------*/
	var domain = document.domain;
	if(document.location.toString().match("^https?://([^/]+/[^/]+/[^/]+/)")){
	    domain = RegExp.$1;
    }
	var domains = [domain , "a-team.local.oro.co.jp"];
	
	var domain_selector = "",left_str= ":not([href^=http://",left_str_https=":not([href^=https://",right_str = "])";
	domain_selector = left_str+domains.join(right_str+left_str)+right_str;
	
	domain_selector+= left_str_https+domains.join(right_str+left_str_https)+right_str;
	jQuery("a[href^=http]"+domain_selector+":not(:has(img))").addClass("exlink").attr("title","別サイトを開きます。");


	if(jQuery.browser.msie){
		jQuery("a").unbind("click").click(function(){
			if(this.href.indexOf('img/ebook/') == -1){ 
				window.open(this.href,"_self");
				return false;
			}
		})
	};

	jQuery("a[href^=http]" + domain_selector + ",a[href^=http]"+domain_selector).unbind("click").click(function(){
		window.open(this.href,"_blank");
		return false;
	});

	jQuery("a[href$='.pdf']").unbind("click").click(function(){
		window.open(this.href,"_blank");
		return false;
	});


	jQuery("a[href*='img/ebook/']").unbind("click").click(function(){
		window.open(this.href,'ebook', "width=1000,height=700,scrollbars=yes,resizable=yes");
		return false;
	});

});