﻿$(function(){
/*-------------------------------------------------------------
	rollover
-------------------------------------------------------------*/
	$(".over img").each(function(){
		$("<img>").attr("src",$(this).attr("src").replace(/^(.+)_off(\.[a-z]+)$/, "$1_on$2"));
	})
	
	
	if($.browser.msie && $.browser.version<7){
		$("img[src$='.png']").each(function(){
			$(this)
				.data("src",$(this).attr("src"))
				.attr("src","../images/transparent.gif")
				.css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src")+"',sizingMethod='scale')")
		});
		$(".over img").each(function(){
			
			$(this)
				.data("src",$(this).attr("src"))
				.attr("src","../images/transparent.gif")
				.css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src")+"',sizingMethod='scale')")
			
		}).mouseover(function(){
			$(this).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src").replace(/^(.+)_off(\.[a-z]+)$/, "$1_on$2")+"',sizingMethod='scale')")
		}).mouseout(function(){
			$(this).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$(this).data("src")+"',sizingMethod='scale')")
		});
		
	}else{
		$(".over img").mouseover(function(){
			$(this).attr("src",$(this).attr("src").replace(/^(.+)_off(\.[a-z]+)$/, "$1_on$2"));
		}).mouseout(function(){
			$(this).attr("src",$(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/, "$1_off$2"));
		});
	}
/*-------------------------------------------------------------
	seminar
-------------------------------------------------------------*/
	var text_count;
	$("div.seminar table.time_table td.set_01 span,div.seminar table.time_table td.set_02 span").each(function(){
		if($(this).text().length > 16) {
			text_count = $(this).text();
			text_count = text_count.substr(0,15) + "…";
//			$(this).text(text_count);
		};
	})


});

var send = 0;
function wopen(url,width,height,target){
	target = target ? target : '_blank';
	width = width ? width : 500;
	height = height ? height : 500;
	var wo = window.open(url,target,"toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height);
	wo.focus();
}
function WinClose(){
	self.window.close();
}
function EnterKill(){
	return (send) ? true : false;
}



