//tool tip df version
browserSize = new browserSizeClass();
huki_obj = document.getElementById('bubble_tooltip');
huki_txt_obj = document.getElementById('bubble_tooltip_content');
ghost_obj = false;
temp_img_obj = false;
temp_src = false;

if( isMSIE ){
	var temp3 = ["bubble_top" , "bubble_middle" , "bubble_bottom" ];
	for( var i=0 ; i<3 ; i++ ){
		var temp2 = document.getElementById( temp3[i] );
		var temp = temp2.currentStyle.backgroundImage;
		temp2.style.backgroundImage = "url('')";
		temp = temp.substr( 5 , (temp.length-7) );
		temp2.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+temp+"',sizingMethod='scale')";
	}
}


function showHukidasi( obj_this , text , img  ){
	if( temp_img_obj ){
		temp_img_obj.src = temp_src;
		temp_img_obj = false;
	}
	if( !! img ){
		temp_src = obj_this.src;
		obj_this.src = img;
		temp_img_obj = obj_this;
	}
	var pos = browserSize.getObjPos( obj_this );
	
	if( !! ghost_obj ){
//		MM_swapImgRestore();
		
		document.body.removeChild( ghost_obj );
		ghost_obj = false;
	}

	ghost_obj = obj_this.cloneNode( true );
	ghost_obj.onmouseover = function(){};
	ghost_obj.onmouseout = function(){
		if( !! temp_img_obj ){
			temp_img_obj.src = temp_src;
			temp_img_obj = false;
		}
//		MM_swapImgRestore();
		hideToolTip();
	};
	ghost_obj.id = "";
	var g_sty = ghost_obj.style;
	g_sty.position = "absolute";
	g_sty.top = "100px";
	g_sty.left = "100px";
	g_sty.filter = 'alpha(opacity=0)';
	g_sty.MozOpacity = 0;
	g_sty.opacity = 0;


	if( obj_this.parentNode.tagName == "A" ){
		ghost_obj.onclick = function(){
			location.href = obj_this.parentNode.href;
		}
	}


	g_sty.top = pos[0]+"px";
	g_sty.left = pos[1]+"px";
	g_sty.zIndex = "100";
	obj_this.onmouseout = function(){};
	
	document.body.appendChild( ghost_obj );

	huki_txt_obj.innerHTML = text;
	huki_obj.style.display = 'block';
	
	var pos = browserSize.getObjPos( obj_this );
	huki_obj.style.left = pos[1] + ( obj_this.offsetWidth /2 ) - (huki_obj.offsetWidth /2 )+50 + "px";
	huki_obj.style.top = pos[0] + ( obj_this.offsetHeight /2 ) - huki_obj.offsetHeight +20+ "px";
}
function hideToolTip(){
	huki_obj.style.display = 'none';
	if( !! ghost_obj ){
		document.body.removeChild( ghost_obj );
		ghost_obj = false;
	}
}