
WinLIKE.winlist.Active=true;  // show winlist
minState=false; // this not a specific WinLIKE-variable


// change all absolut / relativ Windows but WinList
function change_coordinates()
{
	if (document.getElementById('coordinates').innerHTML=='Absolute') {
		for (var jj=1;jj<WinLIKE.windows.length;jj++)
		  if (WinLIKE.windows[jj]!=null)
		    WinLIKE.windows[jj].Rel = false;
		document.getElementById('coordinates').innerHTML='Relative';
		if (lan=="de") document.getElementById('tipp').innerHTML='Info: Die Fenster sind nun absolut und unabhängig von der Browsergröße!&nbsp;&nbsp;&nbsp;';
		else document.getElementById('tipp').innerHTML='Info: The windows are now absolute and independent of the browser size!&nbsp;&nbsp;&nbsp;';
	} else {
		for (var jj=1;jj<WinLIKE.windows.length;jj++)
		  if (WinLIKE.windows[jj]!=null && WinLIKE.windows[jj].Ttl!='WinList')
		    WinLIKE.windows[jj].Rel = true;
		document.getElementById('coordinates').innerHTML='Absolute';
		if (lan=="de") document.getElementById('tipp').innerHTML='Info: Die Fenster passen sich nun relativ zur Browsergröße an!&nbsp;&nbsp;&nbsp;';
		else document.getElementById('tipp').innerHTML='Info: Now the windows adapt themselfs to the current browser size!&nbsp;&nbsp;&nbsp;';
	}
	WinLIKE.resizewindows();
}  



// change the min/max-properies from all open windows but WinList
function change_minimze()
{
	for (var jj=1;jj<WinLIKE.windows.length;jj++)
		if (WinLIKE.windows[jj]!=null && WinLIKE.windows[jj].Ttl!='WinList')
	  		if ( (minState==true && WinLIKE.windows[jj].Mn==true) || (minState==false && WinLIKE.windows[jj].Mn==false) )
	    			WinLIKE.windows[jj].minmax();
	if (minState==false) {
		minState=true;
		document.getElementById('minmixer').innerHTML='Restore';
	} else {
		minState=false;
		document.getElementById('minmixer').innerHTML='Minimize';
	}
	
}  



// Drag&Save
function change_dragsave()
{
	document.getElementById('draglink').href=WinLIKE.currentstates(false);
}
function no_()
{
	document.getElementById('draglink').href="javascript:nothing_()";
}
function nothing_()
{
	if (lan=="de") document.getElementById('tipp').innerHTML='Info: Ziehen Sie den Drag&Save-Link auf Ihren Desktop oder die Browser-Linkleiste!&nbsp;&nbsp;&nbsp;';	
	else document.getElementById('tipp').innerHTML='Info: Drag the Drag&Save link on your desktop or browser bookmark bar!&nbsp;&nbsp;&nbsp;';	
}



// WinList
WinLIKE.winlist.Adr="content/features/winlist.html";
WinLIKE.winlist.create=my_winlist_function;
function my_winlist_function()
{
	var j=new WinLIKE.window('WinList',180,5,330,75,5);
	j.Cls=false;
	j.Min=false;
	j.Siz=false;
	j.SD=false;
	j.LD=false;
	j.HD=false;
	j.Tit=false;
	j.Bac=true;
	j.Ski='ceitonwinlist';
	return j;
}
WinLIKE.winlist.getitem=my_item_function;
function my_item_function(nr, active, title, name, skin)
{
 	if (title=='WinList') return '';
	return '<nobr><font class=active onMouseUp=actionWinLIKE_("WinLIKE.windows['+nr+'].close()",event)>(x)</font><font class=active onMouseUp=actionWinLIKE_("WinLIKE.windows['+nr+'].front()",event)>&nbsp;'+title+'</font></nobr><br>';
}


