function SpecialsObj(catID, id, dest, heading, pricefrom, currency, people, month) {
    
    this.getUniqueCatName = function(title) {
        switch (title) {
            case 'שייט' : return 'rower'
            case 'חופשה משפחתית' : return 'family'
            case 'וילות וכפרי נופש' : return 'villa'
            case 'סקי' : return 'ski'
            case 'טיול מאורגן' : return 'trip'
        }
        return 'else'
    }

    this.CatID = parseInt(catID); //category id of this special
    this.Id = parseInt(id); //special id
    this.Dest = dest; //destination name
    this.CatTitle = app.catArr[catID].Title; //title of the category
    
    gen = id;sum=0;while(gen>0){sum+=gen%10;gen/=10;gen|=0;}gen=((sum%10)+(((sum/10)|0)%10))%10;gen = (gen>5?(gen/2)|0:(gen==0?1:gen));
    this.Thumb = "images/cats/cat_"+this.getUniqueCatName(this.CatTitle)+"_"+gen+".jpg"; // background pictures of each box
    
    this.Heading = heading; //content of the heading of the special
    this.Pricefrom = parseInt(pricefrom); //start price of the special
    this.Currency = currency; //the currency of the price (name)
    this.CSign = Cur2Sign(currency); //translate currency name to sign
    this.People = people;   // number of people, format #-# (ex. 1-10)
    this.Month = month;   // month special
    this.bgImg = "images/box-bg2.png";
    this.HTML = function() {
        html = '<div class="special-box" style="background-image: url('+this.bgImg+');" id="sp'+this.Id+'" '
            //+' onmouseover="app.showdetails('+this.Id+');" onmouseout="hidedetails('+this.Id+');"' 
            //+'onclick="window.location=\'#jump'+this.Id+'\';" alt="לחצו כאן בכדי להקפיץ חלונית זו לתחילת המסך." title="לחצו כאן בכדי להקפיץ חלונית זו לתחילת המסך."'
            +'alt="לחצו כאן בכדי לצבוע חלונית זו בכחול" title="לחצו כאן בכדי לצבוע חלונית זו בכחול"'
            +'><div class="title-box" onclick="change_spec_bg(g(\'sp'+this.Id+'\'));" ><a name="jump'+this.Id+'"></a>'+this.Dest/*+' '+this.Id*/+'</div>'
            +'<div class="image-box" onclick="change_spec_bg(g(\'sp'+this.Id+'\'));" ><img src="'+this.Thumb+'" width="100%" height="100%"></div>'
            +'<div class="desc-box" onclick="change_spec_bg(g(\'sp'+this.Id+'\'));" '
        if (parseInt(this.Pricefrom) == 0) html+='style="height:55px"'
        html+='>'+this.Heading+'</div>\n'
        if (parseInt(this.Pricefrom) > 0)
            html+='<div class="price-box">'
                +'<span>החל מ-</span> <span style="font-size:14pt; color:#007505;">'+this.CSign+this.Pricefrom+'</span></div>'
        html+=""
            
            // price popup
            +'<div class="price-button-box" id="price_but_'+this.Id+'"'
            +'	onmouseover="app.showprice('+this.Id+');"' //this.style.backgroundColor=\'#64d266\'; this.style.borderColor=\'#000000\'; 
            +'	onmouseout="hideprice('+this.Id+');">מחיר' //this.style.backgroundColor='#b6e8b7'; this.style.borderColor='#00c505';
            +'  <div id="priceleftconnector_'+this.Id+'" style="display:none;position:absolute;top:-30px;left:0px;height:70px;width:100%;border:0px solid red;background-image:url(images/blank1px.gif);"></div>'
            +'  <div id="pricerightconnector_'+this.Id+'" style="display:none;position:absolute;top:-30px;left:0px;height:70px;width:100%;border:0px solid blue;background-image:url(images/blank1px.gif);"></div>'
            +'  <div class="price_seperator"        id="pricesep_'+this.Id+'"     onmouseover="app.showprice('+this.Id+');" onmouseout="hideprice('+this.Id+');"></div>'
            +'  <div class="price_popup_main" id="pricemain_'+this.Id+'">'
            +'      <div class="price_popup_aura"       id="priceaura_'+this.Id+'"    onmouseover="app.showprice('+this.Id+');" onmouseout="hideprice('+this.Id+');"></div>'
            +'      <div class="price_popup_bg"         id="pricebg_'+this.Id+'"></div>\n'
            +'      <div class="price_popup_content"    id="pricecon_'+this.Id+'"     onmouseover="app.showprice('+this.Id+');" onmouseout="hideprice('+this.Id+');"></div>'
            +'  </div>'
            +'</div>' //button
            
            // details popup
            +'<div class="details-button-box" id="details_but_'+this.Id+'"'
            +'	onmouseover="app.showdetails('+this.Id+');"' //this.style.backgroundColor=\'#679dff\'; this.style.borderColor=\'#003492\';
            +'	onmouseout="hidedetails('+this.Id+');">פרטים' //this.style.backgroundColor=\'#caddff\'; this.style.borderColor=\'#679dff\';
            +'  <div id="detailsleftconnector_'+this.Id+'" style="display:none;position:absolute;top:-30px;left:0px;height:70px;width:100%;border:0px solid red;background-image:url(images/blank1px.gif);"></div>'
            +'  <div id="detailsrightconnector_'+this.Id+'" style="display:none;position:absolute;top:-30px;left:0px;height:70px;width:100%;border:0px solid blue;background-image:url(images/blank1px.gif);"></div>'
            +'  <div class="details_seperator"      id="detailssep_'+this.Id+'"   onmouseover="app.showdetails('+this.Id+');" onmouseout="hidedetails('+this.Id+');"></div>'
            +'  <div class="details_popup_main" id="detailsmain_'+this.Id+'">'
            +'      <div class="details_popup_aura"     id="detailsaura_'+this.Id+'"  onmouseover="app.showdetails('+this.Id+');" onmouseout="hidedetails('+this.Id+');"></div>'
            +'      <div class="details_popup_bg"       id="detailsbg_'+this.Id+'"></div>'
            +'      <div class="details_popup_content"  id="detailscon_'+this.Id+'"   onmouseover="app.showdetails('+this.Id+');" onmouseout="hidedetails('+this.Id+');"></div>'
            +'  </div>'
            +'</div>' //button
            
            +'</div>\n';
        return html;
    }
    this.notav = function(b) {
        return '<div style="width:200px;" align="center"><br>טוען, אנא המתינו...<br><br><img src="images/wait.gif" /><br><br><a href="javascript:app.reload2(\''+b+'\','+this.Id+')">לחצו כאן לטעינה חוזרת<a><br><br></div>';
    }
    this.pricePopup = this.notav("price");
    this.detailsPopup = this.notav("details");
    this.DetailsLoaded = false;
    this.PriceLoaded = false;
    this.addPopups = function() {
        g('pricecon_'+this.Id).innerHTML = this.pricePopup;
        g('detailscon_'+this.Id).innerHTML = this.detailsPopup;
        // set the of the popup price bg div the same resolution as content price div
        g("pricecon_"+this.Id).style.display = "block";
        repop("price",this.Id)
        g("pricecon_"+this.Id).style.display = "none";
        // set the of the popup details bg div the same resolution as content details div
        g("detailscon_"+this.Id).style.display = "block";
        repop("details",this.Id)
        g("detailscon_"+this.Id).style.display = "none";
    }
    this.show = false;
    
    this.details = {
        title       :"",
        stitle      :"",
        details     :"",
        hotel       :"",
        dimage      :"",
        himage      :""
    }
    this.prices = {
        ppl         : new Array(),
        desc        : new Array(),
        included    : "",
        notincluded : "",
        terms       : "",
        date_from   : new Array(),
        date_to     : new Array(),
        dates       : new Array(),
        flight      : new Array(),
        price       : new Array()
    }
    
} // function SpecialsObj
