_wm =0;

ipFillPage 	= 0x1;
ipFillAll 	= 0x2;
ipFill 		= 0x3;
ipInited  	= 0x10;
ipHistory  	= 0x20;

ipSub  		= 0x40;
ipDir  		= 0x80;

ipNoframe   = 0x1000;  

ipRevisited = 0x4000;  
ipWelcome   = 0x8000; 
ipFarewell  = 0x10000; 
ipFavorate  = 0x20000; 
ipEmail     = 0x40000; 

PG_HOME = 0;
PG_LATIN1W = 1;
PG_LATIN1N = 2;
PG_LATIN2 = 3;
PG_ASIAN = 4;
PG_AFRICAN = 5;
PG_ONLINE = 6;
PG_ARTS = 7;
PG_MUSIC = 8;
PG_SPORTS = 9;
PG_GAME = 10;
PG_FAMILY = 11;
PG_TRAVEL = 12;
PG_HUMAN = 13;
PG_EDUCATION = 14;
PG_FINANCE = 15;
PG_INSURANCE = 16;
PG_BUSINESS = 17;
PG_NATURAL = 18;
PG_COMPUTER = 19;
PG_FREEBIE = 20;
PG_MALL = 21;

function fileJS(doc,fn) 
{
	var str = '<scr' + 'ipt language="javascript" src="' + fn + '.js" type="text/javascript"></scr' + 'ipt>';
	doc.write(str);
	return "";
}



ie = document.all?1:0;

if (parent._wm) {
	_wm = parent._wm;

	var genfuncfile = _wm.genfuncfile;
    var f_css = "/freedic_ko_36.css";
	if ( _wm.bLocalHost )
		genfuncfile += "_src.js";
	else {
        if (_wm.Brwsr=="Saf"||_wm.Brwsr=="Unknown")	{
            genfuncfile += "_enc.js";
        }    
        else {
		    genfuncfile += "_enc.js.gz";
            f_css += ".gz";
        }    
	}
    document.write(unescape("%3Cscript src='" + genfuncfile + "' type='text/javascript'%3E%3C/script%3E"));
    document.write(unescape("%3Clink href='" + f_css + "' rel='stylesheet' type='text/css'%3E"));
}


