function move(url) { 
	location.href = url; 
}

function open_win(url, w, h) {
	var win = window.open(url,'','resizable=no,scrollbars=no,status=0,width='+w+',height='+h);
	//win.window.focus(); 
}

//»õÃ¢¶ç¿ì±â 
function open_win1(url, w, h, scroll) { 
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var win = window.open(url,'','width='+w+',height='+h+',top=100,left=100,resizable=yes,scrollbars='+scroll); 
	//win.window.focus(); 
}

//»õÃ¢¶ç¿ì±â 
function open_win2(url, target, w, h, scroll) { 
	var win = window.open(url,target,'width='+w+',height='+h+',top=0,left=0,scrollbars='+scroll); 
	//win.window.focus(); 
}

function open_win3(url, w, h) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no'
	win = window.open(url, '', winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function no_back(url) {
	window.location.replace(url);
}

function urlEncode(val) {
	return escape(encodeURIComponent(val));
}

function enter(callback) {
	var code = window.event.keyCode;
	if(code==13){
		callback();
	}
}

function imgWidthResize(limitSize, obj) {
	var w = obj.width;
	var h = obj.height;
	if(w>limitSize){
		obj.width = limitSize;
		obj.height = h*(limitSize/w);
	}
}

function imgHightResize(limitSize, obj) {
	var w = obj.width;
	var h = obj.height;
	if(h>limitSize){
		obj.height = limitSize;
		obj.width = w*(limitSize/h);
	}
}

function rPad(val, len, char) {
	var temp = "";
	if(val.length<len){
		for(var i=0;i<len-val.length;i++){
			temp += char;
		}
	}
	
	return val+temp;
}

function lPad(val, len, char) {
	var temp = "";
	if(val.length<len){
		for(var i=0;i<len-val.length;i++){
			temp += char;
		}
	}
	return temp+val;
}

function replaceAll(str, searchStr, replaceStr) {
	return str.split(searchStr).join(replaceStr);
}


function removeHttpStr(input) {
	if(input.value.indexOf("http://") != - 1) {
		input.value = input.value.replace("http://", "");
	}
}

function numberFormat(number, decimals, dec_point, thousands_sep) { 
    var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals; 
    var d = dec_point == undefined ? "," : dec_point; 
    var t = thousands_sep == undefined ? "." : thousands_sep, s = n < 0 ? "-" : ""; 
    var i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", j = (j = i.length) > 3 ? j % 3 : 0; 
    
    return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ""); 
} 

function getAbsolutePageFullURL(sub) {
    var x = document.location.href;	
	var y = x.substr(0, x.indexOf("/",7)); // http:// ÀÌÈÄºÎÅÍ
    
    return y + sub;
}

// tab menu
function DisplayMenu(index) {
        for (i=1; i<=6; i++)
        if (index == i) {
        thisMenu = eval("menu" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("menu" + i + ".style"); 
        otherMenu.display = "none"; 
        }
 }

// layer view, hide 
function initViewChg(id, imgEl) {
	var id = document.getElementById(id);
	var imgEl = document.getElementById(imgEl);
	id.style.display = (id.style.display == 'block' ? 'none':'block'); 
	imgEl.src = imgEl.src.replace("_on.gif", "_off.gif");
	if (id.style.display == 'block') {
		imgEl.src = imgEl.src.replace("_off.gif", "_on.gif");
	}
}

// table tr list expand
var preNum;
var flag=1;
function changeLayer(sNum)
{
	if(sNum==preNum && flag==1){
		//alert('a');
		temp = eval("document.all."+sNum);
		if(temp){
			temp.style.display='none';
			flag=0;
		}
	}
	else if(sNum==preNum && flag==0){
		//alert('b');
		temp = eval("document.all."+sNum);
		if(temp){
			temp.style.display='';
			flag=1;
		}
	}
	else if(sNum!=preNum){
		//alert('c');
		temp = eval("document.all."+preNum);
		if(temp)
			temp.style.display='none';

		temp1 = eval("document.all."+sNum);
		if(temp1)
			temp1.style.display='';
		flag=1;


	}
	preNum=sNum;
}

// png
function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter =	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+obj.src+"',sizingMethod='image');"
	obj.src='';
	return '';
}

function getSwfString(path, width, height, flashvars, idname, saccess, wmode, fullscreen){

	// Initializes the flashvars parameter.
	if(flashvars == undefined){
		flashvars = "";
	}
	// Initializes the ID and name of the Flash object.
	if(idname == undefined){
		idname = "";
	}

	// Initializes the script access control.
	if(saccess != "never" && saccess != "always"){
		saccess = "sameDomain";
	}

	// Initializes the transparency.
	if(wmode != "transparent" && wmode != "opaque"){
		wmode = "transparent";
	}

	// Initializes the fullscreen access control.
	if(fullscreen==true || fullscreen=="true" || fullscreen==1 || fullscreen=="1" || fullscreen=="yes"){
		fullscreen = "true";
	}else{
		fullscreen = "false";
	}
	var str = '';
	str = '<object id="' + idname + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	str += 'width="' + width + '" height="' + height + '" wmode="' + wmode + '">';
  	str += '<param name="movie" value="' + path + '" />';
  	str += '<!-- The following object tag is for browsers other than IE. Hide this tag with IECC, in case of IE. -->';
  	str += '<!--[if !IE]>-->';
  	str += '<object name="' + idname + '" type="application/x-shockwave-flash"';
	str += ' data="' + path + '" width="' + width + '" height="' + height +'">';
    str += '<!--<![endif]-->';
	str += '<param name="FlashVars" value="' + flashvars + '" />';
    str += '<param name="quality" value="high" />';
	str += '<param name="allowFullscreen" value="' + fullscreen + '" />';
    str += '<param name="wmode" value="' + wmode + '" />';
	str += '<param name="allowScriptAccess" value="' + saccess + '" />';
    str += '<param name="swfversion" value="10.0.2.54" />';
    str += '<!--[if !IE]>-->';
  	str += '</object>';
  	str += '<!--<![endif]-->';
	str += '</object>';

	return str;

}

/**
 * Inserts a Flash object in the current position.
 *
 * @param path SWF Path of the Flash file.
 * @param width Width of the Flash object.
 * @param height Height of the Flash object.
 * @param flashvars FlalshVars parameter to be sent to the Flash object.
 * @param idname ID and name properties of the Flash object.
 * @param saccess Script access control.
 * @param wmode Tranparency setting.
 * @param fullscreen Fullscreen access control.
 */
function printSwf(path, width, height, flashvars, idname, saccess, wmode, fullscreen){

	var str = getSwfString(path, width, height, flashvars, idname, saccess, wmode, fullscreen);
	document.write(str);

}

/**
 * Inserts a Flash object in the specified DIV layer.
 *
 * @param layerid ID of the layer in which the Flash object inserted.
 * @param path SWF Path of the Flash file.
 * @param width Width of the Flash object.
 * @param height Height of the Flash object.
 * @param flashvars FlalshVars parameter to be sent to the Flash object.
 * @param idname ID and name properties of the Flash object.
 * @param saccess Script access control.
 * @param wmode Tranparency setting.
 * @param fullscreen Fullscreen access control.
 */
function printSwfLayer(layerid, path, width, height, flashvars, idname, saccess, wmode, fullscreen){

	var str = getSwfString(path, width, height, flashvars, idname, saccess, wmode, fullscreen);
	var theLayer = document.getElementById(layerid);
	theLayer.innerHTML = str;

}



/**
 * Inserts a Flash object after the specific time.
 *
 * @param delay Delayed time (Millisecond)
 * @param layerid ID of the layer in which the Flash object inserted.
 * @param path SWF Path of the Flash file.
 * @param width Width of the Flash object.
 * @param height Height of the Flash object.
 * @param flashvars FlalshVars parameter to be sent to the Flash object.
 * @param idname ID and name properties of the Flash object.
 * @param saccess Script access control.
 * @param wmode Tranparency setting.
 * @param fullscreen Fullscreen access control.
 */
function printSwfDelay(delay, layerid, path, width, height, flashvars, idname, saccess, wmode, fullscreen){

	var expression = "insertFlashObjectLayer(";
	expression += "'" + layerid + "'";
	expression += ", '" + path + "'";
	expression += ", '" + width + "'";
	expression += ", '" + height + "'";
	expression += ", '" + flashvars + "'";
	expression += ", '" + idname + "'";
	expression += ", '" + saccess + "'";
	expression += ", '" + wmode + "'";
	expression += ", '" + fullscreen + "'";
	expression += ");";

	setTimeout(expression, delay);

}
/********************************************************
    Codes for Inserting Flash Object
********************************************************/
//



function getPageId() {
//	var depth1 = "3";
//	var depth2 = "3";
//	var depth3 = "1";
	//return depth1 + "_" + depth2 + "_" + depth3 + "_" + depth4;
	return d1 + "_" + d2 + "_" + d3 + "_" + d4;
}


function getObj(swfId) {
	return document.getElementById(swfId);
}

function setFlashHeight( swfId , height ) {
	var swfObj = getObj(swfId);
	swfObj.height = height;
}

function setFlashWidth( swfId , width ) {
	var swfObj = getObj(swfId);
	swfObj.width = width;
}

function changeFlvUrl(swfId, url){
	var swfObj = getObj(swfId);
	swfObj.changeFlvUrl(url);
}


function openServiceSearch() {
	 var obj = getObj("fsearchs");
	 if( obj ) {
	 	obj.width = 957;
	 	obj.height = 870;
	 }
}



function closeServiceSearch() {
	var obj = getObj("fsearchs");
	 if( obj ) {
	 	obj.width = 1;
	 	obj.height = 1;
	 }
}

function flashLog(str) {
	var flashGNB = getObj("flashgnb");
	if(flashGNB) {
		flashGNB.flashLog("flashLog : " + str);
	}
}

function swfprint(furl,fwidth,fheight,transoption,fname)    {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" id="'+ fname +'" align="middle">');
    document.write('<param name="movie" value="'+ furl +'"/><param name="allowScriptAccess" value="always">');
    if (transoption == "t") {
        document.write('<param name="wmode" value="transparent"/>');
    } else if   (transoption == "o")    {
        document.write('<param name="wmode" value="opaque"/>');
    }
    document.write('<!-- Hixie method -->');
    document.write('<!--[if !IE]> <-->');
    document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'" id="'+ fname +'"');
    if (transoption == "t") {
        document.write(' wmode="transparent"');
    } else if   (transoption == "o")    {
        document.write(' wmode="opaque"');
    }
    document.write('></object>');
    document.write('<!--> <![endif]-->');
    document.write('</object>');
}

function trim(s) {
  s += '';
  return s.replace(/^\s*|\s*$/g, '');
}

//ÇÑ±ÛµîÀ» 2±ÛÀÚ·Î Ã³¸®ÇÏ´Â ¹®ÀÚ¿­±æÀÌ ±¸ÇÏ´Â ÇÔ¼ö
function strByteLength(str){
	totalByte = 0;
	if (str != null){
		if (str.length > 0){
			for (var i = 0; i < str.length; i++) {
				if (escape(str.charAt(i)).length > 4){
					 totalByte += 2;
				} else {
					 totalByte++;
				}
			}
		}
	}

	return totalByte;
}

//textArea ±ÛÀÚ¼ö Á¦ÇÑ(this, ÇÑ±Û[2byte]Á¦ÇÑ¼ö)
function checkStrLen(obj, maxlen){
	var temp;
	var msglen;
	var msglen = maxlen*2;
	var strValue = obj.value;

	var strLen = strValue.length;
	var tmpstr = "" ;

	if (strLen == 0){
		value = maxlen * 2;
	} else {
		for(var k=0; k < strLen; k++){
			temp = strValue.charAt(k);

			if (escape(temp).length > 4){
				msglen -= 2;
			} else {
				msglen--;
			}

			if(msglen < 0){
				alert("ÃÑ ¿µ¹® " + (maxlen*2) + " ÀÚ ¶Ç´Â ÇÑ±Û " + maxlen + " ÀÚ ±îÁö¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù");
				obj.value=tmpstr;
				break;
			} else {
				tmpstr += temp;
			}
		}
	}
}

fopen = 0;
function openfamily(){
	if(fopen == 0){
		$(".fodiv").animate({top:"-193px"},100);
		$('.fodiv').css("display","block");
		fopen = 1;
	}else{
		$(".fodiv").animate({top:"0"},100);
		$('.fodiv').css("display","none");
		fopen = 0;
	}
}
$(function() {
  $('#content').mouseover(function() {
		$(".fodiv").animate({top:"0"},100);
		$('.fodiv').css("display","none");
		fopen = 0;
  });
});

function print1(){
    var pDoc = document.body.innerHTML;
    if(pDoc)
    {

      var pDoc_start = pDoc.indexOf("s : content");
      var pDoc_end = pDoc.lastIndexOf("content -->");

      if(pDoc_start>0 && pDoc_end>0)
        pDoc_after = "<!-- " + pDoc.substring(pDoc_start, pDoc_end) + "content -->";
      else
        pDoc_after = pDoc;

		var stra = pDoc_after;

		strb = stra.replace(/<SCRIPT(.*?)<(\/?)SCRIPT>/gi,"");
		strk = strb.replace(/<OBJECT(.*?)<(\/?)OBJECT>/gi,"");
		strc = strk.replace(/<script(.*?)<(\/?)script>/gi,"");

	  var printWinId = window.open('','','width=715,height=500,top=150,left=370,scrollbars=yes');
      var strHtml = "";
      strHtml += '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>';
      strHtml += "<title>Livart ÀÎ¼â ¹Ì¸®º¸±â</title>\n";
      strHtml += "<link rel='stylesheet' href='/common/css/print.css' type='text/css'>\n";
	  strHtml += "<script language='javascript'>           \n";
      strHtml += "function prints()                        \n";
      strHtml += "{                                        \n";
      strHtml += "  document.title='ÀÎ¼âÁß...';            \n";
      strHtml += "  print_tr.style.display='none';         \n";
      strHtml += "  factory.printing.header='';            \n";
      strHtml += "  factory.printing.footer='';            \n";
      strHtml += "  factory.printing.portrait=true;        \n";
      strHtml += "  factory.printing.leftMargin=20.0;      \n";
      strHtml += "  factory.printing.topMargin=25.0;       \n";
      strHtml += "  factory.printing.rightMargin=20.0;     \n";
      strHtml += "  factory.printing.bottomMargin=20.0;    \n";
      strHtml += "  factory.printing.Print(false, window); \n";
      strHtml += "  print_tr.style.display='';             \n";
      strHtml += "  document.title='¹Ì¸®º¸±â';             \n";
      strHtml += "}                                        \n";
      strHtml += " function Show(){ } \n";
      strHtml += " function getThisMonth(){ } \n";
      strHtml += " function Timerinit2(){} \n";
      strHtml += "</script>                                \n";
      strHtml += "</head><body onload='javascript:self.print();'>\n";
      strHtml += "<div id='contents_text'>\n";
      strHtml +=  strc;
      strHtml += "</div>";
      strHtml += "</body></html>";
      printWinId.document.open();
      printWinId.document.write(strHtml);
      printWinId.document.focus();
      printWinId.document.close();
    } else alert("ÆäÀÌÁö ³»¿ëÀ» ºÒ·¯¿À´Âµ¥ ¹®Á¦°¡ ¹ß»ýÇß½À´Ï´Ù.");
}

function print2(){
    var pDoc = document.body.innerHTML;
    if(pDoc)
    {

      var pDoc_start = pDoc.indexOf("s: print ");
      var pDoc_end = pDoc.lastIndexOf("print -->");

      if(pDoc_start>0 && pDoc_end>0)
        pDoc_after = "<!-- " + pDoc.substring(pDoc_start, pDoc_end) + "print -->";
      else
        pDoc_after = pDoc;

		var stra = pDoc_after;

		strb = stra.replace(/<SCRIPT(.*?)<(\/?)SCRIPT>/gi,"");
		strk = strb.replace(/<OBJECT(.*?)<(\/?)OBJECT>/gi,"");
		strc = strk.replace(/<script(.*?)<(\/?)script>/gi,"");

	  var printWinId = window.open('','','width=405,height=610,top=150,left=370,scrollbars=yes');
      var strHtml = "";
      strHtml += '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>';
      strHtml += "<title>Livart ÀÎ¼â ¹Ì¸®º¸±â</title>\n";
      strHtml += "<link rel='stylesheet' href='/common/css/print.css' type='text/css'>\n";
	  strHtml += "<script language='javascript'>           \n";
      strHtml += "function prints()                        \n";
      strHtml += "{                                        \n";
      strHtml += "  document.title='ÀÎ¼âÁß...';            \n";
      strHtml += "  print_tr.style.display='none';         \n";
      strHtml += "  factory.printing.header='';            \n";
      strHtml += "  factory.printing.footer='';            \n";
      strHtml += "  factory.printing.portrait=true;        \n";
      strHtml += "  factory.printing.leftMargin=20.0;      \n";
      strHtml += "  factory.printing.topMargin=25.0;       \n";
      strHtml += "  factory.printing.rightMargin=20.0;     \n";
      strHtml += "  factory.printing.bottomMargin=20.0;    \n";
      strHtml += "  factory.printing.Print(false, window); \n";
      strHtml += "  print_tr.style.display='';             \n";
      strHtml += "  document.title='¹Ì¸®º¸±â';             \n";
      strHtml += "}                                        \n";
      strHtml += " function Show(){ } \n";
      strHtml += " function getThisMonth(){ } \n";
      strHtml += " function Timerinit2(){} \n";
      strHtml += "</script>                                \n";
      strHtml += "</head><body onload='javascript:self.print();'>\n";
      strHtml += "<div id='printbdy'><div class='simgb'>\n";
      strHtml +=  strc;
      strHtml += "</div></div>";
      strHtml += "</body></html>";
      printWinId.document.open();
      printWinId.document.write(strHtml);
      printWinId.document.focus();
      printWinId.document.close();
    } else alert("ÆäÀÌÁö ³»¿ëÀ» ºÒ·¯¿À´Âµ¥ ¹®Á¦°¡ ¹ß»ýÇß½À´Ï´Ù.");
}

function print3(){
    var pDoc = document.body.innerHTML;
    if(pDoc)
    {

      var pDoc_start = pDoc.indexOf("s: print ");
      var pDoc_end = pDoc.lastIndexOf("print -->");

      if(pDoc_start>0 && pDoc_end>0)
        pDoc_after = "<!-- " + pDoc.substring(pDoc_start, pDoc_end) + "print -->";
      else
        pDoc_after = pDoc;

		var stra = pDoc_after;

		strb = stra.replace(/<SCRIPT(.*?)<(\/?)SCRIPT>/gi,"");
		strk = strb.replace(/<OBJECT(.*?)<(\/?)OBJECT>/gi,"");
		strc = strk.replace(/<script(.*?)<(\/?)script>/gi,"");

	  var printWinId = window.open('','','width=700,height=610,top=150,left=370,scrollbars=yes');
      var strHtml = "";
      strHtml += '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>';
      strHtml += "<title>Livart ÀÎ¼â ¹Ì¸®º¸±â</title>\n";
      strHtml += "<link rel='stylesheet' href='/common/css/popup.css' type='text/css'>\n";
	  strHtml += "<script language='javascript'>           \n";
      strHtml += "function prints()                        \n";
      strHtml += "{                                        \n";
      strHtml += "  document.title='ÀÎ¼âÁß...';            \n";
      strHtml += "  print_tr.style.display='none';         \n";
      strHtml += "  factory.printing.header='';            \n";
      strHtml += "  factory.printing.footer='';            \n";
      strHtml += "  factory.printing.portrait=true;        \n";
      strHtml += "  factory.printing.leftMargin=20.0;      \n";
      strHtml += "  factory.printing.topMargin=25.0;       \n";
      strHtml += "  factory.printing.rightMargin=20.0;     \n";
      strHtml += "  factory.printing.bottomMargin=20.0;    \n";
      strHtml += "  factory.printing.Print(false, window); \n";
      strHtml += "  print_tr.style.display='';             \n";
      strHtml += "  document.title='¹Ì¸®º¸±â';             \n";
      strHtml += "}                                        \n";
      strHtml += " function Show(){ } \n";
      strHtml += " function getThisMonth(){ } \n";
      strHtml += " function Timerinit2(){} \n";
      strHtml += "</script>                                \n";
      strHtml += "</head><body onload='javascript:self.print();'>\n";
      strHtml += "<div id='printbdy'><div class='simgb'>\n";
      strHtml +=  strc;
      strHtml += "</div></div>";
      strHtml += "</body></html>";
      printWinId.document.open();
      printWinId.document.write(strHtml);
      printWinId.document.focus();
      printWinId.document.close();
    } else alert("ÆäÀÌÁö ³»¿ëÀ» ºÒ·¯¿À´Âµ¥ ¹®Á¦°¡ ¹ß»ýÇß½À´Ï´Ù.");
}

// JavaScript Document

//new Floating(Àû¿ëÇÒ°³Ã¼ , XÃà¿©¹é , YÃà¿©¹é , ¹Ì²ô·¯Áö´Â¼Óµµ:ÀÛÀ»¼ö·Ïºü¸§..±âº»20 , ºü¸£±â:ÀÛÀ»¼ö·ÏºÎµå·¯¿ò..±âº»10);

function Floating(FloatingObj,MarginX,MarginY,Percentage,setTime,Mstart) {
	this.FloatingObj = FloatingObj;
	this.MarginX = (MarginX) ? MarginX : 0;
	this.MarginY = (MarginY) ? MarginY : 0;
	this.Percentage = (Percentage) ? Percentage : 20;
	this.setTime = (setTime) ? setTime : 10;
	this.FloatingObj.style.position = "absolute";
	this.Body = null;
	this.setTimeOut = null;
	this.Mstart = (Mstart) ? Mstart : 0;
	this.Run();
}

Floating.prototype.Run = function () {
	if ((document.documentElement.scrollLeft + document.documentElement.scrollTop) > (document.body.scrollLeft + document.body.scrollTop)) {
		this.Body = document.documentElement;
	} else {
		this.Body = document.body;
	}

	var This = this;
	var FloatingObjLeft = (this.FloatingObj.style.left) ? parseInt(this.FloatingObj.style.left,10) : this.MarginX;//this.FloatingObj.offsetLeft;
	var FloatingObjTop = (this.FloatingObj.style.top) ? parseInt(this.FloatingObj.style.top,10) : this.Mstart;//this.FloatingObj.offsetTop;
	var DocLeft = this.Body.scrollLeft + this.MarginX;
	var DocTop = this.Body.scrollTop + this.MarginY;

	var MoveX = Math.abs(FloatingObjLeft - DocLeft);
	MoveX = Math.ceil(MoveX / this.Percentage);
	var MoveY = Math.abs(FloatingObjTop - DocTop);
	MoveY = Math.ceil(MoveY / this.Percentage);

	if (FloatingObjLeft < DocLeft) {
		this.FloatingObj.style.left = FloatingObjLeft + MoveX + "px";
	} else {
		this.FloatingObj.style.left = FloatingObjLeft - MoveX + "px";
	}

	if (FloatingObjTop < DocTop) {
		this.FloatingObj.style.top = FloatingObjTop + MoveY + "px";
	} else {
		this.FloatingObj.style.top = FloatingObjTop - MoveY + "px";
	}

	window.clearTimeout(this.setTimeOut);
	this.setTimeOut = window.setTimeout(function () { This.Run(); },this.setTime);
}

function opde(){
	open_win1('/customer/pop_brandshop_1.asp','895','800','yes'); 
}

function commentIframeResize(hgt) {
	$("#commentFrame").height((hgt + 10));
}
