// JavaScript Document

(function($){

	$(document).ready(function(){

		// set year in copyrights.
		$('#footer div.box03 address').html('COPYRIGHT&copy;1998-'+ (new Date().getFullYear() || '2010') +' HIRAMATSU INC. ALL RIGHTS RESERVED.');

		// popup (width: 550px)
		$("#header01 a.popup").click(function(i){
			this.src = window.open(this.href,'_blank','status=no, toolbar=no, location=no, menubar=no, scrollbars=yes, resizable=no, width=750');return false;
		});

		// popup (width: 700px)
		$("#content a.popup2").click(function(i){
			window.open(this.href, 'winvisit', 'menubar=0,toolbar=no,location=0,status=0,scrollbars=0,resizable=0,width=700,height=600');return false;
		});

		// popup (width: 750px)
		$("#header02 a.popup, #content a.popup, #sidebar a.popup").click(function(i){
			this.src = window.open(this.href,'_blank','status=no, toolbar=no, location=no, menubar=no, scrollbars=yes, resizable=no, width=750');return false;
		});
		
	// for ie6.
		if ($.browser.msie && (parseInt($.browser.version) < 7))
			$('html').css({filter: 'expression(document.execCommand("BackgroundImageCache", false, true))'});

	});

})(jQuery);


