
function popupWin() {
  window.open("", "popup", "toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=0,resizable=1,width=360,height=260,x=300,y=100,left=300,top=100");}

function show_hide(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function show_BM(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_BM(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}
function show_BP(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_BP(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}
function show_C(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_C(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}
function show_P(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_P(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}
function show_E(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_E(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}
function show_EE(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_EE(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}
function show_new(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_new(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}
function show_dh(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_dh(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}
function show_other(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_other(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}
function show_vids(id, show) {
	if (showText = document.getElementById(id)) {
		if (null==show) show = showText.style.display=='none';
		showText.style.display = (show ? '' : 'none');
	}
}
function hide_vids(id, none) {
	if (hideText = document.getElementById(id)) {
		if (document.getElementById(id)==none) show = hideText.style.display=='';
		hideText.style.display = ('none');
	}
}

    function extractImageTitles()
     {
      images = document.getElementsByTagName('img');
      for (var i = 0; i < images.length; i++)
       {
        var title = images[i].getAttribute('title');
        if ((title) && (title != ''))
         {
          var newdiv = document.createElement('div');
          newdiv.className = 'caption';
          newdiv.appendChild(document.createTextNode(title));
          images[i].parentNode.appendChild(newdiv);
          images[i].removeAttribute('title');
         }
       }
     }

    window.onload = function(e) {
    extractImageTitles();
    }