<!--

	var oLastBtn=0;
	var oLastSel=0;
	
	var NS4 = (document.layers) ? 1 : 0;
	var IE4 = (document.all) ? 1 : 0;
	
	function RaiseBot(){
		
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		if (oBtn != null) {
		if ((oLastSel == 0) && (oBtn.className == oBtn.buttonType + "Sel")){
			oLastSel = oBtn;
		}
			
		if(oLastBtn && oLastBtn != oBtn){
			HideBot();
		}
		
		if(oBtn.buttonType){
			oBtn.className = oBtn.buttonType + "Over";
			oLastBtn=oBtn;
			}
		else {
		    oLastBtn = 0;
		}
		}
	}
	
	function DepressBot(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		if(oBtn.buttonType){
			oBtn.className = oBtn.buttonType + "Down"; 
		}
	}
	
	function SelectBot(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		if(oBtn.buttonType){
			if (oLastSel == 0)
				DelUnknownSelected();
			oBtn.className = oBtn.buttonType + "Sel"; 
			oLastSel.className = oLastSel.buttonType + "Off";
			oLastSel = oBtn;
		}
	}
	
	function HideBot(){
		if (oLastBtn == oLastSel)
			oLastBtn.className = oBtn.buttonType + "Sel";
		else
			oLastBtn.className = oLastBtn.buttonType + "Off";
	}
	
	function HideBotFrame(){
		if (oLastBtn == oLastSel)
			oLastBtn.className = oBtn.buttonType + "Sel";
		else
			oLastBtn.className = oLastBtn.buttonType + "off";
	}
	function RaiseBotFrame(){
		window.event.cancelBubble=true;
			if(oLastBtn != 0 ){
				HideBotFrame();
			  oLastBtn = 0;
			}
	}
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].buttonType + "Sel") {
			oLastSel = element.all[c];
		}
	}
}	
	
function swapcolor(obj, val) {
		if (val==-1)
			color = "#c7d8fa"
		if (val==0)
			color = "#ffffff"
		if (val==1)
			color = "#eff3ff"
		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 displayLanguages(){
	ContactInfo.style.display="none"
	SelectLanguages.style.display=''
}


//-->