		///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		///  	특정 페이지 SSL적용을 위한 apssl스크립트
		///	작성자 : ibm 옥일권, ikouk@kr.ibm.com
		///	작성일 : 2007-10-31
		///	변경이력 : 
		///	설 명 : 
		///		- 이 스크립트가 사이트 전체에 include되도록 한다.
		///		- 브라우져 상의 주소를 읽어서 지정된 SSL적용 대상 페이지인지 확인 한 후 개발서버가 아닌 운영서버일경우 SSL페이지면 https://로 주소를 redirect
		///		- SSL적용 대상 페이지가 아니면서 https://주소를 사용하고 있을 경우 http://로 redirect		///
		///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	document.title  = 'ARITAUM';
	/*
	//SSL적용 대상 페이지를 $를 이용하여 구분하여 지정
	var sslPageList = "/login.do$/login/login.jsp$/loginsso.do$/login/login_sso_proc.jsp";
		
		//강제 실행 스크립트
		goSSL();	
		
		function goSSL(){
			try{
				var addr = document.location.href;
				if(isSSLPageCheck(addr)){
					if(addr.indexOf("https")<0 && isIPCheck(addr)==false){
						document.location.href = addr.replace("http://","https://");
					}			
				}else{
					if(addr.indexOf("https://")>-1){
						document.location.href = addr.replace("https://","http://");
					}
				}
			}catch(e){
				//alert(e.message); //- 디버깅시 사용
			}
		}

		//상단에 정의된 SSL페이지인지 여부를 반환 (true: SSL적용페이지, false:비대상 페이지)
		function isSSLPageCheck(_url){
			if(document.getElementById("sslpageyn")!=null && document.getElementById("sslpageyn").value=="yes"){
				return true;
			}

			arrSSLs = sslPageList.split("$");
			for(i=0; i<arrSSLs.length;i++){
				if(arrSSLs[i]!="" && _url.indexOf(arrSSLs[i])>-1)
					return true;
			}
			return false;
		}
		
		//전달받은 주소가 아이피형식인지 체크-개발서버를 가려내기 위함(true:아이피형주소, false:도메인형주소)
		function isIPCheck(_url){
			_url = _url.replace("https://","");
			_url = _url.replace("http://","");
			arrDgit = _url.split(".");			
			isIP = true;
			if(arrDgit.length>4){
				for(i=0; i<3; i++){
					if(arrDgit[i].search(/[^0-9]/g)!=-1){
						return false;
					}
				}
			}else{
				return false;
			}			
			return true;
		}
*/

function autoResizePopup() {
     var winW, winH, sizeToW, sizeToH; 

     if ( parseInt(navigator.appVersion) > 3 ) {        

        if ( navigator.appName=="Netscape" ) {
           winW = window.innerWidth;
           winH = window.innerHeight;
        } 

        if ( navigator.appName.indexOf("Microsoft") != -1 ) {
           winW = document.body.scrollWidth;
           winH = document.body.scrollHeight;
        }
     }

     sizeToW = 0;
     sizeToH = 0;

     if ( winW > 1000 ) {
        sizeToW = 1000 - document.body.clientWidth;
     } else if ( Math.abs(document.body.clientWidth - winW ) > 3 ) {
        sizeToW = winW - document.body.clientWidth;
     }

     if ( winH > 680 ) {
        szeToH = 680 - document.body.clientHeight;
     } else if ( Math.abs(document.body.clientHeight - winH) > 4 ) {
        sizeToH = winH - document.body.clientHeight;
     }

     if ( sizeToW != 0 || sizeToH != 0 )
        window.resizeBy(sizeToW, sizeToH);

     //alert(winW + ":" + winH + ":"  +document.body.clientWidth);
}

 

//window open
function openWinCen(theURL,winName,w,h,features) {
	var winl = (screen.width - w) / 3;
	var wint = (screen.height - h) / 3;
	features = 'width='+w+',height='+h+',scrollbars=auto, left='+winl+',top='+wint+','+features;	
	window.open(theURL,winName,features);
}
		
//check radio button
function hasCheckedRadio(input) {
    if (input.length > 1) {
        for (var inx = 0; inx < input.length; inx++) {
            if (input[inx].checked) return true;
        }
    } else {
        if (input.checked) return true;
    }
    return false;
}

//get value - radio
function getValueCheckedRadio(input) {
    if (input.length > 1) {
        for (var inx = 0; inx < input.length; inx++) {
            if (input[inx].checked) return input[inx].value;
        }
    } else {
        if (input.checked) return input.value;
    }
    return "";
}

// 체크박스 처리 분기
function CheckBox(obj,f){
	if ( obj.checked == true ) CheckBoxAll(f)
	else CheckBoxReset(f)
}

// 체크박스 모두 체크
function CheckBoxAll(f){
	for( i=0; i<f.elements.length; i++) {
		if ( f.elements[i].type == 'checkbox' && f.elements[i].checked == false ) f.elements[i].checked = true;
	}
}

// 체크박스 모두 리셋
function CheckBoxReset(f){
	for ( i=0; i<f.elements.length; i++ ) {
		if ( f.elements[i].type == 'checkbox' && f.elements[i].checked == true ) f.elements[i].checked = false;
	}
}

//숫자만 입력
function fnCheckNum(objInput) { 
  var szBuff = "";
  var chBuff = '';
  var szTemp = "";
  var i = 0;

  szBuff = objInput.value;
  for(i=0; i<szBuff.length; i++) {
    chBuff = szBuff.charAt(i);
    if( (chBuff < '0' || chBuff > '9') ) {
      for(var j=0; j<szBuff.length; j++) {
        chBuff = szBuff.charAt(j);
        if( (chBuff < '0' || chBuff > '9') ) {
          continue;
        } else {
          szTemp = szTemp + chBuff;
        }
      }
      objInput.value = szTemp;

      return;
    }
  }
} 

//영문만 입력
function fnCheckAlpha(objInput) {
  var szBuff = "";
  var chBuff = '';
  var szTemp = "";
  var i = 0;

  szBuff = objInput.value;
  for(i=0; i<szBuff.length; i++) {
    chBuff = szBuff.charAt(i);
    if( (chBuff < "A" || chBuff > "Z") && (chBuff < "a" || chBuff > "z")) {
      for(var j=0; j<szBuff.length; j++) {
        chBuff = szBuff.charAt(j);
        if( (chBuff < "A" || chBuff > "Z") && (chBuff < "a" || chBuff > "z")) {
          continue;
        } else {
          szTemp = szTemp + chBuff;
        }
      }
      objInput.value = szTemp;

      return;
    }
  }
}

//대문자만 입력
function fnToUpperCase(obj)
{
  obj.value=obj.value.toUpperCase();
}

//오늘 이전일 체크
function CheckTime(f,year,month,day,hour,minute){
	c = new Date();
	c.setDate(c.getDate()-1); // 하루 빼서 처리했음 오늘이 2008-09-19 이면 실제로는 2008-09-18 로 처리했음

	cYY = c.getYear()
	cMM = c.getMonth()+1
	cDD = c.getDate()
	cHH = c.getHours()
	cMI = c.getMinutes()
	cSE = c.getSeconds()

	check1 = cYY
	check1 = ( cMM<10 ) ? check1 + '0' + cMM : check1 + ' ' + cMM
	check1 = ( cDD<10 ) ? check1 + '0' + cDD : check1 + ' ' + cDD
	check1 = ( cHH<10 ) ? check1 + '0' + cHH : check1 + ' ' + cHH
	check1 = ( cMI<10 ) ? check1 + '0' + cMI : check1 + ' ' + cMI
	check1 = ( cSE<10 ) ? check1 + '0' + cSE : check1 + ' ' + cSE
	check1 = check1.replace(/ /gi,'');

	check2 = year + month + day + hour + minute + '00'

	//alert(check1 + " / " + check2)

	if ( parseInt(check1) > parseInt(check2) ){
		return false;
	} else {
		return true;
	}
}

// 이미지 크기에 맞게 오픈창 띄우기, img 는 이미지 파일 명이며, 서버 절대경로임 예)  /upload/product/432_s.gif
function showImg(img){
	window.open('/common/showImg.jsp?img='+img,'','left=0,top=0,width=100,height=100')
}

// 파일 다운로드 모듈
// dir : 파일 위치, 서버경로 ex) /upload/bbs/
// fileNm : 파일명
// fileName : 다운로드 파일명
function fileDown(dir,fileNm,fileName){
	p = process.frm;

	p.action = '/fileDownload.do';
	p.dir.value = dir;
	p.fileNm.value = fileNm;
	p.fileName.value = fileName;
	
	p.submit();
}

// ######################################### 디자이너 께서 주신 소스

// 롤오보 이미지 스크립트
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


//레이어 팝업창 띄우기, 닫기, 상품연동 소스
function show(object) {
	if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'visible';
	else if (document.all) document.all[object].style.visibility = 'visible';
}
function hide(object) {
	if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'hidden';
	else if (document.all) document.all[object].style.visibility = 'hidden';
}
function goShow(seq) {
	fNew.location.href='/productViewDiv.do?method=productView&seq='+seq
}

function popDownHlp(L) {
	if(n4) document.layers[L].visibility = "hidden"
	else if(e4) document.all[L].style.visibility = "hidden"
}

var arrayTelNo = new Array(
	new Array('02', '02'), 
	new Array('031', '031'), 
	new Array('032', '032'), 
	new Array('033', '033'), 
	new Array('041', '041'), 
	new Array('042', '042'), 
	new Array('043', '043'), 
	new Array('051', '051'), 
	new Array('052', '052'), 
	new Array('053', '053'), 
	new Array('054', '054'),
	new Array('055', '055'),
	new Array('061', '061'),
	new Array('062', '062'),
	new Array('063', '063'),
	new Array('064', '064')
);
var arrayHpNo = new Array(
	new Array('010', '010'), 
	new Array('011', '011'), 
	new Array('016', '016'), 
	new Array('017', '017'), 
	new Array('018', '018'), 
	new Array('019', '019')
);
// ######################################### 전화번호 국번
function printTelNo(key) {
	var txt = "";
	for(var i=0; i < arrayTelNo.length; i++) {
		var arr = arrayTelNo[i];
		var selected = (key == arr[0])?"selected":"";
		txt += "<option value='"+arr[0]+"' "+selected+">"+arr[1]+"</option>";
	}
//	txt = "<option value='02'>02</option>"
//		+ "<option value='031'>031</option>"
//		+ "<option value='032'>032</option>"
//		+ "<option value='033'>033</option>"
//		+ "<option value='041'>041</option>"
//		+ "<option value='042'>042</option>"
//		+ "<option value='043'>043</option>"
//		+ "<option value='051'>051</option>"
//		+ "<option value='052'>052</option>"
//		+ "<option value='053'>053</option>"
//		+ "<option value='054'>054</option>"
//		+ "<option value='055'>055</option>"
//		+ "<option value='061'>061</option>"
//		+ "<option value='062'>062</option>"
//		+ "<option value='063'>063</option>"
//		+ "<option value='064'>064</option>";
	return txt;
}

function printTelNo2(key) {
	for(var i=0; i < arrayTelNo.length; i++) {
		var arr = arrayTelNo[i];
//		var selected = (key == arr[0])?"selected":"";
//		document.write("<option value='"+arr[0]+"' "+selected+">"+arr[1]+"</option>");
		if(key == arr[0]) {
			document.write("<option value='"+arr[0]+"' selected>"+arr[1]+"</option>");
		}
		else
			document.write("<option value='"+arr[0]+"'>"+arr[1]+"</option>");
	}
}

// ######################################### 핸드폰 국번
function printHpNo() {
	var txt = "";
	txt = "<option value='010'>010</option>"
		+ "<option value='011'>011</option>"
		+ "<option value='016'>016</option>"
		+ "<option value='017'>017</option>"
		+ "<option value='018'>018</option>"
		+ "<option value='019'>019</option>";
	return txt;
}

function printHpNo2(key) {
	for(var i=0; i < arrayHpNo.length; i++) {
		var arr = arrayHpNo[i];
//		var selected = (key == arr[0])?"selected":"";
//		document.write("<option value='"+arr[0]+"' "+selected+">"+arr[1]+"</option>");
		if(key == arr[0]) {
			document.write("<option value='"+arr[0]+"' selected>"+arr[1]+"</option>");
		}
		else
			document.write("<option value='"+arr[0]+"'>"+arr[1]+"</option>");
	}
}

// 우편번호 검색
function zipSearch(targ0, targ1, type) {
	openWinCen('zipSearch.do?method=zipSearch&targ0='+targ0+'&targ1='+targ1+"&type="+type,'zipSearch',592,338,'scrollbar=no');
}

// 개체가 배열인지 확인
function hasArrayObj(arg0) {
	if(arg0.length) 
		return true;
	else
		return false;
}

// 전체 체크 함수
// input :  arg0 => 전체선택 체크박스
//			arg1 => 타겟
function fnChkAll(arg0, arg1) {
	if(arg1) {
		var chkfl = (arg0.checked)?'checked':'';
		if(hasArrayObj(arg1)) {			
			for(var i=0; i < arg1.length; i++ ) {
				if(!arg1[i].disabled) 
					arg1[i].checked = chkfl;
			}
		} else {
			if(!arg1.disabled) 
				arg1.checked = chkfl;
		}
	}
	
}

n4 = (document.layers) ? 1 : 0
e4 = (document.all) ? 1 : 0

// 장바구니 넣기
function fnCart(mode,prodInfo){
	location.href = 'cart.do?method=cartAction&mode='+mode+'&prodInfo='+prodInfo

	// mode : 장바구니:CART, 즉시구매:ORDER
	// prodInfo : 제품코드$Sap코드$수량$판매가@제품코드$Sap코드$수량$판매가@제품코드$Sap코드$수량$판매가@
}

// 찜하기
function fnSaveJim(prdSeqArr) {
	p = process.frm

	p.action = '/jimExecute.do?method=jimExecute'
	p.prdSeqArr.value = prdSeqArr
	
	p.submit();
}

// 비교상품
function fnSaveCompare(prdSeqArr) {
	p = process.frm

	p.action = '/compareExecute.do?method=compareExecute'
	p.prdSeqArr.value = prdSeqArr
	
	p.submit();
}

// 상품순서
function fnSaveStep(prdSeqArr,orderByArr) {
	p = process.frm

	p.action = '/stepExecute.do?method=stepExecute'
	p.prdSeqArr.value = prdSeqArr
	p.orderByArr.value = orderByArr
	
	p.submit();
}

// 상품순서 삭제
function fnDeleteStep(prdSeqArr) {
	p = process.frm

	p.action = '/stepExecute.do?method=stepExecute'
	p.mode.value = 'delete'
	p.prdSeqArr.value = prdSeqArr
	
	p.submit();
}

// 상품순서 전체 삭제
function fnDeleteStepAll() {
	if ( confirm('모든 상품 순서가 삭제 됩니다.\n\n삭제 하시겠습니까?') ){
		p = process.frm

		p.action = '/stepExecute.do?method=stepExecute'
		p.mode.value = 'deleteAll'
		
		p.submit();
	}
}

// 입력값 콤마 제거하기
function fnDelComma(src, flag) {
	if(flag == 1) {	// By Value
		return src.replace(/,/g,"");
	} else {
		src.value = src.value.replace(/,/g,"");
	}
}
  
// 입력값콤마 붙이기
function fnSetComma(src, flag) {
	if(flag == 1) {
		return fnComma1000(src, flag);
	}
}

function fnComma1000(obj1, flag) { 
	var sOrg;
	if(flag == 1) { // byval
		//sOrg = obj1.replace(/ /g, "");
		sOrg = obj1;
	} else {
		sOrg = eval(obj1).value.replace(/ /g, "");   
	}
	
    if(isNaN(sOrg) || sOrg.length==0) return "";
  
	var sRetVal     = "";
	var sTmpVal     = "";
	var sFractionVal  = "";
  
    sOrg = sOrg.toString();
    sOrg = sOrg.replace(/,/g,"");

  
	var lLengh = sOrg.search(/\./);

	if (lLengh<0) {
		lLengh = sOrg.length;
	}
	else
		sFractionVal = sOrg.substr(lLengh);

	lLengh    = lLengh;
	var lRemainder  = lLengh % 3;
  
    if (lRemainder == 0 && lLengh > 0)
		lRemainder  = 3;
  
    sRetVal = sOrg.substr(0,lRemainder);
  
	while(lRemainder < lLengh) {
		sTmpVal = sTmpVal + "," + sOrg.substr(lRemainder,3);
		lRemainder  += 3;
	}
	if(sRetVal == "-") sTmpVal = sTmpVal.substr(1,sTmpVal.length);
	sRetVal = sRetVal + sTmpVal + sFractionVal;  
	if(flag == 1) {
		return sRetVal;
	} else {
		eval(obj1).value = sRetVal ;
	}
}

// select 옵션 추가
function fncSelectAdd(obj,value,text){
	oOption=document.createElement("OPTION");
	oOption.value = value
	oOption.text = text
	obj.options.add(oOption);
}

// select 옵션 삭제
function fncSelectDel(obj){
	if ( obj.value != '' ) 
		obj[obj.selectedIndex] = null
	else 
		alert('값을 선택해 주세요')
}

// 즐겨찾기
function favor(){
	window.external.AddFavorite('http://shop.innisfree.co.kr','♥♥ 이니스프리 쇼핑몰 ♥♥')
}


// 플래시 메인비쥬얼(로그인/리아 포함)함수 시작
function SWFLoader(width,height,dir,num1,num2,num3,url1,url2,url3,url4,url5) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<param name='allowFullScreen' value='false'>");
	document.write("<param name='movie' value='"+dir+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='base' value='.'>");
	document.write("<param name=FlashVars value='mmenu="+num1+"&smenu="+num2+"&tmenu="+num3+"&url1="+url1+"&url2="+url2+"&url3="+url3+"&url4="+url4+"&url5="+url5+"' />");
	document.write("<embed base='.' src='"+dir+"' name='wmode' value='transparent' FlashVars='mmenu="+num1+"&smenu="+num2+"&tmenu="+num3+"url1="+url1+"&url2="+url2+"&url3="+url3+"&url4="+url4+"&url5="+url5+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</object>");
}
// 플래시 메인비쥬얼(로그인/리아 포함)함수 끝

//----------------------------------------------- 플래시 외부제어함수 시작
//플래시 아이디명 표준화 :  ID_SWF파일명 예) ID_mainEvent
function callBackSWFLoader(width, height, dir, id, num1, num2, num3, url1, url2, url3, url4, url5) {
	document.write("<object id='"+id+"' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<param name='allowFullScreen' value='false'>");
	document.write("<param name='movie' value='"+dir+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='base' value='.'>");
	document.write("<param name=FlashVars value='mmenu="+num1+"&smenu="+num2+"&tmenu="+num3+"&url1="+url1+"&url2="+url2+"&url3="+url3+"&url4="+url4+"&url5="+url5+"' />");
	document.write("<embed base='.' src='"+dir+"'  name='"+id+"' wmode ='transparent' FlashVars='mmenu="+num1+"&smenu="+num2+"&tmenu="+num3+"url1="+url1+"&url2="+url2+"&url3="+url3+"&url4="+url4+"&url5="+url5+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='always' showLiveConnect='true' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</object>");
}


function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	}
	else {
		return document[movieName];
	}
 }

 function callExternalInterface(movieId) {
    thisMovie(movieId).moveMc();	
}

//----------------------------------------------- 플래시 외부제어함수 끝

// 동영상 플레이어
function fncPlayer(file){
	window.open('/common/player.jsp?file='+file,'','left=50,height=50,width=479,height=421')
}


//스킨트러블
/*
function skinTrouble(e) {
	var width = 79;
	var height = 40;
	var dir = "/images/flash/icon_herb.swf";		
	var type = e;

	html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
	html += "<param name='allowScriptAccess' value='always'>";
	html += "<param name='allowFullScreen' value='false'>";
	html += "<param name='movie' value='"+dir+"'>";
	html += "<param name='quality' value='high'>";
	html += "<param name='wmode' value='transparent'>";
	html += "<param name='base' value='.'>";
	html += "<param name=FlashVars value='url1="+url1+"&type="+e+"' />";
	html += "<embed base='.' src='"+dir+"' FlashVars='url1="+url1+"&type="+e+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
	html += "</object>";
	var skinTroubleBtn = document.getElementById("Btn");
	skinTroubleBtn.style.display = "";
	skinTroubleBtn.innerHTML = html;

 if(e=="on") {
  document.getElementById("hurbFind").className = "on";
  var skinTroubleBtn = document.getElementById("Btn");
  skinTroubleBtn.style.display = "none";
  skinTroubleBtn.innerHTML = "";
 }
 else {
  document.getElementById("hurbFind").className = "off";
  var skinTroubleBtn = document.getElementById("Btn");
  skinTroubleBtn.style.display = "";
  skinTroubleBtn.innerHTML = html;
 }
}*/
//스킨트러블
function skinTrouble(e) {
 if(e=="on") {
  document.getElementById("hurbFind").className = "on";
document.getElementById("hurbFind2").className = "on";
 }
 else {
  document.getElementById("hurbFind").className = "off";
document.getElementById("hurbFind2").className = "off";
 }
}

//quickSearch on off 하면서 새로고침?!
function quickSearch(e, f) {
	var width = 897;
	var height = 437;
	var dir = "/images/flash/quickSearch.swf";
	var url1 = "/product/search_xml.jsp";
	var type = e;
	var _f = "";
	if(f != undefined) _f = f;
	html = "<object id='quickSearchFlash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
	html += "<param name='allowScriptAccess' value='always'>";
	html += "<param name='allowFullScreen' value='false'>";
	html += "<param name='movie' value='"+dir+"'>";
	html += "<param name='quality' value='high'>";
	html += "<param name='wmode' value='transparent'>";
	html += "<param name='base' value='.'>";
	html += "<param name=FlashVars value='url1="+url1+"&type="+e+"&keyword="+_f+"' />";
	html += "<embed name='quickSearchFlash' base='.' src='"+dir+"' FlashVars='url1="+url1+"&type="+e+"&keyword="+_f+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
	html += "</object>";


 if(e == "on") {

	var searchObj = document.getElementById("quickSearch");
	searchObj.style.display = "";
	searchObj.innerHTML = html;
 }
 if(e == "off") {
  var searchObj = document.getElementById("quickSearch");
  searchObj.style.display = "none";
  searchObj.innerHTML = "";
 }
}

//메인 영상
function m_movie(e, url1) {
	var width = 425;
	var height = 362;
	var dir = "/images/flash/movie.swf";		
	var type = e;

	html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
	html += "<param name='allowScriptAccess' value='always'>";
	html += "<param name='allowFullScreen' value='false'>";
	html += "<param name='movie' value='"+dir+"'>";
	html += "<param name='quality' value='high'>";
	html += "<param name='wmode' value='transparent'>";
	html += "<param name='base' value='.'>";
	html += "<param name=FlashVars value='url1="+url1+"&type="+e+"' />";
	html += "<embed base='.' src='"+dir+"' FlashVars='url1="+url1+"&type="+e+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
	html += "</object>";
	var movie = document.getElementById("movie");
	movie.style.display = "";
	movie.innerHTML = html;
}

function hiddenLayer() {
	var movie = document.getElementById("movie");
	movie.style.display = "none";
	movie.innerHTML = "";
}


//부모창 url 읽어오기
function getParentUrl() {
	return window.opener.document.URL;
}

//새창 리사이즈
function windowResize(width, height) {
	var height2 = document.body.scrollHeight;
	
	if(height < height2) 
		height = height2 + 50;
		
	window.resizeTo(width, height);
	window.scrollTo(0,0);	
}


//base64 - Encode / Decode
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + //all caps
   "abcdefghijklmnopqrstuvwxyz" + //all lowercase
   "0123456789+/="; // all numbers plus +/=

//base64 encode function
function encode64(inp)
{
 var out = ""; //This is the output
 var chr1, chr2, chr3 = ""; //These are the 3 bytes to be encoded
 var enc1, enc2, enc3, enc4 = ""; //These are the 4 encoded bytes
 var i = 0; //Position counter
 do //Set up the loop here
 {
  chr1 = inp.charCodeAt(i++); //Grab the first byte
  chr2 = inp.charCodeAt(i++); //Grab the second byte
  chr3 = inp.charCodeAt(i++); //Grab the third byte
  //Here is the actual base64 encode part.
  //There really is only one way to do it.
  enc1 = chr1 >> 2;
  enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
  enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
  enc4 = chr3 & 63;
  if (isNaN(chr2))
  {
   enc3 = enc4 = 64;
  }
  else if (isNaN(chr3))
  {
   enc4 = 64;
  }
  //Lets spit out the 4 encoded bytes
  out = out + keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) +
  keyStr.charAt(enc4);
  // OK, now clean out the variables used.
  chr1 = chr2 = chr3 = "";
  enc1 = enc2 = enc3 = enc4 = "";
 } while (i < inp.length);
 //And finish off the loop
 //Now return the encoded values.
 return out;
}

//base64 decode function
function decode64(inp)
{
 var out = ""; //This is the output
 var chr1, chr2, chr3 = ""; //These are the 3 decoded bytes
 var enc1, enc2, enc3, enc4 = ""; //These are the 4 bytes to be decoded
 var i = 0; //Position counter
 // remove all characters that are not A-Z, a-z, 0-9, +, /, or =
 var base64test = /[^A-Za-z0-9+/=]/g;
 if (base64test.exec(inp)) //Do some error checking
 {
  alert("There were invalid base64 characters in the input text.n" +
  "Valid base64 characters are A-Z, a-z, 0-9, ?+?, ?/?, and ?=?n" +
  "Expect errors in decoding.");
 }
 inp = inp.replace(/[^A-Za-z0-9+/=]/g, "");
 do //Here’s the decode loop.
 {
  //Grab 4 bytes of encoded content.
  enc1 = keyStr.indexOf(inp.charAt(i++));
  enc2 = keyStr.indexOf(inp.charAt(i++));
  enc3 = keyStr.indexOf(inp.charAt(i++));
  enc4 = keyStr.indexOf(inp.charAt(i++));
  //Heres the decode part. There’s really only one way to do it.
  chr1 = (enc1 << 2) | (enc2 >> 4);
  chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
  chr3 = ((enc3 & 3) << 6) | enc4;
  //Start to output decoded content
  out = out + String.fromCharCode(chr1);
  if (enc3 != 64)
  {
   out = out + String.fromCharCode(chr2);
  }
  if (enc4 != 64)
  {
   out = out + String.fromCharCode(chr3);
  }
  //now clean out the variables used
  chr1 = chr2 = chr3 = "";
  enc1 = enc2 = enc3 = enc4 = "";
 } while (i < inp.length); //finish off the loop
 //Now return the decoded values.
 return out;
}

// 모든폼에 OnSubmit시 그냥 맹하게 돌려줄때 ㅋㅋ
function GoHehe(){
	hi = "nerong"
}

//세로가운데 정렬 아리따움
function vAlign() {
 objs = document.getElementsByTagName('DIV');
 for (var i = 0 ; i < objs.length ; i++ )
 {
  if (objs[i].className == "vAlign")
   objs[i].style.marginTop = Math.floor(parseInt(objs[i].parentNode.offsetHeight - objs[i].offsetHeight) / 2)+"px";
 }
}
window.onload = vAlign;

//신제품 아리따움
function BannerFlashLoader(width,height,dir,xmlurl,intervaltime) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<param name='allowFullScreen' value='false'>");
	document.write("<param name='movie' value='"+dir+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='base' value='.'>");
	document.write("<param name=FlashVars value='xmlurl="+xmlurl+"&intervaltime="+intervaltime+"' />");
	document.write("<embed base='.' src='"+dir+"' name='wmode' value='transparent' FlashVars='xmlurl="+xmlurl+"&intervaltime="+intervaltime+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</object>");
}

//페이지설정
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

//leftNavi
function LeftFlashLoader(width,height,dir,xmlurl,current,mmenu,smenu) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<param name='allowFullScreen' value='false'>");
	document.write("<param name='movie' value='"+dir+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='base' value='.'>");
	document.write("<param name=FlashVars value='xmlurl="+xmlurl+"&current="+current+"&mmenu="+mmenu+"&smenu="+smenu+"' />");
	document.write("<embed base='.' src='"+dir+"' name='wmode' value='transparent' FlashVars='xmlurl="+xmlurl+"&current="+current+"&mmenu="+mmenu+"&smenu="+smenu+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</object>");

}

function toggleLeftDiv(e) {
   _left = document.getElementById("leftNavi");
   if(e == "on2") _left.style.width = 305
   else if(e == "on") _left.style.width = 200
   else _left.style.width = 145;
}

//	제품 등록 처리를 위한 
function ajaxResponse(originalRequest)
{
	var retValue = originalRequest.responseText;
}

function operationInterestMyProduct(ajaxUrl, prdtCd)
{
	var url = ajaxUrl + prdtCd;
	var pars = '';

	var myAjax = new Ajax.Request(
		url, 
		{
			method: 'get', 
			parameters: pars, 
			onComplete: ajaxResponse
		});
}

//--
function addScrap(e) {
	operationInterestMyProduct("/ria/addProduct.jsp?prdtCd=", e);	
}
// 스크랩 제품 삭제( 제품 번호 )
function removeScrap(e) {
	operationInterestMyProduct("/ria/deleteProduct.jsp?prdtCd=", e);	
}
// 플래쉬 종료
function searchView(e) {
	var _div = document.getElementById("searchFlash");
	if(e == 1) {
		var type = 1;     // 1. 제품검색, 2. 매장검색
		var width = "100%";    // 플래시 가로
		var height = "100%";   // 플래시 세로 
		var dir = "/images/flash/search.swf";   // 플래시 경로
		var listxmlurl = "/images/flash/link.xml"; // 메뉴 링크 xml
		var addressxmlurl = "/images/flash/address.xml"; // 주소 기본설정 xml
		var addressxmlurl2 = "/ria/searchStore.jsp?searchType=TYPE_SHOP_ADDR&areaCd="; // 주소검색 xml
		//var productxmlurl = "http://220.64.130.41:8074/product.do?method=NEW_PRODUCT_LIST&depth1=2&depth2=1&useFor=ria";  // 신제품 xml
		//var scrapxmlurl = "http://220.64.130.41:8074/product.do?method=GET_MY_INTEREST_PRODUCT&useFor=ria";     // 스크랩 xml
		var productSearch = "/ria/searchProduct.jsp?useFor=ria";     // 제품검색 xml
		var addressSearch = "/ria/searchStore.jsp?searchType=TYPE_SHOP_ADDR"; // 주소검색 xml
		var storeSearch = "/ria/searchStore.jsp?searchType=TYPE_SHOP_NM";  // 매장검색 xml
		var html = "";
		html += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
		html += "<param name='allowScriptAccess' value='always'>";
		html += "<param name='allowFullScreen' value='false'>";
		html += "<param name='movie' value='"+dir+"'>";
		html += "<param name='quality' value='high'>";   
		html += "<param name='wmode' value='transparent'>";
		html += "<param name='base' value='.'>";
		html += "<param name=FlashVars value='type="+type+"&listxmlurl="+listxmlurl+"&addressxmlurl="+addressxmlurl+"&addressxmlurl2="+addressxmlurl2+"&productSearch="+productSearch+"&addressSearch="+addressSearch+"&storeSearch="+storeSearch+"' />";
		html += "<embed base='.' src='"+dir+"' name='wmode' value='transparent' FlashVars='type="+type+"&listxmlurl="+listxmlurl+"&addressxmlurl="+addressxmlurl+"&addressxmlurl2="+addressxmlurl2+"&productSearch="+productSearch+"&addressSearch="+addressSearch+"&storeSearch="+storeSearch+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
		html += "</object>";
		_div.style.display = "";
		_div.innerHTML = html;
	}
	else if(e == 2) {
		var type = 2;     // 1. 제품검색, 2. 매장검색
		var width = "100%";    // 플래시 가로
		var height = "100%";   // 플래시 세로
		var dir = "/images/flash/search.swf";   // 플래시 경로
		var listxmlurl = "/images/flash/link.xml"; // 메뉴 링크 xml
		var addressxmlurl = "/images/flash/address.xml"; // 주소 기본설정 xml
		var addressxmlurl2 = "/ria/searchStore.jsp?searchType=TYPE_SHOP_ADDR&areaCd="; // 주소검색 xml
		//var productxmlurl = "http://220.64.130.41:8074/product.do?method=NEW_PRODUCT_LIST&depth1=2&depth2=1&useFor=ria";  // 신제품 xml
		//var scrapxmlurl = "http://220.64.130.41:8074/product.do?method=GET_MY_INTEREST_PRODUCT&useFor=ria";     // 스크랩 xml
		var productSearch = "/ria/searchProduct.jsp?useFor=ria";     // 제품검색 xml
		var addressSearch = "/ria/searchStore.jsp?searchType=TYPE_SHOP_ADDR"; // 주소검색 xml
		var storeSearch = "/ria/searchStore.jsp?searchType=TYPE_SHOP_NM";  // 매장검색 xml
		var html = "";
		html += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
		html += "<param name='allowScriptAccess' value='always'>";
		html += "<param name='allowFullScreen' value='false'>";
		html += "<param name='movie' value='"+dir+"'>";
		html += "<param name='quality' value='high'>";
		html += "<param name='wmode' value='transparent'>";
		html += "<param name='base' value='.'>";
		html += "<param name=FlashVars value='type="+type+"&listxmlurl="+listxmlurl+"&addressxmlurl="+addressxmlurl+"&addressxmlurl2="+addressxmlurl2+"&productSearch="+productSearch+"&addressSearch="+addressSearch+"&storeSearch="+storeSearch+"' />";
		html += "<embed base='.' src='"+dir+"' name='wmode' value='transparent' FlashVars='type="+type+"&listxmlurl="+listxmlurl+"&addressxmlurl="+addressxmlurl+"&addressxmlurl2="+addressxmlurl2+"&productSearch="+productSearch+"&addressSearch="+addressSearch+"&storeSearch="+storeSearch+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
		html += "</object>";
		_div.style.display = "";
		_div.innerHTML = html;
	}
	else {
		_div.style.display = "none";
		_div.innerHTML = "";
	}
}
//--

//cart
function cartView(e) {
	var width = "100%";
	var height = "100%";
	var url1 = "/images/flash/link_cart.xml"; 
	var dir = "/images/flash/cart_index.swf";		
	var type = e;
	var cartView_e = document.getElementById("cart");
	var html = "";
	
	html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
	html += "<param name='allowScriptAccess' value='always'>";
	html += "<param name='allowFullScreen' value='false'>";
	html += "<param name='movie' value='"+dir+"'>";
	html += "<param name='quality' value='high'>";
	html += "<param name='wmode' value='transparent'>";
	html += "<param name='base' value='.'>";
	html += "<param name=FlashVars value='url1="+url1+"&type="+e+"' />";
	html += "<embed base='.' src='"+dir+"' FlashVars='url1="+url1+"&type="+e+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
	html += "</object>";
	
	if(e == "on") {
		cartView_e.style.display = "";
		cartView_e.innerHTML = html;
	}
	if(e == "off") {
		cartView_e.style.display = "none";
		cartView_e.innerHTML = "";
	}
}

//cart
function main_link(e) {
	var width = "100%";
	var height = "100%";
	var url1 = "/images/flash/link_cart.xml";
	var url2 = "/images/flash/link_cart.xml"; 
	var url3 = "/images/flash/link_cart.xml"; 
	var url4 = "/images/flash/link_cart.xml";
	var url5 = "/images/flash/link_cart.xml"; 
	var dir = "/images/flash/main_visual.swf";		
	var type = e;
	var html = "";
	
	html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
	html += "<param name='allowScriptAccess' value='always'>";
	html += "<param name='allowFullScreen' value='false'>";
	html += "<param name='movie' value='"+dir+"'>";
	html += "<param name='quality' value='high'>";
	html += "<param name='wmode' value='transparent'>";
	html += "<param name='base' value='.'>";
	html += "<param name=FlashVars value='url1="+url1+"&type="+e+"' />";
	html += "<embed base='.' src='"+dir+"' FlashVars='url1="+url1+"&type="+e+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
	html += "</object>";
}

//제품소개
function product01()		{location.href = '/product.do?method=GET_PRODUCT_LIST&siteCd=MKK&findBrandCd=112047&depth1=2&depth2=4&depth3=4';}
function product02()		{location.href = '/product.do?method=GET_PRODUCT_LIST&siteCd=AHK&findBrandCd=112004&depth1=2&depth2=5&depth3=3';}
function product03()		{location.href = '/product.do?method=GET_PRODUCT_LIST&siteCd=AGK&findBrandCd=112048&depth1=2&depth2=4&depth3=1';}
function product04()		{location.href = '/product.do?method=GET_PRODUCT_LIST&siteCd=ADK&findBrandCd=112039&depth1=2&depth2=4&depth3=2';}

function banner2FlashLoader(width,height,dir,xmlurl,intervaltime) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<param name='allowFullScreen' value='false'>");
	document.write("<param name='movie' value='"+dir+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='base' value='.'>");
	document.write("<param name=FlashVars value='xmlurl="+xmlurl+"&intervaltime="+intervaltime+"' />");
	document.write("<embed base='.' src='"+dir+"' name='wmode' value='transparent' FlashVars='xmlurl="+xmlurl+"&intervaltime="+intervaltime+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</object>");

}

// 플래시 메인 서브 링크
function flashMainSubUrl(e) {
 if(e == 1) location.href ='http://www.aritaum.com/info/aritaum_brand.jsp?depth1=1&depth2=1&depth3=1'; // 아리따움 소개 바로가기
 if(e == 2) location.href ='http://www.aritaum.com/info/aritaum_service.jsp?depth1=1&depth2=2'; // 아리따움 서비스 바로가기
 if(e == 3) location.href ='http://www.aritaum.com/brand.do?method=GET_BRAND_ADVERT&depth1=1&depth2=3'; // 브랜드 안내
 if(e == 4) location.href ='http://www.aritaum.com/custonline.do?method=GET_STORE_INFO&depth1=1&depth2=4'; // 가맹점 모집안내 바로가기
 if(e == 5) location.href ='http://www.aritaum.com/info/aritaum_brand.jsp?depth1=1&depth2=1&depth3=1'; // 아리따움 철학 링크
 if(e == 6) location.href ='http://www.aritaum.com/info/aritaum_bi.jsp?depth1=1&depth2=1&depth3=2'; // 아리따움 BI 링크
 if(e == 7) location.href ='http://www.aritaum.com/info/aritaum_brand.jsp?depth1=1&depth2=1&depth3=1'; // 
 if(e == 8) location.href ='http://www.aritaum.com/info/aritaum_service.jsp?depth1=1&depth2=2'; // 
 if(e == 9) location.href ='http://www.aritaum.com/brand.do?method=GET_BRAND_ADVERT&depth1=1&depth2=3'; // 
 if(e == 10) location.href ='http://www.aritaum.com/custonline.do?method=GET_STORE_INFO&depth1=1&depth2=4'; // 
}

//아리따움 갤러리 플래이어 0929
function BrandFlashLoader(width,height,dir,contents) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<param name='allowFullScreen' value='false'>");
	document.write("<param name='movie' value='"+dir+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='base' value='.'>");
	document.write("<param name=FlashVars value='contents="+contents+"' />");
	document.write("<embed base='.' src='"+dir+"' name='wmode' value='transparent' FlashVars='contents="+contents+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</object>");

}

function MM_openBrWindow(theURL,winName,features) {
	//v2.0
	window.open(theURL,winName,features);
}

function viewPop(url){
		window.open(url, '', 'width=1100, height=768, scrollbars=yes, resizable=yes, titlebar=no, toolbar=no');
}
