/*女性プロフィール用スクリプト*/
function Tobu(){
	if (blank)
		window.open(chTobu[Doko])
	else
		window.location=chTobu[Doko]
}

function p_change(){
	if(Ga.length>0){
		if (!document.images) return;
		if (document.images.targetimage.filters) return;
		if (IE) document.images.targetimage.filters[0].apply()

		document.images.targetimage.src=Ga[donoGa].src
		if (IE) document.images.targetimage.filters[0].play()
		Doko=donoGa
		donoGa=(donoGa<chGa.length-1)? donoGa+1 : 0
		setTimeout("Kaeru()",hayasa+okure) 
	}
}

function returnimgcode(theimg){
	var imghtml=""
	if (theimg[1]!="")
		// imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
		imghtml=''
		imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
		if (theimg[1]!="")
			// imghtml+='</a>'
		imghtml+=''
	return imghtml
}

function modifyimage(loadarea, imgindex){
	if (document.getElementById){
		var imgobj=document.getElementById(loadarea)
		if (imgobj.filters && window.createPopup){
			imgobj.style.filter=filterstring
			imgobj.filters[0].Apply()
		}

		imgobj.innerHTML=returnimgcode(dynimages[imgindex])
		if (imgobj.filters && window.createPopup)
			imgobj.filters[0].Play()
		return false
	}
}
