function panorama()
{

var agt=navigator.userAgent.toLowerCase();  
var gecko = (agt.indexOf("gecko")!=-1)?1:0;
if(window.innerWidth) 
{
cwidth=window.innerWidth;
}
else if(document.documentElement.clientWidth)
{
cwidth=document.documentElement.clientWidth;
}
else if(document.body.clientWidth)
{
cwidth=document.body.clientWidth;
}
else 
{
cwidth=760;
}
var balancing=gecko?40:25/970*cwidth;
//alert("The value of cwidth is " + cwidth);
cwidth = cwidth - balancing;
cheight = cwidth/1280 * 400;
document.write("<div id='img'><img alt='panoramic view from balcony of apartments' title='panoramic view from balcony of apartments' src='images/panorama_5_1280.jpg' height='" +cheight + "' width='" + cwidth + "' style='margin-bottom:-5px' /></div>");
}
//<div id='msg'><img src='images/croatianvilla_pool_7_267x200.jpg' alt='Image of new swimming pool' width='267' height='200' border='0'></div>
function reloadPage()
{location.reload();}

function bottomLine()
{
var agt=navigator.userAgent.toLowerCase();  
var gecko = (agt.indexOf("gecko")!=-1)?1:0;
if(window.innerWidth) 
{
cwidth=window.innerWidth;
}
else if(document.documentElement.clientWidth)
{
cwidth=document.documentElement.clientWidth;
}
else if(document.body.clientWidth)
{
cwidth=document.body.clientWidth;
}
else 
{
cwidth=760;
}
var balancing=gecko?70:55/970*cwidth;
cwidth = (cwidth - balancing)/6;
cheight = cwidth/200 * 150;
document.write("<a href='photo.php?photo=fsbl_001.jpg&caption=children playing in the sea&back=index'><img class='floatl5' alt='barbecue area '  title='barbecue area - click to see larger image' src='images/bl200_001.jpg' height='" + cheight + "' width='" + cwidth + "' /></a>");
document.write("<a href='photo.php?photo=fsbl_002.jpg&caption=exterior of villa&back=index'><img class='floatl5' alt='exterior of villa '  title='exterior of villa - click to see larger image' src='images/bl200_002.jpg' height='" + cheight + "' width='" + cwidth + "' /></a>");
document.write("<a href='photo.php?photo=fsbl_003.jpg&caption=view from balcony&back=index'><img class='floatl5' alt='view from villa balcony '  title='view from villa balcony - click to see larger image' src='images/bl200_003.jpg' height='" + cheight + "' width='" + cwidth + "' /></a>");
document.write("<a href='photo.php?photo=fsbl_004.jpg&caption=interior of villa&back=index'><img class='floatl5' alt='interior of villa '  title='interior of accommodation - click to see larger image' src='images/bl200_004.jpg' height='" + cheight + "' width='" + cwidth + "' /></a>");
document.write("<a href='photo.php?photo=fsbl_005.jpg&caption=local fruit market&back=index'><img class='floatl5' alt='Trogir fruit market '  title='Trogir fruit market - click to see larger image' src='images/bl200_005.jpg' height='" + cheight + "' width='" + cwidth + "' /></a>");
document.write("<a href='photo.php?photo=fsbl_006.jpg&caption=trogir castle behind boat&back=index'><img class='floatl5' alt='Trogir castle behind boat '  title='Trogir castle behind boat - click to see larger image' src='images/bl200_006.jpg' height='" + cheight + "' width='" + cwidth + "' /></a>");
}

function panorama2()
{

var agt=navigator.userAgent.toLowerCase();  
var gecko = (agt.indexOf("gecko")!=-1)?1:0;
if(window.innerWidth) 
{
cwidth=window.innerWidth;
}
else if(document.documentElement.clientWidth)
{
cwidth=document.documentElement.clientWidth;
}
else if(document.body.clientWidth)
{
cwidth=document.body.clientWidth;
}
else 
{
cwidth=760;
}
var balancing=gecko?40:25/970*cwidth;
//alert("The value of cwidth is " + cwidth);
cwidth = cwidth - balancing;
cheight = cwidth/1280 * 200;
document.write("<div id='img'><img alt='croation panorama' src='images/panorama1280.jpg' height='" +cheight + "' width='" + cwidth + "' style='margin-bottom:-5px' /><div id='msg'>View from the villa balcony</div></div>");
}
