﻿var offsetfromcursorX=12 //Customize x offset of tooltip
var offsetfromcursorY=10 //Customize y offset of tooltip

var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).

document.write('<div id="dhtmltooltip"></div>') //write out tooltip DIV
document.write('<img id="dhtmlpointer" src="/Static/Images/tooltiparrow.gif">') //write out pointer image

var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20

var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY

var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true
}
else if (curX<leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
pointerobj.style.left=curX+offsetfromcursorX+"px"
}

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
pointerobj.style.top=curY+offsetfromcursorY+"px"
}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobj.style.visibility="hidden"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip

document.write('<style>#dhtmltooltip{position: absolute;left: -300px;width:Auto; border: 1px solid #a79c80;padding:3px 4px 3px 4px; background-color: #f5f0e6;font-family:Arial;font-size:11px;visibility: hidden;z-index: 100;color:#2e2715;font-weight:normal;}#dhtmlpointer{position:absolute;left: -300px;z-index: 101;visibility: hidden;}</style>');
document.write('<map name="Map" id="Map"><area shape="poly" coords="245,291,244,291,233,290,231,277,247,272,266,276,283,274,299,271,306,275,308,288,301,300,300,304,296,307,286,308" href="#ant-agroltd" onMouseover="ddrivetip(\'Antalya Agro\', 120)"; onMouseout="hideddrivetip()" /><area shape="rect" coords="141,194,247,212" href="#antalya-tarim" onMouseover="ddrivetip(\'Antalya Tarım<br>Üretim, Danışmanlık ve Pazarlama A.Ş<br>Merkez/ Head Office:<br>Aspendos Bulvarı, Antalya Tarım İş Merkezi No:37<br>07300 Antalya / TÜRKİYE<br>info@antalya-tarim.com.tr - www.antalyatarim.com.tr<br><br>Şubeler/Branch Office:<br>Adana: Tel & Fax: +90 322 459 22 75<br>İzmir: Tel : +90 232 458 07 91   Fax : +90 232 468 90 50 <br>Fethiye: Tel: +90 252 612 4530  Gsm: +90 533 629 87 34<br>Mersin: Gsm: +90 533 629 87 58\', 420)"; onMouseout="hideddrivetip()" /><area shape="rect" coords="147,213,240,243" href="#antalya-fide" onMouseover="ddrivetip(\'Antalya Fide A.Ş<br>Pınarlı(Çamköy) Beldesi, Yeni Isparta Yolu<br>Özgür Beton Karşısı Antalya<br>Tel: +90 242  484 13 76  Fax: +90 242 464 13 78<br>antalyafide@anyalya-tarim.com.tr\', 320)"; onMouseout="hideddrivetip()" /><area shape="rect" coords="158,244,230,256" href="#flour-antalya" onMouseover="ddrivetip(\'Fleur Antalya<br>Pınarlı Beldesi / Antalya / TURKEY <br> Tel : +90 242 464 13 75 <br> Fax : +90 242 464 13 73 <br> flower@antalya-tarim.com.tr\', 250)"; onMouseout="hideddrivetip()" /><area shape="circle" coords="303,193,43" href="#cukurova-fide" onMouseover="ddrivetip(\'Çukurova Fide A.Ş.<br>Adanalıoğlu Kasabası - Mersin<br>Tel: +90 324 452 30 24 - 25 <br>Fax: +90 324 452 30 26<br>cukurovafide@antalya-tarim.com.tr\', 320)"; onMouseout="hideddrivetip()" /><area shape="rect" coords="60,68,158,94" href="#agromar-fide" onMouseover="ddrivetip(\'Agromar Fide<br>Bandırma Yolu 1. Km. Karacabey - BURSA<br>Tel: +90 224 676 24 27   Fax: +90 224 676 24 32<br>fide@agromar.com.tr\', 320)"; onMouseout="hideddrivetip()" /><area shape="rect" coords="116,95,207,124" href="#agromar"  onMouseover="ddrivetip(\'AGROMAR A.Ş.<br>Marmara Bölge:<br>Bandırma Yolu 1. Km. Karacabey - Bursa<br>Tel: +90 224 676 24 27  Fax: +90 224 676 25 32<br>Şirket Gsm : +90 533 459 43 90<br>www.agromar.com.tr   -   agromar@agromar.com.tr<br><br>Şubeler/ Branch Office:<br>Samsun: Tel & Fax: +90 362 236 60 34   Gsm: +90 533 419 93 70<br>Tekirdağ: Tel: +90 282 263 19 29   Gsm: +90 533 419 93 72<br>Amasya: Gsm: +90 533 419 93 70<br>Konya: Tel & Fax: +90 332 355 83 62   Gsm: +90 533 419 93 69\', 420)"; onMouseout="hideddrivetip()"/><area shape="circle" coords="79,124,22" href="#medi-food"  onMouseover="ddrivetip(\'MEDI ÖZEL GIDA SAN.VE TİC.A.Ş.<br>Akalan Köyü Mevkii Kemalpaşa – İzmir<br>Tel  : +90 232 876 11 65 - 68<br>Fax : +90 232 876 11 69 - 10 39<br>info@medifinefoods.com\', 320)"; onMouseout="hideddrivetip()"/><area shape="rect" coords="61,148,148,171" href="#ege-fide" onMouseover="ddrivetip(\'Ege Fide A.Ş.<br>Subaşı Köyü - Torbalı - İzmir<br>Tel: +90 232 868 51 00 <br>Fax: +90 232 856 53 77<br>egefide@antalya-tarim.com.tr\', 320)"; onMouseout="hideddrivetip()"/><area shape="rect" coords="58,234,150,265" href="#likya-fide" onMouseover="ddrivetip(\'Likya Fide<br>Karşıyaka Mah. Palmiye Sk.<br>Kumluca / ANTALYA<br>Telefon : +90 242 887 4166<br>Fax : +90 242 887 6775<br>likyafide@antalya-tarim.com.tr\', 420)"; onMouseout="hideddrivetip()" /></map>');