﻿
function expander(div,img) {
	var ctl=glacier.$(div),i=glacier.$(img);
	var dis=ctl.style.display;
	ctl.style.display=dis=='none'?'':'none';
	var s=dis=='none'?'title_search_logo_open':'title_search_logo_close';
	var r=dis=='none'?'title_search_logo_close':'title_search_logo_open';
	var src=i.src.toLowerCase();
	i.src=src.replace(s,r);
	//TODO: 添加Cookie记录。
}
var ctl00_tags_menuItems=new TabMenu();
function loadTabMenu(){
	ctl00_tags_menuItems.listNodes=$("#ctl00_tags li");
	ctl00_tags_menuItems.loadItems();
	//resizeTabMenu();
}
//function resizeTabMenu() {
//	if($.browser.msie){
//		var nav = glacier.$('navigator');
//		nav.style.width=$(window).width()+'px';
//		nav.style.overflow='hidden';
//	}
//	ctl00_tags_menuItems.resizeRefresh();
//}
function tabSlider(pos){
	ctl00_tags_menuItems.slide(pos);
}

/**
  * p: 容器的根节点。
  */
function TabMenu() {
	this.listNodes=[];
	this.items = [];
	this.slideIndex = -1;
	this.curNodeIndex=-1;
	this.count = 0;
	this.width=0;
	this.top=0;
	this.currentItem=null;
	this._lastestItem=null;
	this._firstItemIndex=0;
	
	this.loadItems=function(){
		this.top = $(this.listNodes[0]).offset().top;
		this.count=this.listNodes.length;
		this._lastestItem=this.listNodes[this.count-1];
		for(i=0;i<this.count;i++){
			if($(this.listNodes[i]).attr("currentNode")){
				this.currentItem=this.listNodes[i];
				this.curNodeIndex=i;
			}
		}
	};
	
	this.resizeRefresh=function(){
		for(var i=0;i<this.count;i++){
			var _top=$(this.currentItem).offset().top;
			if(_top>this.top){
				$(this.listNodes[i]).css("display","none");
				this._firstItemIndex++;
			}
		}
	};
	
	// 滑动tag，pos为true向左，false向右。
	this.slide=function(pos) {
		if((pos&&this._firstItemIndex==0)||(!pos&&$(this._lastestItem).offset().top==this.top))
			return;
		var idx=this._firstItemIndex;
		if(pos){
			idx--;
			if(idx < 0) idx=0;
			this.listNodes[idx].style.display="";
		}
		else{
			if(idx > this.count-1) idx=this.count-1;
			this.listNodes[idx].style.display="none";
			idx++;
		}
		this._firstItemIndex = idx;
	};
	
}

function tabMenuItem(id,img) {
	this.id=id;
	this.img = img;
}

function setCookie(name,val){
	document.cookie=name+"="+escape(val);
}
function getCookie(name){
	var arr = document.cookie.match(new RegExp("(^|)"+name+"=([^;]*)(;|$)"));
    if(arr != null)
		return unescape(arr[2]);
	return null;
}
function delCookie(name) {
	var exp=new Date();
	exp.setTime(exp.getTime()-1);
    var cval=getCookie(name);
    if(cval!=null)
		document.cookie=name+"= "+cval+";expires= "+exp.toGMTString();
} 
/**
* 验证方法 開始
**/
// 验证remarks字符长度
function ValidatorTextMultiLine(source, arguments){
	arguments.IsValid=(arguments.Value.length<500);
}
// 验证下拉框是否已經選擇
function ValidatorDropDownList(source, arguments){
	arguments.IsValid=!(arguments.Value==-1);
}
// 验证金钱格式
function CheckMoney(str) {
	var RegExp=/^(0|[1-9]\d*)(\.\d{1,2})?$/; 
	return (RegExp.test(str));
} 
// 验证日期
function CheckData(str){ 
	var reg = /^((\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\s(((0?[1-9])|(1[0-2]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])\s))([AM|PM|am|pm]{2,2})))?$/;
	return (reg.test(str));
}

//验证ip地址
function CheckIP(str){
	var reg = /^([1-9]|[1-9]\d|1\d{2}|2[0-1]\d|22[0-3])(\.(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])){3}$/;
	return (reg.test(str));
}

//验证上午时间
function CheckAMDatetime(str) {
	var reg =/^(\d|0\d|1[0-1])(|(\:(\d|[0-5]\d)))$/;
	return (reg.test(str));
}

//验证下午时间
function CheckPMDatetime(str) {
	var reg =/^(1[2-9]|2[0-3])(|(\:(\d|[0-5]\d)))$/;
 	return (reg.test(str));
}

//獲取radiolis的value
function  GetRadListItemValue(id){
	var dptypevalue;
	var radListItems=glacier.$(id).childNodes;
    if(radListItems==null){
        alert("相关对象对空");
        return false;
    }
    for(var i=0;i<radListItems.length;i++){
		var tagname = radListItems[i].tagName;
		if(tagname=="INPUT") {
			if(radListItems[i].checked) {
				dptypevalue = radListItems[i].value;
				return dptypevalue;
			}
		}
	}		
}
//radiolis的itemchecked
function SetRadListchecked(id,value){
	var radListItems=glacier.$(id).childNodes;
    if(radListItems==null) {
		alert("相关对象对空");
        return false;
    }
    for(var i=0;i<radListItems.length;i++){
		var tagname=radListItems[i].tagName;
		if(tagname=="INPUT"){
			if(radListItems[i].value==value){
				radListItems[i].checked =true;
			}
		}
	}
}
//日期的比较
function CompareDate(strDateStart, strDateEnd){
	if(strDateStart.length < 8)
		return true;
	var strSeparator="-";   //日期分隔符  
	var strDateArrayStart;
	var strDateArrayEnd;
	var intDay;
	strDateArrayStart= strDateStart.split(strSeparator);
	strDateArrayEnd  = strDateEnd.split(strSeparator);
	var strDateS = new Date(strDateArrayStart[0]+"/"+strDateArrayStart[1]+"/"+strDateArrayStart[2]);
	var strDateE = new Date(strDateArrayEnd[0]+"/"+strDateArrayEnd[1]+"/"+strDateArrayEnd[2]);
	intDay=(strDateS-strDateE)/(1000*3600*24);
	var c=(intDay <= 0);
	return c;
}
//search区域日期的验证

/**
* 验证方法 結束
**/
//閉合小區域
function collage(id,s,chgClass){
	var ctl=$("#"+id);
	var dis=ctl.css("display");
	dis=='none'?ctl.show():ctl.hide();
	if(chgClass)
	s.className=(dis=='none')?'ct_o':'ct_c';
}
function OnmouseOver_Cell(s,color)
{
}
function OnmouseOut_Cell(s,color)
{
}

function fixedIEXXX() {
	if($.browser.msie){
		var w=$("#content_wrapper");
		var c=$("#content");
		if(w.height()>c.height()){
			$("#content_wrapper").css({width:c.width()-22});
		}
	}
}

$(window).resize(function(){
	fixedIEXXX();
	//resizeTabMenu();
});

//$(document).ready(fixedIEXXX);
// page onload handler
$(document).ready(function(){
	// jQuery支持类似css的元素选取
	initBox('a.thickbox,input.thickbox');
	// 预加载loading图片
	imgLoader = new Image();// preload image
	imgLoader.src = dialog_image_load;
	fixedIEXXX();
	loadTabMenu();
});

// 初始化box
function initBox(domChunk){
	$(domChunk).click(function(){
		// 获取配置选项
		var optionStr = $(this).attr("option");
		if(typeof optionStr !== 'undefined') {
			var opt = applyStyle(optionStr, ',');
			showBox(opt);
			this.blur();
			return false;
		}
	});
}

/**** <summary>
	* showBox 的参数说明;
	* </summary>
	* <param>
	*	option: 配置选项；
	*	caption: 标题；
	*	fullScreen:是否全屏，如果为true，将会忽略width和height；
	*	width: box的宽；
	*	height: box的高；
	*	content : 直接指定包含在box中的内容；指定此内容后将使inline、iframe的值失效，所以不能同时指定content和inline或iframe；
	*	inline: 指示是否是使用内联文档模式；
	*	inlineID: 使用内联文档模式时必须指定节点ID；
	*	modal: 为true时必须点击关闭按钮关闭box，否则点击背景屏蔽层或按Esc键即可关闭box；
	*	iframe: 指示是否是iframe模式。如果同时指定了inline和iframe，则inline模式优先于iframe模式，iframe将会被忽略；
	*	iframeUrl: iframe模式时必须指定指向的url；
	*	ajaxUrl: 使用ajax方式請求的页面；
	*	showTitle: 是否显示标题；
	*	showClose: 是否显示关闭按钮；
	* </param>
	* 可以用以下方式直接创建一个ShowBox对象。
	* <example>
	*	<code>
	*		function ShowMyBox(){
	*			var option = {title:"",width:200};
	*			showBox(option);
	*		}
	*		<a href="#" onclick="ShowMyBox();">text</a>
	*	</code>
	* </example>
	*/
function showBox(option) {
	this.opt = option || {};
	this.caption = this.opt.title || '';
	this.width = parseInt(this.opt.width) || 600;
	this.height = parseInt(this.opt.height) || 400;
	this.innerContent = this.opt.content || "";
	this.postBackEnabled = this.opt.postBack || this.opt.postBack=='true'?true:false;
	this.inlineID = this.opt.inlineID || "";
	this.inline = this.opt.inline || this.opt.inline=='true'?true:false || (this.inlineID.length>0) || (this.innerContent.length>0) || false;
	this.iframeUrl = this.opt.iframeUrl || '';
	this.iframe = (this.opt.iframe || this.opt.iframe=='true'?true:((this.iframeUrl && this.iframeUrl.length>0)?true:false) && (this.innerContent.length==0));
	this.ajaxUrl = this.opt.ajaxUrl || '';
	this.modal = this.opt.modal || this.opt.modal=='true'?true:false;
	this.fullScreen = this.opt.fullScreen || this.opt.fullScreen=='true'?true:false;
	this.showTitle = (this.opt.showTitle==false || this.opt.showTitle=='false')?false:true;
	this.showClose = (this.opt.showClose==false || this.opt.showClose=='false')?false:true;
	
	try {
		BOX_WIDTH = this.width+30;
		BOX_HEIGHT = this.height+40;
		if(this.fullScreen){
			var pageSize = box_getPageSize();
			BOX_WIDTH = pageSize.width;
			BOX_HEIGHT = pageSize.height;
		}
		ajaxContentW = BOX_WIDTH - 30;
		ajaxContentH = BOX_HEIGHT - 45;
		
		if(this.postBackEnabled){
			var inline_ctl_id = this.inlineID;
			static_inline_id = inline_ctl_id;
			var content = $('#' + inline_ctl_id);
			var pageSize = box_getPageSize();
			var left=parseInt((pageSize.width/2-BOX_WIDTH/2),10);
			var top =parseInt((pageSize.height/2-BOX_HEIGHT/2),10);
			//$("#box_overlay").css({'z-index':90});
			var title='<div id="box_titlewrapper"><div id="box_title">'+this.caption+'</div>';
			if(this.showClose) {
				title+='<div id="box_title_close"><a href="#" id="box_closeWindowButton" title="Close">close</a></div>';
			}
			title += '</div>';
			var overlay='';
			if (typeof document.body.style.maxHeight === "undefined") {// if IE<=6.0
				$("body","html").css({height: "100%", width: "100%"});
				$("html").css("overflow","hidden");
				if (document.getElementById("box_hideSelect") === null) // 在ie6及以下版本中创建一个iframe和div，用于屏蔽背景和select等
					overlay += '<iframe id="box_hideSelect"></iframe>';
			}
			overlay += '<div id="box_overlay" class="box_overlayBG"></div>';
			if(!this.modal)
				$("#box_overlay").click(box_hidden);
			if(detectMacXFF()){
				$("#box_overlay").addClass("box_overlayMacFFBGHack");//use png overlay so hide flash
			}
			if(imgLoader && imgLoader.src) {
				overlay+='<div id="box_loader"><img src="'+imgLoader.src+'" /></div>';
			}
			$("body").append(overlay);
			$('#box_loader').show();//show loader
			
			content.before(title);
			$("#box_titlewrapper").css({'z-index':'103',position:'absolute',width:(BOX_WIDTH-8) +"px",left:left+'px',top:(top-25)+'px'});
			$("#box_loader").remove();
			content.css({'z-index':'103',background:'#fff',position:'absolute',display:'',visibility:'visible',border:'#e8e8e8 1px solid',padding:'5px 10px',width:ajaxContentW +"px",height:ajaxContentH +"px",left: left + 'px', top: top + 'px'});
			if(this.showClose){
				 $("#box_title_close,#box_closeWindowButton").click(function(){
					content.css({display:'none',visibility:'hidden'});
					$("#box_titlewrapper").css({display:'none'});
				});
			}
		}
		else{
			// 创建一个背景屏蔽层
			if (typeof document.body.style.maxHeight === "undefined") {// if IE<=6.0
				$("body","html").css({height: "100%", width: "100%"});
				$("html").css("overflow","hidden");
				if (document.getElementById("box_hideSelect") === null) // 在ie6及以下版本中创建一个iframe和div，用于屏蔽背景和select等
					$("body").append("<iframe id='box_hideSelect'></iframe>");
			}
			if(document.getElementById("box_overlay") === null){
				$("body").append("<div id='box_overlay'></div><div id='box_wrapper'></div>");
				if(!this.modal)
					$("#box_overlay").click(box_hidden);
			}
			if(detectMacXFF()){
				$("#box_overlay").addClass("box_overlayMacFFBGHack");//use png overlay so hide flash
			}
			else{
				$("#box_overlay").addClass("box_overlayBG");//use background and opacity
			}
			if(imgLoader && imgLoader.src) {
				$("body").append("<div id='box_loader'><img src='"+imgLoader.src+"' /></div>");
				$('#box_loader').show();//show loader
			}
			
			if(this.inline){// 是否是iframe 或ajax窗口
				if($("#box_wrapper").css("display") != "block"){
					if(this.showTitle){
						$("#box_wrapper").append("<div id='box_titlewrapper'><div id='box_title'>"+this.caption+"</div><div id='box_title_close'><a href='#' id='box_closeWindowButton' title='Close'>close</a></div></div>");
						if(!this.showClose) {
							$("#box_title_close").remove();
						}
					}
					$("#box_wrapper").append("<div id='box_ajaxContent' class='box_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");	
				}
				else {//this means the window is already up, we are just loading new content via ajax
					$("#box_ajaxContent")[0].style.width = ajaxContentW +"px";
					$("#box_ajaxContent")[0].style.height = ajaxContentH +"px";
					$("#box_ajaxContent")[0].scrollTop = 0;
					$("#box_title").html(this.caption);
				}
			}
			else if(this.iframe){
				$("#box_iframeContent").remove();
				if(this.showTitle){
					$("#box_wrapper").append("<div id='box_titlewrapper'><div id='box_title'>"+this.caption+"</div><div id='box_title_close'><a href='#' id='box_closeWindowButton' title='Close'>close</a></div></div>");
					if(!this.showClose) {
						$("#box_title_close").remove();
					}
				}
				$("#box_wrapper").append("<iframe frameborder='0' hspace='0' src='"+this.iframeUrl+"' id='box_iframeContent' name='box_iframeContent"+Math.round(Math.random()*1000)+"' onload='box_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'></iframe>");
			}
			
			if(this.showClose){ $("#box_title_close,#box_closeWindowButton").click(box_hidden); }
			if(this.inline){
				// IE下会出现横向滚动条
				if(jQuery.browser.msie){
					$("#box_ajaxContent").append("<div id='box_contentWrap' style='width:"+(ajaxContentW-25)+"px;'></div>");
					if(this.innerContent.length>0) {
						$("#box_contentWrap").append(this.innerContent);
					}
					else {
						var inline_ctl_id = this.inlineID;
						$("#box_contentWrap").append($('#' + inline_ctl_id).children());
						$("#box_wrapper").unload(function () {$('#'+inline_ctl_id).append($("#box_contentWrap").children());});
					}
				}
				else {
					if(this.innerContent.length>0) {
						$("#box_ajaxContent").append(this.innerContent);
					}
					else {
						var inline_ctl_id = this.inlineID;
						$("#box_ajaxContent").append($('#' + inline_ctl_id).children());
						$("#box_wrapper").unload(function () {$('#'+inline_ctl_id).append( $("#box_ajaxContent").children());});
					}
				}
				box_position();
				$("#box_loader").remove();
				$("#box_wrapper").css({display:"block"});
			}
			else if(this.iframe){
				box_position();
				if($.browser.safari){//safari needs help because it will not fire iframe onload
					$("#box_loader").remove();
					$("#box_wrapper").css({display:"block"});
				}
			}
			else if(this.ajaxUrl.length>0){
				$("#box_ajaxContent").load(this.ajaxUrl += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
					box_position();
					$("#box_loader").remove();
					initBox("#box_ajaxContent a.thickbox");
					$("#box_wrapper").css({display:"block"});
				});
			}
		}
		if(!this.modal){
			document.onkeyup = function(e){
				if (e == null) { // ie
					keycode = event.keyCode;
				}
				else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					box_hidden();
				}
			};
		}
	}
	catch(e) {
		//nothing here
	}
}

function applyStyle(style, separator){
	this.sep = separator || ',';
	var sty = {};
  if(style && typeof style == 'string'){
		var styles = style.split(this.sep);
		for(var i=0;i<styles.length;i++){
			var obj = styles[i].split(":");
			sty[obj[0]] = obj[1];
		}
	}
	return sty;
};

function box_showIframe(){
	$("#box_loader").remove();
	$("#box_wrapper").css({display:"block"});
}
var static_inline_id;
function box_hidden() {
	$("#box_closeWindowButton").unbind("click");
	$("#box_wrapper").fadeOut("fast",function(){$('#box_wrapper,#box_overlay,#box_hideSelect').trigger("unload").unbind().remove();});
	$("#box_loader").remove();
	document.onkeydown = "";
	document.onkeyup = "";
	if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
		// 以下代码会导致IE崩溃。
		// $("body","html").css({height: "auto", width: "auto"});
		$("html").css("overflow","");
	}
	if(typeof(static_inline_id) != 'undefined'){
		$("#"+static_inline_id).css({display:'none',visibility:'hidden'});
		$("#box_titlewrapper").css({display:'none'});
		static_inline_id = null;
	}
	return false;
}

function box_position() {
$("#box_wrapper").css({marginLeft: '-' + parseInt((BOX_WIDTH / 2),10) + 'px', width: BOX_WIDTH + 'px'});
	if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
		$("#box_wrapper").css({marginTop: '-' + parseInt((BOX_HEIGHT / 2),10) + 'px'});
	}
}

function box_getPageSize(){
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	return {width:w, height:h};
}

/*  判断是否是mac平台上的Firefox  */
function detectMacXFF() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
    return true;
  }
}

/* 彈出層中列表項的選擇效果 開始 */
var curPopTRClassName;
function popmOver(obj){
	curPopTRClassName = obj.className;
	obj.className = obj.className + " popSelectItem";
}
function popmOut(obj){
	obj.className = curPopTRClassName;
}
/* 彈出層中列表項的選擇效果 結束 */


// 格式化貨幣
function FormatMoney(money){
	// 要轉換為字符串型的
	var expense = String(money);
	if(expense.length > 0 && expense.indexOf(",") < 0){
		var expenseInt = expense.split(".")[0];
		var expenseLength = expenseInt.length;
		var newExpense = "";
		for(var nn=expenseLength;nn>0;nn--){
			if(nn%3 == 0 && nn < expenseLength){
				newExpense = newExpense + ",";
			}
			newExpense = newExpense + expenseInt.substring((expenseLength-nn),(expenseLength-nn)+1);
		}
		//expense.indexOf(".") >= 0?expense = newExpense + "." + expense.split(".")[1]:expense = newExpense + ".00";
		if(expense.indexOf(".") >= 0)
		{
			var fixedValue = expense.split(".")[1];
			switch(fixedValue.length)
			{
				case 0:
					fixedValue = "00";
					break;
				case 1:
					fixedValue = fixedValue + "0";
					break;
				case 2:
					break;
				default:
					fixedValue = fixedValue.substring(0,2);
					break;
			}
			expense = newExpense + "." + fixedValue;
		}
		else
		{
			expense = newExpense + ".00";
		}
	}
	return expense;
}

// 將str 中的 oldChar 替換為 newChar
function ReplaceString(str, oldChar, newChar)
{
	var newStr = "";
	var arr = str.split(oldChar);
	for(var nn=0;nn < arr.length - 1;nn++)
	{
		newStr += arr[nn] + newChar;
	}
	if(arr.length == 0)
		newStr = str;
		
	return newStr;
}

/* 查找页面中的字符串 开始 */
function QuickSearchKeyword()
{
	$("#dv_CtrlF").show();
	$("#txt_CtrlFTextBox").focus();
	$("#txt_CtrlFTextBox").val("");
	var width = $("#dv_CtrlF").width();
	var p = ($(window).width()-width)/2+"px";
	document.getElementById("dv_CtrlF").style.left = p;
}
function CtrlFSearch()
{
	if(window.navigator.userAgent.indexOf("Firefox")>=1)
		return;
	var k = $.trim($("#txt_CtrlFTextBox").val());
	if(k!=null && k!='')
		findPageString(k);
}
function CloseCtrlFWin()
{
	$("#dv_CtrlF").hide();
}
var TRange=null;
function findPageString (str) {
 if (parseInt(navigator.appVersion)<4) return;
 var strFound;
 if (navigator.appName=="Netscape") {

  // NAVIGATOR-SPECIFIC CODE

  strFound=self.find(str);
  if (!strFound) {
   strFound=self.find(str,0,1)
   while (self.find(str,0,1)) continue
  }
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {

  // EXPLORER-SPECIFIC CODE

  if (TRange!=null) {
   TRange.collapse(false)
   strFound=TRange.findText(str)
   if (strFound) TRange.select()
  }
  if (TRange==null || strFound==0) {
   TRange=self.document.body.createTextRange()
   strFound=TRange.findText(str)
   if (strFound) TRange.select()
  }
 }
 if (!strFound) alert ("String '"+str+"' not found!");
 $("#a_CtrlFbtn").focus();
}
/* 查找页面中的字符串 结束 */
/* 刪除彈出提示層 開始 */
function deleteConfirm(json)
{
	if(json)
	{
		$("[id$='hfdDeleteID']").val(json.delID);
		var option={title:"系統信息",width:"300px",height:"95px",inlineID:json.inlineID,modal:true};
		showBox(option);
		$("#divMessage").text("確認刪除 "+json.message+"?");
	}
}
/* 刪除彈出提示層 结束 */

/* Begin.導航 */
//設置導航數據，多個用逗號隔開
function SetNavigation(navTextArray)
{
	var obj = window.parent.document.getElementById("Navigation");
	obj.innerHTML = "";
	obj.style.color = "#333333";
	obj.style.fontFamily = "'Verdana'";
	var arr = navTextArray.split(",");
	for(i=0;i<arr.length;i++)
	{
		obj.innerHTML += (i == 0?"":" > ") + arr[i];
	}
}
/* End.導航 */
