// IMAGE Enlarge functions
ns4=(navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? 1 : 0;
ie4=(document.all && !document.getElementById)? 1 : 0;
ie5=(document.getElementById && document.all)? 1 : 0;
ns6=(document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? 1: 0;
w3c=(document.getElementById)? 1 : 0;

wid=(ie4||ie5)?window.document.body.clientWidth-20:window.innerWidth-36

//was top:-5; left:2;
if(ns4){document.write ('<layer name="main"></layer>')}else{document.write ('<div id="main" style="position:absolute; top:0; left:0; z-index:100"></div>')}

outd=""

if(w3c)div1=document.getElementById('main')
if(ie4)div1=document.all['main']
if(ns4)div1=document.layers['main']


function move_div(x,y){
	if (isNaN(x+y))return
	//if(ns4){div1.moveTo(x,y)}else{div1.style.left=x+'px';div1.style.top=y+'px';}
}

function write_div(text){
	if(ns4){
		div1.document.open();
		div1.document.write(text);
		div1.document.close();
	}
	else {div1.innerHTML=text;}
}
 
function largeIMG(n){
ondiv=n
		write_div("<table cellpadding='0' cellspacing='0' border='0'><tr><td align='center' bgcolor='#DA9413'><div style='margin-top : 2px; margin-left : 2px; margin-bottom : 2px;' align='center'><b class='title_white'>Click image to close</b></div></td></tr><tr><td><a href=javascript:void(0) onmousedown='show(\"ImgDiv\");largeIMG_hide()' onmouseover='ondiv=2'><img name=ib src="+n+" width=250 border=1 style='border-color: #DA9413; border-style: solid;'></a></td></tr></table>");
		move_div(x,y)
}

function largeIMG2(n){
ondiv=n
		write_div("<table cellpadding='0' cellspacing='0' border='0'><tr><td align='center' bgcolor='#DA9413'><div style='margin-top : 2px; margin-left : 2px; margin-bottom : 2px;' align='center'><b class='title_white'>Click image to close</b></div></td></tr><tr><td><a href=javascript:void(0) onmousedown='show(\"ImgDiv\");largeIMG_hide()' onmouseover='ondiv=1'><img name=ib src="+n+" border=1 style='border-color: #DA9413; border-style: solid;'></a></td></tr></table>");
		move_div(x,y)
}

function largeIMG_hide(){
	ondiv=0;
	t3=window.setTimeout('largeIMG_hide2()',100)
}

function largeIMG_hide2(){
if (ondiv==0){
	write_div("");
	move_div(-1000,-1000)}
}

function show(object) {
  if (document.getElementById) {
    document.getElementById(object).style.visibility = 'visible';
  }
  else if (document.layers && document.layers[object]) {
    document.layers[object].visibility = 'visible';
  }
  else if (document.all) {
    document.all[object].style.visibility = 'visible';
  }
}

function hide(object) {
  if (document.getElementById) {
    document.getElementById(object).style.visibility = 'hidden';
  }
  else if (document.layers && document.layers[object]) {
    document.layers[object].visibility = 'hidden';
  }
  else if (document.all) {
    document.all[object].style.visibility = 'hidden';
  }
}

y=x=0

