function loadManager() { 
	var lngJumpTo = parent.mainframe.id; 
	var url='/backend.dws?id='+lngJumpTo ;
	var name='Smartsite5Manager';
	var w=screen.width-200;
	var h=screen.height-300;
	openWindowRight(url,name,w,h);
}


function openWindowRight(url,name,w,h,opts) {
	var x = 100;
	var y = 100;
	if (opts==null){opts='toolbar=no,location=no,resizable=yes,status=yes,scrollbars=yes,menubar=no';}
	if (parseInt(navigator.appVersion)>=4){
		return window.open(url,name,opts + ',left='+x+',top='+y+',width='+w+',height='+h)
	} 
	else{ 
		return window.open(url,name,opts + ',width=640,height=480')
	}
}

function toggleText() {
	cwidth =  parent.mainframe.document.getElementById("contentleft").style.width;
	if(cwidth == "auto") { parent.mainframe.document.getElementById("contentleft").style.width = ""; }


	if(cwidth == "400px") {
		parent.mainframe.document.getElementById("contenttop").style.width = '100%';
		parent.mainframe.document.getElementById("contentleft").style.maxWidth = '';
		parent.mainframe.document.getElementById("contentleft").style.width    =  '100%';
		document.cookie = "contentwidth=100";

		/* alert("maxw = geleegd \n width = 100%"); */
	}
	else {
		parent.mainframe.document.getElementById("contenttop").style.width = document.body.clientWidth > 750? "400px": "auto";
		parent.mainframe.document.getElementById("contentleft").style.maxWidth = document.body.clientWidth > 750? "400px": "auto";
		parent.mainframe.document.getElementById("contentleft").style.width    = "";
		document.cookie = "contentwidth=600";

		/* alert("maxw = 600 \n width = geleegd"); */
	}


}

function toggleTree() {
	var s = parent.mainframeset.cols;
	var p=s.indexOf(",");
	s=parseInt(s.substring(0,p));
	if (s > 0) {
		parent.mainframeset.cols = '0,*';
	}
	else{
		parent.mainframeset.cols = '23%,*';
	}
}


function jumpTo(value){
	if(value!=''){
		top.mainframe.document.location='/smartsite.dws?id=' + value;
	}
}
