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="lim"></layer>')}else{document.write ('<div id="lim" style="position:absolute; top:0; left:0; z-index:100"></div>')}

outd=""

if(w3c)div1=document.getElementById('lim')
if(ie4)div1=document.all['lim']
if(ns4)div1=document.layers['lim']


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;}
}
 
var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;

function getMouseXY(e) 
{
  if (IE) { // grab the x-y pos.s if browser is IE
  tempX = event.clientX + document.body.scrollLeft;
  tempY = event.clientY + document.body.scrollTop;
}
else 
{  
  // grab the x-y pos.s if browser is NS
  tempX = e.pageX;
  tempY = e.pageY;
}  
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  
return true;
}

 
function largeIM(n)
{
    tempX = tempX - 350;
    tempY = tempY-25;
    ondiv=n
    write_div("<table cellpadding='0' cellspacing='1' border='0' width='300' bgcolor='#6B4030' style='position:relative;left:"+tempX+"px;top:"+tempY+"px;'>"+
              "<tr><td align='center'><div style='margin-top : 2px; margin-left : 2px; margin-bottom : 2px; ' align='center'><b class='wtitle'>Click image to close</b></div></td></tr>"+
              "<tr><td>"+
                "<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='#ffffff' align='center'>"+              
                "<tr><td background='images/pattern.jpg' height='7'><img src='images/spacer.gif' height='7' width='1'></td></tr>"+
                "<tr><td bgcolor='#ffffff' align='center'><a href=javascript:void(0) onmousedown='show(\"ppForm\");largeIM_hide()' onmouseover='ondiv=1'><img border=0 name=ib src="+n+"></a></td></tr>"+              
                "</table>"+
              "</td></tr>"+
              "</table>");
    //move_div(x,tempY)
}

function largeIM_zoom(n)
{
    tempX = tempX + 50;
    tempY = tempY-25;
    ondiv=n
    write_div("<table cellpadding='0' cellspacing='1' border='0' width='300' bgcolor='#6B4030' style='position:relative;left:"+tempX+"px;top:"+tempY+"px;'>"+
              "<tr><td align='center'><div style='margin-top : 2px; margin-left : 2px; margin-bottom : 2px; ' align='center'><b class='wtitle'>Click image to close</b></div></td></tr>"+
              "<tr><td>"+
                "<table cellpadding='0' cellspacing='1' border='0' width='100%' bgcolor='#ffffff' align='center'>"+              
                "<tr><td background='images/pattern.jpg' height='7'><img src='images/spacer.gif' height='7' width='1'></td></tr>"+
                "<tr><td bgcolor='#ffffff' align='center'><a href=javascript:void(0) onmousedown='show(\"ppForm\");largeIM_hide()' onmouseover='ondiv=1'><img border=0 name=ib src="+n+"></a></td></tr>"+              
                "</table>"+
              "</td></tr>"+
              "</table>");
    //move_div(x,tempY)
}


function largeIM_Desc(desc)
{
    tempX = tempX - 237;
    tempY = tempY-190;
    ondiv=desc
    desc = desc.replace('``','“');
    desc = desc.replace('--','”');
    desc = desc.replace('!!!!','’');
    desc = desc.replace('++++','–');
    
    write_div("<table cellpadding='0' cellspacing='1' border='0' width='450' height='100' bgcolor='#6B4030' style='position:relative;left:"+tempX+"px;top:"+tempY+"px;'>"+
              "<tr><td align='left' height='17' align='center'><div align='center'><b class='wtitle'>Inscription</b></div></td></tr>"+
              "<tr><td>"+
              "<table cellpadding='0' cellspacing='1' border='0' width='99%' bgcolor='#ffffff' align='center'>"+
              "<tr><td>"+
              "<table cellpadding='0' cellspacing='1' border='0' width='91%' bgcolor='#ffffff' align='center'>"+
              "<tr><td background='images/pattern.jpg' height='7'><img src='images/spacer.gif' height='7' width='1'></td></tr>"+
              "<tr><td><img src='images/spacer.gif' height='10' width='1'></td></tr>"+
              "<tr><td>"+desc+"</td></tr>"+
              "<tr><td><img src='images/spacer.gif' height='10' width='1'></td></tr>"+
              "<tr><td align='center' bgcolor='#ffffff'>"+
              "<a href=javascript:void(0) onmousedown='show(\"ppForm\");largeIM_hide()' onmouseover='ondiv=1'><img src='images/btn_close.jpg' border='0'></a>"+
              "</td></tr>"+              
              "</table>"+
              "</td></tr>"+
              "</table>"+
              "</td></tr>"+
              "</table>");
}



function largeIM_hide()
{
  ondiv=0;
  t3=window.setTimeout('largeIM_hide2()',100)
}

function largeIM_hide2(){
if (ondiv==0){
  write_div("");
  move_div(-1000,-1000)}
}

function thumbIM(n){
ondiv=n
    write_div("<a href=javascript:void(0) onmouseout='thumbIM_hide()' onmouseover='ondiv=1'><img border=0 name=ib src="+n+" width=125 height=125></a>");
    move_div(x,y)
}

function thumbIM_hide(){
  ondiv=0;
  t3=window.setTimeout('thumbIM_hide2()',100)
}

function thumbIM_hide2(){
if (ondiv==0){
  write_div("");
  move_div(-1000,-1000)}
}



y=x=0
//function dragIt(evt){if(ie4||ie5){x=window.event.clientX+document.body.scrollLeft; y=window.event.clientY+document.body.scrollTop}else {x=evt.pageX ; y=evt.pageY }}

//document.onmousemove = dragIt
//if(ns4){document.captureEvents( Event.MOUSEMOVE )}
