//	********************************************************************
//	INCLUDED: core, images
//	BROWSER OPTIMALIZATION: other (NOT EXECUTABLE)
//	BROWSER AGENT: _
//	BUILD: 02/05/28 (3.2)
//	********************************************************************



var _width = 0;
var _height = 0;
var _desktop_width = 0;
var _desktop_height = 0;
var blank_img = 'images/blank.gif';
var add_str = '';



function browser_check() {
	this.agt = '_';
	this.major = '';
	this.minor = '';

	this.compatible = 0;
	this.mozilla = 0;
	this.spoofer = 0;
	this.wincmd = 0;
	this.links = 0;
	this.lynx = 0;
	this.lynx_compatible = 0;
	this.gecko = 0;
	this.webtv = 0;

	this.win = 0;
	this.winnt = 0;
	this.win2000 = 0;
	this.winxp = 0;
	this.mac = 0;
	this.linux = 0;
	this.unix = 0;
	this.os = '';

	this.ie = '';
	this.ns = '';
	this.moz = '';
	this.opera = '';
	this.min = 0;
	this.gen5 = 0;
	this.dom = '';
	this.java = navigator.javaEnabled();
	}



function get_scr_res() {
	if ( is.dom == 'domns' ) {
		_width = window.innerWidth + 4;
		_height = window.innerHeight + 4;
		}
	else if ( is.dom == 'dom1' ) {
		_width = window.innerWidth;
		_height = window.innerHeight;
		}
	else if ( is.dom == 'domie' ) {
		_width = document.body.offsetWidth;
		_height = document.body.offsetHeight;
		}
	}



function get_desktop_res() {
	_desktop_width = screen.availWidth;
	_desktop_height = screen.availHeight;
	}



function get_scr_pos_x() {
	if ( is.dom == '' ) return( -1 );
	if ( is.dom == 'domie' ) return( document.body.scrollLeft );
	else return( window.pageXOffset );
	}



function get_scr_pos_y() {
	if ( is.dom == '' ) return( -1 );
	if ( is.dom == 'domie' ) return( document.body.scrollTop );
	else return( window.pageYOffset );
	}



function add_reset() {
	add_str = '';
	}



function add( str ) {
	add_str += str + '\n';
	}



function add_finish() {
	document.writeln( add_str );
	}



function void_fn() {
	}



function im_preload( img_obj, img_src ) {
	if ( document.images ) {
		eval( img_obj + ' = new Image()' );
		eval( img_obj + '.src = "' + img_src + '"' );
		}
	}



function im_change( layer, img_name, img_obj ) {
	if ( document.images ) {
		if ( document.layers && layer != null ) eval( 'document.layers["' + layer + '"].document.images["' + img_name + '"].src = ' + img_obj + '.src');
		else document.images[ img_name ].src = eval( img_obj + ".src" );
		}
	}



function im_swap( layer, my_obj, my_val ) {
	if ( document.images ) {
		if ( document.layers && layer != null ) eval( 'document.' + layer + '.document.images["' + my_obj + '"].src = \'' + my_val + '\'' );
		else document.images[ my_obj ].src = my_val;
		}
	}



var is = new browser_check();
get_desktop_res();



