﻿// JScript File
//This and others free scripts you can find on a site: artdhtml.com
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;

if(ns4){document.write ('<layer name="di1"></layer>')}else{document.write ('<div id="di1" style="position:absolute;z-index:100;"></div>')}

outd=""

if(w3c)div1=document.getElementById('di1');
if(ie4)div1=document.all['di1'];
if(ns4)div1=document.layers['di1'];

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 big(n,divId){

	var coors = findPos(divId);
	var obj = document.getElementById(divId);
	y = coors[1];
	x = coors[0];
	ondiv=n;
	write_div("<a href=javascript:void(0) onmouseout='big_hide()' onmouseover='ondiv=1'><img border=0 name=ib src="+n+"></a>");
	if (isNaN(x+y))return;
	if(ns4){div1.moveTo(x,y)}else{div1.style.left=x+'px';;div1.style.top=y+'px';}		
}

function big_hide(){
	ondiv=0;
	t3=window.setTimeout('big_hide2()',100)
}

function big_hide2(){
if (ondiv==0){
	write_div("");
	move_div(-1000,-1000)
}
}

function findPos(obj) {
	obj = document.getElementById(obj);
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}





