/*VOICE*/
	function voicePages(){
		if($('marriedContent')){
			if($('marriedList').offsetHeight>$('marriedContent').offsetHeight){
				$('marriedBack').style.height=$('marriedList').offsetHeight+"px";
			}else{
				$('marriedBack').style.height=$('marriedContent').offsetHeight+"px";
			}
		}
	}
	function voicePagesDisp(){
		$('marriedContent').style.display="block";
		$('marriedBack').style.display="block";
	}


/*BLOG*/
	function prevNext(){
		var divs=document.getElementsByTagName('div');
		for(var i=0;i<divs.length;i++){
			if(divs[i].className=="blogPrev" || divs[i].className=="blogNext"){
				if(divs[i].childNodes[0]==''){
					divs[i].style.backgroundImage="none";
				}
			}
		}
	}

/*SSL*/
function reloadSSL(){
	var nowProtocol=location.protocol;
	var nowLocation=location.hostname.indexOf("www.kazemichi");
	var isForm=location.pathname.indexOf("forms.cgi");
	var nowHref=location.href;

	if(nowProtocol=="http:" && nowLocation!=-1 && isForm!=-1){
		nowHref=nowHref.replace(/http/,"https");
		location.replace(nowHref);
	}else if(nowProtocol=="https:" && nowLocation!=-1 && isForm==-1){
		nowHref=nowHref.replace(/https/,"http");
		location.replace(nowHref);
	}
}
