function _CreateTooltipObject(name)
{









	/*  Init Main Namespace */
	if (!window[name]){window[name]={}}else return;
	if(!window[name].Enum){window[name].Enum={NameSpaceParent:window[name]}}
	if(!window[name].Config){window[name].Config={NameSpaceParent:window[name]}}
	if(!window[name].Object){window[name].Object={NameSpaceParent:window[name]}}
	if(!window[name].Prototype){window[name].Prototype={NameSpaceParent:window[name]}}
	if(!window[name].Function){window[name].Function={NameSpaceParent:window[name]}}











	/* Set Values Of Namespace */
	if(!window[name].Config.Tooltip)
	{
		window[name].Config.Tooltip=
		{
			OffsetX:5,
			OffsetY:5,
			MouseFlow:false,//Blank Width
			EnableBuffer:true,
			LoadingTimeout:500,//Loading time out
			IFrame:name+"_IFrame",//IFrame Name
			IFrameBodyStyle:"border:none;margin:0;background-color:#666666;padding:1;",
			Div:name+"_DivLoader"//Div Name
		}
	}









/*Init window[name].Function */

	window[name].Function.parent=window[name];

	window[name].Function._document=function(id)
	{
			if (navigator.appName == "Microsoft Internet Explorer")
			{
				return document.all[id];
			}
			else if (navigator.appName == "Netscape")
			{
				return document.getElementById(id);
			}
			else document.getElementById(id);
	}

	window[name].Function.GetOffset=function(obj)
	{
		var result=[0,0];
		for(;obj.tagName.toLowerCase()!="body";obj=obj.offsetParent) result=[result[0]+obj.offsetLeft,result[1]+=obj.offsetTop];
		return result;
	}

	window[name].Function.GetWinSize=function(w) 
	{
		if (w.innerWidth)
			return [w.innerWidth-16,w.innerHeight,w.pageXOffset,w.pageYOffset];
		else if (w.document.compatMode=='CSS1Compat')
			with (w.document.documentElement) return [clientWidth,clientHeight,scrollLeft,scrollTop];
		else
			with (w.document.body) return [clientWidth,clientHeight,scrollLeft,scrollTop];
	}

	window[name].Function._Request=function(key,ref)
	{
		try
		{
			ref=(ref)?ref:window;
			var AllStr=ref.location.toString().split("?")[1];
			var AllVar=AllStr.split("&");
			for(var i=0;i<AllVar.length;i++)
			{
				var temp=AllVar[i].toString().split("=");
				if(temp[0]==key) return unescape(temp[1]);
			}
			return;
		}
		catch(e)
		{
			return;
		}
	}

	window[name].Function.FloatTooltip=function(target,msg,isURL)
	{
		var arg=window[name].Prototype.TooltipArgs(target,msg,isURL);
		window[name].Object.CurrentArgs=arg;
			
		if(window[name].Config.Tooltip.EnableBuffer)
		{
			var index=window[name].Function.CheckBuffer(arg.msg);
			if(index!=-1)
			{
				arg.msg=window[name].Object.CurrentBuffer[index].html;
				arg.isURL=false;
			}
		}
	
		window[name].Function.WriteMessage();
	}

	window[name].Function.ShowTooltip=function(target,msg,isURL)
	{
		if(!isFloatVisible)
		{
			var arg=window[name].Prototype.TooltipArgs(target,msg,isURL);
			window[name].Object.CurrentArgs=arg;
			
			if(window[name].Config.Tooltip.EnableBuffer)
			{
				var index=window[name].Function.CheckBuffer(arg.msg);
				if(index!=-1)
				{
					arg.msg=window[name].Object.CurrentBuffer[index].html;
					arg.isURL=false;
				}
			}
	
			window[name].Function.WriteMessage();
			isFloatVisible=true;
		}else{
			window[name].Object.CurrentArgs=null;
			var iframeObj=window[name].Function._document(window[name].Config.Tooltip.IFrame);
			iframeObj.style.display="none";
			isFloatVisible=false;
		}
	}

	window[name].Function.HideTooltip=function()
	{
		window[name].Object.CurrentArgs=null;
		var iframeObj=window[name].Function._document(window[name].Config.Tooltip.IFrame);
		iframeObj.style.display="none";
	}

	window[name].Function.VisibleTooltip=function()
	{
		var pos=window[name].Function.AdjustPosition();
		var iframeObj=window[name].Function._document(window[name].Config.Tooltip.IFrame);
		iframeObj.style.left=pos[0];
		iframeObj.style.top=pos[1];
		iframeObj.style.display="";
	}

	window[name].Function.AdjustPosition=function()
	{
		if(!window[name].Object.CurrentArgs){window[name].Function.HideTooltip();return;}
		var arg=window[name].Object.CurrentArgs;
		var iframeObj=window[name].Function._document(window[name].Config.Tooltip.IFrame);
		var af=window[name].Function.GetOffset(arg.target);
		var as=[arg.target.offsetWidth,arg.target.offsetHeight];
		var ws=window[name].Function.GetWinSize(window);
		var is=[eval(iframeObj.style.width.replace(/px$/gi,"")+"*1"),eval(iframeObj.style.height.replace(/px$/gi,"")+"*1")];
		var df=[window[name].Config.Tooltip.OffsetX,window[name].Config.Tooltip.OffsetY];
		/*
		var pos=[0,0];

		for(var i=0;i<pos.length;i++)
		{
			if((af[0+i]+as[0+i]+df[0+i]+is[0+i])<(ws[0+i]+ws[2+i])) 
				pos[i]=af[0+i]+as[0+i]+df[0+i];
			else if((af[0+i]-df[0+i]-is[0+i])>(ws[2+i])) 
				pos[i]=af[0+i]-df[0+i]-is[0+i];
			else if( ((af[0+i]+as[0+i]+df[0+i]+is[0+i])-(ws[0+i]+ws[2+i])) < ((ws[2+i])-(af[0+i]-df[0+i]-is[0+i])) )
				pos[i]=af[0+i]+as[0+i]+df[0+i];
			else
				pos[i]=af[0+i]-df[0+i]-is[0+i];
		}*/
		return [(ws[2]+(ws[0]/2)-(is[0]/2)),(ws[3]+(ws[1]/2)-(is[1]/2))];
	}
	
	
	window[name].Function.WriteMessage=function()
	{
		if(!window[name].Object.CurrentArgs){window[name].Function.HideTooltip();return;}
		var arg=window[name].Object.CurrentArgs;
		var iframeObj=window[window[name].Config.Tooltip.IFrame];
		if(!arg.isURL)
		{
			var cssText="";
			for(var i=0;i<document.styleSheets.length;i++) 
			{
				if(document.styleSheets[i].cssText)
					cssText+=document.styleSheets[i].cssText;
				else
				{
					if(document.styleSheets[i].cssRules)
					{
						for(var j=0;j<document.styleSheets[i].cssRules.length;j++)
						{
							cssText+=document.styleSheets[i].cssRules[j].selectorText+"{"+document.styleSheets[i].cssRules[j].style.cssText+"}";
						}
					}
				}		
			}
			iframeObj.document.open("text/html");
			iframeObj.document.write("<html><head><style>"+cssText+"</style></head><body onload='if(!document.readyState){document.readyState=\"complete\";}' style='"+window[name].Config.Tooltip.IFrameBodyStyle+"'><div style='background-color:#ffffff;'>");
			iframeObj.document.write(arg.msg);
			iframeObj.document.write("</div></body></html>");
			iframeObj.document.close();
		}
		else
		{
			iframeObj.location.href=arg.msg;
		}
		window[name].Function.CheckIFrameLoaded();
	}

	window[name].Function.CheckBuffer=function(url)
	{
		for(var i=0;i<window[name].Object.CurrentBuffer.length;i++)
		{
			if(window[name].Object.CurrentBuffer[i].url==url) return i;
		}
		return -1;
	}

	window[name].Function.CheckIFrameLoaded=function()
	{
		if(!window[name].Object.CurrentArgs){window[name].Function.HideTooltip();return;}
		var arg=window[name].Object.CurrentArgs;
		var iframeObj=window[window[name].Config.Tooltip.IFrame];
		var iframeObjId=window[name].Function._document(window[name].Config.Tooltip.IFrame);

		//if(iframeObj.document.readyState=="interactive"&&!arg.isURL)
		if(iframeObj.document.readyState=="complete"&&!arg.isURL)
		{
			clearTimeout(window[name].Object.CurrentTimer);
			var divObj=window[name].Function._document(window[name].Config.Tooltip.Div);
			divObj.innerHTML=arg.msg;
			iframeObjId.style.width=divObj.offsetWidth;
			iframeObjId.style.height=divObj.offsetHeight;
			window[name].Function.VisibleTooltip();
		}
		else if(iframeObj.document.readyState=="complete"&&arg.isURL)
		{
			arg.isURL=false;
			if(iframeObj.document.body)
			{
				if(window[name].Config.Tooltip.EnableBuffer)
				{
					if(window[name].Function.CheckBuffer(arg.msg)==-1)
						window[name].Object.CurrentBuffer[window[name].Object.CurrentBuffer.length]={url:arg.msg,html:iframeObj.document.body.innerHTML};
				}
				arg.msg=iframeObj.document.body.innerHTML;
			}
			else
			{
				arg.msg="document.body is null !";
			}
			window[name].Function.WriteMessage();
		}
		else
		{
			window[name].Object.CurrentTimer=setTimeout("window['"+name+"'].Function.CheckIFrameLoaded();",window[name].Config.Tooltip.LoadingTimeout);
		}

	}

	/* Object */	

	window[name].Object.CurrentArgs=null;
	window[name].Object.CurrentTimer=null;
	window[name].Object.CurrentBuffer=[];

	/* Init window[name].Prototype */

	window[name].Prototype.TooltipArgs=function(target,msg,isURL)
	{
		/*TooltipArgs properties*/
		this.target=(typeof(target)=="object")?target:window[name].Function._document(target);
		this.msg=msg;
		this.isURL=isURL;
		return this;
	}

	/*Write Div object*/
	document.write("<div id=\""+window[name].Config.Tooltip.Div+"\" style=\"left:-10000;top:-10000;position:absolute;position:absolute;"+window[name].Config.Tooltip.IFrameBodyStyle+"\"></div>");


	/*Write IFrame object*/
	document.write("<iframe name=\""+window[name].Config.Tooltip.IFrame+"\"  id=\""+window[name].Config.Tooltip.IFrame+"\" src=\"\" scrolling=\"no\" frameborder=\"0\" style=\"left:-1000;top:-1000;display:none;position:absolute;\"></iframe>");








	return window[name];
}
function FloatCloseIcon(fimg){
	if(isFloatVisible){ //Show
		currentFImg.src=FImgSrc;
		currentFImg=null;
	}else{ //Hide
		FImgSrc=fimg.src;
		if(FImgSrc.substring(FImgSrc.length-5,FImgSrc.length-4)=="2" || FImgSrc.substring(FImgSrc.length-5,FImgSrc.length-4)=="4")
			fimg.src='../images/bullet/no2.gif';
		else
			fimg.src='../images/bullet/no3.gif';
		currentFImg=fimg;
	}
}
var isFloatVisible=false;
var currentFImg=null;
var FImgSrc="";