try{document.execCommand('BackgroundImageCache',false,true);}catch(e){}
var pop_chk;var imgSvr='http://static.bidbuy.co.kr';var homeURL='http://www.bidbuy.co.kr';var secureURL='https://secure.bidbuy.co.kr';var loginCheck=(getSubCookie("%5FAU%5F","SID")!=null);String.prototype.LTrim=new Function("return this.replace(/^\\s+/,'')")
String.prototype.RTrim=new Function("return this.replace(/\\s+$/,'')")
String.prototype.Trim=new Function("return this.replace(/^\\s+|\\s+$/g,'')")
String.prototype.trim=new Function("return this.replace(/^\\s+|\\s+$/g,'')")
String.prototype.LengthB=new Function("return(this.length+(escape(this)+'%u').match(/%u/g).length-1)")
function getElID(obj){return document.getElementById(obj)}
if(typeof deconcept=="undefined")var deconcept={};if(typeof deconcept.util=="undefined")deconcept.util={};if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil={};deconcept.SWFObject=function(swf,id,w,h,ver,c,quality,xiRedirectUrl,redirectUrl,detectKey){if(!document.getElementById){return;}
this.DETECT_KEY=detectKey?detectKey:'detectflash';this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(swf){this.setAttribute('swf',swf);}
if(id){this.setAttribute('id',id);}
if(w){this.setAttribute('width',w);}
if(h){this.setAttribute('height',h);}
if(ver){this.setAttribute('version',new deconcept.PlayerVersion(ver.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);}
window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}
if(c){this.addParam('bgcolor',c);}
var q=quality?quality:'high';this.addParam('quality',q);this.setAttribute('useExpressInstall',false);this.setAttribute('doExpressInstall',false);var xir=(xiRedirectUrl)?xiRedirectUrl:window.location;this.setAttribute('xiRedirectUrl',xir);this.setAttribute('redirectUrl','');if(redirectUrl){this.setAttribute('redirectUrl',redirectUrl);}}
deconcept.SWFObject.prototype={useExpressInstall:function(path){this.xiSWFPath=!path?"expressinstall.swf":path;this.setAttribute('useExpressInstall',true);},setAttribute:function(name,value){this.attributes[name]=value;},getAttribute:function(name){return this.attributes[name]||"";},addParam:function(name,value){this.params[name]=value;},getParams:function(){return this.params;},addVariable:function(name,value){this.variables[name]=value;},getVariable:function(name){return this.variables[name]||"";},getVariables:function(){return this.variables;},getVariablePairs:function(){var variablePairs=[];var key;var variables=this.getVariables();for(key in variables){variablePairs[variablePairs.length]=key+"="+variables[key];}
return variablePairs;},getSWFHTML:function(){var swfNode="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute('swf',this.xiSWFPath);}
swfNode='<embed type="application/x-shockwave-flash" src="'+this.getAttribute('swf')+'" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'" style="'+(this.getAttribute('style')||"")+'"';swfNode+=' id="'+this.getAttribute('id')+'" name="'+this.getAttribute('id')+'" ';var params=this.getParams();for(var key in params){swfNode+=[key]+'="'+params[key]+'" ';}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='flashvars="'+pairs+'"';}
swfNode+='/>';}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute('swf',this.xiSWFPath);}
swfNode='<object id="'+this.getAttribute('id')+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'" style="'+(this.getAttribute('style')||"")+'">';swfNode+='<param name="movie" value="'+this.getAttribute('swf')+'" />';var params=this.getParams();for(var key in params){swfNode+='<param name="'+key+'" value="'+params[key]+'" />';}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='<param name="flashvars" value="'+pairs+'" />';}
swfNode+="</object>";}
return swfNode;},write:function(elementId){if(this.getAttribute('useExpressInstall')){var expressInstallReqVer=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(expressInstallReqVer)&&!this.installedVer.versionIsValid(this.getAttribute('version'))){this.setAttribute('doExpressInstall',true);this.addVariable("MMredirectURL",escape(this.getAttribute('xiRedirectUrl')));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute('doExpressInstall')||this.installedVer.versionIsValid(this.getAttribute('version'))){var n=(typeof elementId=='string')?document.getElementById(elementId):elementId;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute('redirectUrl')!=""){document.location.replace(this.getAttribute('redirectUrl'));}}
return false;}}
deconcept.SWFObjectUtil.getPlayerVersion=function(){var PlayerVersion=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){PlayerVersion=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var counter=3;while(axo){try{counter++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+counter);PlayerVersion=new deconcept.PlayerVersion([counter,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");PlayerVersion=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(PlayerVersion.major==6){return PlayerVersion;}}
try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}
if(axo!=null){PlayerVersion=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return PlayerVersion;}
deconcept.PlayerVersion=function(arrVersion){this.major=arrVersion[0]!=null?parseInt(arrVersion[0]):0;this.minor=arrVersion[1]!=null?parseInt(arrVersion[1]):0;this.rev=arrVersion[2]!=null?parseInt(arrVersion[2]):0;}
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major)return false;if(this.major>fv.major)return true;if(this.minor<fv.minor)return false;if(this.minor>fv.minor)return true;if(this.rev<fv.rev)return false;return true;}
deconcept.util={getRequestParameter:function(param){var q=document.location.search||document.location.hash;if(param==null){return q;}
if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return pairs[i].substring((pairs[i].indexOf("=")+1));}}}
return"";}}
deconcept.SWFObjectUtil.cleanupSWFs=function(){var objects=document.getElementsByTagName("OBJECT");for(var i=objects.length-1;i>=0;i--){objects[i].style.display='none';for(var x in objects[i]){if(typeof objects[i][x]=='function'){objects[i][x]=function(){};}}}}
if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];}}
var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function insert_object(ob_name){document.write(ob_name);}
function objectWrite(pContainer,pObjectTagString){var oContainer=null;if(typeof pContainer==='string'){oContainer=document.getElementById(pContainer);}
else if(typeof pContainer==='object'){oContainer=pContainer;}
if(oContainer){oContainer.innerHTML=pObjectTagString;}}
function getCookie(name){var prefix=name+"="
if(document.cookie.length>0){offset=document.cookie.indexOf(prefix)
if(offset!=-1){offset+=prefix.length
end=document.cookie.indexOf(";",offset)
if(end==-1)
end=document.cookie.length
return unescape(document.cookie.substring(offset,end))}}}
function getSubCookie(name,subname){var prefix=name+"=";var cookieStartIndex=document.cookie.indexOf(prefix);if(cookieStartIndex==-1)
return(null);var cookieEndIndex=document.cookie.indexOf(";",cookieStartIndex+prefix.length);if(cookieEndIndex==-1)
cookieEndIndex=document.cookie.length;var cookies=unescape(document.cookie.substring(cookieStartIndex+prefix.length,cookieEndIndex));prefix=subname+"=";cookieStartIndex=cookies.indexOf(prefix);if(cookieStartIndex==-1)
return(null);cookieEndIndex=cookies.indexOf("&",cookieStartIndex+prefix.length);if(cookieEndIndex==-1)
cookieEndIndex=document.cookie.length;return(unescape(cookies.substring(cookieStartIndex+prefix.length,cookieEndIndex)));}
function setCookie(name,value){var argv=setCookie.arguments;var argc=setCookie.arguments.length;var expires=(argc>2)?argv[2]:null;var path=(argc>3)?argv[3]:null;var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;document.cookie=name+"="+escape(value)+
((expires==null)?"":("; expires="+expires.toGMTString()))+
((path==null)?"":("; path="+path))+
((domain==null)?"":("; domain="+domain))+
((secure==true)?"; secure":"");}
function OpenCalendar(ObjForm){var thisForm=eval(ObjForm);var ObjRet=window.showModalDialog("/common/calendar/default.html","","dialogWidth:280px;dialogHeight:280px;status:no;help:no");if(ObjRet!=undefined&&ObjRet!="none"&&ObjRet!=""){if(ObjRet.length==10)
eval(thisForm.value=ObjRet);}
return;}
function OpenWindow(p_StrPage,p_StrWinName,p_IntSrollbars,p_IntToolbar,p_IntLocation,p_IntResizable,p_IntWidth,p_IntHeight,p_IntLeft,p_IntTop){var OpenWin=window.open(p_StrPage,p_StrWinName,"scrollbars="+p_IntSrollbars+",toolbar="+p_IntToolbar+",location="+p_IntLocation+",resizable="+p_IntResizable+",width="+p_IntWidth+",height="+p_IntHeight+",state=1,left="+p_IntLeft+",top="+p_IntTop);if(!OpenWin){alert("[ 확인 ] 팝업이 차단되었습니다.\t\n브라우져의 차단된 팝업창을 허용해 주십시오.");return;}
OpenWin.focus();}
function OpenEvent(p_StrPage,p_StrWinName,p_IntSrollbars,p_IntToolbar,p_IntLocation,p_IntResizable,p_IntWidth,p_IntHeight,p_IntLeft,p_IntTop)
{if(getCookie(p_StrWinName)!="deny")
{OpenWindow(p_StrPage,p_StrWinName,p_IntSrollbars,p_IntToolbar,p_IntLocation,p_IntResizable,p_IntWidth,p_IntHeight,p_IntLeft,p_IntTop);}}
function _OnChangeSel(sel,targetstr){var index=sel.selectedIndex;if(sel.options[index].value!=''){if(targetstr=='blank'){window.open(sel.options[index].value,'win1');}else{var frameobj;if((frameobj=eval(targetstr))!=null)frameobj.location=sel.options[index].value;}}}
if('undefined'==typeof(window.dialogArguments)&&!navigator.cookieEnabled){if(confirm("쿠키 설정이 되어 있지 않습니다.\t\n\n쿠키 설정 없이는 비드바이 사용이 불가능합니다.\t\n쿠키 설정 도움말을 보시겠습니까?\t\n")){idx=(navigator.appVersion.indexOf("MSIE"));if(idx>-1)IEV=parseInt(navigator.appVersion.substr(idx+4));if(IEV<=4)document.location.href='http://www.bidbuy.co.kr/cookie/cookie_ie5.asp';else document.location.href='http://www.bidbuy.co.kr/cookie/cookie_ie5.asp';}}
function CagegoryPage(__num,__tot){if(__num>0&&__tot>0){for(var i=1;i<=__tot;i++){if(__num==i){document.getElementById('Categories_'+i).style.display='';document.getElementById('Paging_'+i).className='on';}else{document.getElementById('Categories_'+i).style.display='none';document.getElementById('Paging_'+i).className='';}}}}
function PubAllSordes(ckFlag,CObj)
{if(!CObj)return;var ckN=CObj.length;if(ckN!=null){if(ckFlag=="select"){var sett=0;for(jumpchk=0;jumpchk<ckN;jumpchk++){CObj[jumpchk].checked=true;}}else if(ckFlag=="reflect"){var sett=0;for(jumpchk=0;jumpchk<ckN;jumpchk++){if(CObj[jumpchk].checked==false)CObj[jumpchk].checked=true;else CObj[jumpchk].checked=false;}}else{var sett=0;for(jumpchk=0;jumpchk<ckN;jumpchk++){CObj[jumpchk].checked=false;}}}else{if(ckFlag=="select"){CObj.checked=true;}else if(ckFlag=="reflect"){var sett=0;if(CObj.checked==false)CObj.checked=true;else CObj.checked=false;}else{var sett=0;CObj.checked=false;}}}
function PubChkSelect(CObj){if(!CObj)return;var ckN=CObj.length;if(ckN!=null){var sett=0;for(jumpchk=0;jumpchk<ckN;jumpchk++){if(CObj[jumpchk].checked==false){sett++;}}
if(sett==ckN)return false;else return true;}else{if(CObj.checked==true)return true;else return false;}}
function IsKorean(el){var pattern=/[가-힝]/;return(pattern.test(el.value.Trim()))?true:false;}
function ShippingInq(method,waybill){var url='';if(method=='ems'||method=='ship'){if(waybill!='')
url='http://service.epost.go.kr/trace.RetrieveEmsTrace.postal?ems_gubun=E&POST_CODE='+waybill;else
url='http://service.epost.go.kr/iservice/ems/ems_kor.jsp';OpenWindow(url,'','yes','no','no','no','800','600','10','10');}else if(method=='nbidbuy'||method=='lbidbuy'){OpenWindow('http://www.bidbuy.co.kr/cs/shippinginq.asp?waybill='+waybill,'','yes','no','no','no','580','600','10','10');}else if(method=='hanjin'||method=='hanjinship'){if(waybill!='')
url='http://www.hanjin.co.kr/delivery_html/inquiry/result_waybill.jsp?wbl_num='+waybill;else
url='http://hanex.hanjin.co.kr/';OpenWindow(url,'','yes','no','no','no','800','600','10','10');}else if(method=='hyundaiexp'){if(waybill!='')
url='http://www.hyundaiexpress.com/hydex/jsp/support/search/re_08.jsp?InvNo='+waybill;else
url='http://www.hyundaiexpress.com/';OpenWindow(url,'','yes','no','no','no','800','600','10','10');}}
function GoCalculator(country_cd,buyprice){OpenWindow('/guide/calculator.asp?country_cd='+country_cd+'&buyprice='+buyprice,'popCalculator','yes','no','no','no',487,420,100,10);}
function InvoicePrint(unify_fl,country_cd,item_no,order_gb){OpenWindow('/mypage/orders/invoice.asp?unify_fl='+unify_fl+'&country_cd='+country_cd+'&item_no='+item_no+'&order_gb='+order_gb,'','yes','yes','no','yes','680','700','100','50');}
function GoGuide(page,subpage){if(!page)page=0;if(!subpage)subpage=0;OpenWindow('/guide/?menu_gb='+page+'&sub_menu_gb='+subpage,'popGuide','yes','yes','no','no','740','800','100','10');}
function __goEasyGuide(menu){if(!menu){menu=1;}
var url='/guide/pop_guide/?menu_gb='+menu;OpenWindow(url,'popGuide','yes','no','no','no','740','670','100','10');}
function GoSizechart(page){if(!page)page=0;OpenWindow('/guide/pop_guide/?menu_gb=20&sub_menu_gb='+page,'popSizechart','yes','no','no','no','740','600','100','10');}
function GoGuide_EX(){OpenWindow('/guide/?menu_gb=10#4','popSizechart','yes','no','no','no','740','852','100','10');}
function GoExWeight(page){if(!page)page=0;OpenWindow('/guide/pop_guide/?menu_gb=30&sub_menu_gb='+page,'popSizechart','yes','no','no','no','550','600','100','10');}
function GoSite(site_cd,item_cd){var url='';if(site_cd=='BIDDERS')
url='http://www.bidders.co.jp/item/'+item_cd;else if(site_cd=='EBAY')
url='http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item='+item_cd;else if(site_cd=='YAHOO')
url='http://page.auctions.yahoo.co.jp/jp/auction/'+item_cd;if(url!='')
OpenWindow(url,'','yes','yes','no','yes','800','500','100','50');return;}
function Translation(option_cd,url){if(url.Trim()!=''){OpenWindow('/translation/?Opt='+option_cd+'&Url='+url,'popTrans','yes','yes','yes','yes','990','600','100','100');}
return;}
function Webtranslation(transOpt,transURL){var argv=Webtranslation.arguments;var argc=Webtranslation.arguments.length;var trans=(argc>2)?argv[2]:false;if(transURL.Trim()==''){alert("도메인명이 옳바르지 않습니다.\t\n");return;}
if(transURL.indexOf("http://")==-1)transURL="http://"+transURL;if(trans){OpenWindow("http://webtsf.bidbuy.co.kr/translation/?bbOpt="+transOpt+"&bbUrl="+transURL,'',1,1,1,1,1000,600,0,0);}
else{OpenWindow("/translation/?Opt="+transOpt+"&Url="+transURL,'',1,1,1,1,1000,600,0,0);}}
function ShortTranslation(){if(document.URL.indexOf("/usa/")!=-1)
OpenWindow('http://translate.google.com/translate_t?hl=ko&langpair=en|ko','Translate','yes','no','no','yes','500','470','100','100');else
OpenWindow('http://j2k.bidbuy.co.kr/short/','Translate','no','no','no','yes','360','390','100','100');}
function OnCurrentFE(){var intWidth=442;var intHeight=525;var intX=Math.floor((screen.availWidth-(intWidth+12))/2);var intY=Math.floor((screen.availHeight-(intHeight+60))/2);OpenWindow('/common/exchange/','popCurrentfe',1,0,0,0,intWidth,intHeight,intX,intY);}
function Receipt(){var intWidth=450;var intHeight=350;var intX=Math.floor((screen.availWidth-(intWidth+12))/2);var intY=Math.floor((screen.availHeight-(intHeight+60))/2);OpenWindow('/common/request_receipt.asp','rec_pop',0,0,0,0,intWidth,intHeight,intX,intY);}
function pageNavigation(elemId,siteId,titleTxt,naviTxt){var tmpl_str='';var naviTxt_='';tmpl_str+='<div>#{title_area}</div>';tmpl_str+='<ul id="subTop_nav_navi">';tmpl_str+='  <li class="float_left" style="width:10px; height:32px; background:url(\'http://static.bidbuy.co.kr/v3/common/sub_titleimg_bg01.gif\') no-repeat;"></li>';if(siteId=='ebay'){tmpl_str+='  <li class="float_left"><div id="subTop_nav_category_ebay"><a href="/auctions/usa/allcategory.asp"><img src="http://static.bidbuy.co.kr/v3/auctions/usa/btn_allcate.gif"></a></div></li>';}
else if(siteId=='yahoo'){tmpl_str+='  <li class="float_left"><div id="subTop_nav_category_yahoo"><a href="/auctions/japan/allcategory.asp"><img src="http://static.bidbuy.co.kr/v3/auctions/japan/btn_allcate.gif"></a></div></li>';}
else if(siteId=='rakuten'){tmpl_str+='  <li class="float_left"><div id="subTop_nav_category_yahoo"><a href="/purchase/japan/allcategory.asp"><img src="http://static.bidbuy.co.kr/v3/purchase/japan/btn_allcate_r.gif"></a></div></li>';}
else if(siteId=='naviTxt'){tmpl_str+='  <li class="float_left"><div id="subTop_nav_category">#{navi_area_}</div></li>';naviTxt_=naviTxt;naviTxt='';}
else{tmpl_str+='  <li class="float_left"><div id="subTop_nav_category"><img src="http://static.bidbuy.co.kr/v3/common/spacing.gif"></div></li>';}
tmpl_str+='  <li id="subTop_nav_navi_loca" class="float_left">#{navi_area}</li>';tmpl_str+='  <li class="float_left" style="width:10px; height:32px; background:url(\'http://static.bidbuy.co.kr/v3/common/sub_titleimg_bg03.gif\') no-repeat;"></li>';tmpl_str+='</ul>';tmpl_str+='<div style="clear:both;padding:0px;margin:0px;height:1px;" class="overflow"></div>';$(elemId).insert(new Template(tmpl_str).evaluate({title_area:titleTxt,navi_area:naviTxt,navi_area_:naviTxt_}));}
function pageing(elemId,linkTxt,cur_page,page_size,tot_page){var tmp_page=parseInt(((cur_page-1)/page_size))*page_size+1;var prev_page=parseInt(tmp_page-page_size);var tmpl_str='';tmpl_str+='  <div id="page_navi_container" class="paginate" style="margin:10px 0;padding:0;width:100%;float:left;">';tmpl_str+='  <div style="margin:0 auto;padding:0;width:84%;float:left;white-space:nowrap;">';if(parseFloat(cur_page/page_size)>1){tmpl_str+='<a href="#{link_area}&amp;page=1" class="pre_end" onfocus="this.blur();">&nbsp;</a>';tmpl_str+='<a href="#{link_area}&amp;page='+prev_page+'" class="pre" onfocus="this.blur();">&nbsp;</a>';}
for(var i=1;i<=page_size&&tmp_page<=tot_page;i++){if(tmp_page==cur_page){tmpl_str+='<strong>'+tmp_page+'</strong>';}else{tmpl_str+='<a href="#{link_area}&amp;page='+tmp_page+'" onfocus="this.blur();">'+tmp_page+'</a>';}
tmp_page++;}
if(tmp_page>=tot_page){tmp_page=tot_page;}
if((i-1)<tot_page){tmpl_str+='<a href="#{link_area}&amp;page='+tmp_page+'" class="next" onfocus="this.blur();">다음</a>';tmpl_str+='<a href="#{link_area}&amp;page='+tot_page+'" class="next_end" onfocus="this.blur();">맨뒤</a>';}
tmpl_str+='</div>';tmpl_str+='<div style="width:115px;float:right;"><input type="text" name="page_val" id="page_val" value="'+cur_page+'" maxlength="5" size="4" class="form_gray"> / <span class="bold">'+tot_page+'</span> <input type="button" name="BtnpageGo" id="BtnpageGo" value="Go" style="cursor:pointer;"></div>';tmpl_str+='  </div>';$(elemId).insert(new Template(tmpl_str).evaluate({link_area:linkTxt}));$('BtnpageGo').onclick=function(){document.location.href=linkTxt+'&page='+$F('page_val');}}
var ViewItemHistory=Class.create({initialize:function(){},item:[],input:function(item_info){this.item.push(item_info);},get:function(){return this.item.uniq().join('*|*');},set:function(cookie){if(cookie){arrCookie=cookie.split('*|*');for(var i=0;i<arrCookie.length;i++){this.item.push(arrCookie[i]);}}}});var itmHistory=new ViewItemHistory;itmHistory.set(getCookie('_ITEMHIS'));function System(){}
System.scriptLoader=new ScriptLoader();System.loadFile=function(src){System.scriptLoader.loadFile(src);}
function ScriptLoader(){var loadedFiles=new Array();this.loadFile=function(s){if(!s)throw new"Arguement is null.";if(loadedFiles[s])return;loadedFiles[s]=true;document.write("<s"+"cript type=\"text/javascript\" src=\""+s+"\"></s"+"cript>");}}
function addLoadEvent(funct){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=funct;}else{window.onload=function(){oldonload();funct();}}}
var DelayedExecutor=Class.create();DelayedExecutor.prototype={initialize:function(target,actions){this.target=target;this.actions=actions;this.index=0;this.execute_next();},execute_next:function(){var action=this.target[this.actions[this.index]].bind(this.target);action();this.index+=1;if(this.index<this.actions.length){window.setTimeout(this.execute_next.bind(this),1);}}}
var BrowserState=Class.create();BrowserState.prototype={initialize:function(){this.ie=!!(!this.webkit&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi));this.ie6=!!(this.ie&&!this.ie7);this.moz=!!(navigator.userAgent.match('Gecko')&&!this.ie&&!this.safari);this.webkit=this._webkit();this.safari3=!!(this.safari&&this.webkit>520);this.browser=this._browser();this.os=this._os();},ie7:!!navigator.userAgent.match(/MSIE [789]/),safari:!!navigator.userAgent.match('KHTML'),mac:!!navigator.userAgent.match('Macintosh'),linux:!!navigator.userAgent.match('Linux'),windows:!!navigator.userAgent.match('Windows'),_webkit:function(){var v=navigator.userAgent.match(/WebKit\/([^ ]*)/);if(v&&v[1])return parseFloat(v[1]);return null;},_browser:function(){var b='unknown';if(this.ie)b='ie';if(this.ie7)b='ie7';if(this.ie6)b='ie6';if(this.moz)b='moz';if(this.safari)b='safari2';if(this.safari3)b='safari3';return b;},_os:function(){var o='unknown';if(this.mac)o='mac';if(this.linux)o='linux';if(this.windows)o='windows';return o;}};BrowserState.is=new BrowserState();function getPageScroll(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;}
arrayPageScroll=new Array(xScroll,yScroll)
return arrayPageScroll;}
function getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}else{windowWidth=self.innerWidth;}
windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=xScroll;}else{pageWidth=windowWidth;}
arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;}
function getKey(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
key=String.fromCharCode(keycode).toLowerCase();if(key=='x'){}}
function listenKey(){document.onkeypress=getKey;}
function showSelectBoxes(){var selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="visible";}}
function hideSelectBoxes(){var selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="hidden";}}
function showFlash(){var flashObjects=document.getElementsByTagName("object");for(i=0;i<flashObjects.length;i++){flashObjects[i].style.visibility="visible";}
var flashEmbeds=document.getElementsByTagName("embed");for(i=0;i<flashEmbeds.length;i++){flashEmbeds[i].style.visibility="visible";}}
function hideFlash(){var flashObjects=document.getElementsByTagName("object");for(i=0;i<flashObjects.length;i++){flashObjects[i].style.visibility="hidden";}
var flashEmbeds=document.getElementsByTagName("embed");for(i=0;i<flashEmbeds.length;i++){flashEmbeds[i].style.visibility="hidden";}}
function pause(ms){var date=new Date();curDate=null;do{var curDate=new Date();}
while(curDate-date<ms);}
Object.extend(Element,{getWidth:function(element){element=$(element);return element.offsetWidth;},setWidth:function(element,w){element=$(element);element.style.width=w+"px";},setHeight:function(element,h){element=$(element);element.style.height=h+"px";},setTop:function(element,t){element=$(element);element.style.top=t+"px";},setLeft:function(element,l){element=$(element);element.style.left=l+"px";},setSrc:function(element,src){element=$(element);element.src=src;},setHref:function(element,href){element=$(element);element.href=href;},setInnerHTML:function(element,content){element=$(element);element.innerHTML=content;}});function auto_select(ele_id,Value){var plength=$(ele_id).options.length;for(i=0;i<plength;i++)
{if($(ele_id).options[i].value==Value)
{$(ele_id).selectedIndex=i;break;}}}
function select_leftmenu(ele_id){try{$(ele_id+'_off').hide();$(ele_id+'_on').setStyle({'display':'inline'});}
catch(e){}}
function payment_popup(frm,Value){var action_url;if(Value=='C'){action_url='http://pg.dacom.net/card/cardAuthAppInfo.jsp';}
else if(Value=='V'){action_url='http://pg.dacom.net/cas/casRequestSA.jsp';}
else{alert('\n[ 확인 ] 결제방법을 확인해 주십시오.\t\n\n');return;}
var url='';var width=330;var height=430;var wleft=(screen.width-width)/2;var wtop=(screen.height-height)/2;var opt='toolbar=no,menubar=no,location=no,directories=no,scrollbars=no,status=no,width='+width+',height='+height+',top='+wtop+',left='+wleft;var win_pay=window.open(url,"popPayment",opt);if(!win_pay){alert("\n[ 확인 ] 팝업이 차단되었습니다.\t\n고객님의 브라우저에 차단된 팝업창을 허용해 주십시오.\t\n\n");}else{frm.target="popPayment";frm.action=action_url;document.charset='euc-kr';frm.submit();win_pay.focus();}}
function showCopyright(country){if(country.trim()!='kor'&&country.trim()!='usa'&&country.trim()!='japan'&&country.trim()!='china'){country='kor';}
$('copy_addr').src='http://static.bidbuy.co.kr/v3/common/copy_add_'+country+'.gif';}
function scrab_cyworld(site_cd,item_cd){var scrab_page='http://www.bidbuy.co.kr/cooperation/nateconnect/clipping.engine.'+site_cd+'.asp?item_cd='+item_cd;var src='http://api.cyworld.com/openscrap/shopping/v1/?xu='+escape(scrab_page)+'&sid=s0203918';window.open(src,'cyopenscrap','width=450,height=410');}
function isActiveXOK(){if(lgdacom_atx_flag==true){document.getElementById('LGD_BUTTON1').style.display='none';document.getElementById('LGD_BUTTON2').style.display='';}else{document.getElementById('LGD_BUTTON1').style.display='';document.getElementById('LGD_BUTTON2').style.display='none';}}
function doPay_ActiveX(frm_id,platform_cd,order_no){var ret_url='/payment_d/ajax.hashdata.asp?orderno='+order_no+'&amount='+$F('amount');new Ajax.Request(ret_url,{onComplete:function(rep){var res=eval('('+rep.responseText+')');$('hashdata').setValue(res.hashdata);$('oid').setValue(res.oid);$('lgd_amount').setValue($F('amount'));}});ret=xpay_check(document.getElementById(frm_id),platform_cd);if(ret=="00"){var LGD_RESPCODE=dpop.getData('LGD_RESPCODE');var LGD_RESPMSG=dpop.getData('LGD_RESPMSG');if("0000"==LGD_RESPCODE){var LGD_PAYKEY=dpop.getData('LGD_PAYKEY');var msg="인증결과 : "+LGD_RESPMSG+"\n";msg+="LGD_PAYKEY : "+LGD_PAYKEY+"\n\n";document.getElementById('LGD_PAYKEY').value=LGD_PAYKEY;document.getElementById(frm_id).submit();}else{alert("인증이 실패하였습니다. "+LGD_RESPMSG);}}else{alert("LG데이콤 전자결제를 위한 ActiveX 설치 실패");}}