var mm_plugins = {
    Koozyt:		{k:"Fwio9tlWjt1CkdxeKOnVw89PJpYoG6hXdxFE9RuO1inAF-69aP1fB1RGAjPguqu6zeAriRSxvFlFMtYw38S3ax6olY00C5Aaf.4kMiEaX5tQz8ikGb0U6H4-Ya40FFEHFfLs3CoHzr1OC-BmVYduto-shvWYpSFP6kC6P2vChTrA5BzBjndaRsG8tAUT090aXNGFYksQR2DU-1DI.HHi.ws4XRn9GNLYdroRewjz7ED8kksONcXySk3OeFojoCRZgTOBtzN9vj0uCT8KAXktk0Qcfz83oe.6N3IFPRbij94iDnip9qFL-tK38WzOfKDzDfIZKWfNyvhADlx6aVYLjQ__,aHR0cDovL3d3dy5jaGFtYXAubmV0,Q2hhbWFwIFdvcmxkIFdpZGU_",r:"",l:0}
}

////////////////////////COMMON SHORT FUNC//////////////////////////


//language Transration By Google Ajax Laguage API.
//How to (ry
//Yes|No|Next|Back|Logout|Login|Loading...|Systems|Channel|
var Lang = {
    Data: {
        0: { LangMake: "Making language datas...", Loading: "Loading...", LangProg: "Progress of translating" },
        1: {},
        2: { Yes: "Yes", No: "No", Cancel: "Cancel", Next: "Next", Back: "Back", Logout: "Logout", Login: "Login", Systems: "Systems", Channel: "Channel", Chara: "Select your Character.", Nickname: "Nickname", EnterName: "Enter nickname.", CnlURL: "The URL on this Page", CnlExp: "Explanation of this channel", CnlAPI: "Web service displayed in this channel", Stage: "Stage", Owner: "Owner", Admin: "Change settings", Date: "Date", NeedPass: "Need password for login this channel.", Password: "Password", NoPass: "Password is not input.", WrgPass: "Password is wrong.", NoName: "Nickname is not input.", ChkPass: "Checking password...", Inquire: "Inquire", ReTryPass: "Input a correct password.Please ask the owner of this channel when you do not know the password.", AskLout: "Logout OK?", PrcLout: "Logout is being processed...", Waiting: "Waiting response..." },
        3: { PEDo: "Determine current location.", PEDoing: "Determining current location...", PENotify: "Please confirm the notification from PlaceEngine.", PEsetting: "Confirm the setting of PlaceEngine and Wi-Fi.", PEbad: "Failed determine current location.", PEtellok: "Tell your current location to everyone ?", PEtell: "Tell everyone?", PEwifi: "Enables to determine current location by Wi-Fi Signals.", PEneed: "PlaceEngine client and Wi-Fi Signals are required.", PEhere: "I'm here!", AutoMove: "Auto move", Zoom: "Zoom", MapType: "Map type", Sound: "Sound", Say: "Send!" },
        4: { People: "--- people", LinCnt: "The number of chatter", Join: "has joined.", Leave: "went out.", FileCNot: "This file cannot be up-loaded. Please select the Image file.", FileSend: "When the next posts, this image will send together.", FileGPS: "The GPS location information", FileFGPS: "The GPS location information was found in the photograph. Move to the place?", ChkFile: "Checking file...", Form: "form", Show: "show", Hide: "hide", Picts: "Pictographic", OnMap: "Says on map", CurLoco: "Get current Location", ChatHead: "When click message , the place is displayed.", ImgFile: "Image file:" },
        5: { Quote: "quote", QuoteAtc: "Quote this article", SendAtc: "Send this article together", LocSearch: "Location search", Orginal: "original message" }
    },
    T: {}, _NO: 0, _LN: "", _Q: "", DLN: "en", Loaded: "", SEP: "|", Process: false,
    Create: {
        Main: function(lg) {
            if (Lang.Loaded == lg) { Lang.Process = false; return; }
            Lang.Loaded = ""; Lang.Process = true; Lang._LN = lg;
            Lang.T = {};
            Lang.T.LangMake = Lang.Data[0].LangMake;
            Lang.T.LangProg = Lang.Data[0].LangProg;
            Lang.T.Loading = Lang.Data[0].Loading;
            var g = google.language;
            var l = $("tlanguage");
            for (var i in google.language.Languages) {
                if (google.language.Languages[i] && google.language.isTranslatable(google.language.Languages[i])) {
					var s=i.replace("_", " ").toLowerCase();
					s=s.substring(0,1).toUpperCase()+s.substring(1);
                    Lang.Data[1][google.language.Languages[i]] = ""+s+".";
                }
            }
            Lang.Create.Trans(0);
        },
        Trans: function(No) {
            MsgBox.show(Lang.T.LangMake + "<br /><br />" + Lang.T.LangProg + "<br /><img src='/images/loading_s.gif' align='absmiddle'/>( " + (No + 1) + " / " + 6 + " )", -1, { title: "ChaMap " + Lang.T.Loading });
            Lang._NO = No; Lang._Q = "";
            var q = "";
            var o = Lang.Data[No];
            for (var k in o) q += o[k] + Lang.SEP;
            Lang._Q = q;
            if (Lang._LN == Lang.DLN) Lang.Create.CB({ error: false, translation: q });
            else google.language.translate(q, Lang.DLN, Lang._LN, Lang.Create.CB);
        },
        CB: function(r) {
            var s; var i = 0;
            if (r.error) s = Lang._Q;
            else s = r.translation;
            var a = s.split(Lang.SEP);
            var b = Lang.Data[Lang._NO];
            for (var k in b) { Lang.T[k] = a[i]; i++; }
            if (Lang.Data[Lang._NO + 1]) Lang.Create.Trans(Lang._NO + 1);
            else {
                Lang.Loaded = Lang._LN;
                Lang.Process = false;
            }
        }
    }
}


var IframeURL={};
IframeURL={
    IsLoad:false,
    show:function(){
        $("idx_w").style.display="block";
        this.IsLoad=true;
    },
    close:function(){
        $("idx_w").style.display="none";
    },
    init:function(){
        $("idx_w").style.display="none";
        $("idx_w").innerHTML = "<div id='idx_bg'><div id='idx_bg1'></div><div id='idx_bg2'></div><div id='idx_mainw'><iframe src='/pages/' id='idx_main' frameborder='0' allowtransparency='true'></iframe></div></div>";
    }
}

var FrontPage={};
FrontPage={
    f:null,
    show:function(t,m,b,f){
        FrontPage.f=f;
        $('f_title').innerHTML=t;
        $('f_msg').innerHTML=m;
       
        var s="";
        if(b==-1){
        }else if(b){
            for(k in b){
                s+="<a href='javascript:void(0);' onclick='FrontPage.click("+k+");return false'>"+b[k]+"</a>";
            }
        }else{
            s+="<a href='javascript:void(0);' onclick='FrontPage.click(1);return false'>OK</a>";
        }
        $('f_button').innerHTML=s;
        $("w_f").style.display="block";
    },
    click:function(v){
        FrontPage.close(v);
    },
    close:function(v){
        if(FrontPage.f){
            if(!FrontPage.f(v))return ;
        }
        $('f_title').innerHTML="";
        $('f_msg').innerHTML="";
        $('f_button').innerHTML="";
        
        $('w_f').style.display="none";
        FrontPage.f=null;
    },
    init:function(){
        $("w_f").style.display="none";
        $("w_f").innerHTML="<div id='f_bg'><div id='f_main'><div id='f_title'></div><div id='f_msg'></div><div id='f_button'></div></div></div>";
    }
}

var Cookies = {
    Write: function(k, v, d) {
        if (!navigator.cookieEnabled) return;
        var e = new Date(new Date().getTime() + (d * 1000 * 60 * 60 * 24)).toGMTString();
        document.cookie = k + "=" + escape(v) + ";expires=" + e;
    },
    Read: function(k) {
        var r, c, s;
        if (typeof (k) == "undefined") return "";
        k = k + "="; r = ""; c = document.cookie + ";"; s = c.indexOf(k);
        if (s != -1) r = unescape(c.substring(s + k.length, c.indexOf(";", s)));
        return r;
    }
}


if(!Array.prototype.contains){Array.prototype.contains = function( value ){for(var i in this){if( this.hasOwnProperty(i) && this[i] === value){return true;}}return false;}}


function mround(value){return Math.round(parseFloat(value)*1000000)/1000000;}
function isNull(s){return s.replace(/[\s　\t\n\r]/g,'')=="";}
function isURL(u){return u.search(/^(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/)==0;};
function isset(o){return o!=undefined;}
function atr(func_str){if(isIE){return new Function(func_str);}else{return func_str;}}
function strip_tags(s) { if (!s) return ""; return s.replace(/<\/?[^>]+>/gi, ""); }
function strip_smily(s) { if (!s) return ""; return s.replace(/\[m:([a-z|0-9|-]+)\]/gi, ""); }
function jsonp(u, i) {
    if(i==undefined)i = "jsoncode";
	var h = document.getElementsByTagName( 'head' )[0];
	if($(i)!=null){
		h.removeChild($(i));
	}
	var s  = document.createElement( 'script' );
	s.charset = 'utf-8';
	s.type = 'text/javascript';
	s.src  = u;
	s.id = i;
	h.appendChild(s); 
}
function include(u) {
	var h = document.getElementsByTagName( 'head' )[0];
	var s  = document.createElement( 'script' );
	s.charset = 'utf-8';
	s.type = 'text/javascript';
	s.src  = u;
	h.appendChild(s); 
}

function loadafterfunc(obj,f){
	l();
	function l(){
		if(window[obj])f();
		else var m=setTimeout(l,100);
	}
}

function chkarr2str(target){
	var str="";
	var arr = chk2arr( target );
	if(arr!=false){
		for( i=0 ; i<arr.length ; i++ ){
			if(arr[i].checked){
				if( str != "" ) str += "|" ;
				str += arr[i].value ;
			}
		}
		if( str != "" ) return str ;
	}
	return "";
}
function chk2arr(t){
	if(document.frmchannel.elements[t]){
		arrs=document.frmchannel.elements[t];
		if(arrs.length)return arrs;
		else return new Array(arrs);
	}else{
		return false;
	}
}
function addFigure(str) {
	var num = new String(str).replace(/,/g, "");
	while(num != (num = num.replace(/^(-?\d+)(\d{3})/, "$1,$2")));
	return num;
}


function IsEnterKey(e) {
    var ev, key, mf, k;
    ev = (!e) ? event : e;
    key = ev.keyCode;
    mf = (ev.modifiers) ? ev.modifiers : ((ev.altKey) ? 1 : 0) + ((ev.ctrlKey) ? 2 : 0) + ((ev.shiftKey) ? 4 : 0);
    k = key + '_' + mf;
    return k == '13_0';
}

function jp2world(x,y){
    x=parseFloat(x);y=parseFloat(y);
	return {lng:x-y*0.000046038-x*0.000083043+0.010040,lat:y-y*0.00010695+x*0.000017464+0.0046017};
}
function world2jp(x,y){
    x=parseFloat(x);y=parseFloat(y);
	return {lng:x+y*0.000046047+x*0.000083049-0.010041,lat:y+y*0.00010696-x*0.000017467-0.0046020};
}
function Angle2Msec(v){return Math.round(v*60*60*1000);}
function Msec2Angle(v){return v/60/60/1000;}

///////////////////////COMMON CLASS////////////////////////////////

var XMLRequest= function(){
	var x=null,l=true;
	_XMLRequest();
	function _XMLRequest(){
		if(this.XMLHttpRequest){ 
			x= new XMLHttpRequest();
		}else {
			x= new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	XMLRequest.prototype.unload=function(){l=false;}
	XMLRequest.prototype.post=function(u,r,c,e){
		x.abort(); 
		if(l&&c!=undefined){
		    x.onreadystatechange = function(){
			    if (x.readyState == 4){
                    if( x.status == 200){
				        c(x.responseText);
			        }else{
			            if(e!=undefined)e();
			        }
			    }
		    }
		}

		x.open("POST",u,l);
		x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
		x.setRequestHeader('Cache-Control', 'no-cache'); 
		x.setRequestHeader('Pragma','no-cache');
		x.setRequestHeader('Expires', 0); 
		x.send(r);
	}
}


function mc_radioValue(e)
{
	var l = e.length;
	for (var i=0;i<l;i++) {
	if (e[i].checked) return e[i].value;
	}
	return "";
}



function mc_in_array(v,arr){
    for( k in arr ){
        if(parseInt(v)==parseInt(k))return true;
    }
    return false
}

function mc_each_array(v, arr) {
    var A = new Array();
    for (k in arr) {
        if (parseInt(k) > 0) {
            A.push(parseInt(k));
        }
    }
    A.sort(function(a, b) { return a - b; });
    
    var f = parseInt(v) <= 0 ? true : false;
    for (var i = 0; i < A.length; i++) {
        if (f && parseInt(A[i]) > 0) {
            delete A;
            return parseInt(A[i]);
        }
        if (parseInt(v) == parseInt(A[i])) f = true;
    }
    delete A;
    return -1
}



var McScroll = {};
McScroll = {
	targetScrollTop : 0,
	timer : 0,
	count : 0,
	pid : 0,
	lastDist : 0,
	options : {time : 500,unit : 25},
	active:false,
	scrollTo : function( id, pid){
	    this.active=true;
		clearInterval( this.timer );
		this.pid = pid;
		var scrollTopMax = $(pid).scrollHeight - $(pid).offsetHeight + parseInt($(pid).style.borderTopWidth) + parseInt($(pid).style.borderBottomWidth);
		if( isIE ){
			this.targetScrollTop = ( id ) ? $(id).offsetTop : 0;
		}else{
			var targetOffsetTop = ( id ) ? $(id).offsetTop : $(pid).offsetTop;
			this.targetScrollTop = targetOffsetTop - $(pid).offsetTop;
		}
		this.targetScrollTop = ( this.targetScrollTop > scrollTopMax ) ? scrollTopMax : this.targetScrollTop;
		this.lastDist = 0;
		this.count = 0;
		if(View.P.chat){
		    $(this.pid).scrollTop = this.targetScrollTop;
			this.active=false;
		}else{
		    this.timer = setInterval('McScroll.update()', this.options.unit );
		}
	},
	update : function(){
		var dist = this.targetScrollTop - $(this.pid).scrollTop;
		var speed = 2 * dist * this.options.unit / ( this.options.time - this.options.unit * this.count );
		speed = ( speed > 0 ) ? Math.ceil( speed ) : Math.floor( speed );
		if( Math.abs(dist) <= Math.abs(speed) ){
			clearInterval( this.timer );
			$(this.pid).scrollTop = this.targetScrollTop;
			this.active=false;
			return;
		}else if( this.lastDist == dist ){
			clearInterval( this.timer );
			$(this.pid).scrollTop = this.targetScrollTop;
			this.active=false;
			return;
		}
		var scrollTop = $(this.pid).scrollTop + speed;
		$(this.pid).scrollTop = scrollTop;
		this.lastDist = dist;
		this.count++;
		if( this.count == this.options.time / this.options.unit ){
			clearInterval( this.timer );
			$(this.pid).scrollTop = this.targetScrollTop;
			this.active=false;
		}
	}
}


var McSlider = {};
McSlider = {
	el:null,
	timer : 0,
	count : 0,
	onload:null,
	n:{w:0,h:0,x:0,y:0},
	flg:{w:false,h:false,x:false,y:false},
	options : {time:500,unit:25},
	defoptions : {time:500,unit:25},
	active : false,
	start : function( id, options,func ){
	    if(this.active)return;
	    this.active=true;
	    this.el=$(id);
	    this.onload=func;
		if( options ){
			if( options.w!= undefined ){this.n.w = options.w;this.flg.w=true;}else{this.flg.w=false;}
			if( options.h!= undefined ){this.n.h = options.h;this.flg.h=true;}else{this.flg.h=false;}
			if( options.x!= undefined ){this.n.x = options.x;this.flg.x=true;}else{this.flg.x=false;}
			if( options.y!= undefined ){this.n.y = options.y;this.flg.y=true;}else{this.flg.y=false;}
			if( options.time!= undefined ){this.options.time=options.time;}else{this.options.time=this.defoptions.time;}
			if( options.unit!= undefined ){this.options.unit=options.unit;}else{this.options.unit=this.defoptions.unit;}
		}
		clearInterval( this.timer );
        this.count=0;
		this.timer = setInterval('McSlider.update()', this.options.unit );
	},
	update : function(){
        if(this.flg.w)this.el.style.width =(this.el.offsetWidth+this.speed(this.n.w-this.el.offsetWidth))+"px";
        if(this.flg.h)this.el.style.height=(this.el.offsetHeight+this.speed(this.n.h-this.el.offsetHeight))+"px";
	    var pos=getPosition(this.el);
        if(this.flg.x)this.el.style.left=(pos.x+this.speed(this.n.x-pos.x))+"px";
        if(this.flg.y)this.el.style.top =(pos.y+this.speed(this.n.y-pos.y))+"px";
		this.count++;
		if( this.count == parseInt(this.options.time / this.options.unit) )this.complete();
	},
	complete:function(){
            clearInterval( this.timer );
			if(this.flg.w)this.el.style.width = this.n.w+"px";
			if(this.flg.h)this.el.style.height = this.n.h+"px";
			if(this.flg.x)this.el.style.left = this.n.x+"px";
			if(this.flg.y)this.el.style.top = this.n.y+"px";
			this.el=null;
			this.active=false;
			if(this.onload)this.onload();
	},
	speed :function(dist){
		var speed = 2 * dist * this.options.unit / ( this.options.time - this.options.unit * this.count );
        return ( speed > 0 ) ? Math.ceil( speed ) : Math.floor( speed );
	}
}


var Emoji = {};
Emoji = {
    eid:"emojilist",
    url:"/images/emoji/",
    isLoaded:false,
    isOpen:false,
    timer:0,
    tid:"",
    Insert: function( targetid, v ) {
        var ValIcon = '[m:' + v + ']';
        var e = $( targetid );
        if (document.selection) {
            e.focus();
            var range = document.selection.createRange();
            range.text = ValIcon;
        } else {
            var length = e.textLength;
            var start = e.selectionStart;
            var end = e.selectionEnd;
            if (end == 1 || end == 2) end = length;
            e.value = e.value.substring(0, start) + ValIcon + e.value.substr(end, length);
            e.selectionStart = start + ValIcon.length;
            e.selectionEnd = start + ValIcon.length;
        }
        this.close();
        e.focus();
    },    
    show: function(targetid) {
        $("emojibtn").src="/images/ed_emoticon_up.gif";
        if($(targetid).disabled){
            this.close();
            return;
        }
        this.isOpen = !this.isOpen || !this.isLoaded ?true:false;   
        this.layout();
        
        
        if(this.isOpen)$(this.eid).style.display="block";
        else this.close();
        
        if(!this.isLoaded){
            this.tid=targetid;
            this.timer = setTimeout("Emoji.showTable()",1);
            this.isLoaded=true;
        }
        $(targetid).focus();
    },
    layout:function(){
        var p=getPosition($("emojibtn"));
        $(this.eid).style.top = (p.y - 200-1)+"px" ;
        $(this.eid).style.left =p.x+"px" ;
    },
    close: function() {
        this.isOpen = false;
        $(this.eid).style.display = "none" ;
        $("emojibtn").src="/images/ed_emoticon.gif";
    },
    showTable: function() {
    $(this.eid).innerHTML = "<table><tr><td><img src='/images/emoji/sun.gif' onclick=\"Emoji.Insert('message','sun')\" /></td><td><img src='/images/emoji/cloud.gif' onclick=\"Emoji.Insert('message','cloud')\" /></td><td><img src='/images/emoji/rain.gif' onclick=\"Emoji.Insert('message','rain')\" /></td><td><img src='/images/emoji/snow.gif' onclick=\"Emoji.Insert('message','snow')\" /></td><td><img src='/images/emoji/thunder.gif' onclick=\"Emoji.Insert('message','thunder')\" /></td><td><img src='/images/emoji/typhoon.gif' onclick=\"Emoji.Insert('message','typhoon')\" /></td><td><img src='/images/emoji/mist.gif' onclick=\"Emoji.Insert('message','mist')\" /></td><td><img src='/images/emoji/sprinkle.gif' onclick=\"Emoji.Insert('message','sprinkle')\" /></td><td><img src='/images/emoji/aries.gif' onclick=\"Emoji.Insert('message','aries')\" /></td><td><img src='/images/emoji/taurus.gif' onclick=\"Emoji.Insert('message','taurus')\" /></td><td><img src='/images/emoji/gemini.gif' onclick=\"Emoji.Insert('message','gemini')\" /></td><td><img src='/images/emoji/cancer.gif' onclick=\"Emoji.Insert('message','cancer')\" /></td><td><img src='/images/emoji/leo.gif' onclick=\"Emoji.Insert('message','leo')\" /></td><td><img src='/images/emoji/virgo.gif' onclick=\"Emoji.Insert('message','virgo')\" /></td><td><img src='/images/emoji/libra.gif' onclick=\"Emoji.Insert('message','libra')\" /></td><td><img src='/images/emoji/scorpius.gif' onclick=\"Emoji.Insert('message','scorpius')\" /></td><td><img src='/images/emoji/sagittarius.gif' onclick=\"Emoji.Insert('message','sagittarius')\" /></td><td><img src='/images/emoji/capricornus.gif' onclick=\"Emoji.Insert('message','capricornus')\" /></td><td><img src='/images/emoji/aquarius.gif' onclick=\"Emoji.Insert('message','aquarius')\" /></td><td><img src='/images/emoji/pisces.gif' onclick=\"Emoji.Insert('message','pisces')\" /></td><td><img src='/images/emoji/sports.gif' onclick=\"Emoji.Insert('message','sports')\" /></td><td><img src='/images/emoji/baseball.gif' onclick=\"Emoji.Insert('message','baseball')\" /></td><td><img src='/images/emoji/golf.gif' onclick=\"Emoji.Insert('message','golf')\" /></td><td><img src='/images/emoji/tennis.gif' onclick=\"Emoji.Insert('message','tennis')\" /></td><td><img src='/images/emoji/soccer.gif' onclick=\"Emoji.Insert('message','soccer')\" /></td><td><img src='/images/emoji/ski.gif' onclick=\"Emoji.Insert('message','ski')\" /></td><td><img src='/images/emoji/basketball.gif' onclick=\"Emoji.Insert('message','basketball')\" /></td><td><img src='/images/emoji/motorsports.gif' onclick=\"Emoji.Insert('message','motorsports')\" /></td><td><img src='/images/emoji/pocketbell.gif' onclick=\"Emoji.Insert('message','pocketbell')\" /></td><td><img src='/images/emoji/train.gif' onclick=\"Emoji.Insert('message','train')\" /></td><td><img src='/images/emoji/subway.gif' onclick=\"Emoji.Insert('message','subway')\" /></td><td><img src='/images/emoji/bullettrain.gif' onclick=\"Emoji.Insert('message','bullettrain')\" /></td></tr><tr><td><img src='/images/emoji/car.gif' onclick=\"Emoji.Insert('message','car')\" /></td><td><img src='/images/emoji/rvcar.gif' onclick=\"Emoji.Insert('message','rvcar')\" /></td><td><img src='/images/emoji/bus.gif' onclick=\"Emoji.Insert('message','bus')\" /></td><td><img src='/images/emoji/ship.gif' onclick=\"Emoji.Insert('message','ship')\" /></td><td><img src='/images/emoji/airplane.gif' onclick=\"Emoji.Insert('message','airplane')\" /></td><td><img src='/images/emoji/house.gif' onclick=\"Emoji.Insert('message','house')\" /></td><td><img src='/images/emoji/building.gif' onclick=\"Emoji.Insert('message','building')\" /></td><td><img src='/images/emoji/postoffice.gif' onclick=\"Emoji.Insert('message','postoffice')\" /></td><td><img src='/images/emoji/hospital.gif' onclick=\"Emoji.Insert('message','hospital')\" /></td><td><img src='/images/emoji/bank.gif' onclick=\"Emoji.Insert('message','bank')\" /></td><td><img src='/images/emoji/atm.gif' onclick=\"Emoji.Insert('message','atm')\" /></td><td><img src='/images/emoji/hotel.gif' onclick=\"Emoji.Insert('message','hotel')\" /></td><td><img src='/images/emoji/24hours.gif' onclick=\"Emoji.Insert('message','24hours')\" /></td><td><img src='/images/emoji/gasstation.gif' onclick=\"Emoji.Insert('message','gasstation')\" /></td><td><img src='/images/emoji/parking.gif' onclick=\"Emoji.Insert('message','parking')\" /></td><td><img src='/images/emoji/signaler.gif' onclick=\"Emoji.Insert('message','signaler')\" /></td><td><img src='/images/emoji/toilet.gif' onclick=\"Emoji.Insert('message','toilet')\" /></td><td><img src='/images/emoji/restaurant.gif' onclick=\"Emoji.Insert('message','restaurant')\" /></td><td><img src='/images/emoji/cafe.gif' onclick=\"Emoji.Insert('message','cafe')\" /></td><td><img src='/images/emoji/bar.gif' onclick=\"Emoji.Insert('message','bar')\" /></td><td><img src='/images/emoji/beer.gif' onclick=\"Emoji.Insert('message','beer')\" /></td><td><img src='/images/emoji/fastfood.gif' onclick=\"Emoji.Insert('message','fastfood')\" /></td><td><img src='/images/emoji/boutique.gif' onclick=\"Emoji.Insert('message','boutique')\" /></td><td><img src='/images/emoji/hairsalon.gif' onclick=\"Emoji.Insert('message','hairsalon')\" /></td><td><img src='/images/emoji/karaoke.gif' onclick=\"Emoji.Insert('message','karaoke')\" /></td><td><img src='/images/emoji/movie.gif' onclick=\"Emoji.Insert('message','movie')\" /></td><td><img src='/images/emoji/upwardright.gif' onclick=\"Emoji.Insert('message','upwardright')\" /></td><td><img src='/images/emoji/carouselpony.gif' onclick=\"Emoji.Insert('message','carouselpony')\" /></td><td><img src='/images/emoji/music.gif' onclick=\"Emoji.Insert('message','music')\" /></td><td><img src='/images/emoji/art.gif' onclick=\"Emoji.Insert('message','art')\" /></td><td><img src='/images/emoji/drama.gif' onclick=\"Emoji.Insert('message','drama')\" /></td><td><img src='/images/emoji/event.gif' onclick=\"Emoji.Insert('message','event')\" /></td></tr><tr><td><img src='/images/emoji/ticket.gif' onclick=\"Emoji.Insert('message','ticket')\" /></td><td><img src='/images/emoji/smoking.gif' onclick=\"Emoji.Insert('message','smoking')\" /></td><td><img src='/images/emoji/nosmoking.gif' onclick=\"Emoji.Insert('message','nosmoking')\" /></td><td><img src='/images/emoji/camera.gif' onclick=\"Emoji.Insert('message','camera')\" /></td><td><img src='/images/emoji/bag.gif' onclick=\"Emoji.Insert('message','bag')\" /></td><td><img src='/images/emoji/book.gif' onclick=\"Emoji.Insert('message','book')\" /></td><td><img src='/images/emoji/ribbon.gif' onclick=\"Emoji.Insert('message','ribbon')\" /></td><td><img src='/images/emoji/present.gif' onclick=\"Emoji.Insert('message','present')\" /></td><td><img src='/images/emoji/birthday.gif' onclick=\"Emoji.Insert('message','birthday')\" /></td><td><img src='/images/emoji/telephone.gif' onclick=\"Emoji.Insert('message','telephone')\" /></td><td><img src='/images/emoji/mobilephone.gif' onclick=\"Emoji.Insert('message','mobilephone')\" /></td><td><img src='/images/emoji/memo.gif' onclick=\"Emoji.Insert('message','memo')\" /></td><td><img src='/images/emoji/tv.gif' onclick=\"Emoji.Insert('message','tv')\" /></td><td><img src='/images/emoji/game.gif' onclick=\"Emoji.Insert('message','game')\" /></td><td><img src='/images/emoji/cd.gif' onclick=\"Emoji.Insert('message','cd')\" /></td><td><img src='/images/emoji/heart.gif' onclick=\"Emoji.Insert('message','heart')\" /></td><td><img src='/images/emoji/spade.gif' onclick=\"Emoji.Insert('message','spade')\" /></td><td><img src='/images/emoji/diamond.gif' onclick=\"Emoji.Insert('message','diamond')\" /></td><td><img src='/images/emoji/club.gif' onclick=\"Emoji.Insert('message','club')\" /></td><td><img src='/images/emoji/eye.gif' onclick=\"Emoji.Insert('message','eye')\" /></td><td><img src='/images/emoji/ear.gif' onclick=\"Emoji.Insert('message','ear')\" /></td><td><img src='/images/emoji/rock.gif' onclick=\"Emoji.Insert('message','rock')\" /></td><td><img src='/images/emoji/scissors.gif' onclick=\"Emoji.Insert('message','scissors')\" /></td><td><img src='/images/emoji/paper.gif' onclick=\"Emoji.Insert('message','paper')\" /></td><td><img src='/images/emoji/downwardright.gif' onclick=\"Emoji.Insert('message','downwardright')\" /></td><td><img src='/images/emoji/upwardleft.gif' onclick=\"Emoji.Insert('message','upwardleft')\" /></td><td><img src='/images/emoji/foot.gif' onclick=\"Emoji.Insert('message','foot')\" /></td><td><img src='/images/emoji/shoe.gif' onclick=\"Emoji.Insert('message','shoe')\" /></td><td><img src='/images/emoji/eyeglass.gif' onclick=\"Emoji.Insert('message','eyeglass')\" /></td><td><img src='/images/emoji/wheelchair.gif' onclick=\"Emoji.Insert('message','wheelchair')\" /></td><td><img src='/images/emoji/newmoon.gif' onclick=\"Emoji.Insert('message','newmoon')\" /></td><td><img src='/images/emoji/moon1.gif' onclick=\"Emoji.Insert('message','moon1')\" /></td></tr><tr><td><img src='/images/emoji/moon2.gif' onclick=\"Emoji.Insert('message','moon2')\" /></td><td><img src='/images/emoji/moon3.gif' onclick=\"Emoji.Insert('message','moon3')\" /></td><td><img src='/images/emoji/fullmoon.gif' onclick=\"Emoji.Insert('message','fullmoon')\" /></td><td><img src='/images/emoji/dog.gif' onclick=\"Emoji.Insert('message','dog')\" /></td><td><img src='/images/emoji/cat.gif' onclick=\"Emoji.Insert('message','cat')\" /></td><td><img src='/images/emoji/yacht.gif' onclick=\"Emoji.Insert('message','yacht')\" /></td><td><img src='/images/emoji/xmas.gif' onclick=\"Emoji.Insert('message','xmas')\" /></td><td><img src='/images/emoji/downwardleft.gif' onclick=\"Emoji.Insert('message','downwardleft')\" /></td><td><img src='/images/emoji/phoneto.gif' onclick=\"Emoji.Insert('message','phoneto')\" /></td><td><img src='/images/emoji/mailto.gif' onclick=\"Emoji.Insert('message','mailto')\" /></td><td><img src='/images/emoji/faxto.gif' onclick=\"Emoji.Insert('message','faxto')\" /></td><td><img src='/images/emoji/info01.gif' onclick=\"Emoji.Insert('message','info01')\" /></td><td><img src='/images/emoji/info02.gif' onclick=\"Emoji.Insert('message','info02')\" /></td><td><img src='/images/emoji/mail.gif' onclick=\"Emoji.Insert('message','mail')\" /></td><td><img src='/images/emoji/by-d.gif' onclick=\"Emoji.Insert('message','by-d')\" /></td><td><img src='/images/emoji/d-point.gif' onclick=\"Emoji.Insert('message','d-point')\" /></td><td><img src='/images/emoji/yen.gif' onclick=\"Emoji.Insert('message','yen')\" /></td><td><img src='/images/emoji/free.gif' onclick=\"Emoji.Insert('message','free')\" /></td><td><img src='/images/emoji/id.gif' onclick=\"Emoji.Insert('message','id')\" /></td><td><img src='/images/emoji/key.gif' onclick=\"Emoji.Insert('message','key')\" /></td><td><img src='/images/emoji/enter.gif' onclick=\"Emoji.Insert('message','enter')\" /></td><td><img src='/images/emoji/clear.gif' onclick=\"Emoji.Insert('message','clear')\" /></td><td><img src='/images/emoji/search.gif' onclick=\"Emoji.Insert('message','search')\" /></td><td><img src='/images/emoji/new.gif' onclick=\"Emoji.Insert('message','new')\" /></td><td><img src='/images/emoji/flag.gif' onclick=\"Emoji.Insert('message','flag')\" /></td><td><img src='/images/emoji/freedial.gif' onclick=\"Emoji.Insert('message','freedial')\" /></td><td><img src='/images/emoji/sharp.gif' onclick=\"Emoji.Insert('message','sharp')\" /></td><td><img src='/images/emoji/mobaq.gif' onclick=\"Emoji.Insert('message','mobaq')\" /></td><td><img src='/images/emoji/one.gif' onclick=\"Emoji.Insert('message','one')\" /></td><td><img src='/images/emoji/two.gif' onclick=\"Emoji.Insert('message','two')\" /></td><td><img src='/images/emoji/three.gif' onclick=\"Emoji.Insert('message','three')\" /></td><td><img src='/images/emoji/four.gif' onclick=\"Emoji.Insert('message','four')\" /></td></tr><tr><td><img src='/images/emoji/five.gif' onclick=\"Emoji.Insert('message','five')\" /></td><td><img src='/images/emoji/six.gif' onclick=\"Emoji.Insert('message','six')\" /></td><td><img src='/images/emoji/seven.gif' onclick=\"Emoji.Insert('message','seven')\" /></td><td><img src='/images/emoji/eight.gif' onclick=\"Emoji.Insert('message','eight')\" /></td><td><img src='/images/emoji/nine.gif' onclick=\"Emoji.Insert('message','nine')\" /></td><td><img src='/images/emoji/zero.gif' onclick=\"Emoji.Insert('message','zero')\" /></td><td><img src='/images/emoji/ok.gif' onclick=\"Emoji.Insert('message','ok')\" /></td><td><img src='/images/emoji/heart01.gif' onclick=\"Emoji.Insert('message','heart01')\" /></td><td><img src='/images/emoji/heart02.gif' onclick=\"Emoji.Insert('message','heart02')\" /></td><td><img src='/images/emoji/heart03.gif' onclick=\"Emoji.Insert('message','heart03')\" /></td><td><img src='/images/emoji/heart04.gif' onclick=\"Emoji.Insert('message','heart04')\" /></td><td><img src='/images/emoji/happy01.gif' onclick=\"Emoji.Insert('message','happy01')\" /></td><td><img src='/images/emoji/angry.gif' onclick=\"Emoji.Insert('message','angry')\" /></td><td><img src='/images/emoji/despair.gif' onclick=\"Emoji.Insert('message','despair')\" /></td><td><img src='/images/emoji/sad.gif' onclick=\"Emoji.Insert('message','sad')\" /></td><td><img src='/images/emoji/wobbly.gif' onclick=\"Emoji.Insert('message','wobbly')\" /></td><td><img src='/images/emoji/up.gif' onclick=\"Emoji.Insert('message','up')\" /></td><td><img src='/images/emoji/note.gif' onclick=\"Emoji.Insert('message','note')\" /></td><td><img src='/images/emoji/spa.gif' onclick=\"Emoji.Insert('message','spa')\" /></td><td><img src='/images/emoji/cute.gif' onclick=\"Emoji.Insert('message','cute')\" /></td><td><img src='/images/emoji/kissmark.gif' onclick=\"Emoji.Insert('message','kissmark')\" /></td><td><img src='/images/emoji/shine.gif' onclick=\"Emoji.Insert('message','shine')\" /></td><td><img src='/images/emoji/flair.gif' onclick=\"Emoji.Insert('message','flair')\" /></td><td><img src='/images/emoji/annoy.gif' onclick=\"Emoji.Insert('message','annoy')\" /></td><td><img src='/images/emoji/punch.gif' onclick=\"Emoji.Insert('message','punch')\" /></td><td><img src='/images/emoji/bomb.gif' onclick=\"Emoji.Insert('message','bomb')\" /></td><td><img src='/images/emoji/notes.gif' onclick=\"Emoji.Insert('message','notes')\" /></td><td><img src='/images/emoji/down.gif' onclick=\"Emoji.Insert('message','down')\" /></td><td><img src='/images/emoji/sleepy.gif' onclick=\"Emoji.Insert('message','sleepy')\" /></td><td><img src='/images/emoji/sign01.gif' onclick=\"Emoji.Insert('message','sign01')\" /></td><td><img src='/images/emoji/sign02.gif' onclick=\"Emoji.Insert('message','sign02')\" /></td><td><img src='/images/emoji/sign03.gif' onclick=\"Emoji.Insert('message','sign03')\" /></td></tr><tr><td><img src='/images/emoji/impact.gif' onclick=\"Emoji.Insert('message','impact')\" /></td><td><img src='/images/emoji/sweat01.gif' onclick=\"Emoji.Insert('message','sweat01')\" /></td><td><img src='/images/emoji/sweat02.gif' onclick=\"Emoji.Insert('message','sweat02')\" /></td><td><img src='/images/emoji/dash.gif' onclick=\"Emoji.Insert('message','dash')\" /></td><td><img src='/images/emoji/sign04.gif' onclick=\"Emoji.Insert('message','sign04')\" /></td><td><img src='/images/emoji/sign05.gif' onclick=\"Emoji.Insert('message','sign05')\" /></td><td><img src='/images/emoji/slate.gif' onclick=\"Emoji.Insert('message','slate')\" /></td><td><img src='/images/emoji/pouch.gif' onclick=\"Emoji.Insert('message','pouch')\" /></td><td><img src='/images/emoji/pen.gif' onclick=\"Emoji.Insert('message','pen')\" /></td><td><img src='/images/emoji/shadow.gif' onclick=\"Emoji.Insert('message','shadow')\" /></td><td><img src='/images/emoji/chair.gif' onclick=\"Emoji.Insert('message','chair')\" /></td><td><img src='/images/emoji/night.gif' onclick=\"Emoji.Insert('message','night')\" /></td><td><img src='/images/emoji/soon.gif' onclick=\"Emoji.Insert('message','soon')\" /></td><td><img src='/images/emoji/on.gif' onclick=\"Emoji.Insert('message','on')\" /></td><td><img src='/images/emoji/end.gif' onclick=\"Emoji.Insert('message','end')\" /></td><td><img src='/images/emoji/clock.gif' onclick=\"Emoji.Insert('message','clock')\" /></td><td><img src='/images/emoji/appli01.gif' onclick=\"Emoji.Insert('message','appli01')\" /></td><td><img src='/images/emoji/appli02.gif' onclick=\"Emoji.Insert('message','appli02')\" /></td><td><img src='/images/emoji/t-shirt.gif' onclick=\"Emoji.Insert('message','t-shirt')\" /></td><td><img src='/images/emoji/moneybag.gif' onclick=\"Emoji.Insert('message','moneybag')\" /></td><td><img src='/images/emoji/rouge.gif' onclick=\"Emoji.Insert('message','rouge')\" /></td><td><img src='/images/emoji/denim.gif' onclick=\"Emoji.Insert('message','denim')\" /></td><td><img src='/images/emoji/snowboard.gif' onclick=\"Emoji.Insert('message','snowboard')\" /></td><td><img src='/images/emoji/bell.gif' onclick=\"Emoji.Insert('message','bell')\" /></td><td><img src='/images/emoji/door.gif' onclick=\"Emoji.Insert('message','door')\" /></td><td><img src='/images/emoji/dollar.gif' onclick=\"Emoji.Insert('message','dollar')\" /></td><td><img src='/images/emoji/pc.gif' onclick=\"Emoji.Insert('message','pc')\" /></td><td><img src='/images/emoji/loveletter.gif' onclick=\"Emoji.Insert('message','loveletter')\" /></td><td><img src='/images/emoji/wrench.gif' onclick=\"Emoji.Insert('message','wrench')\" /></td><td><img src='/images/emoji/pencil.gif' onclick=\"Emoji.Insert('message','pencil')\" /></td><td><img src='/images/emoji/crown.gif' onclick=\"Emoji.Insert('message','crown')\" /></td><td><img src='/images/emoji/ring.gif' onclick=\"Emoji.Insert('message','ring')\" /></td></tr><tr><td><img src='/images/emoji/sandclock.gif' onclick=\"Emoji.Insert('message','sandclock')\" /></td><td><img src='/images/emoji/bicycle.gif' onclick=\"Emoji.Insert('message','bicycle')\" /></td><td><img src='/images/emoji/japanesetea.gif' onclick=\"Emoji.Insert('message','japanesetea')\" /></td><td><img src='/images/emoji/watch.gif' onclick=\"Emoji.Insert('message','watch')\" /></td><td><img src='/images/emoji/think.gif' onclick=\"Emoji.Insert('message','think')\" /></td><td><img src='/images/emoji/confident.gif' onclick=\"Emoji.Insert('message','confident')\" /></td><td><img src='/images/emoji/coldsweats01.gif' onclick=\"Emoji.Insert('message','coldsweats01')\" /></td><td><img src='/images/emoji/coldsweats02.gif' onclick=\"Emoji.Insert('message','coldsweats02')\" /></td><td><img src='/images/emoji/pout.gif' onclick=\"Emoji.Insert('message','pout')\" /></td><td><img src='/images/emoji/gawk.gif' onclick=\"Emoji.Insert('message','gawk')\" /></td><td><img src='/images/emoji/lovely.gif' onclick=\"Emoji.Insert('message','lovely')\" /></td><td><img src='/images/emoji/good.gif' onclick=\"Emoji.Insert('message','good')\" /></td><td><img src='/images/emoji/bleah.gif' onclick=\"Emoji.Insert('message','bleah')\" /></td><td><img src='/images/emoji/wink.gif' onclick=\"Emoji.Insert('message','wink')\" /></td><td><img src='/images/emoji/happy02.gif' onclick=\"Emoji.Insert('message','happy02')\" /></td><td><img src='/images/emoji/bearing.gif' onclick=\"Emoji.Insert('message','bearing')\" /></td><td><img src='/images/emoji/catface.gif' onclick=\"Emoji.Insert('message','catface')\" /></td><td><img src='/images/emoji/crying.gif' onclick=\"Emoji.Insert('message','crying')\" /></td><td><img src='/images/emoji/weep.gif' onclick=\"Emoji.Insert('message','weep')\" /></td><td><img src='/images/emoji/ng.gif' onclick=\"Emoji.Insert('message','ng')\" /></td><td><img src='/images/emoji/clip.gif' onclick=\"Emoji.Insert('message','clip')\" /></td><td><img src='/images/emoji/copyright.gif' onclick=\"Emoji.Insert('message','copyright')\" /></td><td><img src='/images/emoji/tm.gif' onclick=\"Emoji.Insert('message','tm')\" /></td><td><img src='/images/emoji/run.gif' onclick=\"Emoji.Insert('message','run')\" /></td><td><img src='/images/emoji/secret.gif' onclick=\"Emoji.Insert('message','secret')\" /></td><td><img src='/images/emoji/recycle.gif' onclick=\"Emoji.Insert('message','recycle')\" /></td><td><img src='/images/emoji/r-mark.gif' onclick=\"Emoji.Insert('message','r-mark')\" /></td><td><img src='/images/emoji/danger.gif' onclick=\"Emoji.Insert('message','danger')\" /></td><td><img src='/images/emoji/ban.gif' onclick=\"Emoji.Insert('message','ban')\" /></td><td><img src='/images/emoji/empty.gif' onclick=\"Emoji.Insert('message','empty')\" /></td><td><img src='/images/emoji/pass.gif' onclick=\"Emoji.Insert('message','pass')\" /></td><td><img src='/images/emoji/full.gif' onclick=\"Emoji.Insert('message','full')\" /></td></tr><tr><td><img src='/images/emoji/leftright.gif' onclick=\"Emoji.Insert('message','leftright')\" /></td><td><img src='/images/emoji/updown.gif' onclick=\"Emoji.Insert('message','updown')\" /></td><td><img src='/images/emoji/school.gif' onclick=\"Emoji.Insert('message','school')\" /></td><td><img src='/images/emoji/wave.gif' onclick=\"Emoji.Insert('message','wave')\" /></td><td><img src='/images/emoji/fuji.gif' onclick=\"Emoji.Insert('message','fuji')\" /></td><td><img src='/images/emoji/clover.gif' onclick=\"Emoji.Insert('message','clover')\" /></td><td><img src='/images/emoji/cherry.gif' onclick=\"Emoji.Insert('message','cherry')\" /></td><td><img src='/images/emoji/tulip.gif' onclick=\"Emoji.Insert('message','tulip')\" /></td><td><img src='/images/emoji/banana.gif' onclick=\"Emoji.Insert('message','banana')\" /></td><td><img src='/images/emoji/apple.gif' onclick=\"Emoji.Insert('message','apple')\" /></td><td><img src='/images/emoji/bud.gif' onclick=\"Emoji.Insert('message','bud')\" /></td><td><img src='/images/emoji/maple.gif' onclick=\"Emoji.Insert('message','maple')\" /></td><td><img src='/images/emoji/cherryblossom.gif' onclick=\"Emoji.Insert('message','cherryblossom')\" /></td><td><img src='/images/emoji/riceball.gif' onclick=\"Emoji.Insert('message','riceball')\" /></td><td><img src='/images/emoji/cake.gif' onclick=\"Emoji.Insert('message','cake')\" /></td><td><img src='/images/emoji/bottle.gif' onclick=\"Emoji.Insert('message','bottle')\" /></td><td><img src='/images/emoji/noodle.gif' onclick=\"Emoji.Insert('message','noodle')\" /></td><td><img src='/images/emoji/bread.gif' onclick=\"Emoji.Insert('message','bread')\" /></td><td><img src='/images/emoji/snail.gif' onclick=\"Emoji.Insert('message','snail')\" /></td><td><img src='/images/emoji/chick.gif' onclick=\"Emoji.Insert('message','chick')\" /></td><td><img src='/images/emoji/penguin.gif' onclick=\"Emoji.Insert('message','penguin')\" /></td><td><img src='/images/emoji/fish.gif' onclick=\"Emoji.Insert('message','fish')\" /></td><td><img src='/images/emoji/delicious.gif' onclick=\"Emoji.Insert('message','delicious')\" /></td><td><img src='/images/emoji/smile.gif' onclick=\"Emoji.Insert('message','smile')\" /></td><td><img src='/images/emoji/horse.gif' onclick=\"Emoji.Insert('message','horse')\" /></td><td><img src='/images/emoji/pig.gif' onclick=\"Emoji.Insert('message','pig')\" /></td><td><img src='/images/emoji/wine.gif' onclick=\"Emoji.Insert('message','wine')\" /></td><td><img src='/images/emoji/shock.gif' onclick=\"Emoji.Insert('message','shock')\" /></td><td colspan='4' style='font-size:9px;color:#69f;' align='center'>By <a href='http://start.typepad.jp/typecast/' target='_blank'>SixApart</a></td></tr></table>";    
    }
}


function getPosition(that) {
    var targetElm=that, elemName=[], posValueX=[], posValueY=[];
    var pos = new function() {
    this.parent=""; this.x=0; this.y=0; this.width=0; this.height=0;
    }
    pos.width= targetElm.offsetWidth;
    pos.height= targetElm.offsetHeight;
    while( targetElm ){
    if (targetElm) elemName[elemName.length]=targetElm.tagName+"("+(targetElm.id || "id:Nan")+")";
    pos.x += posValueX[posValueX.length]=targetElm.offsetLeft; 
    pos.y += posValueY[posValueY.length]=targetElm.offsetTop; 
    targetElm = targetElm.offsetParent;
    }
    posValueX.length --;
    posValueY.length --;
    pos.parent=elemName.toString();
    pos.valueX=posValueX.toString();
    pos.valueY=posValueY.toString();
    return pos;
}




////////////////////CROSSDOMAIN XML/////////////////////////

function crossdomain(){this.id = crossdomain._lastId++;}
crossdomain.loaded = false;
crossdomain._lastId = 0;
crossdomain._instanceMap = new Object;
crossdomain.request = function(url,completeHandler){var fp = new crossdomain;fp.addEventListener("complete",completeHandler);fp.request(url);}
crossdomain.requestPost = function(url,post,completeHandler){var fp = new crossdomain;fp.addEventListener("complete",completeHandler);fp.post = post;fp.request(url);}
crossdomain.prototype = {addEventListener : function(type, handler){if(!this.listeners){this.listeners = new Object;}if(!this.listeners[type])this.listeners[type] = new Array;var ary = this.listeners[type];ary[ary.length] = handler;},
	dispatchEvent : function(flexEvent, obj){var ary = this.listeners[flexEvent.type];for(var i=0;i<ary.length;i++){ary[i](flexEvent, obj);}},
	request : function(url, contentType, post, headers, recurseLimit){crossdomain._instanceMap[this.id] = this;$f("crossdomain_external").request(this.id,url,this.contentType,this.post,this.headers,this.recurseLimit);}}
function crossdomain_onload(){crossdomain.loaded=true;}
function crossdomain_call(id,obj){var fp = crossdomain._instanceMap[id];if(fp){fp.dispatchEvent(obj.event, obj);}}
crossdomain.SetReturnValue=function(r){};


/////////////////////4debug/////////////////////////

function var_dump(mt,cnt,pre){
	var r="";
	for (i in mt){
		 r +=(i+" = "+mt[i])+"<hr>";
		if(cnt>0 && typeof(mt[i])=="object"){
			r +=var_dumpj(mt[i],pre+"+----",cnt-1)
		}
	}
	return r;	
}


function write(text){
    $("chat").innerHTML=$("chat").innerHTML+"<br />"+text
}
