/* Check Browser */
function checkBrowser(){
with(navigator){
_os=platform;
_ver=appVersion;
_agent=userAgent;
}
_img=document.images ? true : false;
_lay=document.layers ? true : false;
_all=document.all ? true : false;
_get=document.getElementById ? true : false;

_bro=(window.opera ? 'OP' : (_all ? 'IE' : (_get ? 'NN6' : (_lay ? 'NN' : 'OT'))));
}

/* style adjustment */
function setCss(){
_def='.p10,.p12,.p14,.p18,.b10,.b12,.b14,.b18,.p10h,.p12h,.b10h,.b12h';
/*mac IE*/
if(_os!='Win32' && !_lay) _def+='{letter-spacing:-1px}';
/*NN4.x*/
if(_lay){
_def+='.p10,.b10,.p10h,.b10h{font-size:11px}';
_def+='\n';
_def+='.p14,.b14{ font-size:15px }';
}
writeCss('_def')
}

/* style setting */
function writeCss(){
if(!(_lay && _ver.indexOf('4.0',0) > -1)){
document.write('<style type="text/css"><!--');
for (var i=0; i<writeCss.arguments.length; i++) {
document.write(eval(arguments[i]));
}
document.write('--></style>');
}
}

/* NN4 reload */
if(document.layers) {
window.onresize=resizeFunc;
}
function resizeFunc(){
location.reload();
}

//pop up for footer
function openWin( url ){
	win = window.open( url, "sub", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=720,height=650");
	win.focus();
}

//pop up
function opencatalog( url, wid, high, scroll, resize){
	opt = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=" + scroll + ",resizable=" + resize + ",width=" + wid + ",height=" + high;
	win = window.open( url, "sub", opt);
	win.focus();
}

