. */
var dom = (document.getElementById) ? true : false;
var ns5 = (!document.all && dom || window.opera) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ie4 && !ie5 && !dom) ? true : false;
var origWidth, origHeight;
// avoid error of passing event object in older browsers
if (nodyn) { event = "nope" }
/////////////////////// CUSTOMIZE HERE ////////////////////
// settings for tooltip
// Do you want tip to move when mouse moves over link?
var tipFollowMouse= true;
// Be sure to set tipWidth wide enough for widest image
var tipWidth= 505;
var offX= 12; // how far from mouse to show tip
var offY= 12;
var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
var tipFontSize= "8pt";
// set default text color and background color for tooltip here
// individual tooltips can have their own (set in messages arrays)
// but don't have to
var tipFontColor= "#000000";
var tipBgColor= "#FFFFFF";
var tipBorderColor= "#000000";
var tipBorderWidth= 1;
var tipBorderStyle= "ridge";
var tipPadding= 2;
// tooltip content goes here (image, description, optional bgColor, optional textcolor)
var messages = new Array();
// multi-dimensional arrays containing:
// image and text for tooltip
// optional: bgColor and color to be sent to tooltip
messages[0] = new Array('project1b.jpg','Bishops Forest Country Club Resort & Spa - click for details',"#DDECFF");
messages[1] = new Array('project2b.jpg','Momjan Luxury Villas - click for details',"#DDECFF");
messages[2] = new Array('project3b.jpg','Adria de Luna - click for details',"#DDECFF");
messages[3] = new Array('project4b.jpg','Comforta Zagreb - click for details',"#DDECFF");
messages[4] = new Array('project5b.jpg','Stella Maris Court - click for details',"#DDECFF");
messages[5] = new Array('project6b.jpg','PROJECT SUMMARY: Size of land 1,200m2 PLAN DESCRIPTION: Net buildings 750 m2 BUILDING PLANS: 14 luxury apartments REALIZATION PERIOD: Completed 2010',"#DDECFF");
messages[6] = new Array('project7b.jpg','PROJECT SUMMARY: Size of land 14,000 m2 PLAN DESCRIPTION: Net buildings 8,000 m2 approx. BUILDING PLANS: 60 luxury apartments REALIZATION PERIOD: Completed 2010',"#DDECFF");
messages[7] = new Array('project8b.jpg','Golf Resorts Villas - click for details',"#DDECFF");
messages[8] = new Array('project9b.jpg','Rotonda Inn Apartments - click for details',"#DDECFF");
messages[9] = new Array('project10b.jpg','Olive Gardens - click for details',"#DDECFF");
messages[10] = new Array('project11b.jpg','Boutique Hotel Visura - click for details',"#DDECFF");
messages[11] = new Array('project12b.jpg','Little Bay Villas - click for details',"#DDECFF");
messages[12] = new Array('project13b.jpg','Castle Polo Club and Resort - click for details',"#DDECFF");
messages[13] = new Array('project14b.jpg','Brod Gate - click for details',"#DDECFF");
messages[14] = new Array('project15b.jpg','The Project: Residential project near the waterfront for foreigners and locals Plot area: 80,000 m2 Built area: Gross 93,027 Sqm of residential area Units: Flats with parking spaces (second homes) Status: Approved GUP',"#DDECFF");
messages[15] = new Array('project16b.jpg','The Project: Residential and commercial development for foreign tourists located on the first line to the sea with clear view of the Brijuni Islands Plot area: 16,796 m2 Built area: Nett 29,020 m2 Units: Hotel and 145 apartments and 216 parking spaces Status: Approved GUP; approved PPU/UPU; awaiting DPU within the next 5 months',"#DDECFF");
messages[16] = new Array('project17b.jpg','The Project: Residential and commercial development for foreign tourists located on the first line to the sea Plot area: 12,500 m2 Built area: Gross 24,044 - Nett 18,865 Units: 156 apartments with parking spaces Status: Approved GUP; approved PPU / UPU process',"#DDECFF");
messages[17] = new Array('project18b.jpg','The Project: Residential Developments Plot area: 12,500 m2 Built area: Gross - 25,200 m2 Units: 180 apartments with parking spaces Status: GUP approved / UPU process',"#DDECFF");
messages[18] = new Array('project19b.jpg','The Project: Residential Development designated for foreign tourists direct view to the sea Plot area: 4,309 m2 Built area: Gross 5,000 m2 Units: 58 apartments and 86 parking Status: Building permit exists',"#DDECFF");
messages[19] = new Array('project20b.jpg','The Project: Residential Development designated for foreign tourists Located on the first line to the sea Plot area: 4,676 m2 Built area: Gross 2,256 m2 Units: 6x2 attached and 4 individual villas Status: Approved GUP; approved UPU',"#DDECFF");
messages[20] = new Array('project21b.jpg','PROJECT SUMMARY: 4 Villas PLAN DESCRIPTION: Size of land 1,497 m2 BUILDING PLANS: Residential REALIZATION PERIOD: 18 Months PROJECT FOR SALE: Sale',"#DDECFF");
messages[21] = new Array('project22b.jpg','PROJECT SUMMARY: Size of land 2,400 m2 PLAN DESCRIPTION: Net buildings 400 m2 BUILDING PLANS: 2 Mediterranean villas with swimming pools REALIZATION PERIOD: 16 Months. This magnificent 2 villa, surrounded by hills, offers a breathtaking view of the Sea',"#DDECFF");
messages[22] = new Array('project23b.jpg','PROJECT SUMMARY: Size of land 24,890 m2 PLAN DESCRIPTION: Net buildings 400 m2 BUILDING PLANS: 1 Mediterranean villa with swimming pool REALIZATION PERIOD: 12 Months',"#DDECFF");
messages[23] = new Array('project24b.jpg','Stone Twin Park - click for details',"#DDECFF");
messages[24] = new Array('project25b.jpg','PROJECT SUMMARY: Size of land 1,700 m2 PLAN DESCRIPTION: Net buildings 1,400 m² BUILDING PLANS: Luxury developments - commercial and hotel REALIZATION PERIOD: 24 Months',"#DDECFF");
messages[25] = new Array('projectucb.jpg','Under Construction',"#DDECFF");
messages[26] = new Array('project4b.jpg','Istrian Water Mill Village',"#DDECFF");
messages[27] = new Array('project5b.jpg','Mediterranean Villas',"#DDECFF");
messages[28] = new Array('project6b.jpg','City Centre Pula',"#DDECFF");
messages[29] = new Array('projectucb.jpg','Under Construction',"#DDECFF");
//////////////////// END OF CUSTOMIZATION AREA ///////////////////
// preload images that are to appear in tooltip
// from arrays above
if (document.images) {
var theImgs = new Array();
for (var i=0; i
';
var endStr = '
';
////////////////////////////////////////////////////////////
// initTip - initialization for tooltip.
// Global variables for tooltip.
// Set styles
// Set up mousemove capture if tipFollowMouse set true.
////////////////////////////////////////////////////////////
var tooltip, tipcss;
function initTip() {
if (nodyn) return;
tooltip = (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
tipcss = tooltip.style;
if (ie4||ie5||ns5) { // ns4 would lose all this on rewrites
tipcss.width = tipWidth+"px";
tipcss.fontFamily = tipFontFamily;
tipcss.fontSize = tipFontSize;
tipcss.color = tipFontColor;
tipcss.backgroundColor = tipBgColor;
tipcss.borderColor = tipBorderColor;
tipcss.borderWidth = tipBorderWidth+"px";
tipcss.padding = tipPadding+"px";
tipcss.borderStyle = tipBorderStyle;
}
if (tooltip&&tipFollowMouse) {
document.onmousemove = trackMouse;
}
}
window.onload = initTip;
/////////////////////////////////////////////////
// doTooltip function
// Assembles content for tooltip and writes
// it to tipDiv
/////////////////////////////////////////////////
var t1,t2; // for setTimeouts
var tipOn = false; // check if over tooltip link
function doTooltip(evt,num) {
if (!tooltip) return;
if (t1) clearTimeout(t1); if (t2) clearTimeout(t2);
tipOn = true;
// set colors if included in messages array
if (messages[num][2]) var curBgColor = messages[num][2];
else curBgColor = tipBgColor;
if (messages[num][3]) var curFontColor = messages[num][3];
else curFontColor = tipFontColor;
if (ie4||ie5||ns5) {
var tip = startStr + messages[num][0] + midStr + '' + messages[num][1] + '' + endStr;
tipcss.backgroundColor = curBgColor;
tooltip.innerHTML = tip;
}
if (!tipFollowMouse) positionTip(evt);
else t1=setTimeout("tipcss.visibility='visible'",100);
}
var mouseX, mouseY;
function trackMouse(evt) {
standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
if (tipOn) positionTip(evt);
}
/////////////////////////////////////////////////////////////
// positionTip function
// If tipFollowMouse set false, so trackMouse function
// not being used, get position of mouseover event.
// Calculations use mouseover event position,
// offset amounts and tooltip width to position
// tooltip within window.
/////////////////////////////////////////////////////////////
function positionTip(evt) {
if (!tipFollowMouse) {
mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
}
// tooltip width and height
var tpWd = (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
var tpHt = (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
// document area in view (subtract scrollbar width for ns)
var winWd = (ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft;
var winHt = (ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop;
// check mouse position against tip and window dimensions
// and position the tooltip
if ((mouseX+offX+tpWd)>winWd)
tipcss.left = mouseX-(tpWd+offX)+"px";
else tipcss.left = mouseX+offX+"px";
if ((mouseY+offY+tpHt)>winHt)
tipcss.top = winHt-(tpHt+offY)+"px";
else tipcss.top = mouseY+offY+"px";
if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}
function hideTip() {
if (!tooltip) return;
t2=setTimeout("tipcss.visibility='hidden'",100);
tipOn = false;
}
document.write('')