//------------------------------------------------------------------
//		화면 확대 축소
//------------------------------------------------------------------

///// ZonnInOut //////////////////////////////////////////////////////////////////////////////	
var nowZoom = 100; // 현재비율
var maxZoom = 130; // 최대비율
var minZoom = 100; // 최소비율(현재와 같아야 함)

//화면 키운다.
function zoomIn() {
	if (nowZoom < maxZoom) {
		nowZoom += 10; // 10%씩 커진다.
	} else {
		return;
	}
	if(navigator.appName != "Microsoft Internet Explorer"){
		alert('Microsoft Internet Explorer에서만 지원하는 기능입니다.');
	}
	document.getElementById('wrap').style.zoom = nowZoom + "%";
	document.getElementById('gnb').style.zoom = nowZoom + "%";
}

//화면 줄인다.
function zoomOut() {
	if (nowZoom > minZoom) {
		nowZoom -= 10; // 10%씩 작아진다.
	} else {
		return;
	}
	if(navigator.appName != "Microsoft Internet Explorer"){
		alert('Microsoft Internet Explorer에서만 지원하는 기능입니다.');
	}
	document.getElementById('wrap').style.zoom = nowZoom + "%";
	document.getElementById('gnb').style.zoom = nowZoom + "%";
}

function zoomRestore() {
	document.body.style.zoom = nowZoom + "%";
}

// 즐겨찾기

function bookmarksite(title,url){
  if(window.opera && window.print){ // opera
    /*
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
    */
    alert("해당 브라우저에서는 지원하지 않는 기능입니다.");
  }
  else if(document.all)// ie
    window.external.AddFavorite(url, title);
  else if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
}






