document.execCommand("BackgroundImageCache",false,true) ;

function GetById(id){
                if (id){
                   		if(document.getElementById) {
                   			return document.getElementById(id);
                   		}else if(document.all) {
                   			return document.all[id];
                   		}else if(document.layers) {
                   			return document.layers[id];
                   		}
                 }
                 return null;
}

function l_focus(el, text, focus){	if (!el)
	  return;
	if (focus == 1){		if (el.value == text)
	   el.value = '';
	}
	else{		if (el.value == '')			el.value = text;
	}}
function openWind(url,width,height) {
        number = Math.round(Math.random() * 100000000);
        auxWnd = window.open(url, 'newWindow_' + number,'width=' + width + ',height=' + height + ',resizable=yes,scrollprint=yes,toolbar=no,menubar=no,location=no,status=no,directories=no,copyhistory=no,left=0,top=0');
}

function SwapImage(target, fname) {
	document[target].src = fname;
}

function DisplayFlash(path, width, height, wmode){

    text = "<object type=\"application/x-shockwave-flash\" data=\""+path+"\" width=\""+width+"\" height=\""+height+"\" wmode=\""+wmode+"\" quality=\"high\">\r\n";
    text += "<param name=\"movie\" value=\""+path+"\" />\r\n";
    text += "<param name=\"wmode\" value=\""+wmode+"\" />\r\n";
    text += "<param name=\"quality\" value=\"high\" />\r\n";
    text += "<param name=\"width\" value=\""+width+"\" />\r\n";
    text += "<param name=\"height\" value=\""+height+"\" />\r\n";
    text += "</object>";
    document.write(text);
}

function hidemenu(){	var menu= GetById("mainmenu_id");

	if (menu){
	  if (menu.style.display == '')
	    menu.style.display = 'block';

	  var menu_b = GetById("menu_hide_button_id");

	  if (menu.style.display == 'block'){
	    menu.style.display = 'none';
	    if (menu_b)
	      menu_b.innerHTML = '+';
	  }
	  else{
	    menu.style.display = 'block';
	    if (menu_b)
	      menu_b.innerHTML = '&#8212;';
	  }
  }
}


