$j(window).load(function() { var maxHeight = 0; $j(".featureblock > .wpb_wrapper").each(function(){ if ($j(this).height() > maxHeight) { maxHeight = $(this).height(); } }); $j(".featureblock > .wpb_wrapper").height(maxHeight); $j('.searchform li a').attr('href', 'javascript:void(0)'); $j('iframe').removeAttr('frameborder'); $j("div.wp-caption").each(function(){ var img_width = $j(this).find('img').width(); $j(this).find('p.wp-caption-text').css({"width": img_width - 20 + "px" }); }); //vertically center homepage slideshow image in slideshow container var sliderheight = $j('#homepageslider').height(); var sliderimageheight = $j('#homepageslider img.slideimage').height(); var sliderimageoffset = -Math.abs((sliderimageheight - sliderheight) / 2); $j('#homepageslider.flexslider .slides img').css("margin-top", sliderimageoffset + "px"); $j('#map').prepend(''); $j('#map').prepend(''); $j(".dropdown-menu li a").click(function(){ var selText = $j(this).text(); $j(this).parents('.btn-group').find('button[data-toggle="dropdown"]').html(selText); preventDefault(); }); }); $j(document).ready(function() { $j('#searchup').click(function() { $j(this).hide(); $j('#searchdown').show(); $j('#searchupdown').prependTo('.homepagesearchwrapper').show(); $j('.homepagesearch').slideUp(); }); $j('#searchdown').click(function() { $j(this).hide(); $j('#searchup').show(); $j('#searchupdown').prependTo('.homepagesearch').show(); $j('.homepagesearch').slideDown(); }); // RESULTS ORDERING DROPDOWN $j('ul[name=orderdropdown] li').click(function() { var thetext = $j(this).attr('data-dropdown'); $j.cookie('orderresults', thetext, { path: '/', expires: 365 }); location.reload(); }); // SEARCH DROPDOWNS $j('.location ul').on('click', 'li', function(event) { $j.cookie('location_level2', '', { path: '/', expires: 0 }); $j('button[name=location_level2]').text('Qualsiasi') var selText = $j(this).attr('data-dropdown'); $j(this).parents('.btn-group').find('button[data-toggle="dropdown"]').html(selText); var thetext = $j(this).attr('data-dropdown'); //if first dropdown item is chosen, then remove cookie. Else write cookie. if ($j(this).attr('class') == 'firstdropdownitem') { $j.cookie('location_level1', '', { path: '/', expires: 0 }); $j.cookie('location_level2', '', { path: '/', expires: 0 }); $j('.location_level2_drop_down').hide(); } else { $j.cookie('location_level1', thetext, { path: '/', expires: 365 }); } }); $j('ul.location_level2').on('click', 'li', function(event) { var selText = $j(this).attr('data-dropdown'); $j(this).parents('.btn-group').find('button[data-toggle="dropdown"]').html(selText); // note: i think triggername will ALWAYS be location_level2 var triggername = $j(this).parent('ul').parent('div').find('button').attr('name'); var thetext = $j(this).attr('data-dropdown'); //if first dropdown item is chosen, then remove cookie. Else write cookie. if ($j(this).attr('class') == 'firstdropdownitem') { $j.cookie(triggername, '', { path: '/', expires: 0 }); } else { $j.cookie(triggername, thetext, { path: '/', expires: 365 }); } }); //all search dropdowns except secondary dropdown and buy/rent dropdown $j('.dropdown-menu li').click(function() { var triggername = $j(this).parent('ul').parent('div').find('button').attr('name'); var thetext = $j(this).attr('data-dropdown'); //if first dropdown item is chosen, then remove cookie. Else write cookie. if ($j(this).attr('class') == 'firstdropdownitem') { $j.cookie(triggername, '', { path: '/', expires: 0 }); } else { $j.cookie(triggername, thetext, { path: '/', expires: 365 }); } }); // buy/rent search dropdown only $j('ul[name=rentbuy].dropdown-menu li').click(function() { var triggername = $j(this).parent('ul').parent('div').find('button').attr('name'); var thetext = $j(this).text() + " - " + $j(this).attr('data-dropdown'); //if first dropdown item is chosen, then remove cookie. Else write cookie. if ($j(this).attr('class') == 'firstdropdownitem') { $j.cookie(triggername, '', { path: '/', expires: 0 }); } else { $j.cookie(triggername, thetext, { path: '/', expires: 365 }); } }); // Save width and height for full screen mode var googleMapWidth = $j("#map").css('width'); var googleMapHeight = $j("#map").css('height'); $j('#map').on('click', '#btn-enter-full-screen', function() { $j("#map").css({ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', zIndex: 100000, backgroundColor: 'white' }); google.maps.event.trigger(map, 'resize'); $j('#btn-enter-full-screen').toggle(); $j('#btn-exit-full-screen').toggle(); $j('html, body').css("overflow", "hidden"); return false; }); $j('#map, #contactsmallmap').on('click', '#btn-exit-full-screen', function() { $j("#map").css({ position: 'relative', top: 0, width: googleMapWidth, height: googleMapHeight, backgroundColor: 'transparent' }); google.maps.event.trigger(map, 'resize'); $j('#btn-enter-full-screen').toggle(); $j('#btn-exit-full-screen').toggle(); $j('html, body').css("overflow", "visible"); return false; }); function updateLinkAndCounter() { var ids = $j('.compareitem .prod-id').map(function(i, x) { return [$j(this).attr('data-id')].join(''); }).toArray(); $j('#comparecontainer > a').attr('href', 'https://www.tecnopolis.biz/compare/?lang=it&compare=' + ids.join(',')); } function getSelectedIds() { return $j('.compareitem .prod-id').map(function() { return $j(this).attr('data-id'); }).toArray(); } $j(".comparelink").click(function() { var id=$j(this).attr('data-id'); var img=$j(this).attr('data-img'); var selected = getSelectedIds(); if(selected.length == 5) return; //max 5 to compare if(selected.indexOf(id) != -1) return; // item already added $j('
') .append('' + '') .append('X') .hide() .prependTo('#comparecontainer') .fadeIn(1000); updateLinkAndCounter(); $j("#comparecontainer").removeClass("hidden"); }); $j("#comparecontainer").on("click", ".compareitem a", function(e) { $j(e.target).parent().remove(); var selected = getSelectedIds(); if(selected.length == 0) { $j('#comparecontainer').addClass("hidden"); } updateLinkAndCounter(); return false; }); $j('#comparecontainer').on("hover", ".compareitem", function() { $j(this).find('a.deletecompare').fadeToggle(300); }); //$j('form#searchform').dumbFormState(); if ($j('input[name=showhidesearchfeatures]').attr('checked') == 'checked') { $j('.searchfeatures').show(); } $j('input[name=showhidesearchfeatures]').click(function() { $j('.searchfeatures').each(function() { $j(this).slideToggle(); }) }); // display the first div by default. $j("#accordion div").first().css('display', 'block'); // Get all the links. var link = $j("#accordion a"); // On clicking of the links do something. link.on('click', function(e) { e.preventDefault(); var a = $j(this).attr("href"); $j(a).slideDown("fast"); $j("#accordion div").not(a).slideUp("fast"); }); //add alt attribute to responsive menu logo $j(".bar_logo").attr("alt", "logo"); $j(".excerpt, .excerptwrapper > span, ul.features").mCustomScrollbar({ autoHideScrollbar: true, mouseWheel: false }); (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); var boxes = $j('.compare input'); $j('.homepagewidgets .fa-5x').wrap(''); boxes.on('change', function () { if ( boxes.is(":checked") ) { $j('.comparelink').addClass("activecompare"); } else { $j('.comparelink').removeClass("activecompare"); } }); //add current year to copyright text in footer var thisyear = new Date().getFullYear(); $j("#copyright").text(function(index, text) { return text.replace('[YEAR]', thisyear); }); $j("a.inline").fancybox({ 'hideOnContentClick': true }); $j('#reply-title').addClass('fancyline'); if ($j(window).width() >= 768 && $j(window).width() <= 959) { $j("#navwrapper").stick_in_parent({offset_top: 30}) .on("sticky_kit:bottom", function(e) { $j('header').hide(); }) .on("sticky_kit:unbottom", function(e) { $j('header').show(); }); } else { $j("#navwrapper").stick_in_parent({offset_top: 0}) .on("sticky_kit:bottom", function(e) { $j('header').hide(); }) .on("sticky_kit:unbottom", function(e) { $j('header').show(); }); }; $j("#toTop").scrollToTop(1000); $j('#footercontainer a').mouseover(function() { $j(this).find('i').fadeTo(50, 0.8); }); $j('#footercontainer a').mouseout(function() { $j(this).find('i').fadeTo(50, 1); }); $j('#slider2').flexslider({ animation: "fade", controlNav: false, animationLoop: false, slideshow: false, sync: "#carousel" }); $j('#carousel').flexslider({ animation: "slide", controlNav: false, animationLoop: false, slideshow: false, itemWidth: 100, itemMargin: 5, asNavFor: '#slider2' }); $j('#manufacturerslider').flexslider({ animation: "slide", animationLoop: true, itemWidth: 140, slideshow: true, itemMargin: 0, move: 1 }); $j('#hourswrapper a').click(function() { $j(this).find('i.fa-caret-down').toggleClass("fa-caret-up"); }); fluidvids.init({ selector: ['iframe', 'object'], // runs querySelectorAll() players: ['www.youtube.com', 'player.vimeo.com'] // players to support }); $j('.detailpagebigimage').hover(function() { $j(this).stop().animate({"opacity" : .7}); $j('.imagehover').stop().animate({"opacity" : .7}); }, function(){ $j(this).stop().animate({"opacity" : 1}); $j('.imagehover').stop().animate({"opacity" : 0}); }); $j('.listing_thumbnail').hover(function() { $j(this).stop().animate({"opacity" : .7}); }, function(){ $j(this).stop().animate({"opacity" : 1}); }); $j('.cornerplus').hover(function() { $j(this).parent('a').parent('div.front').find('.cbuttonimage img.listing_thumbnail').stop().animate({"opacity" : .7}); }, function(){ $j(this).parent('a').parent('div.front').find('.cbuttonimage img.listing_thumbnail').stop().animate({"opacity" : 1}); }); $j('.shine').hover(function() { $j(this).parent('.listing_thumbnail_wrapper').find('img.listing_thumbnail').stop().animate({"opacity" : .7}); }, function(){ $j(this).parent('.listing_thumbnail_wrapper').find('img.listing_thumbnail').stop().animate({"opacity" : 1}); }); $j('.blogimagewrapper img').hover(function() { $j(this).stop().animate({"opacity" : .7}); }, function(){ $j(this).stop().animate({"opacity" : 1}); }); $j(".front .cbutton.cbuttonimage").on("click",function(e){ $j(this).parent('div.front').find('.paragraph-end').fadeOut(500); $j(this).parent('div.front').find('.excerptwrapper').fadeOut(500); }); $j(".front .cbutton.cbuttontitle").on("click",function(e){ $j(this).parent().parent().parent().find('.paragraph-end').fadeOut(500); $j(this).parent().parent().parent().find('.excerptwrapper').fadeOut(500); }); $j(".back .cbutton").on("click",function(e){ $j(this).parent('div.back').parent('div.card').find('.paragraph-end').show(); $j(this).parent('div').siblings('.large .front').find('.excerptwrapper').show(); e.preventDefault(); }); $j('.type-post table, .type-page table, .content table').addClass('table table-striped'); $j('#dsidx .table-striped').removeClass('table-striped'); $j('#dsidx .table').removeClass('table'); $j('#one-0').appendTo('.container-0'); $j('#two-0').appendTo('.container-0'); $j('#three-0').appendTo('.container-0'); $j('#four-0').appendTo('.container-0'); $j('#one-9').appendTo('.container-9'); $j('#two-9').appendTo('.container-9'); $j('#three-9').appendTo('.container-9'); $j('#four-9').appendTo('.container-9'); $j('#one-14').appendTo('.container-14'); $j('#two-14').appendTo('.container-14'); $j('#three-14').appendTo('.container-14'); $j('#four-14').appendTo('.container-14'); $j('#one-23').appendTo('.container-23'); $j('#two-23').appendTo('.container-23'); $j('#three-23').appendTo('.container-23'); $j('#four-23').appendTo('.container-23'); $j('#one-28').appendTo('.container-28'); $j('#two-28').appendTo('.container-28'); $j('#three-28').appendTo('.container-28'); $j('#four-28').appendTo('.container-28'); $j('#one-37').appendTo('.container-37'); $j('#two-37').appendTo('.container-37'); $j('#three-37').appendTo('.container-37'); $j('#four-37').appendTo('.container-37'); $j('#one-42').appendTo('.container-42'); $j('#two-42').appendTo('.container-42'); $j('#three-42').appendTo('.container-42'); $j('#four-42').appendTo('.container-42'); $j('#one-51').appendTo('.container-51'); $j('#two-51').appendTo('.container-51'); $j('#three-51').appendTo('.container-51'); $j('#four-51').appendTo('.container-51'); $j('#one-56').appendTo('.container-56'); $j('#two-56').appendTo('.container-56'); $j('#three-56').appendTo('.container-56'); $j('#four-56').appendTo('.container-56'); $j('#one-65').appendTo('.container-65'); $j('#two-65').appendTo('.container-65'); $j('#three-65').appendTo('.container-65'); $j('#four-65').appendTo('.container-65'); $j('#one-70').appendTo('.container-70'); $j('#two-70').appendTo('.container-70'); $j('#three-70').appendTo('.container-70'); $j('#four-70').appendTo('.container-70'); $j('#one-79').appendTo('.container-79'); $j('#two-79').appendTo('.container-79'); $j('#three-79').appendTo('.container-79'); $j('#four-79').appendTo('.container-79'); $j('#one-84').appendTo('.container-84'); $j('#two-84').appendTo('.container-84'); $j('#three-84').appendTo('.container-84'); $j('#four-84').appendTo('.container-84'); $j('#one-93').appendTo('.container-93'); $j('#two-93').appendTo('.container-93'); $j('#three-93').appendTo('.container-93'); $j('#four-93').appendTo('.container-93'); $j('#one-98').appendTo('.container-98'); $j('#two-98').appendTo('.container-98'); $j('#three-98').appendTo('.container-98'); $j('#four-98').appendTo('.container-98'); $j('div#form form').attr('name', 'form'); $j('.dsidx-search-button input[type=submit]').addClass('btn-block'); $j('ul.wp-tag-cloud').addClass('menu-sub'); $j('ul.wp-tag-cloud li a').addClass('menu-subbutton'); $j('ul.wp-tag-cloud li a').wrapInner(''); $j('#related #listings div:nth-of-type(3n+1)').addClass('alpha'); $j('#related #listings div:nth-of-type(3n+3)').addClass('omega'); $j('#assignedlistings div:nth-of-type(3n+1)').addClass('alpha'); $j('#assignedlistings div:nth-of-type(3n+3)').addClass('omega'); $j('.blogblock:nth-child(2n+1)').addClass('alpha'); $j('.blogblock:nth-child(2n+2)').addClass('omega'); $j('.blogblock:nth-child(2n+2)').after('
'); $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 < 767) { $j('.cardbox.specs').appendTo('#mobilespecs'); } $j('#related').appendTo("#relatedplaceholder"); $j('#assignedagents').appendTo("#agentsplaceholder"); $j('.flex-active-slide').prepend('
'); $j(".wp-caption.alignleft img").each(function(index) { if ($j(this).width() < 900) { $j(this).parent('div').css("margin-right", "20px"); } }); $j(".wp-caption.alignright img").each(function(index) { if ($j(this).width() < 900) { $j(this).parent('div').css("margin-left", "20px"); } }); $j('blockquote').prepend(''); // 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() < 767 ) { //browserwidth & contentwidth variables set further up var mobilenavtrim = ((browserwidth - contentwidth) / 2); $j('#sdrn_bar').css({"width": browserwidth - mobilenavtrim - 65 + "px"}); } } else { $j('header').css({"border-bottom": "none"}); if ($j(window).width() < 767 ) { //browserwidth & contentwidth variables set further up var mobilenavtrim = ((browserwidth - contentwidth) / 2); $j('#sdrn_bar').css({"width": browserwidth + "px"}); } if (classie.has(undermenu,"undermenuhide")) { classie.remove(undermenu,"undermenuhide"); classie.add(undermenu,"undermenushow"); } } }); var url = window.location.href; if ($j(window).width() < 480) { if (url.indexOf("mls-") != -1) { $j('#theme .dsidx .cardbox.content').css({"width": "450px"}); } } // Insert text in demo mode });