/* Moxbit 4.3 Cygnus */

$(function(){
	//初期値
	var d_color = '#9e9e9e';
	//通常入力時
	var f_color = '#3c3c3c'; 

	$('#comment').css('color',d_color).focus(function(){
		if(this.value == this.defaultValue){
			this.value = '';
			$(this).css('color', f_color);
		}
	})
	//選択が外れたときの処理
	.blur(function(){
		if($(this).val() == this.defaultValue | $(this).val() == ''){
			$(this).val(this.defaultValue).css('color',d_color);
		};
	});
});

$(function(){
	var contents = $("#contents");
	if(contents.height() <= 600) {
		$('#sNav').hide();	
	} else if(contents.height() > 600) {
		$('#sNav').show();
	}
	if(contents.height() <= 950) {
		$('#left-tag-container').hide();	
	} else if(contents.height() > 950) {
		$('#left-tag-container').show();
	}
	if(contents.height() <= 1050) {
		$('#left-search-container').hide();	
	} else if(contents.height() > 1050) {
		$('#left-search-container').show();
	}
	if(contents.height() <= 2000) {
		$('#left-recent-article-container').hide();
	} else if(contents.height() > 2000) {
		$('#left-recent-article-container').show();
	}
	if(contents.height() <= 3320) {
		$('#left-comment-container').hide();	
	} else if(contents.height() > 3320) {
		$('#left-comment-container').show();	
	}
	if(contents.height() <= 3960) {
		$('#left-ads-container1').hide();	
	} else if(contents.height() > 3960) {
		$('#left-ads-container1').show();	
	}
	if(contents.height() <= 4600) {
		$('#left-ads-container2').hide();	
	} else if(contents.height() > 4600) {
		$('#left-ads-container2').show();	
	}
});
