DA.MA. Immobiliare – Vendita affitto trulli Alberobello ITALY
la chiave della tua casa in Puglia
8be45d40-4364-4bf1-a4cb-0ebd40cdec56
8be45d40-4364-4bf1-a4cb-0ebd40cdec56
');
$j('.homepageblog .post:nth-of-type(3n+3)').after('');
$j('.latestlistingsblock-small:nth-last-child(1)').addClass('noborderbottom');
$j('.specs ul.features li:nth-last-child(1)').addClass('noborderbottom');
$j('.widget ul').not('.dsidx-widget ul').addClass('fa-ul');
$j('.widget ul.fa-ul li, #postcategories li').prepend('');
$j('.sticky h4').prepend(' ');
$j('.dsidxpresswidgets .widget').addClass('dsidx');
$j('.wpcf7 input[type=submit], .dsidx-widget input[type=submit], .dsidx-contact-form input[type=button], #homepagecontentbox .ss-btn, .dsidx-resp-search-box input[type=submit], #loginform input[type=submit]').addClass('btn btn-large btn-outline');
$j('#homepagecontentbox .ss-btn').removeAttr('style');
$j('.mc-button, .dsidx-contact-form-submit').addClass('btn');
$j('#respond input[type=submit]').addClass('btn btn-outline');
$j('#posts_navigation span a').addClass('btn btn-outline');
$j('.reduced, .servicehistoryicon, a.tt, a.printbutton, #socialheader a, a.email, a.website, .postformaticon, .totop, #orderingicon').tooltip();
$j('a.comparelink').tooltip({placement: 'left'});
$j('a.tack').tooltip({placement: 'right'});
$j('.qtrans_language_chooser a').tooltip({placement: 'bottom'});
$j('.servicehistoryicon').click(function() {
return false;
});
$j('a[href$="jpg"]').attr("rel", "prettyPhoto");
$j("a[rel^='prettyPhoto']").prettyPhoto();
$j('.rentorbuy ul li').click(function() {
var value = $j(this).attr('data-dropdown');
if (value == "Rent/Lease") {
$j('.buyprices').hide();
$j('.rentprices').show();
}
if (value == "Buy" || value == "") {
$j('.buyprices').show();
$j('.rentprices').hide();
}
});
var url = window.location.href;
$j('#searchtoggle a').click(function() {
$j('#searchwrapper').slideToggle();
$j('header').css({"border-bottom": "none"});
if (url.indexOf("minimal6") == -1) {
$j('#undermenu').toggle();
}
});
/*
$j('#customsearch input[type=submit]').click(function() {
var value = $j('#rentorbuy select').val();
if (value == "rent") {
$j('#buyprices').hide();
$j('#rentprices').show();
}
if (value == "buy" || value == "") {
$j('#buyprices').show();
$j('#rentprices').hide();
}
});
*/
$j('#loancalculator_cars button').click(function() {
LoanAmount = $j('#LoanAmount').val();
DownPayment= $j('#DownPayment').val();
if ($j('#InterestRate').val() == "0") {
AnnualInterestRate = "0.0001";
} else {
AnnualInterestRate = ($j('#InterestRate').val())/100;
}
Years = $j('#NumberOfYears').val();
MonthRate = AnnualInterestRate/12;
NumPayments = Years * 12;
Prin = LoanAmount - DownPayment;
MonthPayment=Math.floor((Prin*MonthRate)/(1-Math.pow((1+MonthRate),(-1*NumPayments)))*100)/100;
$j('#NumberOfPayments').val(NumPayments);
$j('#MonthlyPayment').val(MonthPayment);
$j('#MonthlyPayment').addClass('calculatorresult');
return false;
});
$j('.calltoactionblock img').hover(function() {
$j('.imagehover').show();
$j(this).stop().animate({"opacity" : 1});
}, function(){
$j('.imagehover').hide();
$j(this).stop().animate({"opacity" : .8});
});
$j('#tags a, .tagcloud a').css({"fontSize": "12px"});
//equalize heights of footer widgets
var maxHeight = 0;
$j(".footerwidget1, .footerwidget2, .footerwidget3").each(function(){
if ($j(this).height() > maxHeight) { maxHeight = $j(this).height(); }
});
$j(".footerwidget1, .footerwidget2, .footerwidget3").height(maxHeight);
//When in full width mode, push over large header text so it's aligned under logo. Calculate width of screen, subtract width of content, divide by 2
var browserwidth = $j(window).width();
var contentwidth = $j('.sixteen.columns').width();
var leftoffset = ((browserwidth - contentwidth) / 2) + 10;
$j('div.bigheading h1, div.smallheading > span').css({"padding-left": leftoffset + "px"});
$j('div.smallheading span.price').css({"padding-right": leftoffset + "px"});
var height = $j('#theme #menubar').height();
$j('#theme #searchtoggle').css("height", height);
$j('ul.sf-menu > li.current-menu-item::before').css("top", height);
var lineheight = height + 10 + "px";
$j('#theme #searchtoggle a i').css("line-height", lineheight);
var calltoactionimageheight = $j('#calltoaction img').height();
$j('#calltoaction').css("height", calltoactionimageheight + 5);
//if header menu bar has too many items, and it wraps to 2 lines, then add margin top to push back up to a little less than the total height of the menu
var menuheight = $j('#menubar .sf-menu').height();
var menuitemheight = $j('#menubar .sf-menu li').height();
if (menuheight == menuitemheight * 2) {
menuheight = menuheight - 7;
$j("#menubar .sf-menu").css({"margin-top": "-" + menuheight + "px", "margin-right": "50px"});
}
$j('ul.sf-menu > li.current-menu-item').prepend('');
$j('.menuitembullet-current, .menuitembullet-hover').css({"top": (height / 2) - 5 + "px"});
var address_width = $j('#detailpagetitleoverlay h1').width() + 40;
var citystatezip_width = $j('#detailpagetitleoverlay span.detailpagesubheading').width() + 60;
//on detail page, if title subheading is longer than heading, then don't absolutely position the subheading anymore. Have it stay in the parent DIV and flow under heading text.
if (citystatezip_width == address_width) {
$j('#detailpagetitleoverlay span.detailpagesubheading').css({
"position": "static",
"padding": "0px",
"display": "block",
"color": "#333"
});
//for some reason only way to set bg color is to add on own line...
$j('#detailpagetitleoverlay span.detailpagesubheading').css("background-color", "transparent");
}
//fix bug in Chrome where Address text width is too short and wraps to 2 lines. Calculate width and then set that width in CSS
$j('#detailpagetitleoverlay h1').css({
"width": address_width - 10
});
$j("p.excerpt").addClass("excerptheight");
$j(".wp-caption").removeAttr("style");
$j('.comment-body').append("");
$j('.dsidx-search-button input[type=submit]').val('Cerca');
$j('.essb_links').appendTo('#easysocialshare');
var browserwidth = $j(window).width();
if (browserwidth ');
$j(".wp-caption.alignleft img").each(function(index) {
if ($j(this).width() ');
// to help w3c validation
$j('a[data-rel]').each(function() {
$j(this).attr('rel', $j(this).data('rel'));
});
$j('.hovericon').css("background", "black").delay(1000).fadeIn(500);
$j('.comment-author').parent().addClass('commentauthorcontainer');
var logoheight = $j('#logo img').height();
window.addEventListener('scroll', function(e){
var titleDistanceY = window.pageYOffset, shrinkTitleOn = 400;
if (titleDistanceY > shrinkTitleOn) {
$j('.smallheading').appendTo('header').fadeIn();
} else {
$j('.smallheading').fadeOut();
}
// shrink header when you scroll down
// only shrink if logo height is greater than 50
if (logoheight >= 50) {
var distanceY = window.pageYOffset || document.documentElement.scrollTop, shrinkOn = 30, header = document.querySelector("header");
if (distanceY > shrinkOn) {
classie.add(header,"smaller");
//$j('header.smaller #searchtoggle').css("height", '70px');
//$j('header.smaller #searchtoggle a i').css({"line-height": "70px"});
$j('.menuitembullet-current, .menuitembullet-hover').css({"top": "23px"});
} else {
//$j('header #searchtoggle').css("height", height);
//$j('#searchtoggle a i').css("line-height", lineheight);
$j('.menuitembullet-current, .menuitembullet-hover').css({"top": (height / 2) - 5 + "px"});
if (classie.has(header,"smaller")) {
classie.remove(header,"smaller");
}
}
}
//on scroll down, hide Open Hours and Phone
var distanceZ = window.pageYOffset || document.documentElement.scrollTop, shrinkOn2 = 240, undermenu = document.querySelector("#undermenu");
if (distanceZ > shrinkOn2) {
classie.add(undermenu,"undermenuhide");
} else {
if (classie.has(undermenu,"undermenuhide")) {
classie.remove(undermenu,"undermenuhide");
classie.add(undermenu,"undermenushow");
}
}
//on scroll down, apply border line under header
var distanceX = window.pageYOffset || document.documentElement.scrollTop, shrinkOn3 = 70, headerborder = document.querySelector("header");
if (distanceX > shrinkOn3) {
classie.add(undermenu,"undermenuhide");
$j('header').css({"border-bottom": "2px solid rgba(0,0,0,0.2)"});
if ($j(window).width() */