jQuery.noConflict();
jQuery(function() {
	jQuery('#a1004_headerbox a,area').focus(function(){this.blur();});
	
	/* Drop down menu */
	if(jQuery.browser.msie == true) {
		//jQuery('#housing_navigation').droppy({showSpeed:0,hideSpeed:0});
		jQuery('#housing_navigation').droppy({showSpeed:0,hideSpeed:180});
	} else {
		jQuery('#housing_navigation').droppy({showSpeed:100,hideSpeed:200});
	}
	
	/* Header Rollover */
	var postfix = '_on';
	jQuery('#housing_navigation a img, div.btn_link a img').not('[src*="'+ postfix +'."]').each(function() {
		var img = jQuery(this);
		var src = img.attr('src');
		var src_on = src.substr(0, src.lastIndexOf('.'))
		           + postfix
		           + src.substring(src.lastIndexOf('.'));
		jQuery('<img>').attr('src', src_on);
		img.hover(
			function() {
				img.attr('src', src_on);
			},
			function() {
				img.attr('src', src);
			}
		);
	});
	
	/* History Back */
	jQuery('div#history_prevbutton').css({
		'margin-top':'20px',
		'margin-bottom':'40px',
		'_padding-bottom':'20px',
		'text-align':'center'}
	).append('<input type="button" value="戻る" />');
	jQuery('div#history_prevbutton input').click(function() {
		history.back();
	});
	
	/* load image */
	jQuery('div#load_cmimage').load('/loadsrc/loadimage.html');
	jQuery('div#load_cmimage').css({'height':'150px'});
});

function openTopics(target_url) {
	var taget_url;
	window.open(target_url,'_blank','scrollbars=yes,resizable=yes,width=680,height=600');
}

function openPage(target_url) {
	var taget_url;
	window.open(target_url,'','width=650,height=600,menubar=1,location=1,toolbar=0,scrollbars=1,resizable=1');
}

function openGoseiyaku(target_url) {
	var taget_url;
	window.open(target_url,'','width=700,menubar=1,location=0,toolbar=0,scrollbars=1,resizable=1');
}
