﻿// JScript 파일

///플래시 보기
//path	: 플래시 경로
//wid	: 가로 사이즈
//hei	: 세로 사이트
function ViewFlash( path , width , height )
{
	var strProtocol = (document.location.protocol.indexOf("https")!=-1)?"https":"http";
	var htmlBody = "";
	htmlBody = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='"+strProtocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,23,0' width='" + width + "' height='" + height + "'>" ;
	htmlBody = htmlBody + "<param name=movie value='" + path + "'>" ;
	htmlBody = htmlBody + "<param name='quality' value='high'>" ;
	htmlBody = htmlBody + "<param name='wmode' value='transparent'>" ;
	htmlBody = htmlBody + "<embed src='" + path + "' quality='high' wmode='transparent' pluginspage='"+strProtocol+"://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'>" ;
	htmlBody = htmlBody + "</embed>" ;
	htmlBody = htmlBody + "</object>" ;

	document.write(htmlBody)	; 
}

///플래시동화용 보기
//path	: 플래시 경로
//wid	: 가로 사이즈
//hei	: 세로 사이트
function ViewFlashTale( path , width , height )
{
	var strProtocol = (document.location.protocol.indexOf("https")!=-1)?"https":"http";
	var htmlBody = "";
	htmlBody = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='"+strProtocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,23,0' width='" + width + "' height='" + height + "'>" ;
	htmlBody = htmlBody + "<param name=movie value='" + path + "'>" ;
	htmlBody = htmlBody + "<param name='quality' value='high'>" ;
	htmlBody = htmlBody + "<embed src='" + path + "' quality='high' wmode='transparent' pluginspage='"+strProtocol+"://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'>" ;
	htmlBody = htmlBody + "</embed>" ;
	htmlBody = htmlBody + "</object>" ;

	document.write(htmlBody)	; 
}

///플래시 보기 미리보기용
//path	: 플래시 경로
//wid	: 가로 사이즈
//hei	: 세로 사이트
function ViewFlashParam( path , width , height, flashvars )
{
	var strProtocol = (document.location.protocol.indexOf("https")!=-1)?"https":"http";
	var htmlBody = "";
	htmlBody = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='"+strProtocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,23,0' width='" + width + "' height='" + height + "'>" ;
	htmlBody = htmlBody + "<param name=movie value='" + path + "'>" ;
	htmlBody = htmlBody + "<param name='quality' value='high'>" ;
	htmlBody = htmlBody + "<param name='wmode' value='transparent'>" ;
	htmlBody = htmlBody + "<param name='flashvars' value='"+flashvars+"'";	
	htmlBody = htmlBody + "<embed src='" + path + "' quality='high' wmode='transparent' pluginspage='"+strProtocol+"://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'>" ;
	htmlBody = htmlBody + "</embed>" ;
	htmlBody = htmlBody + "</object>" ;

	document.write(htmlBody)	; 
}



// 탑메뉴용 플레슈 VIEW  
//
//
//

function FlashViewMenu(_url, wsize, hsize, wmode){ 
	document.write();
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width='+wsize+' height='+hsize+' VIEWASTEXT ID="Object1">');
	document.write('<param name="movie" value='+_url+' />');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value='+wmode+'>');
	document.write('<param name="menu" value="false">');
	document.write('<embed src='+_url+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+wsize+' height='+hsize+'></embed>');
	document.write('</object>');
	document.write();
} 

// 메인 플래쉬용
function flashView(_url, wsize, hsize, wmode){ 
	document.write();
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width='+wsize+' height='+hsize+' VIEWASTEXT ID="Object1">');
	document.write('<param name="movie" value='+_url+' />');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="menu" value="false">');
	document.write('<embed src='+_url+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+wsize+' height='+hsize+'></embed>');
	document.write('</object>');
	document.write();
} 
// 메뉴 링크 스크립트 
//
//
//

	function logo(){
      location.href = "/";
    }

	function chkLogin(){
	    var reUrl = escape(location.pathname + location.search);
	    location.href = "/member/Login.aspx?strReUrl=" + reUrl;
	}

	function chkLogOut(){
	   if(!confirm('로그아웃 하시겠습니까?')) {
	      return;
	   }
	   
	   location.href = "/Member/Logout.aspx";
	}
	
	function favorite(){
		window.external.AddFavorite('http://www.freemont.co.kr', '프리먼트')
	}
	
	function myPage(){
		location.href = "/mypage/MyPageMain.aspx";
	}

	function joinUs(){
	  location.href = "/member/MemberJoin_RealName.aspx";
	}

	function modify(){
	  location.href = "/mypage/UserModify_Main.aspx";
	}

	function basket(){
   
		location.href = "/order/cart.aspx";
	}

	function sellPage(){
		window.open("http://dealer.freemont.co.kr","fm_dealer");
	}

	function customer(){
   
		location.href= "/customer/default.aspx";
	}
	
	function eShop(){
        location.href = "/eshop/eShopMain.aspx";
		//alert('이샵');
	}
	

	        
	    
	    
	
	

