// JavaScript Document
	var device;
  var target;
	var targetimg;
	var index;
	var container;
	var footer;
	var setting;
	var listview;
	var dataper = 0;
	var endper = 5;
	var settingR = -480;
	var loadInterval;
	var moveInterval;
	var winH;
	var winW;
	var keyword;
	var trend;
	var lang;
	var wait;
	var mySetting;
	var mySetting_s;
	var mySettingStr;
	var msgFontSize;
	var dateFontSize;
	var ResizeTimer;
	
	var listviewmode = false;
	
	var colorlist = new Array();
	colorlist[0] = new Array('#8EC1DA', '#FFFFFF');
	colorlist[1] = new Array('#336699', '#FFFFFF');
	colorlist[2] = new Array('#333333', '#FFFFFF');
	colorlist[3] = new Array('#66CC33', '#FFFFFF');
	colorlist[4] = new Array('#FF6600', '#FFFFFF');
	var selectColor = 0;
	
	var fStyle = "normal";
	
	var settingtBgColor = '#ddeef6';
	var btnHilite = '#0084B4';
	
	function contentsopen() {
		var width=screen.availWidth;
    var height=screen.availHeight;
    var win = window.open("watch.php","nowwatch","width="+width+",height="+height+",scrollbars=no,resizable,menubar=no,directories=no,status=no,location=no");
    win.focus();
	}
	
	function loadstart(rm) {
		clearTimeout(loadInterval);
		if (keyword != "") {
			loadtweet('loaddata',keyword, lang, rm);
		} else {
			loadtweet('loaddata',trend, lang, rm);
		}
	}
	
	function startload() {
		winH = getBrowserHeight();
		winW = getBrowserWidth();
		small_css = ((device != "O") && (winW <= 800));
		container = document.getElementById('container');
		target = document.getElementById('loaddata');
		targetimg = document.getElementById('iconimg');
		footer = document.getElementById('footer');
		setting = document.getElementById('setting');
		loadsetting();
		if (small_css) {
			hideAdBarTime = setTimeout("hideAdBar()", 100);
			setlayoutTimer = setTimeout("setlayout()", 100);
		} else {
			setlayout();
		}
	}
	
	function indexload() {
		winH = getBrowserHeight();
		winW = getBrowserWidth();
		small_css = ((device != "O") && (winW <= 800));
		index = document.getElementById('index');
		footer = document.getElementById('footer');
		if (small_css) {
			hideAdBarTime = setTimeout("hideAdBar()", 100);
		}
	}
	
	function small_setting_load() {
		winH = getBrowserHeight();
		winW = getBrowserWidth();
		small_css = ((device != "O") && (winW <= 800));
		setting = document.getElementById('setting');
		cursor_s = document.getElementById('cursor_s');
		loadsetting();
		changeSerchInterval = setInterval("changeSerchWord()", 1000);
		cursor_s.style.padding = (winH/2-30)+'px 0px 0px';
		if (device == "i") {
			setScursorTimer = setInterval("setSCursorPos()", 100);
		}
		hideAdBarTime = setTimeout("hideAdBar()", 200);
	}
	
	// レイアウト
	
	function contentsresize() {
		if (ResizeTimer != null) {
			clearTimeout(ResizeTimer);
		}
		ResizeTimer = setTimeout("doResize()", 300);
	}
	
	function doResize() {
		new_winH = getBrowserHeight();
		new_winW = getBrowserWidth();
		winH = new_winH;
		winW = new_winW;
		clearInterval(moveInterval);
		clearTimeout(loadInterval);
		if (small_css) {
			clearTimeout(hideAdBarTime);
			hideAdBarTime = setTimeout("hideAdBar()", 100);
			clearTimeout(setlayoutTimer);
			if (device == "i") {
				setlayoutTimer = setTimeout("setlayout()", 100);
			} else {
				setlayoutTimer = setTimeout("setlayout()", 500);
			}
		} else {
			setlayout();
		}
		loadstart(1);
		loadInterval = setTimeout("loadstart(0)", wait);
	}
	function hideAdBar() {
		if (device == "i") {
			scrollTo(0,1);
		}
	}
	
	function setlayout() {
		winH = getBrowserHeight();
		winW = getBrowserWidth();
		userfld = document.getElementById('user');
		msgfld = document.getElementById('msg');
		datefld = document.getElementById('pub_date');
		setting = document.getElementById('setting');
		settings = document.getElementById('settings');
		cursor_s = document.getElementById('cursor_s');
		tweets = document.getElementById('tweets');
		listview = document.getElementById('listview');
		cursor = document.getElementById('cursor');
		if (small_css) {
			if (winH < 320) {
				msgFontSize = Math.floor(Math.sqrt(winH*winH+winW*winW)/32);
				usrFontSize = Math.floor(Math.sqrt(winH*winH+winW*winW)/32/1.2);
				dateFontSize = Math.floor(Math.sqrt(winH*winH+winW*winW)/32/1.4);
			} else {
				msgFontSize = Math.floor(Math.sqrt(winH*winH+winW*winW)/32);
				usrFontSize = Math.floor(Math.sqrt(winH*winH+winW*winW)/32/1.2);
				dateFontSize = Math.floor(Math.sqrt(winH*winH+winW*winW)/32/1.4);
			}
			msgfld.style.fontSize = msgFontSize+'px';
			userfld.style.fontSize = usrFontSize+'px';
			datefld.style.fontSize = dateFontSize+'px';
			if (device == "a") {
				container.style.height = (winH-27)+'px';
			} else {
				container.style.height = (winH-27)+'px';
			}
			//setting.style.height = (winH-27)+'px';
			//settings.style.height = (winH-27-30)+'px';
			//cursor_s.style.margin = (winH/2-30)+'px 0px 0px';
			//listview.style.height = (winH-27)+'px';
			//tweets.style.height = (winH-27-30)+'px';
			cursor.style.margin = (winH/2-30)+'px 0px 0px';
		} else {
			if (listviewmode) {
				winW = winW - 480;
			}
			msgFontSize = Math.floor(Math.sqrt(winH*winH+winW*winW)/28);
			usrFontSize = Math.floor(Math.sqrt(winH*winH+winW*winW)/28/1.6);
			dateFontSize = Math.floor(Math.sqrt(winH*winH+winW*winW)/28/1.8);
			msgfld.style.fontSize = msgFontSize+'px';
			userfld.style.fontSize = usrFontSize+'px';
			datefld.style.fontSize = dateFontSize+'px';
			container.style.height = (winH-40)+'px';
			setting.style.height = (winH-40)+'px';
			//settings.style.height = (winH-40)+'px';
			cursor_s.style.margin = (winH/2-40-40)+'px 0px 0px';
			listview.style.height = (winH-40)+'px';
			//tweets.style.height = (winH-40-40)+'px';
			cursor.style.margin = (winH/2-40-40)+'px 0px 0px';
		}
		target.style.top = '100%';
		//loadstart(1);
		//loadInterval = setTimeout("loadstart(0)", wait);
		footer.style.bottom = '0px';
	}
	
	// フォーム送信
	
	function sendstart() {
		document.start.submit();
	}
	
	// Tweet表示
	
	function loaddone(result) {
		target = document.getElementById('loaddata');
		if (result.length > 50) {
			dataper = winH;
		  target.style.top = dataper+'px';
			if (small_css) {
				target.style.width = (winW - 15*2)+'px';
			} else {
				target.style.width = (winW - 40*2)+'px';
			}
		  target.innerHTML = result;
			var a=target.getElementsByTagName("A");
			for(i=0;i<a.length;i++){a[i].style.color=colorlist[selectColor][1];}
			userfld = document.getElementById('user');
			userfld.style.fontWeight = fStyle;
			userfld.style.fontSize = usrFontSize+'px';
			msgfld = document.getElementById('msg');
			msgfld.style.fontWeight = fStyle;
			msgfld.style.fontSize = msgFontSize+'px';
			datefld = document.getElementById('pub_date');
			datefld.style.fontSize = dateFontSize+'px';
			if (msgfld.clientHeight <= msgFontSize*1.5) {
				msgfld.style.textAlign = 'center';
				//datefld.style.textAlign = 'center';
			} else {
				msgfld.style.textAlign = 'left';
				//datefld.style.textAlign = 'left';
			}
			setTimeout('setmoveanim()', 200);
			loadimagelink('iconimg');
			loadInterval = setTimeout("loadstart(0)", wait);
		} else {
			loadInterval = setTimeout("loadstart(0)", 2*1000);
		}
	}
	
	function setmoveanim() {
		moveInterval = setInterval("movedata()", 50);
	}
	
	function movedata() {
		target = document.getElementById('loaddata');
		if (small_css) {
			stoppos = Math.floor((winH - 27 - target.clientHeight) / 2) - 60;
		} else {
			stoppos = Math.floor((winH - 40 - target.clientHeight) / 2) - 130;
		}
		if (dataper > (stoppos + 2)) {
			dataper = dataper - (dataper - stoppos)*0.4;
		} else {
			dataper = stoppos;
			clearInterval(moveInterval);
		}
		target.style.top = dataper+'px';
	}
	
	function imagloaddone() {
		targetimg = document.getElementById('iconimg');
		if (small_css) {
			targetimg.height = 48;
		} else {
			targetimg.height = 72;
			targetimg.width = 72;
		}
		//addReflections();
	}
	
	// リスト表示
	
	function showListview() {
		showlistInterval = setInterval("showListviewanim()", 50);
		loadListData();
	}
	
	function loadListData() {
		//document.getElementById("tweets").innerHTML = "";
		winH = getBrowserHeight();
		winW = getBrowserWidth();
		tweets = document.getElementById('tweets');
		listview = document.getElementById('listview');
		cursor = document.getElementById('cursor');
		if (small_css) {
			loadsetting();
			rp = 50;
		} else {
			rp = 50;
		}
		if (keyword != "") {
			loadlistview("tweets",keyword,lang,rp);
		} else {
			loadlistview("tweets",trend,lang,rp);
		}
	}
	
	function reloadListData() {
		if (small_css) {
			loadsetting();
			rp = 50;
		} else {
			rp = 50;
		}
		if (keyword != "") {
			loadlistview("tweets",keyword,lang,rp);
		} else {
			loadlistview("tweets",trend,lang,rp);
		}
	}
	
	function loadlistDone() {
		if (small_css) {
			cursor.style.padding = (winH/2-30)+'px 0px 0px';
			hideAdBarTime = setTimeout("hideAdBar()", 200);
			if (device == "i") {
				setCursorTimer = setInterval("setCursorPos()", 100);
			}
		} else {
			listview.scrollTop = 0;
		}
	}
	
	function setCursorPos() {
		cursor.style.padding = (winH/2-30 + window.scrollY)+'px 0px 0px';
	}
	
	function showListviewanim() {
		var endR = 0;
		if (settingR < (endR - 10)) {
			settingR = settingR - (settingR - endR)*0.4;
		} else {
			settingR = endR;
			clearInterval(showlistInterval);
			listviewmode = true;
			doResize();
		}
		listview.style.right = settingR+'px';
	}
	
	function hideListview() {
		if (small_css) {
			if (device == "i") {
				clearInterval(setCursorTimer);
			}
			document.location = "watch.php";
		} else {
			hideListInterval = setInterval("hideListviewanim()", 50);
			settingR = 0;
		}
	}
	
	function hideListviewanim() {
		var endR = -480;
		if (settingR > (endR + 10)) {
			settingR = settingR - (settingR - endR)*0.4;
		} else {
			settingR = endR;
			clearInterval(hideListInterval);
			listviewmode = false;
			doResize();
		}
		listview.style.right = settingR+'px';
	}
	
	
	
	// セッティング
	
	function showsetting() {
		showsetInterval = setInterval("showsettinganim()", 50);
	}
	
	function showsettinganim() {
		var endR = 0;
		if (settingR < (endR - 10)) {
			settingR = settingR - (settingR - endR)*0.4;
		} else {
			settingR = endR;
			clearInterval(showsetInterval);
			listviewmode = true;
			doResize();
			changeSerchInterval = setInterval("changeSerchWord()", 1000);
		}
		setting.style.right = settingR+'px';
	}
	
	function setSCursorPos() {
		cursor_s.style.padding = (winH/2-30 + window.scrollY)+'px 0px 0px';
	}
	
	function hidesetting() {
		savesetting();
		clearInterval(changeSerchInterval);
		if (small_css) {
			if (device == "i") {
				clearInterval(setScursorTimer);
			}
			document.location = "watch.php";
		} else {
			hidesetInterval = setInterval("hidesettinganim()", 50);
			settingR = 0;
		}
	}
	
	function hidesettinganim() {
		var endR = -480;
		if (settingR > (endR + 10)) {
			settingR = settingR - (settingR - endR)*0.4;
		} else {
			settingR = endR;
			listviewmode = false;
			doResize();
			clearInterval(hidesetInterval);
		}
		setting.style.right = settingR+'px';
	}
	
	// セッティングデータ
	
	function loadsetting() {
		mySettingStr = myGetCookie("n_watch_setting");
		if (mySettingStr == null) {
			mySettingStr = "";
			mySettingStr += "{";
			mySettingStr += "serchWord_1:'',";
			mySettingStr += "serchWord_2:'',";
			mySettingStr += "serchWord_3:'',";
			mySettingStr += "serchWord_4:'',";
			mySettingStr += "serchWord_5:'',";
			mySettingStr += "selectColor:0,";
			mySettingStr += "selectStyle:'bold',";
			mySettingStr += "selectWait:3";
			mySettingStr += "}";
		}
		mySetting = eval("("+mySettingStr+")");
		mySettingStr_s = myGetCookie("n_watch_setting_s");
		if (mySettingStr_s == null) {
			mySettingStr_s = mySettingStr;
		}
		mySetting_s = eval("("+mySettingStr_s+")");
		atachSetting();
	}
	
	function resetsetting() {
		mySetting_s = eval("("+mySettingStr+")");
		atachSetting();
	}
	
	function atachSetting() {
		if (setting != null) {
			document.serch.serchword_1.value = mySetting_s.serchWord_1;
			document.serch.serchword_2.value = mySetting_s.serchWord_2;
			document.serch.serchword_3.value = mySetting_s.serchWord_3;
			document.serch.serchword_4.value = mySetting_s.serchWord_4;
			document.serch.serchword_5.value = mySetting_s.serchWord_5;
		}
		changeSerchWord();
		changeColor(mySetting_s.selectColor);
		changeStyle(mySetting_s.selectStyle);
		changeWait(mySetting_s.selectWait);
	}
	
function savesetting() {
		var mySettingStr = "";
		mySettingStr += "{";
		mySettingStr += "serchWord_1:'"+mySetting_s.serchWord_1+"',";
		mySettingStr += "serchWord_2:'"+mySetting_s.serchWord_2+"',";
		mySettingStr += "serchWord_3:'"+mySetting_s.serchWord_3+"',";
		mySettingStr += "serchWord_4:'"+mySetting_s.serchWord_4+"',";
		mySettingStr += "serchWord_5:'"+mySetting_s.serchWord_5+"',";
		mySettingStr += "selectColor:"+mySetting_s.selectColor+",";
		mySettingStr += "selectStyle:'"+mySetting_s.selectStyle+"',";
		mySettingStr += "selectWait:"+mySetting_s.selectWait+"";
		mySettingStr += "}";
		mySetCookie("n_watch_setting_s",mySettingStr,0)
		if (document.pw.save_pw.value=="nyau222") {
			mySetCookie("n_watch_setting",mySettingStr,365)
		}
	}
	
	// 検索語句
	
	function changeSerchWord() {
		newkeyword = "";
		if (setting != null) {
			mySetting_s.serchWord_1 = document.serch.serchword_1.value;
			mySetting_s.serchWord_2 = document.serch.serchword_2.value;
			mySetting_s.serchWord_3 = document.serch.serchword_3.value;
			mySetting_s.serchWord_4 = document.serch.serchword_4.value;
			mySetting_s.serchWord_5 = document.serch.serchword_5.value;
			if (mySetting_s.serchWord_1!="") {
				document.serch.serchword_1.style.backgroundColor = '#FFFFFF';
			} else {
				document.serch.serchword_1.style.backgroundColor = '#EBEBEB';
			}
			if (mySetting_s.serchWord_2!="") {
				document.serch.serchword_2.style.backgroundColor = '#FFFFFF';
			} else {
				document.serch.serchword_2.style.backgroundColor = '#EBEBEB';
			}
			if (mySetting_s.serchWord_3!="") {
				document.serch.serchword_3.style.backgroundColor = '#FFFFFF';
			} else {
				document.serch.serchword_3.style.backgroundColor = '#EBEBEB';
			}
			if (mySetting_s.serchWord_4!="") {
				document.serch.serchword_4.style.backgroundColor = '#FFFFFF';
			} else {
				document.serch.serchword_4.style.backgroundColor = '#EBEBEB';
			}
			if (mySetting_s.serchWord_5!="") {
				document.serch.serchword_5.style.backgroundColor = '#FFFFFF';
			} else {
				document.serch.serchword_5.style.backgroundColor = '#EBEBEB';
			}
			if (document.pw.save_pw.value!="") {
				document.pw.save_pw.style.backgroundColor = '#FFFFFF';
			} else {
				document.pw.save_pw.style.backgroundColor = '#EBEBEB';
			}
		}
		if (mySetting_s.serchWord_1!="") {
			newkeyword = mySetting_s.serchWord_1;
		}
		if (mySetting_s.serchWord_2!="") {
			newkeyword = newkeyword + " OR " +mySetting_s.serchWord_2;
		}
		if (mySetting_s.serchWord_3!="") {
			newkeyword = newkeyword + " OR " +mySetting_s.serchWord_3;
		}
		if (mySetting_s.serchWord_4!="") {
			newkeyword = newkeyword + " OR " +mySetting_s.serchWord_4;
		}
		if (mySetting_s.serchWord_5!="") {
			newkeyword = newkeyword + " OR " +mySetting_s.serchWord_5;
		}
		if (encodeURIComponent(newkeyword) != keyword) {
			keyword = encodeURIComponent(newkeyword);
		}
	}
	
	// カラー変更
	
	function changeColor(colorNo) {
		selectColor = colorNo;
		for (c=1;c<=5;c++) {
			colorBtn =  document.getElementById('color_'+c);
			if (colorBtn != null) {
				//colorBtn.style.backgroundColor = settingtBgColor;
				if (small_css) {
					colorBtn.style.backgroundImage = 'url(img/color_'+c+'_s.png)';
				} else {
					colorBtn.style.backgroundImage = 'url(img/color_'+c+'.png)';
				}
			}
		}
		if (container != null) {
			container.style.backgroundColor = colorlist[selectColor][0];
			container.style.color = colorlist[selectColor][1];
			var a=target.getElementsByTagName("A");
			for(i=0;i<a.length;i++){a[i].style.color=colorlist[selectColor][1];}
		}
		mySetting_s.selectColor = selectColor;
		colorBtn =  document.getElementById('color_'+(selectColor+1));
		if (colorBtn != null) {
			//colorBtn.style.backgroundColor = btnHilite;
				if (small_css) {
					colorBtn.style.backgroundImage = 'url(img/color_'+(selectColor+1)+'_s_on.png)';
				} else {
					colorBtn.style.backgroundImage = 'url(img/color_'+(selectColor+1)+'_on.png)';
				}
		}
	}
	
	// 文字スタイル変更
	
	function changeStyle(fs) {
		fStyle = fs
		var userfld = document.getElementById('user');
		var msgfld = document.getElementById('msg');
		if (userfld != null) {
			//userfld.style.fontWeight = fStyle;
			msgfld.style.fontWeight = fStyle;
		}
		mySetting_s.selectStyle = fStyle;
		style_bold = document.getElementById('style_bold');
		style_normal = document.getElementById('style_normal');
		if (style_bold != null) {
			if (fStyle == 'bold') {
				//style_bold.style.backgroundColor = btnHilite;
				//style_normal.style.backgroundColor = settingtBgColor;
				if (small_css) {
					style_bold.style.backgroundImage = 'url(img/weight_bold_s_on.png)';
					style_normal.style.backgroundImage = 'url(img/weight_normal_s.png)';
				} else {
					style_bold.style.backgroundImage = 'url(img/weight_bold_on.png)';
					style_normal.style.backgroundImage = 'url(img/weight_normal.png)';
				}
			} else {
				if (small_css) {
					style_bold.style.backgroundImage = 'url(img/weight_bold_s.png)';
					style_normal.style.backgroundImage = 'url(img/weight_normal_s_on.png)';
				} else {
					style_bold.style.backgroundImage = 'url(img/weight_bold.png)';
					style_normal.style.backgroundImage = 'url(img/weight_normal_on.png)';
				}
			}
		}
	}
	
	// 表示間隔変更
	
	function changeWait(ws) {
		wait_3 = document.getElementById('wait_3');
		wait_5 = document.getElementById('wait_5');
		wait_8 = document.getElementById('wait_8');
		wait = ws*1000;
		clearTimeout(loadInterval);
		loadstart(1);
		loadInterval = setTimeout("loadstart(0)", wait);
		mySetting_s.selectWait = ws;
		if (wait_3 != null) {
			if (ws == 3) {
				//wait_3.style.backgroundColor = btnHilite;
				//wait_5.style.backgroundColor = settingtBgColor;
				//wait_8.style.backgroundColor = settingtBgColor;
				if (small_css) {
					wait_3.style.backgroundImage = 'url(img/wait_3_s_on.png)';
					wait_5.style.backgroundImage = 'url(img/wait_5_s.png)';
					wait_8.style.backgroundImage = 'url(img/wait_8_s.png)';
				} else {
					wait_3.style.backgroundImage = 'url(img/wait_3_on.png)';
					wait_5.style.backgroundImage = 'url(img/wait_5.png)';
					wait_8.style.backgroundImage = 'url(img/wait_8.png)';
				}
			} else if (ws == 5) {
				if (small_css) {
					wait_3.style.backgroundImage = 'url(img/wait_3_s.png)';
					wait_5.style.backgroundImage = 'url(img/wait_5_s_on.png)';
					wait_8.style.backgroundImage = 'url(img/wait_8_s.png)';
				} else {
					wait_3.style.backgroundImage = 'url(img/wait_3.png)';
					wait_5.style.backgroundImage = 'url(img/wait_5_on.png)';
					wait_8.style.backgroundImage = 'url(img/wait_8.png)';
				}
			} else {
				if (small_css) {
					wait_3.style.backgroundImage = 'url(img/wait_3_s.png)';
					wait_5.style.backgroundImage = 'url(img/wait_5_s.png)';
					wait_8.style.backgroundImage = 'url(img/wait_8_s_on.png)';
				} else {
					wait_3.style.backgroundImage = 'url(img/wait_3.png)';
					wait_5.style.backgroundImage = 'url(img/wait_5.png)';
					wait_8.style.backgroundImage = 'url(img/wait_8_on.png)';
				}
			}
		}
	}
	
	// パスワード取得メーラ起動
	function getpwMail() {
		document.location.href='mailto:mrspass@actaplanning.net?subject=[nowwatch] passward-request';
	}
	
	// ブラウザサイズ取得
	
	function getBrowserWidth() {
		if ( window.innerWidth ) {
			return window.innerWidth;
		}
		else if ( document.documentElement && document.documentElement.clientWidth != 0 ) {
			return document.documentElement.clientWidth;
		}
		else if ( document.body ) {
			return document.body.clientWidth;
		}
		return 0;
	}
	function getBrowserHeight() {
		if ( window.innerHeight ) {
			return window.innerHeight;
		}
		else if ( document.documentElement && document.documentElement.clientHeight != 0 ) {
			return document.documentElement.clientHeight;
		}
		else if ( document.body ) {
			return document.body.clientHeight;
		}
		return 0;
	}
	winH = getBrowserHeight();
	winW = getBrowserWidth();
	small_css = (winW <= 760);
	
	/*        クッキーに登録する汎用関数              */
	/* 書式 : mySetCookie(クッキー名,値,有効期限日数) */
	/* 戻り値 : なし(void)                            */
	function mySetCookie(myCookie,myValue,myDay){
		 myExp = new Date();
		 myExp.setTime(myExp.getTime()+(myDay*24*60*60*1000));
		 myItem = "@" + myCookie + "=" + escape(myValue) + ";";
		 myExpires = "expires="+myExp.toGMTString();
		 if (myDay>0) {
		 	 document.cookie =  myItem + myExpires;
		 } else {
			 document.cookie =  myItem;
		 }
	}
	
	/*        クッキーを取り込む汎用関数              */
	/* 書式 : myGetCookie(クッキー名)                 */
	/* 戻り値 : 値(string)  null:該当なし             */
	function myGetCookie(myCookie){
		 myCookie = "@" + myCookie + "=";
		 myValue = null;
		 myStr = document.cookie + ";" ;
		 myOfst = myStr.indexOf(myCookie);
		 if (myOfst != -1){
				myStart = myOfst + myCookie.length;
				myEnd   = myStr.indexOf(";" , myStart);
				myValue = unescape(myStr.substring(myStart,myEnd));
		 }
		 return myValue;
	}
