// JavaScript Document

(function($){

	$(document).ready(function(){

		// set year in copyrights.
		$('#footer .box02 address').html('COPYRIGHT&copy;1998-'+ (new Date().getFullYear() || '2009') +' HIRAMATSU INC. ALL RIGHTS RESERVED.');
		
		// popup
		$(".popup").click(function(i){
			this.src = window.open(this.href,'_blank','status=no, toolbar=no, location=no, menubar=no, scrollbars=yes, resizable=no, width=550');return false;
		});
				
		// popup2
		$(".popup2").click(function(i){
			window.open(this.href, 'winvisit', 'menubar=yes,toolbar=no,location=yes,status=yes,scrollbars=yes,resizable=yes,width=800,height=650');return false;
		});
		
 	// for ie6.
		if ($.browser.msie && (parseInt($.browser.version) < 7))
			$('html').css({filter: 'expression(document.execCommand("BackgroundImageCache", false, true))'});

	});

})(jQuery);
