function reZOrder(name,num){
 	if (document.getElementById(name)){
		obj=document.getElementById(name);
		obj.style.zIndex=num;
		
	}//eoIf
} //eoFn

reZOrder("locator",4);
reZOrder("menu",6);
reZOrder("banner",8);
reZOrder("MemoBox",10);
reZOrder("slide",12);
reZOrder("backToTop",14);
reZOrder("HeadingBox",16);
reZOrder("bannertext",19);
reZOrder("shadow",18);

// CREDITS:
// Dynamic Image Zone Pointer
// Copyright (c) 2001 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com.
// info@24fun.com
// 12/27/2001

// IMPORTANT: 
// If you add this script to a script-library or script-archive 
// you have to add a link to http://www.24fun.com on the webpage 
// where this script will be running.

////////////////////////////////////////////////////////////////////////////
// CONFIGURATION STARTS HERE
////////////////////////////////////////////////////////////////////////////
//var MaxWidth SET IN CALLING PROGRAM

// map reference in calling program
var useMap="burgundymap"//exc any leading #

// URL of the image
var urlimage="../burgundy-chateaux/burgundy-map.jpg"
// number of dots that create the dotted lines
var dotnumber=150

// color of pointing lines
var dotcolor="red"

// width of each dot (pixels)
var dotwidth=2

// height of each dot (pixels)
var dotheight=1

// horizontal distance of the image to the left margin of the webpage (pixels)
//var img_left=999 //SET IN CALLING PROGRAM

// vertical distance of the image to the top margin of the webpage (pixels)
var img_top=85

////////////////////////////////////////////////////////////////////////////
// CONFIGURATION ENDS HERE
//////////////////////////////////////////////////////////////////////////

// Do not edit the code below
//nb THIS HAS BEEN AMENDED, SEE ORIGINAL 24FUN LINK
var ns6=document.getElementById&&!document.all?1:0
var imgzonex
var imgzoney
var linkx
var linky
var vorzeichenx=1
var vorzeicheny=1
var notinitiated=true

function createline(thislink,thisx,thisy) {
    if (document.all) {
        imgzonex=thisx+img_left
        imgzoney=thisy+img_top
        if (imgzonex>linkx) {vorzeichenx=-1} 
        else{vorzeichenx=1}
        if (imgzoney>linky) {vorzeicheny=-1}
        else{vorzeicheny=1}
        var thisdot=eval("document.all.dot1.style")
        thisdot.posLeft=img_left+thisx
        thisdot.posTop=img_top+thisy
	    for (i=2;i<=dotnumber;i++) {
            var thisdot=eval("document.all.dot"+i+".style")
            thisdot.posLeft=img_left+thisx+vorzeichenx*(((Math.abs(imgzonex-linkx))/(dotnumber)*(i-1)))
            thisdot.posTop=img_top+thisy+vorzeicheny*(((Math.abs(imgzoney-linky))/(dotnumber)*(i-1)))
	    }
    }
    if (ns6) {
        imgzonex=thisx+img_left
        imgzoney=thisy+img_top
        if (imgzonex>linkx) {vorzeichenx=-1} 
        else{vorzeichenx=1}
        if (imgzoney>linky) {vorzeicheny=-1}
        else{vorzeicheny=1}
        document.getElementById('dot1').style.left=img_left+thisx
        document.getElementById('dot1').style.top=img_top+thisy
	    for (i=2;i<=dotnumber;i++) {           document.getElementById("dot"+i).style.left=img_left+thisx+vorzeichenx*(((Math.abs(imgzonex-linkx))/(dotnumber)*(i-1)))
            document.getElementById("dot"+i).style.top=img_top+thisy+vorzeicheny*(((Math.abs(imgzoney-linky))/(dotnumber)*(i-1)))
	    }
    }
    
}


    for (i=1;i<=dotnumber;i++) {
        var zindexcount=1000+i
        document.write("<span id='dot"+i+"' style='position:absolute;left:-10px;top:100px;z-index:"+zindexcount+"'><table cellpadding=0 cellspacing=0 border=0 bgcolor='"+dotcolor+"'><tr><td><img src='emptydot.gif' width='"+dotwidth+"' height='"+dotheight+"' border=0></td></tr></table></span>")
	}
    document.write("<span id='imgcontainer' style='position:absolute;z-index:1;left:"+img_left+"px;top:"+img_top+"px'>")
    document.write("<img src='"+urlimage+"' USEMAP='#"+useMap+"' BORDER=1 ALIGN='CENTER'"+">")
    document.write("</span>")



function handlerMM(e) {
	//linkx = (document.layers || ns6) ? e.pageX : document.body.scrollLeft+event.clientX
	linkx = MaxWidth
	linky = (document.layers || ns6) ? e.pageY : document.body.scrollTop+event.clientY
}

if (document.layers){
	document.captureEvents(Event.MOUSEMOVE);
}

if (document.layers || document.all || ns6) {
    document.onmousemove=handlerMM;
}



