
  function disp_div()
  {
 if(document.getElementById("Opt").style.display=='none')
{
var w=document.getElementById("Opt").style.display='block';
var q=document.getElementById("Exp");
q.src='/common/images/minus1.jpg';
}
else
{
var w=document.getElementById("Opt").style.display='none'//visibility='hidden';
var q=document.getElementById("Exp");
q.src='/common/images/plus1.jpg';
}
  }
  function setcType()
{
document.getElementById("Exp").style.cursor='hand';

}



function change(id) 
{ 

var el = document.getElementById(id); 

if ( el.style.display!= 'none' ) { 
el.style.display = 'none'; 
} 
else { 
el.style.display = ''; 
} 
}


//								EDIT FROM HERE
///////////////////////////////////////////////////////////////////////////////////
//         						Program options


// if 1 (one), all images will be resized to img_width and img_height, else images will display their correct size
var force_size = 0;
// desired height and width of images, only takes affect if above is one
var img_width = 728;
var img_height = 90;

// time between refreshs of ad locations, to disable refreshs set to 0. In milliseconds, 1000 = 1 second
var refresh_time = 0;
var refresh_max = 1;
var duplicate_banners = 0;
var banners = new Array();


banners[0] = new banner('Bateaux Dubai Summer Dinner Cruise','Experience the fabulous Bateaux Dubai with a gourmet dinner cruise including a welcome drink for <span style=font-weight:bold;font-size:13px>AED 245*</span> per person.', '/common/images/hotspot/logo/bateaux_dubai.png', 'http://www.jebelali-international.com/topdeals/Bateaux_Dubai_Summer_Dinner_Cruise-859875051.aspx', '/common/images/hotspot/bateaux_exterior_new.jpg', '31/5/2011');
banners[1] = new banner('EARLY BIRD OFFERS 2012','Book your summer holidays (12th May - 19th Oct 2012) before 31st March 2012 to take advantage of our early bird offers.', '/common/images/hotspot/logo/JAIH.png', '/earlybird2012', '/common/images/hotspot/LADY_ON_BEACH.jpg', '31/03/2012');
banners[2] = new banner('DiVAZ - A Funky Floating Venue','Throw your next party onboard the stylish, unique and trendy floating venue, DiVAZ. You and your friends can celebrate as you sail away surrounded by modern d&eacute;cor.', '/common/images/hotspot/logo/Divaz.png', 'http://www.divazboat.com', '/common/images/hotspot/divaz.jpg', '31/12/2012');
banners[3] = new banner('Centre Of Excellence','Fantastic offers on group football matches and training at the Jebel Ali Centre of Excellence', '/common/images/hotspot/logo/coe.png', ' http://www.jebelali-international.com/Properties/CentreOfExcellence/AboutUs/Promotions.aspx', '/common/images/hotspot/football.jpg', '31/12/2012');
//banners[0] = new banner('The All Inclusive Value Package','Great value for money package that includes breakfast, lunch, dinner and drinks at Jebel Ali Hotel and Palm Tree Court & Spa. Valid throughout 2011.', '/common/images/hotspot/logo/jagrs.png', '/topdeals/The_All-Inclusive_Value_Package.aspx', '/common/images/hotspot/LADY_ON_BEACH.jpg', '31/12/2011');
//banners[3] = new banner('Camel Cuddling at The Desert Ranch','Experience a true Arabian pastime, Camel Cuddling is a unique experience that can be enjoyed by the entire family.', '/common/images/hotspot/logo/desert.png', 'http://www.jebelali-international.com/promotions/sportsleisure/Camel_Cuddling_at_Al_Sahra_Desert_Resort.aspx', '/common/images/hotspot/camels.jpg', '31/12/2011');


var used = 0;
var first_pass = 0;
var location_counter = 1;
var refresh_counter = 1;
function banner(title, name, logo, url, image, date) {
    this.title = title;
    this.name = name;
    this.logo = logo;
    this.url = url;
    this.image = image;
    this.date = date;
    this.active = 1;
}
function show_banners() {
    var html = '<div id="adLocation-' + location_counter + '"></div>';
    document.write(html);
    display_banners(location_counter);
    location_counter++;
}

function display_banners(location) {
    if (location == '' || !location || location < 0) { return; } var am = banners.length; if ((am == used) && duplicate_banners == 0) { return; } var rand = Math.floor(Math.random() * am); var bn = banners[rand]; var image_size = (force_size == 1) ? ' width="' + img_width + '" height="' + img_height + '"' : '';
    var html = '<table height=1px cellpadding=0 cellspacing=0 border=0 width=220 style="background:#B7B7B7"><tr><td  valign=top><a href="' + bn.url + '" title="" target="_parent"><img border="0" src="' + bn.image + '"' + image_size + ' alt="" width=220 height=140 /></a></td></tr><tr><td style="padding:2px 0px 3px 6px;font-size:11px;color:#ffffff;font-face:arial"><strong>'+ bn.title +'</strong></font></td></tr><tr><td><table cellpadding="0" cellspacing="0"  style="background:#B7B7B7" width=220><tr><tD><div style="padding-right:4px;padding-left:6px;text-align:left" align=left><font face=arial color=#ffffff size=1px;line-height:9px><a href="' + bn.url + '" title="" target="_parent" style="color:#ffffff;text-decoration:none;">' + bn.name + '</a></div></td><td style="padding:0 3 0 3px"><img border="0" src="' + bn.logo + '" alt="" align=right class="" /></td></tr></table></tr><tr><td><img src="/common/images/hotspotBottom.jpg"></td></tr></table>';



    var now = new Date(); var input = bn.date; input = input.split('/', 3); var end_date = new Date(); end_date = end_date.setFullYear(parseFloat(input[2]), parseFloat(input[1]), parseFloat(input[0])); if ((now < end_date) && bn.active == 1) {
        var location_element = document.getElementById('adLocation-' + location); if (location_element == null) { alert('Banner rotator\nError: adLocation doesn\'t exist!'); } else
        { location_element.innerHTML = html; if (duplicate_banners == 0) { bn.active = 0; used++; } }
    } else
    { display_banners(location); }
} function refresh_banners() { if ((refresh_counter == refresh_max) || refresh_time < 1) { clearInterval(banner_refresh); } used = 0; for (i = 0; i < banners.length; i++) { banners[i].active = 1; } for (i = 1; i < location_counter; i++) { display_banners(i); } refresh_counter++; } var banner_refresh = window.setInterval(refresh_banners, refresh_time);





