function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function puwin(sFile, sName, iTop, iLeft, iWidth, iHeight, sResizable, sScrollbars, sMenubar, sToolbar, sStatus) {
	window.open(sFile, sName, 'top=' + iTop + ',left=' + iLeft + ',width=' + iWidth + ',height=' + iHeight + ',menubar=' + sMenubar + ',resizable=' + sResizable + ',scrollbars=' + sScrollbars + ',status=' + sStatus + ',toolbar=' + sToolbar);
}

function fResetMenuItemStyle(){
	var theForm = document.frmMenuItems;
	
	theForm.selPadding.selectedIndex = 0;
	theForm.selAlign.selectedIndex = 0;
	theForm.selVAlign.selectedIndex = 0;
	theForm.ropenonclick[1].checked = true;
	theForm.rcloseonclick[1].checked = true;
	theForm.selDecoration.selectedIndex = 0;
	theForm.selPointer.selectedIndex = 0;
	theForm.txtitemheight.value = '';
	theForm.txtitemwidth.value = '';
	theForm.txtpagematch.value = '';
	theForm.selSeparatorAlign.selectedIndex = 0;
	theForm.selSeparatorSize.selectedIndex = 0;
	theForm.selSeparatorPadding.selectedIndex = 0;
	theForm.txtoffcolor.value = '';
	theForm.txtoffbgcolor.value = '';
	theForm.txtoncolor.value = '';
	theForm.txtonbgcolor.value = '';
	theForm.txtpagecolor.value = '';
	theForm.txtpagebgcolor.value = '';
	theForm.txtheadercolor.value = '';
	theForm.txtheaderbgcolor.value = '';
	theForm.txtmenubgcolor.value = '';
	theForm.txtvisitedcolor.value = '';
	theForm.txtclickcolor.value = '';
	theForm.txtclickbgcolor.value = '';
	theForm.txtseparatorcolor.value = '';
	theForm.selFontFamily.selectedIndex = 0;
	theForm.selFontSize.selectedIndex = 0;
	theForm.selFontStyle.selectedIndex = 0;
	theForm.selFontWeight.selectedIndex = 0;
	theForm.selHeaderBorderThickness.selectedIndex = 0;
	theForm.selHeaderBorderItem.selectedIndex = 0;
	theForm.txtheaderbordercolor.value = '';
	theForm.selOffBorderThickness.selectedIndex = 0;
	theForm.selOffBorderItem.selectedIndex = 0;
	theForm.txtoffbordercolor.value = '';
	theForm.selOnBorderThickness.selectedIndex = 0;
	theForm.selOnBorderItem.selectedIndex = 0;
	theForm.txtonbordercolor.value = '';
	theForm.selPageBorderThickness.selectedIndex = 0;
	theForm.selPageBorderItem.selectedIndex = 0;
	theForm.txtpagebordercolor.value = '';
	theForm.selImage.selectedIndex = 0;
	theForm.selOverImage.selectedIndex = 0;
	theForm.txtimageheight.value = '';
	theForm.txtimagewidth.value = '';
	theForm.selImageAlign.selectedIndex = 0;
	theForm.selImagePosition.selectedIndex = 0;
	theForm.selImagePadding.selectedIndex = 0;
	theForm.selMenuBGImage.selectedIndex = 0;
	theForm.selSubImage.selectedIndex = 0;
	theForm.selOnSubImage.selectedIndex = 0;
	theForm.selSubImagePadding.selectedIndex = 0;
	theForm.selSubImagePosition.selectedIndex = 0;
	theForm.selBGImage.selectedIndex = 0;
	theForm.selOverBGImage.selectedIndex = 0;
	theForm.selSeparatorImage.selectedIndex = 0;
	theForm.txtseparatorwidth.value = '';
	theForm.selPageImage.selectedIndex = 0;
	theForm.selPageBGImage.selectedIndex = 0;
	theForm.selClickImage.selectedIndex = 0;
	theForm.selClickSubImage.selectedIndex = 0;
	theForm.tarawcss.value = '';
}

function toggle_display(object) 
{ 
  if (document.all) { 
     if (document.all[object].style.display == "none") { 
        document.all[object].style.display = "block" ; 
     } else { 
        document.all[object].style.display = "none" ; 
     } 
  } else 
  if (document.getElementById) { 
     if (document.getElementById(object).style.display == "none") { 
        document.getElementById(object).style.display = "block" ; 
     } else { 
        document.getElementById(object).style.display = "none" ; 
     } 
  } 
} 
