	if(typeof singuerinc=="undefined") var singuerinc=new Object();
	if(typeof singuerinc.MakeTitle=="undefined") singuerinc.MakeTitle=new Object();
	if(typeof singuerinc.MakeTitleUtils=="undefined") singuerinc.MakeTitleUtils=new Object();
	var singuerincCBrw=navigator.userAgent;var singuerincBrwName;
	if(singuerincCBrw.lastIndexOf("MSIE") != -1) singuerincBrwName = "ie";
	else if(singuerincCBrw.lastIndexOf("Firefox") != -1) singuerincBrwName = "firefox";
	else if(singuerincCBrw.lastIndexOf("Safari") != -1)	singuerincBrwName = "safari";
	else if(singuerincCBrw.lastIndexOf("Opera") != -1) singuerincBrwName = "opera";
	else singuerincBrwName = "other";
	singuerinc.br = singuerincBrwName;
	singuerinc.MakeTitle = function (_t, _w, _h, _bg){
		if(!document.getElementById) { return;};
		this.params=new Object(); this.attribs=new Array(); this.vars=new Object();
		var replacedText = _t.replace("<", "&lt;");
		replacedText = replacedText.replace(">", "&gt;");
		this.addVar("text", (_t) ? replacedText : "MakeTitle default text");
		var titleId = MakeTitleUtils.getRandId();
		this.setAttr("id", titleId);
		this.setAttr("src", "swf/TitleReader.swf");
		this.addPrm("AllowScriptAccess", "always");
		this.setAttr("width", (_w) ? _w : "100%"); this.setAttr("height", (_h) ? _h : 1);
		this.setAttr("bgColor", _bg);
		
		this.addVar("titleId", titleId);
		this.addVar("br", singuerincBrwName);
	    //if(_h == "1")
	    //{
	    //    this.addVar("aS", "true");
	    //}
	    
	    }
	
	singuerinc.MakeTitle.prototype =
	{
		setAttr:function(_n,_v){ this.attribs[_n]=_v;}, getAttr:function(_n){ return this.attribs[_n];},
		addPrm:function(_n,_v){ this.params[_n]=_v;}, getParams:function(){ return this.params; },
		addVar:function(_n,_v){ this.vars[_n]=_v; }, getVar:function(_n){ return this.vars[_n]; },
		getVars:function(){ return this.vars;}, getVarP:function(){	var _16=new Array(); var key;var _18=this.getVars(); for(key in _18){ _16[_16.length]=key+"="+_18[key]; } return _16; },
		make:function(){
		    			
			var _dvId = MakeTitleUtils.getRandId();
			var _c="";
			var _1d=this.getParams();
			
			if(singuerincBrwName == "safari"){this.addPrm("bgColor", this.getAttr("bgColor"));}
	        if(singuerincBrwName != "safari" && _1d["bgColor"]==undefined) {this.addPrm("wmode", "transparent");}
			var _1a=this.getParams();
			
			if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
				_c+="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttr("src")+"\" width=\""+this.getAttr("width")+"\" height=\""+this.getAttr("height")+"\" ";
				_c+=" id=\""+this.getAttr("id")+"\" name=\""+this.getAttr("id")+"\" ";
				for(var key in _1a) _c+=[key]+"=\""+_1a[key]+"\" ";
				var _1c=this.getVarP().join("&");
				if(_1c.length>0) _c+="flashvars=\""+_1c+"\"";
				_c+="/>";
			}
			else {
				_c="<object id=\""+this.getAttr("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttr("width")+"\" height=\""+this.getAttr("height")+"\">";
				_c+="<param name=\"movie\" value=\""+this.getAttr("src")+"\" />";
				for(var key in _1a){_c+="<param name=\""+key+"\" value=\""+_1a[key]+"\" />";}
				var _1f=this.getVarP().join("&");
				if(_1f.length>0) _c+="<param name=\"flashvars\" value=\""+_1f+"\" />";
				_c+="</object>";
			}
			document.write(_c);
		}
	}
	
	singuerinc.MakeTitleUtils={
		/*
		doAutoSize:function(tId, h){
			var __t;
			if(singuerinc.br=="opera")  //Opera
			{
			    try
			    {
				    for(var atIndex in __t.attributes)
				    {
					    if(__t.attributes[atIndex]["name"] == "WIDTH")	__t.attributes[atIndex]["nodeValue"] = "100%";
					    if(__t.attributes[atIndex]["name"] == "HEIGHT") __t.attributes[atIndex]["nodeValue"] = h;
		            }
		        }
		        catch(e)
		        {
		            alert(e);
		            return;
		        }
			}
			else if (singuerinc.br == "ie" && typeof(document.forms[0]) == "object") // IE 7+ with ASP.net form
			{
			    try
                {
    			    __t = document.forms[0][tId];
    			   // alert(__t.id);
                    __t.height = h;
			    }
			    catch(e)
			    {
			        alert(e.message);
			        return;
			    }
			}
			else    //Safari, Firefox, Netscape
			{
			    try
			    {
			        __t=document.getElementById(tId);
			        __t.height = h;
			    }
			    catch(e)
			    {
			        alert(e.message);
			        return;
			    }
			}
		},
		*/
		getRandId: function(){
		    var id = "MakeTitle____" + String(Math.floor(Math.random()*99999999))
		    return id;
	    }
	}
	
	var MakeTitle = singuerinc.MakeTitle;
	var MakeTitleUtils = singuerinc.MakeTitleUtils;