// ------------------------------------------------------------------------------------
// -----------------------------------  MvWindow 1.0  ---------------------------------
// ------------------------------------------------------------------------------------
// ------------------------------ mvwindow.sourceforge.net ----------------------------
// ------------------------------------------------------------------------------------

var cookiename = 'mvwindow';	// Cookie name

var n=10;						// number of maximal minimized windows

var MvAnimations = 1;			// Enable oder Disable the Animations ( 0 = off / 1 = on )

// ------------------------------------ No changes above this line --------------------

var mousex;
var mousey;
var maxZ = 1;
var init = 0;

var ywert = 0;
var xwert = 0;
var dragx = 0;
var dragy = 0;
var xnow;
var ynow;

var windowarr = new Array();
var mvw_alloverdiv_over = "mvw_alloverdiv_over";
var mvw_alloverdiv = "mvw_alloverdiv";

var windowname;
var windowsminimizedanz = new Array(n);

while (n>0)
{
	n--;	
	windowsminimizedanz[n]=0;
}

var ismaximized = 0;

 
// ------------------------------------------------------------------------------------

function cookieactivate() {
	setwindows();
}

function newMvWindow(wid){
	if(window.navigator.appName=="Microsoft Internet Explorer"){
        document.write('<div id="'+wid+'" style="position:absolute;"></div>');
    }
	else
	{
		document.write('<div id="'+wid+'" style="position:fixed; top:10px;left:10px; z-index:1;"></div>');
	}	
	//['wid'] = new mvwindow(wid); // fenster objekt erzeugen
	
	//document.write('<div id="'+wid+'overlay" class="mvw_alloverdiv" onclick=viewallreset("'+wid+'") onmouseout="Javascript:this.className=mvw_alloverdiv" onmouseover="Javascript:this.className=mvw_alloverdiv_over" style="position:fixed; visibility:hidden;  top: 10px;	left: 10px;	z-index:0;"></div>');
	windowarr.push(wid);
	
	eval(wid).draw();
}


// ------------------------------------------------------------------------------------
function setCookie(wid){
	if (init == 1){	
		var expdate = new Date ();
    	expdate.setTime (expdate.getTime() + (1000 * 60 * 60 * 24 * 31));
	
		cookievalue= +	
			eval(wid).wx + ',' +
			eval(wid).wy + ',' + 
			eval(wid).sx + ',' + 
			eval(wid).sy + ',' +
			eval(wid).minimizepos + ',' +
			eval(wid).wenable + ',' +
			eval(wid).wdisable + ',' +
			eval(wid).wminimize + ',' +
			eval(wid).wmaximize + ',' +
			eval(wid).zindex  + ',' +
			eval(wid).activewindow + ',' +
			maxZ;
	
		document.cookie = cookiename + '_' + wid + "=" + escape(cookievalue) + 
    	"; expires=" + expdate +  "; path=/";
	}
	
}

// ------------------------------------------------------------------------------------

function clearCookies(){

	var expdate = new Date ();
	
	for (x in windowarr)
	{
	  wid = windowarr[x];
	  document.cookie = cookiename + '_' + wid + "=" + escape('') + "; expires=" + expdate +  "; path=/";
	}
	document.location.reload();
}

// ------------------------------------------------------------------------------------
function getCookie (wid) {
    var dcookie = document.cookie; 
    var cname = cookiename + '_' + wid + "=";
    var clen = dcookie.length;
    var cbegin = 0;
        while (cbegin < clen) {
        var vbegin = cbegin + cname.length;
            if (dcookie.substring(cbegin, vbegin) == cname) { 
            var vend = dcookie.indexOf (";", vbegin);
                if (vend == -1) vend = clen;
            return unescape(dcookie.substring(vbegin, vend));
            }
        cbegin = dcookie.indexOf(" ", cbegin) + 1;
            if (cbegin == 0) break;
        }
    return null;
}

// ------------------------------------------------------------------------------------
function setwindows(){
 if (document.cookie) {
	for (x in windowarr)
	{
	  wid = windowarr[x];
	 		  
	  var tmpwert = getCookie(wid);
	  
	  if (tmpwert)
	  {
	  	var tmpwerte = tmpwert.split(",");
	  	eval(wid).wx = tmpwerte[0];
	  	eval(wid).wy = tmpwerte[1];
	  	eval(wid).sx = tmpwerte[2];
	  	eval(wid).sy = tmpwerte[3];
	  	eval(wid).minimizepos = tmpwerte[4];
	  	eval(wid).wenable = tmpwerte[5];
	  	eval(wid).wdisable = tmpwerte[6];
	  	eval(wid).wminimize = tmpwerte[7];
	  	eval(wid).wmaximize = tmpwerte[8];
	  	eval(wid).zindex = tmpwerte[9];
	  	eval(wid).activewindow = tmpwerte[10];
			maxZ = tmpwerte[11];
	  
	  	if ( eval(wid).zindex > maxZ ) { maxZ = eval(wid).zindex };
	 
	  	document.getElementById(wid).style.height = eval(wid).sy + 'px';
	  	document.getElementById(wid+"content").style.height = (eval(wid).sy)-20 + 'px';
	  	document.getElementById(wid).style.width = eval(wid).sx + 'px';
	  	document.getElementById(wid).style.top = eval(wid).wx + 'px';
	  	document.getElementById(wid).style.left = eval(wid).wy + 'px';
	  
	  	document.getElementById(wid).style.zIndex = eval(wid).zindex;
		
	 	if (eval(wid).wenable == 1){
	 		document.getElementById(wid).style.visibility = 'visible';
	 	}

	 	if (eval(wid).wminimize == 1) {
	 
	 		leftpos = 0;
		
			for (z=0; z<10; z++)
			{
			 if( windowsminimizedanz[z] == 0 )
			 {
			 	leftpos = mbarleftpos + (z*101);
				windowsminimizedanz[z] = 1;
				eval(wid).minimizepos = z;
				break;
			 }
			}
			toppos = document.body.clientHeight - mbarbottompos;
		
	 		document.getElementById(wid).style.width = '100px';
			document.getElementById(wid).style.height = '20px';
			document.getElementById(wid).style.top = toppos + 'px';
			document.getElementById(wid).style.left = leftpos + 'px';
			eval(wid).draw();
	 	}
	 
	 	if (eval(wid).wmaximize == 1) {
	 
	 		document.getElementById(wid).style.width = (eval(wid).maxx - eval(wid).minx) + 'px';
			document.getElementById(wid).style.height = (eval(wid).maxy - eval(wid).miny) + 'px';
			document.getElementById(wid).style.top = eval(wid).miny + 'px';
			document.getElementById(wid).style.left = eval(wid).minx + 'px';
			eval(wid).draw();
			
			document.getElementById(wid+"content").style.height = (eval(wid).maxy - eval(wid).miny)-20 + 'px';
			ismaximized = 1;
	 	}	
	  }
	}
  }
  
  init = 1;
  
  for (x in windowarr)
  {
	document.getElementById("title"+windowarr[x]).className='mvw_title_over';
	if (document.getElementById(windowarr[x]+'contentbgtable')) {
		document.getElementById(windowarr[x]+'contentbgtable').className='mvw_inhalt_over';
	}
	if (eval(windowarr[x]).activewindow == 1){
		document.getElementById("title" + windowarr[x]).className='mvw_title';
		if (document.getElementById(windowarr[x] + 'contentbgtable')){
			document.getElementById(windowarr[x] + 'contentbgtable').className='mvw_inhalt';
		}
	}
		
  }
  
}

// ------------------------------------------------------------------------------------
function setstyle(tid){
	
	for (x in windowarr)
	{
	  document.getElementById("title"+windowarr[x]).className='mvw_title_over';
	  if(document.getElementById(windowarr[x] + 'contentbgtable')){
	  	document.getElementById(windowarr[x] + 'contentbgtable').className='mvw_inhalt_over';
	  }
	  eval(windowarr[x]).activewindow = 0;
	  eval(windowarr[x]).updatecookie();
	}
	
	document.getElementById("title"+tid).className='mvw_title';
	if (document.getElementById(tid + 'contentbgtable')){
		document.getElementById(tid + 'contentbgtable').className='mvw_inhalt';
	}
	
	eval(tid).activewindow = 1;
	eval(tid).updatecookie();
}



// ------------------------------------------------------------------------------------
function showallupanim(wid,z,i,sth,stw,stt,stl,wy,toppos,eh,ew){
	
	document.getElementById(wid).style.width = Math.round(ew-((ew-stw)/z) + (ew-stw)/9)+ 'px';
	document.getElementById(wid).style.height = Math.round(eh-((eh-sth)/z) + (eh-sth)/9)+ 'px';
	document.getElementById(wid+"content").style.height = Math.round(eh-((eh-sth)/z) + (eh-sth)/9)-20+ 'px';
	document.getElementById(wid).style.top = Math.round(toppos-0+((stt-toppos)/z) - (stt-toppos)/9) + 'px';
	document.getElementById(wid).style.left = Math.round(wy-0+((stl-wy)/z) - (stl-wy)/9) + 'px';
	
	document.getElementById(wid+'overlay').style.width = Math.round(ew-((ew-stw)/z) + (ew-stw)/9)-1 + 'px';
	document.getElementById(wid+'overlay').style.height = Math.round(eh-((eh-sth)/z) + (eh-sth)/9)+1 + 'px';
	document.getElementById(wid+'overlay').style.top = Math.round(toppos-0+((stt-toppos)/z) - (stt-toppos)/9) + 'px';
	document.getElementById(wid+'overlay').style.left = Math.round(wy-0+((stl-wy)/z) - (stl-wy)/9) + 'px';
	document.getElementById(wid+'overlay').style.zIndex = maxZ+1 ;
	document.getElementById(wid+'overlay').style.visibility = 'visible';

}

// ------------------------------------------------------------------------------------
function sizedownallanim(wid,z,i,sth,stw,stt,stl,wy,toppos,eh,ew){
	
	document.getElementById(wid).style.width = Math.round(ew-((ew-stw)/z) + (ew-stw)/9)+ 'px';
	document.getElementById(wid).style.height = Math.round(eh-((eh-sth)/z) + (eh-sth)/9)+ 'px';
	document.getElementById(wid+"content").style.height = Math.round(eh-((eh-sth)/z) + (eh-sth)/9)-20+ 'px';
	document.getElementById(wid).style.top = Math.round(toppos-0+((stt-toppos)/z) - (stt-toppos)/9) + 'px';
	document.getElementById(wid).style.left = Math.round(wy-0+((stl-wy)/z) - (stl-wy)/9) + 'px';
	
}

// ------------------------------------------------------------------------------------
function sizeupanim(wid,z,i,sth,stw,stt,stl,wy,toppos,eh,ew){
	
	document.getElementById(wid).style.width = Math.round(ew-((ew-stw)/z) + (ew-stw)/9)+ 'px';
	document.getElementById(wid).style.height = Math.round(eh-((eh-sth)/z) + (eh-sth)/9)+ 'px';
	document.getElementById(wid+"content").style.height = Math.round(eh-((eh-sth)/z) + (eh-sth)/9)-20+ 'px';
	document.getElementById(wid).style.top = Math.round(toppos-0+((stt-toppos)/z) - (stt-toppos)/9) + 'px';
	document.getElementById(wid).style.left = Math.round(wy-0+((stl-wy)/z) - (stl-wy)/9) + 'px';
	
	if(z == 1){
	
		eval(wid).wmaximize = 1;
		eval(wid).wminimize = 0;
		eval(wid).draw();
		
		updateminimized();
		
		eval(wid).updatecookie();
	}
}

// ------------------------------------------------------------------------------------
function sizedownanim(wid,z,i,sth,stw,stt,stl,wy,toppos,eh,ew){
	
	document.getElementById(wid).style.width = Math.round(ew-((ew-stw)/z) + (ew-stw)/9)+ 'px';
	document.getElementById(wid).style.height = Math.round(eh-((eh-sth)/z) + (eh-sth)/9)+ 'px';
	document.getElementById(wid+"content").style.height = Math.round(eh-((eh-sth)/z) + (eh-sth)/9)-20+ 'px';
	document.getElementById(wid).style.top = Math.round(toppos-0+((stt-toppos)/z) - (stt-toppos)/9) + 'px';
	document.getElementById(wid).style.left = Math.round(wy-0+((stl-wy)/z) - (stl-wy)/9) + 'px';
	
	if(z==1){
		eval(wid).draw();
		eval(wid).wmaximize = 0;
		eval(wid).wminimize = 0;
		eval(wid).updatecookie();
		updateminimized();
	}
	
}

// ------------------------------------------------------------------------------------
function minimizeanim(wid,z,i,sth,stw,stt,stl,leftpos,toppos){

	document.getElementById(wid).style.width = Math.round(stw-((stw-100)/z)) + 'px';
	document.getElementById(wid).style.height = Math.round(sth-((sth-20)/z)) + 'px';
	document.getElementById(wid+"content").style.height = Math.round(sth-((sth-20)/z))-20 + 'px';
	document.getElementById(wid).style.top = Math.round((stt-0+((toppos-stt)/z))) + 'px';
	document.getElementById(wid).style.left = Math.round((stl-0+((leftpos-stl)/z))) + 'px';
			
	if(z==1){
		
		eval(wid).wminimize = 1;
		eval(wid).wmaximize = 0;
		eval(wid).draw();
		eval(wid).updatecookie();
	}
	
}

// ------------------------------------------------------------------------------------
function maximizeanim(wid,z,i,sth,stw,stt,stl,wy,toppos,eh,ew){

	document.getElementById(wid).style.width = Math.round(100+((ew-stw)/z)) + 'px';
	document.getElementById(wid).style.top = Math.round(stt-0+((toppos-stt)/z)) + 'px';
	document.getElementById(wid).style.left = Math.round(stl-0+((wy-stl)/z)) + 'px';
				
	if(z==12){
		eval(wid).wminimize = 0;
		eval(wid).wmaximize = 0;
		eval(wid).draw();
	}
	
	if(z==1){
		eval(wid).updatecookie();
		eval(wid).wminimize = 0;
		eval(wid).wmaximize = 0;
		eval(wid).draw();
		updateminimized();
	} 
	
	if((z > 0) & (z < 13)){
	    document.getElementById(wid+"content").style.height = Math.round((20+((eh-sth)/z)))-20;
	    document.getElementById(wid).style.height = Math.round(20+((eh-sth)/z)) + 'px';
	}
}

// ------------------------------------------------------------------------------------
function minimize(wid){

	ismaximized = 0;
	ontop(wid);
	
	var tmpsize = document.getElementById(wid).style.height;
	
	
	if (eval(wid).wminimize == 0) {
		
		
		leftpos = 0;
		
		for (z=0; z<10; z++)
		{
		 if( windowsminimizedanz[z] == 0 )
		 {
		 	leftpos = mbarleftpos + (z*102);
			windowsminimizedanz[z] = 1;
			eval(wid).minimizepos = z;
			break;
		 }
		}
		
		sth = document.getElementById(wid).style.height;
		stw = document.getElementById(wid).style.width;
		stt = document.getElementById(wid).style.top;
		stl = document.getElementById(wid).style.left;
				
		stw = stw.substring(0,stw.indexOf("px"));
		sth = sth.substring(0,sth.indexOf("px"));
		stt = stt.substring(0,stt.indexOf("px"));
		stl = stl.substring(0,stl.indexOf("px"));
		toppos = document.body.clientHeight - mbarbottompos;
		
		i=0;
		
		if (MvAnimations == 1){
			for (z=15; z>0; z--)
			{	
				i++;
				string="minimizeanim('"+wid+"','"+z+"','"+i+"','"+sth+"','"+stw+"','"+stt+"','"+stl+"','"+leftpos+"','"+toppos+"');";
				setTimeout(string,15*i);
			}
		} else {
			string="minimizeanim('"+wid+"','1','"+i+"','"+sth+"','"+stw+"','"+stt+"','"+stl+"','"+leftpos+"','"+toppos+"');";
			setTimeout(string,1);
		}
									
	} else {
	
		sth = document.getElementById(wid).style.height;
		stw = document.getElementById(wid).style.width;
		stt = document.getElementById(wid).style.top;
		stl = document.getElementById(wid).style.left;
		stw = stw.substring(0,stw.indexOf("px"));
		sth = sth.substring(0,sth.indexOf("px"));
		stt = stt.substring(0,stt.indexOf("px"));
		stl = stl.substring(0,stl.indexOf("px"));
		var tmpsy,tmpsx,tmpwx,tmpwy;
		
		tmpsy = eval(wid).sy;
		tmpsx  = eval(wid).sx;
		tmpwx = eval(wid).wx;
		tmpwy = eval(wid).wy;
		
		i=0;
		
		if (MvAnimations == 1){
			for (z=15; z>0; z--)
			{	
				i++;
				string="maximizeanim('"+wid+"','"+z+"','"+i+"','"+sth+"','"+stw+"','"+stt+"','"+stl+"','"+tmpwy+"','"+tmpwx+"','"+tmpsy+"','"+tmpsx+"');";
				setTimeout(string,15*i);
			}
		} else {
			string="maximizeanim('"+wid+"','1','"+i+"','"+sth+"','"+stw+"','"+stt+"','"+stl+"','"+tmpwy+"','"+tmpwx+"','"+tmpsy+"','"+tmpsx+"');";
			setTimeout(string,1);
		}			
		
		windowsminimizedanz[eval(wid).minimizepos] = 0;
		eval(wid).minimizepos = 0;
	}
	
	eval(wid).draw();
	eval(wid).updatecookie();
	
}
// ------------------------------------------------------------------------------------
function ontop(wid){
	maxZ++;
	
	document.getElementById(wid).style.zIndex = maxZ;
	
	eval(wid).zindex = maxZ;
	eval(wid).update;
	eval(wid).updatecookie();
	
	setstyle(wid);
}


//////////////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------- MVWINDOW CLASS -------------------------------------------
//////////////////////////////////////////////////////////////////////////////////////////////////

function mvwindow(id) {

	
	this.wx = 0;				//window top position
	this.wy = 0;				//window left position
	this.sx = 0;				//window width Fenster
	this.sy = 0;				//window height Fenster
	this.zindex = 0;			//zindex
	this.minimizepos = 0; 		//minimized window pos
	
	this.maxx = document.body.clientWidth -10;	// Maxi x Position
	this.minx = 10;				// Minimale x Position
	this.maxy = document.body.clientHeight -10;	// Max y Position
	this.miny = 10;				// Minimale y Position
			
	this.wid;					//window id
	
	this.ContentInfo = "";
	this.activewindow = 0;		//is this window active
	
	this.titleclass;			//css titelbar
	this.titleclassb;			//css titelbar background
	this.contentclass;			//css content
	this.mainclass;				//css main Window
	
	this.wtitle   = '<nobr>settitle() is missing</nobr>' ;
	this.wcontent = '<nobr>setcontent() is missing</nobr>' ;
	
	this.wenable = 0;			//show window
	this.wdisable = 0;			//hide window
	this.wminimize = 0;			//minimized
	this.wmaximize = 0;			//maximized
	
	this.wid = id;
	
	this.startdrag = function(){ // start window drag
		wmove = 1;
	}
	
	this.stopall = function(){
		wmove = 0;
		wresizex = 0;
		wresizey = 0;
	}
	
	this.main = function()		// draw the window main html content
	{
				

		
		this.ContentInfo = " "+
		"<table cellpadding=0 cellspacing=0 width=100% height=100% > " +
		
		  "<tr><td width=100% height=100% align=top>" +
		  	"<table class=mvw_maintable cellpadding=0 cellspacing=0 width=100% height=100% >" +
				"<tr> " +
					"<td colspan=2 width=100% height=20 valign=top> " +
						"<table cellpadding=0 cellspacing=0 width=100% height=20> " +
							"<tr id=title"+this.wid+" class=mvw_title> " +
							 "<td class=mvw_title_space><div id="+this.wid+"title>"+this.wtitle+"</div></td> " +
							 "<td class=mvw_title_space valign=middle align=right><a href=# onclick="+this.wid+".hide();><img src=images/spacer.gif class=mvw_close_btn border=0 /></a></td> " +
							"</tr> " +
						"</table> " +
					"</td> " +
				
				"</tr> " +
				"<tr><td width=100% height=100% id="+this.wid+"contentbgtable class=mvw_inhalt onclick=ontop('"+this.wid+"');>" +
						"<div id="+this.wid+"content class=mvw_contentdiv>"+ this.wcontent +"</div>"+
				"</td></tr>" +
			"</table>" +
		  "</td>" +
		  "<td height=100%>" +
		  	"<table cellpadding=0 cellspacing=0 height=100%>"+
				"<tr><td class=mvw_resizebarx width=1 onmousedown=startdrag('x','"+this.wid+"');><img src=images/spacer.gif width=1 height=1></td></tr>" +
			"</table>" +
		 "</td></tr>" +
			
		"</table>" +
		
		"<table cellpadding=0 cellspacing=0 width=100% height=1px>" +
			"<tr> " +
				"<td width=98% class=mvw_resizebary onmousedown=startdrag('y','"+this.wid+"');><img src=images/spacer.gif width=1 height=1></td> " +
				"<td width=2% class=mvw_resizebarxy onmousedown=startdrag('xy','"+this.wid+"');><img src=images/spacer.gif width=1 height=1></td> " +
			"</tr> " +
		"</table>";
	}
	
	this.draw = function(wert){ 		// draw the window to the div
		
		this.main();
		document.getElementById(this.wid).innerHTML = this.ContentInfo;
		if(this.wenable == 0){
			document.getElementById(this.wid).style.visibility = 'hidden';
		}
	}
	
	this.updatecookie = function(){ 	// renew the window cookie
		setCookie(this.wid);
	}
	
	this.setsize = function(sx,sy,wx,wy){ // set the window size (width,height,top,left)
	

	
		this.wx = wx;
		this.wy = wy;
		this.sx = sx;
		this.sy = sy;
		
		if (document.getElementById(this.wid)){
			document.getElementById(this.wid).style.height = sy;
			if (document.getElementById(this.wid+"content")){
				document.getElementById(this.wid+"content").style.height = sy-20;
			}
			document.getElementById(this.wid).style.width = sx;
			document.getElementById(this.wid).style.top = wx;
			document.getElementById(this.wid).style.left = wy;
		}
		
	}
	
	this.hide = function() 				// hide the window
	{
		document.getElementById(this.wid).style.visibility = 'hidden';
		ontop(this.wid);
		this.wenable = 0;
		this.wdisable = 1;
		setCookie(this.wid);
		
		if (this.wmaximize == 1){
		 ismaximized = 0;
		}
		
		if (this.wminimize == 1){
			updateminimized();
		}
	}
	
	this.show = function() 				// show and draw the window
	{

		document.getElementById(this.wid).style.visibility = 'visible';
		ontop(this.wid);

		
		if (this.wmaximize == 1){
			ismaximized = 1;
		}
		
		this.wenable = 1;
		this.wdisable = 0;
		setCookie(this.wid);
		
		if (this.wminimize == 1){
			minimize(this.wid);
			updateminimized();
		} else {
		
			if (document.getElementById(this.wid)){
				document.getElementById(this.wid).style.height = this.sy;
				if (document.getElementById(this.wid+"content")){
					document.getElementById(this.wid+"content").style.height = this.sy-20;
				}
				document.getElementById(this.wid).style.width = this.sx;
				document.getElementById(this.wid).style.top = this.wx;
				document.getElementById(this.wid).style.left = this.wy;
			}
		}
		
	}
	
	this.setcontent = function(wert) 		// set the window content
	{
		this.wcontent = wert;
		this.replacecontent();
	}
	
	this.replacecontent = function() 		// replace the window content
	{
		document.getElementById(this.wid+"content").innerHTML = this.wcontent;
	}
	
	this.settitle = function(wert) 			// set window title
	{
		this.wtitle = wert;
		this.replacetitle();
	}
	
	this.replacetitle = function() 			// relpace the window title
	{
		document.getElementById(this.wid+"title").innerHTML = this.wtitle;
	}	
			
	this.setwx = function(wert)				//window postiton top
	{
		this.wx = wert;
	}
	
	this.setwy = function(wert)				//window postiton left
	{
		this.wy = wert;
	}
	
	this.setsx = function(wert)				//window width
	{
		this.sx = wert;
	}
	
	this.setsy = function(wert)				//window height
	{
		this.sy = wert;
	}
	
	this.setmaxx = function(wert)			//window max right position
	{
		this.maxx = wert;
	}
	
	this.setminx = function(wert)			//window max left position
	{
		this.minx = wert;
	}
	
	this.setmaxy = function(wert)			//window max top position
	{
		this.maxy = wert;
	}
	
	this.setminy = function(wert)			//window max bottom position
	{
		this.miny = wert;
	}
	
	this.setmax = function(w1,w2,w3,w4)		//set all window max positions
	{
		this.minx = w1;
		this.maxx = w2;
		this.miny = w3;
		this.maxy = w4;
	}
	
}