	var blnIE = true;
	if (navigator.appName == "Netscape") blnIE = false;

	//login,logout
	function GetURL(obj) {
		var url;

		if (!obj) obj = location;

		url = obj.href.substring(obj.href.indexOf(obj.hostname) + obj.hostname.length, obj.href.length);
	//	url = location.href.substring(location.href.indexOf(location.hostname) + location.hostname.length, location.href.length);
		return url;
	}

	function LOGIN() {
		
		var strURL = GetURL();
	//	var strLocation = "/login/login.asp";
		var strLocation = "https://www.gtn.co.kr/member/login.asp";
		var strPathName = location.pathname.toLowerCase();
		
		if (strPathName.indexOf(strLocation) != -1) return;

		window.location = strLocation + "?reUrl=" + escape(strURL);	
	}

	function LOGOUT(url) {
		var strLocation = "/member/logout.asp";
	//	var strLocation = "/login/logout.asp";
		var strURL = "/";

		url ? strURL = escape(url) : strURL = "/";

		top.location = strLocation + "?url=" + strURL;

	}
	

	/*************************************************************************
	* ajax ÇÑ±Û ÁÖ°í ¹ÞÀ»¶§ xmlHttp ¼¼ÆÃ
	*************************************************************************/
	function GetXmlHttpObject()
	{
		var xmlHttp=null;
		try
		{ xmlHttp=new XMLHttpRequest(); }// Firefox, Opera 8.0+, Safari   
		catch (e)// Internet Explorer
		{
			try
			{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
			catch (e)
			{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }
		}
		return xmlHttp;
	}

	function truebody() 
	{
		return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}
	

	function newsUrlCopy(Num)
	{
		window.clipboardData.setData("Text", document.location.href);
		alert("ÇöÀç±â»ç ÁÖ¼Ò°¡ º¹»çµÇ¾ú½À´Ï´Ù.");
	}

	function newsPrint(Num)
	{
		window.open('/popup/printing.asp?Num='+Num,'printNews','left=10,top=10,width=607,height=650,location=no, scrollbars=yesstatus=no');
	}

	function _get_cookie(name) {
		var search = name + "=";

		if(document.cookie.length > 0) {
			offset = unescape(document.cookie).indexOf(search);

			if(offset != -1) {
				offset += search.length;
				end = unescape(document.cookie).indexOf(";", offset);

				if(end == -1) end = document.cookie.length;

				return unescape(document.cookie).substring(offset, end);
			}
		}

		return "";
	}

	function setFlashADInsert()
	{
		var arrFlashAD = new Array();
		arrFlashAD[arrFlashAD.length] = {URL:"http://www.gtn.co.kr/images/banner/swf/bannerM.swf", ID:"tour2000Banner"};
		arrFlashAD[arrFlashAD.length] = {URL:"http://www.gtn.co.kr/images/banner/swf/Onlinetour_280x240_01.swf", ID:"onlinetourBanner"};

		var rand = Math.floor(Math.random() * arrFlashAD.length); 
		FlashInsert(arrFlashAD[rand].ID, arrFlashAD[rand].URL, '230', '240', 'always', 'transparent', '#000000', 'best', 'top');
	}

	function setFlashAD(cdCode, Type)
	{
		var arrFlashADType = new Array();
		arrFlashADType[arrFlashADType.length] = {cdCode:"1", Type:"A", Width:"230", Height:"240", URL:"http://www.gtn.co.kr/images/banner/swf/adType_1.swf", ID:"flashAdType_1"};
		arrFlashADType[arrFlashADType.length] = {cdCode:"2", Type:"C", Width:"85", Height:"190", URL:"http://www.gtn.co.kr/images/banner/swf/adType_2.swf", ID:"flashAdType_2"};
		arrFlashADType[arrFlashADType.length] = {cdCode:"3", Type:"B", Width:"190", Height:"240", URL:"http://www.gtn.co.kr/images/banner/swf/adType_3.swf", ID:"flashAdType_3"};
		arrFlashADType[arrFlashADType.length] = {cdCode:"4", Type:"T", Width:"140", Height:"220", URL:"http://www.gtn.co.kr/images/banner/swf/adType_4.swf", ID:"flashAdType_4"};
		arrFlashADType[arrFlashADType.length] = {cdCode:"5", Type:"B", Width:"140", Height:"192", URL:"http://www.gtn.co.kr/images/banner/swf/adType_5.swf", ID:"flashAdType_5"};

		//1	: AÇü.3´Ü ÇÃ·¹½Ãº£³Ê(230 * 240)
		//2	: CÇü.¿À¸¥ÂÊ»ó´Üº£³Ê(85*140)
		//3	: BÇü.1´Üº£³Ê-¸ÞÀÎ(190*56)
		//4	: TÇü.1´Üº£³Ê-Á¦ÀÌÇãºê(140*220)
		//5	: BÇü.1´Üº£³Ê-¼­ºê(140*45)
		var selNum = 0;
		for (var i = 0; i <  arrFlashADType.length; i++)
		{
			if (cdCode == arrFlashADType[i].cdCode && Type == arrFlashADType[i].Type)
			{
				selNum = i;
				break;
			}
		}

		FlashInsert(arrFlashADType[selNum].ID, arrFlashADType[selNum].URL, arrFlashADType[selNum].Width, arrFlashADType[selNum].Height, 'always', 'transparent', '#000000', 'best', 'top');
	}

	function WinAirReport(){
		window.open('http://www.tourjockey.com/report/airReport_gtn.asp','gtnAirReport','left=10,top=10,width=710,height=570,location=no,status=no');
	}
	function WinHotelReport(){
		window.open('http://www.tourjockey.com/report/hotelReport_gtn.asp','gtnAirReport','left=10,top=10,width=710,height=500,location=no,status=no');
	}
	function openPDFViewer(){
		window.open('/popup/pdfViewer.asp','pdfViewer','left=10,top=10,width=1010,height=800,location=no,status=no,resizable=yes');
	}
	function openPhotoViewer(N){
		window.open('/popup/photoViewer.asp?gNum='+N,'photoViewerWin','left=10,top=10,width=900,height=720,location=no,status=no,resizable=yes');
	}