function FreedomSaveInit() {  	if (navigator.appName != "Microsoft Internet Explorer") {		document.captureEvents(Event.KEYPRESS);		window.onkeydown = FreedomEditor._KeyDownNS; 		window.onkeyup = FreedomEditor._KeyUpNS; 	} else {		document.body.onkeydown = FreedomEditor._KeyDown; 		document.body.onkeyup = FreedomEditor._KeyUp; 	}}
function FreedomEditor() { }
FreedomEditor._KeyDownNS = function(e) { if (e.which == 17) FreedomEditor._ctrlkey = true; else if (FreedomEditor._ctrlkey && e.which==83) { SaveChanges(true); return false; }}
FreedomEditor._KeyUpNS = function(e) { if (e.which == 17) FreedomEditor._ctrlkey = false; }
FreedomEditor._KeyDown = function() { if (event.keyCode == 17) FreedomEditor._ctrlkey = true; else if (FreedomEditor._ctrlkey && event.keyCode==83) { SaveChanges(true); return false; }}
FreedomEditor._KeyUp = function() { if (event.keyCode == 17) FreedomEditor._ctrlkey = false; }
FreedomEditor._ctrlkey  	= false; 
function FirstFocus() { 	FreedomSaveInit();		if (document.forms.length > 0) 	{ 		for (j = 0; j < document.forms.length; j++) {			theElems = document.forms[j].elements; 			for (i = 0; i < theElems.length; i++) { 				theElem = theElems[i]; 				if (theElem.type == "hidden" && theElem.name == "nofocus")					break; 				if ((theElem.type  && (theElem.type == "hidden" || theElem.type == "select-one")) || (theElem.style && (theElem.style.visibility == "hidden")))					continue; 									theElem.focus(); 				return; 		}		}	}}
function CopyLink() { var url = 'admin.php?src=copylink&srctype=display&redirect=y&direct=y';	window.open(url,'Window','width=500,height=300,scrollbars,resizable'); }
function sp(theRow, thePointerColor){ for (var c = 0; c < theRow.childNodes.length; c++) if (theRow.childNodes.item(c).style != null) theRow.childNodes.item(c).style.backgroundColor = thePointerColor; } 
function brlo(image) {  document.getElementById('logout_left').style.backgroundImage = 'url('+image+'_left.gif)';  document.getElementById('logout_center').style.backgroundImage = 'url('+image+'_center.gif)';  document.getElementById('logout_right').style.backgroundImage = 'url('+image+'_right.gif)'; }
