
var dragapproved=false

function solvedrag(vardas)
{
iex=event.clientX
iey=event.clientY
tempx= eval(vardas+".style.pixelLeft");
tempy= eval(vardas+".style.pixelTop");
dragapproved=true
document.onmousemove=drag_dropie

function drag_dropie(){
var xtemp=tempx+event.clientX-iex
var ytemp=tempy+event.clientY-iey
if (dragapproved==true){
eval("document.all."+vardas+".style.pixelLeft="+xtemp);
eval("document.all."+vardas+".style.pixelTop="+ytemp);
return false
}
}
}
document.onmouseup=new Function("dragapproved=false")

var direct;
function showDirections(images,title) {
direct = "";
switch (title){
     case "DCA of Central Valdosta":
        direct = "http://maps.yahoo.com/maps_result?newFL=Use+Address+Below&addr=506+North+Patterson+Street&csz=Valdosta%2C+GA+31601&.intl=us&name=&lat=&lon=&srchtype=a&qty=&new=1&trf=0&getmap=Get+Map";
        break;
     case "DCA of South Georgia":
        direct = "http://maps.yahoo.com/maps_result?newFL=Use+Address+Below&addr=3564+North+Crossing+Circle&csz=Valdosta%2C+GA+31602&.intl=us&name=&lat=&lon=&srchtype=a&qty=&new=1&trf=0&getmap=Get+Map";
        break;
     case "DCA of Adel":
        direct = "http://maps.yahoo.com/maps_result?newFL=Use+Address+Below&addr=203+E.+Robinson+Street&csz=Adel%2C+GA+31620&.intl=us&name=&lat=&lon=&srchtype=a&qty=&new=1&trf=0&getmap=Get+Map";
        break;
     case "Main Office":
        direct = "http://maps.yahoo.com/maps_result?addr=3564+N+Crossing+Cir+Ste+B&csz=Valdosta%2C+GA+31602&country=us&new=1&name=&qty";
        break;	
}
mapopup = window.open('','Directions','scrollbars=yes,status=yes,resizable=yes,width=500,height=500');
mapopup.document.writeln("<HTML>");
mapopup.document.writeln("<head>");
mapopup.document.writeln("<Title>Directions: "+title+"</Title>");
mapopup.document.writeln("</head>");
mapopup.document.writeln("<LINK rel=STYLESHEET href=sitecode.css type=text/css>");
mapopup.document.writeln("<body CLASS=body>");
mapopup.document.writeln("<H3>"+title+"</H3>");
if (direct != ""){
mapopup.document.writeln("<a href="+direct+"><img name="+images+" src="+images+" border=1 hspace=0 vspace=0 style='cursor:url(viper.cur)'></a>");
mapopup.document.writeln("<BR><font color=red>*</font>Click on the map to get directions<BR>");
}else{
mapopup.document.writeln("<img name="+images+" src="+images+" border=1 hspace=0 vspace=0 style='cursor:url(viper.cur)'>");
}
mapopup.document.writeln("</body>");
mapopup.focus();
mapopup.close;
}