function show(id) {document.getElementById(id).style.display='block';}
function hide(id) {document.getElementById(id).style.display='none';}

function bookmarksite(title, url){
// title = title + ' - ' + document.title;

if (document.all)
	window.external.AddFavorite(url, title);
else if (window.sidebar)
	window.sidebar.addPanel(title, url, "")
}

function hideall() { 
  var all = document.all ? document.all : document.getElementsByTagName('*');
  for (var e = 0; e < all.length; e++)
    if (all[e].className == 'content') // hide all elements with class 'content'
		all[e].style.display='none';
}

function writelocallinks() { 
  var all = document.all ? document.all : document.getElementsByTagName('*');
  var found = 0;
  for (var e = 0; e < all.length; e++)
    if ((all[e].className == 'content') &&  (all[e].style.display == 'none'))// handle all classes with tag '...'
	{
		found++;
		if (found>1) document.write(' | ');
		document.write('<a href="#'+all[e].id+'" class="footer_link" onClick="javascript:hideall(); javascript:show(\''+all[e].id+'\');">'+all[e].id+'</a>'); 
		};
	if (found>0) document.write(' | ');		
}


function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=='IMG'){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=='IMG'){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()