//







var MWJ_winZind = 65535;

function createMiniWinLayer(mainContent,oTitle,oLeft,oTop,oWidth,barColour,mainColour,oLogo,oMin,oMax,oClose,oFull,oDrag,oVis,oFullDrag,anyExtra) {
	if( typeof( oFullDrag ) == 'undefined' ) { window.alert( 'New mini window script incompatible.\nPlease see the script source.' ); return; }
	window.MWJ_MINIWINS = window.MWJ_MINIWINS ? ( window.MWJ_MINIWINS + 1 ) : 1;
	if( document.layers && !document.childNodes ) {
		var theDragString = ' onmouseover="this.captureEvents(Event.MOUSEDOWN);this.onmousedown = function () { clickDiv(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\',\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\',arguments[0]);return false; };"';
		document.write( '<layer bgcolor="#bfbfbf" name="MWJminiwinMAX'+window.MWJ_MINIWINS+'" width="'+oWidth+'" left="'+oLeft+'" top="'+oTop+'" visibility="'+((oVis==1)?'show':'hide')+'"'+(oFullDrag?theDragString:'')+'>'+
			'<table border="2" cellpadding="2" cellspacing="2" width="100%"><tr><td bgcolor="'+barColour+'">'+
			'<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>'+
			'<td align="left" valign="middle" height="16" width="20">'+
			'<a href="javascript:manuf();" onfocus="this.blur()" onmouseover="window.status=\'Clicca qui per le info su queste finestre\';return true;" onmouseout="window.status=\'\';return true;">'+
			'<img src="'+oLogo+'" border="0" height="16" width="16" alt="Info."></a></td>'+
			'<td align="left" valign="middle">'+(oFullDrag?'':'<ilayer width="'+(oWidth-74)+'" height="16" left="0" top="0"><layer width="'+(oWidth-74)+'" height="16" left="0" top="0"'+theDragString+'>')+
			'<font color="#ffffff" face="Arial" size="-1"><b>'+oTitle+
			'</b></font>'+(oFullDrag?'':'</layer></ilayer>')+'</td><td align="right" valign="middle" width="32">'+
			'<a href="javascript:showMinWin(\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\',\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'clicca qui per ridurre a icona la finestra delle news\';return true;" onmouseout="window.status=\'\';return true;">'+
			'<img src="'+oMin+'" border="0" height="16" width="16" alt="Riduci a icona."></a>'+
			'<a href="javascript:hideMinWin(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'Clicca qui per chiudere la finestra delle news\';return true;" onmouseout="window.status=\'\';return true;">'+
			'<img src="'+oClose+'" border="0" height="16" width="16" alt="Chiudi."></a></td></tr></table>'+
			'</td></tr><tr><td bgcolor="'+mainColour+'">'+mainContent+'</td></tr></table></layer>' );
		document.write( '<layer bgcolor="#bfbfbf" name="MWJminiwinMIN'+window.MWJ_MINIWINS+'" width="'+oWidth+'" left="'+oLeft+'" top="'+oTop+'" visibility="'+((oVis==2)?'show':'hide')+'"'+(oFullDrag?theDragString:'')+'>'+
			'<table border="2" cellpadding="2" cellspacing="2" width="100%"><tr><td bgcolor="'+barColour+'">'+
			'<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>'+
			'<td align="left" valign="middle" height="16" width="20">'+
			'<a href="javascript:manuf();" onfocus="this.blur()" onmouseover="window.status=\'Clicca qui per le info su queste finestre\';return true;" onmouseout="window.status=\'\';return true;">'+
			'<img src="'+oLogo+'" border="0" height="16" width="16" alt="Info."></a></td>'+
			'<td align="left" valign="middle">'+(oFullDrag?'':'<ilayer width="'+(oWidth-74)+'" height="16" left="0" top="0"><layer width="100%" left="0" top="0"'+theDragString+'>')+
			'<font color="#ffffff" face="Arial" size="-1"><b>'+oTitle+
			'</b></font>'+(oFullDrag?'':'</layer></ilayer>')+'</td><td align="right" valign="middle" width="32">'+
			'<a href="javascript:showMinWin(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\',\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'clicca qui per ridurre a icona la finestra delle news\';return true;" onmouseout="window.status=\'\';return true;">'+
			'<img src="'+oMin+'" border="0" height="16" width="16" alt="Maximise."></a>'+
			'<a href="javascript:hideMinWin(\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'Clicca qui per chiudere la finestra delle news\';return true;" onmouseout="window.status=\'\';return true;">'+
			'<img src="'+oClose+'" border="0" height="16" width="16" alt="Chiudi."></a></td></tr></table>'+
			'</td></tr></table></layer>' );
	} else {
		var theDragString = ' onmousedown="clickDiv(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\',\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\',arguments[0]);return false;" onselectstart="return false;" ondragstart="return false;"';
		document.write(
			'<div id="MWJminiwinMAX'+window.MWJ_MINIWINS+'" style="width:'+oWidth+'px;position:absolute;left:'+oLeft+'px;top:'+oTop+'px;visibility:'+((oVis==1)?'visible':'hidden')+';"'+(oFullDrag?theDragString:'')+'>'+
			(document.childNodes?('<div style="position:absolute;right:2px;bottom:2px;">'+((oDrag&&!oFullDrag)?'<img src="'+oDrag+'" height="8" width="8" border="0" alt="Ripri." title="Ripristina." onmousedown="clickDiv(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\',\'MWJminiwinMIN'+window.MWJ_MINIWINS+
			'\',arguments[0],true);return false;" onselectstart="return false;" ondragstart="return false;" style="cursor:se-resize;" onmouseover="window.status=\'Drag to resize the mini window\';return true;" onmouseout="window.status=\'\';return true;">':'')+
			'</div>'):'')+'<table border="0" cellpadding="0" cellspacing="0" style="background-color:#bfbfbf;border-left:1px solid #dfdfdf;border-top:1px solid #dfdfdf;border-right:1px solid black;border-bottom:1px solid black;" width="100%"><tr>'+
			'<td style="background-color:#bfbfbf;border-left:1px solid white;border-top:1px solid white;border-right:1px solid #7f7f7f;border-bottom:1px solid #7f7f7f;">'+
			'<table border="0" cellpadding="0" cellspacing="1" width="100%" style="border:1px solid #bfbfbf;"><tr><td>'+
			'<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>'+
			'<td bgcolor="'+barColour+'" align="left" valign="middle" height="16" width="20">'+
			'<a style="text-decoration:none;cursor:default;" href="javascript:manuf();" onfocus="this.blur()" onmouseover="window.status=\'Clicca qui per le info su queste finestre\';return true;" onmouseout="window.status=\'\';return true;" title="Info.">'+
			'<img src="'+oLogo+'" border="0" height="16" width="16" alt="Info."></a></td>'+
			'<td bgcolor="'+barColour+'" align="left" valign="middle" style="color:#ffffff;font-family:Arial,Sans-Serif;font-weight:bold;font-size:12px;cursor:default;" '+
			'onmouseover="window.status=\'Drag here to move the mini window\';return true;" onmouseout="window.status=\'\';return true;"'+
			(oFullDrag?'':theDragString)+' nowrap>'+oTitle+'</td><td bgcolor="'+barColour+'" align="right" valign="middle" width="34"><nobr>'+
			'<a style="text-decoration:none;cursor:default;" href="javascript:showMinWin(\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\',\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'clicca qui per ridurre a icona la finestra delle news\';return true;" onmouseout="window.status=\'\';return true;" title="Riduci a icona.">'+
			'<img src="'+oMin+'" border="0" height="16" width="16" alt="Riduci a icona."></a>'+
			((oFull&&oDrag&&document.childNodes&&!oFullDrag)?'<a style="text-decoration:none;cursor:default;" href="javascript:maximiseWin(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\',\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'Click to maximise the mini window\';return true;" onmouseout="window.status=\'\';return true;" title="Maximise.">'+
			'<img src="'+oFull+'" border="0" height="16" width="16" alt="Maximise."></a>':'')+
			'<a style="text-decoration:none;cursor:default;" href="javascript:hideMinWin(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'Clicca qui per chiudere la finestra delle news\';return true;" onmouseout="window.status=\'\';return true;" title="Chiudi.">'+
			'<img src="'+oClose+'" border="0" height="16" width="16" alt="Chiudi."></a></nobr></td></tr></table>'+
			'</td></tr><tr><td>'+((anyExtra&&document.childNodes)?anyExtra:'')+'<table border="0" cellpadding="4" cellspacing="0" style="'+
			'border-left:1px solid #7f7f7f;border-top:1px solid #7f7f7f;border-right:1px solid white;border-bottom:1px solid white;" width="100%">'+
			'<tr><td style="border-left:1px solid black;border-top:1px solid black;border-right:1px solid #dfdfdf;border-bottom:1px solid #dfdfdf;background-color:'+
			mainColour+';padding:0px;" valign="top"><div style="padding:2px;">'+mainContent+'</div></td></tr></table></td></tr></table></td></tr></table></div>' );
		document.write(
			'<div id="MWJminiwinMIN'+window.MWJ_MINIWINS+'" style="width:'+oWidth+'px;position:absolute;left:'+oLeft+'px;top:'+oTop+'px;visibility:'+((oVis==2)?'visible':'hidden')+';"'+(oFullDrag?theDragString:'')+'>'+
			'<table border="0" cellpadding="0" cellspacing="0" style="background-color:#bfbfbf;border-left:1px solid #dfdfdf;border-top:1px solid #dfdfdf;border-right:1px solid black;border-bottom:1px solid black;" width="100%"><tr>'+
			'<td style="background-color:#bfbfbf;border-left:1px solid white;border-top:1px solid white;border-right:1px solid #7f7f7f;border-bottom:1px solid #7f7f7f;">'+
			'<table border="0" cellpadding="0" cellspacing="1" width="100%" style="border:1px solid #bfbfbf;"><tr><td>'+
			'<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>'+
			'<td bgcolor="'+barColour+'" align="left" valign="middle" height="16" width="20">'+
			'<a style="text-decoration:none;cursor:default;" href="javascript:manuf();" onfocus="this.blur()" onmouseover="window.status=\'Clicca qui per le info su queste finestre\';return true;" onmouseout="window.status=\'\';return true;" title="Info.">'+
			'<img src="'+oLogo+'" border="0" height="16" width="16" alt="Info."></a></td>'+
			'<td bgcolor="'+barColour+'" align="left" valign="middle" style="color:#ffffff;font-family:Arial,Sans-Serif;font-weight:bold;font-size:12px;cursor:default;" '+
			'onmouseover="window.status=\'Drag here to move the mini window\';return true;" onmouseout="window.status=\'\';return true;"'+
			(oFullDrag?'':theDragString)+' nowrap>'+oTitle+'</td><td bgcolor="'+barColour+'" align="right" valign="middle" width="34"><nobr>'+
			'<a style="text-decoration:none;cursor:default;" href="javascript:showMinWin(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\',\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'Clicca qui per ripristinare la finestra delle news\';return true;" onmouseout="window.status=\'\';return true;" title="Ingrandisci.">'+
			'<img src="'+oMax+'" border="0" height="16" width="16" alt="Ingrandisci."></a>'+
			((oFull&&oDrag&&document.childNodes&&!oFullDrag)?'<a style="text-decoration:none;cursor:default;" href="javascript:showMinWin(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\',\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\');maximiseWin(\'MWJminiwinMAX'+window.MWJ_MINIWINS+'\',\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'Click to maximise the mini window\';return true;" onmouseout="window.status=\'\';return true;" title="Maximise.">'+
			'<img src="'+oFull+'" border="0" height="16" width="16" alt="Maximise."></a>':'')+
			'<a style="text-decoration:none;cursor:default;" href="javascript:hideMinWin(\'MWJminiwinMIN'+window.MWJ_MINIWINS+'\');" onfocus="this.blur()" onmouseover="window.status=\'Clicca qui per chiudere la finestra delle news\';return true;" onmouseout="window.status=\'\';return true;" title="Chiudi.">'+
			'<img src="'+oClose+'" border="0" height="16" width="16" alt="Chiudi."></a></nobr></td></tr></table>'+
			'</td></tr></table></td></tr></table></div>' );
	}
	var tempOb = new Object(); tempOb.maxName = 'MWJminiwinMAX'+window.MWJ_MINIWINS; tempOb.minName = 'MWJminiwinMIN'+window.MWJ_MINIWINS; return tempOb;
}

function getRefToDivNest( divID, oDoc ) {
	if( !oDoc ) { oDoc = document; }
	if( document.layers ) {
		if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
			for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
				y = getRefToDivNest(divID,oDoc.layers[x].document); }
			return y; } }
	if( document.getElementById ) { return document.getElementById(divID); }
	if( document.all ) { return document.all[divID]; }
	return document[divID];
}

function winMousePos(e) {
	//get the position of the mouse
	if( !e ) { e = window.event; } if( !e || ( typeof( e.pageX ) != 'number' && typeof( e.clientX ) != 'number' ) ) { return [0,0]; }
	if( typeof( e.pageX ) == 'number' ) { var xcoord = e.pageX; var ycoord = e.pageY; } else {
		var xcoord = e.clientX; var ycoord = e.clientY;
		if( !( ( window.navigator.userAgent.indexOf( 'Opera' ) + 1 ) || ( window.ScriptEngine && ScriptEngine().indexOf( 'InScript' ) + 1 ) || window.navigator.vendor == 'KDE' ) ) {
			if( document.documentElement && ( document.documentElement.scrollTop || document.documentElement.scrollLeft ) ) {
				xcoord += document.documentElement.scrollLeft; ycoord += document.documentElement.scrollTop;
			} else if( document.body && ( document.body.scrollTop || document.body.scrollLeft ) ) {
				xcoord += document.body.scrollLeft; ycoord += document.body.scrollTop; } } }
	return [xcoord,ycoord];
}

function clickDiv(div1,div2,e,isRes) {
	//make note of starting positions and detect mouse movements
	if( ( !window.ActiveXObject || navigator.userAgent.indexOf('Mac') == -1 || navigator.__ice_version ) && document.onmousemove == winIsMove ) { document.onmousemove = window.storeMOUSEMOVE; document.onmouseup = window.storeMOUSEUP; return; }
	if( ( e && ( e.which > 1 || e.button > 1 ) ) || ( window.event && ( window.event.which > 1 || window.event.button > 1 ) ) ) { return; }
	MWJ_winZind += 2;
	div1 = getRefToDivNest(div1); div2 = getRefToDivNest(div2); if( !div2 ) { return; } window.msStartCoord = winMousePos(e);
	div1.currentMWJAction = isRes ? true : false;
	if( isRes ) { window.lyStartCoord = [div1.offsetWidth,div1.getElementsByTagName('div')[1].parentNode.offsetHeight,div1.offsetHeight-div1.getElementsByTagName('div')[1].parentNode.offsetHeight];
	} else { window.lyStartCoord = div1.style?[parseInt(div1.style.left),parseInt(div1.style.top)]:[parseInt(div1.left),parseInt(div1.top)]; }
	if( div1.style ) { div1.style.zIndex = MWJ_winZind; div2.style.zIndex = MWJ_winZind + 1; } else { div1.zIndex = MWJ_winZind; div2.zIndex = MWJ_winZind + 1; }
	if( document.captureEvents && Event.MOUSEMOVE ) { document.captureEvents(Event.MOUSEMOVE); document.captureEvents(Event.MOUSEUP); }
	if( !window.ActiveXObject || navigator.userAgent.indexOf('Mac') == -1 || navigator.__ice_version ) { window.storeMOUSEMOVE = document.onmousemove; window.storeMOUSEUP = document.onmouseup; }
	window.storeLayer = [div1,div2]; document.onmousemove = winIsMove; document.onmouseup = winIsMove;
}

function winIsMove(e) {
	//move the layer to its newest position
	var msMvCo = winMousePos(e); if( !e ) { e = window.event ? window.event : ( new Object() ); }
	e.cancelBubble = true; if( e.stopPropagation ) e.stopPropagation();
	var newX = window.lyStartCoord[0] + ( msMvCo[0] - window.msStartCoord[0] );
	var newY = window.lyStartCoord[1] + ( msMvCo[1] - window.msStartCoord[1] );
	//reset the mouse monitoring as before - delay needed by Gecko to stop jerky response (hence two functions instead of one)
	//as long as the Gecko user does not release one window then click on another within 1ms (!) this will cause no problems
	if( e.type && e.type.toLowerCase() == 'mouseup' ) { document.onmousemove = window.storeMOUSEMOVE; document.onmouseup = window.storeMOUSEUP; }
	if( navigator.product == 'Gecko' ) { window.setTimeout('winIsMove2('+newX+','+newY+');',1); } else { winIsMove2(newX,newY); }
}

function winIsMove2(y,z) {
	if( window.storeLayer[0].currentMWJAction ) { doActualResize(window.storeLayer,y,z,window.lyStartCoord[2]);
	} else { for( var x = 0, oPix = ( document.childNodes ? 'px' : 0 ); x < 2; x++ ) {
		var theLayer = window.storeLayer[x].style ? window.storeLayer[x].style : window.storeLayer[x]; theLayer.left = y + oPix; theLayer.top = z + oPix; }
} }

function doActualResize(oDivs,y,z,offSet) {
	//resize - first to what you want, then again to what was possible (stops the drag handle moving inside the window)
	for( var x = 0; x < 2; x++ ) {
		var theLayer = oDivs[x]; if( y < 0 ) { y = 0; } theLayer.style.width = y + 'px';
		if( !x ) {
			y = theLayer.getElementsByTagName('div')[1].parentNode.offsetWidth + 10; theLayer.style.width = y + 'px';
			if( z < 20 ) { z = 20; } theLayer.getElementsByTagName('div')[1].parentNode.style.height = z + 'px';
			if( !window.ActiveXObject && !navigator.taintEnabled ) { theLayer.getElementsByTagName('div')[1].style.height = ( z - 4 ) + 'px'; }
			z = theLayer.getElementsByTagName('div')[1].parentNode.offsetHeight;
			if( !window.ActiveXObject && !navigator.taintEnabled ) { theLayer.getElementsByTagName('div')[1].style.height = ( z - 4 ) + 'px'; }
			theLayer.getElementsByTagName('div')[1].parentNode.style.height = z + 'px'; theLayer.style.height = ( z + offSet ) + 'px';
} } }

function reWriteWin(theWin,minName,newContent) {
	//rewrite the window content if possible
	var theWin = getRefToDivNest(theWin), minName = getRefToDivNest(minName); if( theWin && document.childNodes && theWin.getElementsByTagName && theWin.getElementsByTagName('div')[1] ) {
		if( !window.ActiveXObject && !navigator.taintEnabled ) { theWin.getElementsByTagName('div')[1].style.height = ( theWin.getElementsByTagName('div')[1].offsetHeight - 4 ) + 'px'; }
		theWin.getElementsByTagName('div')[1].parentNode.style.height = theWin.getElementsByTagName('div')[1].parentNode.offsetHeight + 'px';
		if( window.ActiveXObject && navigator.platform.indexOf( 'Mac' ) + 1 && !navigator.__ice_version ) {
			var theOffset = theWin.offsetHeight - theWin.getElementsByTagName('div')[1].parentNode.offsetHeight;
		} else { var theOffset = theWin.offsetHeight - theWin.getElementsByTagName('div')[1].offsetHeight; }
		theWin.getElementsByTagName('div')[1].innerHTML = newContent;
		if( window.ActiveXObject && navigator.platform.indexOf( 'Mac' ) + 1 && !navigator.__ice_version ) {
			theWin.style.height = ( theWin.getElementsByTagName('div')[1].parentNode.offsetHeight + theOffset ) + 'px';
		} else { theWin.style.height = ( theWin.getElementsByTagName('div')[1].offsetHeight + theOffset ) + 'px'; }
		theWin.style.width = theWin.offsetWidth + 'px'; minName.style.width = theWin.offsetWidth + 'px';
} }

function changeWinBG(winName,newBG) {
	var theWin = getRefToDivNest(winName); if( theWin && theWin.parentNode && theWin.getElementsByTagName && theWin.getElementsByTagName('div')[1] ) {
		theWin.getElementsByTagName('div')[1].parentNode.style.backgroundColor = newBG;
} }

function moveWin(oMax,oMin,x,y) {
	oMax = getRefToDivNest(oMax); oMin = getRefToDivNest(oMin); if( !oMax ) { return; }
	if( oMax.style ) { oMax = oMax.style; oMin = oMin.style; } var oPix = document.childNodes ? 'px' : 0;
	oMax.left = x + oPix; oMin.left = x + oPix; oMax.top = y + oPix; oMin.top = y + oPix;
}

function resizeWin(oMax,oMin,y,z) {
	oMax = [getRefToDivNest(oMax),getRefToDivNest(oMin)]; if( !oMax[0] ) { return; }
	if( oMax[0].getElementsByTagName && document.childNodes ) {
		var oTitlSiz = oMax[0].offsetHeight - oMax[0].getElementsByTagName('div')[1].parentNode.offsetHeight;
		z = z - oTitlSiz; doActualResize(oMax,y,z,oTitlSiz);
} }

function maximiseWin( oMax, oMin ) {
	var div1 = getRefToDivNest(oMax), div2 = getRefToDivNest(oMin); if( !div2 ) { return; } MWJ_winZind += 2;
	if( div1.style ) { div1.style.zIndex = MWJ_winZind; div2.style.zIndex = MWJ_winZind + 1; } else { div1.zIndex = MWJ_winZind; div2.zIndex = MWJ_winZind + 1; }
	var newSet = findMaxSize();
	moveWin(oMax,oMin,newSet[0],newSet[1]);
	resizeWin(oMax,oMin,newSet[2],newSet[3]);
}

function findMaxSize() {
	if( typeof( window.pageXOffset ) == 'number' ) { var x = window.pageXOffset, y = window.pageYOffset;
	} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		var x = document.documentElement.scrollLeft, y = document.documentElement.scrollTop;
	} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		var x = document.body.scrollLeft, y = document.body.scrollTop;
	} else { var x = 0, y = 0; }
	if( window.innerWidth ) { var w = window.innerWidth, h = window.innerHeight;
	} else if( document.documentElement && document.documentElement.clientWidth ) {
		var w = document.documentElement.clientWidth, h = document.documentElement.clientHeight;
	} else if( document.body && document.body.clientWidth ) {
		var w = document.body.clientWidth, h = document.body.clientHeight;
	} else { var w = 400, h = 400; } if( window.opera || ( navigator.product == 'Gecko' && navigator.taintEnabled ) ) { w -= 16; }
	if( !window.ActiveXObject && !navigator.taintEnabled ) { h -= 4; }
	return [x,y,w,h]
}

function hideMinWin(thisDiv) {
	//this function hides the div
	thisDiv = getRefToDivNest(thisDiv); if( !thisDiv ) { return; }
        if( thisDiv.style ) { thisDiv.style.visibility = 'hidden'; } else { thisDiv.visibility = 'hide'; }
}

function showMinWin(thisDiv,thatDiv) {
	//this function shows the div and hides the old one if necessary
	thisDiv = getRefToDivNest(thisDiv); if( thatDiv ) { hideMinWin(thatDiv); } if( !thisDiv ) { return; }
	MWJ_winZind += 2; if( thisDiv.style ) { thisDiv.style.visibility = 'visible'; thisDiv.style.zIndex = MWJ_winZind;
	} else { thisDiv.visibility = 'show'; thisDiv.zIndex = MWJ_winZind; }
}

function manuf() {
     /*
	window.alert('Movable mini window script\nWritten by Mark Wilton-Jones, 2001\n'+
		'\nSee http://www.howtocreate.co.uk/jslibs/termsOfUse.html for terms of use.\n'+
		'\nSee http://www.howtocreate.co.uk/jslibs/ for detailed support info and other scripts');
     */		
}
