<!--

	var oLastBtn=0;
	var oLastSel=0;
	
	var NS4 = (document.layers) ? 1 : 0;
	var IE4 = (document.all) ? 1 : 0;



function BodyOnLoad()
	{}

function BodyOnMouseOver(){	
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	if (oBtn != null) {
	if ((oLastSel == 0) && (oBtn.className == oBtn.BtnStyle + "Sel")){
		oLastSel = oBtn;
	}
		
	if(oLastBtn && oLastBtn != oBtn){
		HideBot();
	}
	
	if(oBtn.BtnStyle){
		oBtn.className = oBtn.BtnStyle + "Over";
		oLastBtn=oBtn;
		}
	else {
		  oLastBtn = 0;
		}
	}
}

function BodyOnMouseDown(){
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	if(oBtn.BtnStyle){
		oBtn.className = oBtn.BtnStyle + "Down"; 
	}
}

function BodyOnMouseUp(){	
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	if (oBtn != null) {
	if ((oLastSel == 0) && (oBtn.className == oBtn.BtnStyle + "Sel")){
		oLastSel = oBtn;
	}
		
	if(oLastBtn && oLastBtn != oBtn){
		HideBot();
	}
	
	if(oBtn.BtnStyle){
		oBtn.className = oBtn.BtnStyle + "Over";
		oLastBtn=oBtn;
		}
	else {
		  oLastBtn = 0;
		}
	}
}

function BodyOnClick(){
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	if(oBtn.BtnStyle){
		if (oLastSel == 0)
			DelUnknownSelected();
		oBtn.className = oBtn.BtnStyle + "Sel"; 
		oLastSel.className = oLastSel.BtnStyle + "Off";
		oLastSel = oBtn;
	}
}

function BodyOnMouseOut()	{	
	window.event.cancelBubble=true;
		if(oLastBtn != 0 ){
			HideBotFrame();
			oLastBtn = 0;
		}
}



	
function RaiseBot(){
	
}

function DepressBot(){
}

function SelectBot(){
}
function HideBot(){
	if (oLastBtn == oLastSel)
		oLastBtn.className = oBtn.BtnStyle + "Sel";
	else
		oLastBtn.className = oLastBtn.BtnStyle + "Off";
}

function HideBotFrame(){
	if (oLastBtn == oLastSel)
		oLastBtn.className = oBtn.BtnStyle + "Sel";
	else
		oLastBtn.className = oLastBtn.BtnStyle + "off";
}
function RaiseBotFrame(){
}

		
function DelUnknownSelected () {  
	var element
	if (!element)
    element = document.body;
  for (var c = 0; c < element.all.length; c++) {
    if (element.all[c].className == element.all[c].BtnStyle + "Sel") {
			oLastSel = element.all[c];
		}
	}
}	
	
function swapcolor(obj, val) {
		if (val==-1)
			color = "#0a214a"
		if (val==0)
			color = "#003366"
		if (val==1)
			color = "#004477"
		obj.style.backgroundColor = color;
}	

function ImgMouseOver(element)
{
	var oldPicture = element.src;
	element.src = oldPicture.replace('off', 'over');
}

function ImgMouseDown(element)
{
	var oldPicture = element.src;
	element.src = oldPicture.replace('over', 'down');
}

function ImgMouseOut(element)
{
	var oldPicture = element.src;
	if (oldPicture.indexOf('over') > 0)
		element.src = oldPicture.replace('over','off');
	else
		element.src = oldPicture.replace('down','off');
}

function ImgMouseUp(element)
{
	var oldPicture = element.src;
	element.src = oldPicture.replace('down','over');
}
	
function winpopup(w,h,filUrl,targetName,resize,scroll,l,t) 
	{
		window.open(filUrl,targetName,"width="+w+",height="+h+",left="+l+",top="+t+",resizable="+resize+",scrollbars="+scroll+",status=1,menubar=0,toolbar=0,location=0,directories=0");
	}
	
function ValidateDelete(strValidate)	
{
	return(confirm(strValidate))
}

function linkDropDown(s)
{	
	var d = s.options[s.selectedIndex].value
	if (s.selectedIndex != 0)
		document.location.href = d
}	

function DisplayNested(){
	if(!document.all)
	return
	if (event.srcElement.Disp=='Nested') {
	var srcIndex = event.srcElement.sourceIndex
	var nested = document.all[srcIndex+1]
		if (nested.style.display=="none") {
		nested.style.display=''
		}
		else {
		nested.style.display="none"
		}
	}
}

function rightclickContent(content_id, catalog_id, file_edit_url) {
	if (event.button==2){	
		window.event.cancelbubble=true;
		document.location = '../edit/' + file_edit_url + '?content_id=' + content_id + '&catalog_id=' + catalog_id;
		return false;
	}
}

function rightClickCatalog(catalog_id) {
	if (event.button==2){	
		window.event.cancelbubble=true;
		document.location = '../edit/edit_catalog.asp?catalog_id=' + catalog_id;
		return false;
	} 
}

function rightclickLanguages(setup_id) {
	if (event.button==2){	
		window.event.cancelbubble=true;
		document.location = '../admin/admin_setup.asp?setup_id=' + setup_id;
		return false;
	}
}

		function clearInput(ref,compstring) {
			if ( (ref.value.indexOf(compstring) != -1) && (ref.value.length == compstring.length) )
				ref.value='';
		}	


//-->