// --------------------------------------------

// checks the name of your browser

// isIE or isNN are boolean varibles identeficated this



isNN=navigator.appName.indexOf('Netscape')>=0;

isIE=navigator.appName.indexOf('Explorer')>=0;

 

var bV=parseInt(navigator.appVersion);

NS4=(document.layers) ? true : false;

IE4=((document.all)&&(bV>=4))?true:false;

ver4 = (NS4 || IE4) ? true : false;



// -------------------------------------------

// open extra window 

// usage: openWindow("test.htm") or openWindow("test.jpg", 200, 120)



function openWindow(filename, w, h, winname)

{

    var nWidth;

	var nHeigth;

	

	if (h) nHeigth = h; else nHeigth = 500;

	if (w) nWidth = w; else nWidth = 700;

	if (!winname) winname = "_blank"; 	
	var desktop = window.open(filename, winname, 

    "width="+nWidth+",height="+nHeigth+",toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");

};


function insertFlash(filename, w, h)
{

	if (h) nHeigth = h; else nHeigth = 500;

	if (w) nWidth = w; else nWidth = 700;



 	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"');

	document.write(' ID=24 WIDTH='+ nWidth + 'HEIGHT=' + nHeigth + '>');

 	document.write('<PARAM NAME=movie VALUE="33.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#003399>');

	document.write('<EMBED src=' + filename + ' quality=high bgcolor=#003399  WIDTH='+ nWidth + 'HEIGHT=' + nHeigth + ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');

	document.write('</EMBED></OBJECT>');

};


function mousePageXY(e)
{
    if (!e) e = window.event;
    if (e.pageX || e.pageY)
    {
      mouse_x = e.pageX;
      mouse_y = e.pageY;
    }
    else if (e.clientX || e.clientY)
    {
      mouse_x = e.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft) - document.documentElement.clientLeft;
      mouse_y = e.clientY + (document.documentElement.scrollTop || document.body.scrollTop) - document.documentElement.clientTop;
    }

}
document.onmousemove = function(e){var mCur =mousePageXY(e);}
	




