
/* -- FILE: [javascripts/map-tooltip.js]*/
(function($){$.fn.ezpz_tooltip=function(options){var settings=$.extend({},$.fn.ezpz_tooltip.defaults,options);return this.each(function(){if($(this).attr('data-id')){var content=$("#"+getContentId($(this).attr('data-id')));}
var targetMousedOver=$(this).mouseover(function(){settings.beforeShow(content,$(this))}).mousemove(function(e){contentInfo=getElementDimensionsAndPosition(content);targetInfo=getElementDimensionsAndPosition($(this));contentInfo=$.fn.ezpz_tooltip.positions[settings.contentPosition](contentInfo,e.pageX,e.pageY,settings.offset,targetInfo);contentInfo=keepInWindow(contentInfo);content.css('top',contentInfo['top']);content.css('left',contentInfo['left']);settings.showContent(content)});if(settings.stayOnContent&&$(this).attr('data-id')!=""){$("#"+$(this).attr('data-id')+", #"+getContentId($(this).attr('data-id'))).mouseover(function(){content.css('display','block')}).mouseout(function(){content.css('display','none');settings.afterHide()})}else{targetMousedOver.mouseout(function(){settings.hideContent(content);settings.afterHide()})}});function getContentId(targetId){if(settings.contentId===""){return targetId.replace('target','content');}else{return settings.contentId;}}
function getElementDimensionsAndPosition(element){var height=element.outerHeight(true);var width=element.outerWidth(true);if($(element).offset()!==null){var top=$(element).offset().top;var left=$(element).offset().left;}else{var top=0;var left=0;}
var info=new Array();info['height']=height;info['width']=width;info['top']=top;info['left']=left;return info};function keepInWindow(contentInfo){var windowWidth=$(window).width();var windowTop=$(window).scrollTop();var output=new Array();output=contentInfo;if(contentInfo['top']<windowTop){output['top']=windowTop}
if((contentInfo['left']+contentInfo['width'])>windowWidth){output['left']=windowWidth-contentInfo['width']}
if(contentInfo['left']<0){output['left']=0}
return output}};$.fn.ezpz_tooltip.positionContent=function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=mouseY-offset-contentInfo['height'];contentInfo['left']=mouseX+offset;return contentInfo};$.fn.ezpz_tooltip.positions={aboveRightFollow:function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=mouseY-offset-contentInfo['height'];contentInfo['left']=mouseX+offset;return contentInfo}};$.fn.ezpz_tooltip.defaults={contentPosition:'aboveRightFollow',stayOnContent:false,offset:10,contentId:'',beforeShow:function(content){},showContent:function(content){content.show()},hideContent:function(content){content.hide()},afterHide:function(){}}})(jQuery);(function($){$.fn.ezpz_tooltip.positions.aboveFollow=function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=mouseY-offset-contentInfo['height'];contentInfo['left']=mouseX-(contentInfo['width']/ 2);return contentInfo};$.fn.ezpz_tooltip.positions.rightFollow=function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=mouseY-(contentInfo['height']/ 2);contentInfo['left']=mouseX+offset;return contentInfo};$.fn.ezpz_tooltip.positions.belowRightFollow=function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=mouseY+offset;contentInfo['left']=mouseX+offset;return contentInfo};$.fn.ezpz_tooltip.positions.belowFollow=function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=mouseY+offset;contentInfo['left']=mouseX-(contentInfo['width']/ 2);return contentInfo};$.fn.ezpz_tooltip.positions.aboveStatic=function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=targetInfo['top']-offset-contentInfo['height'];contentInfo['left']=(targetInfo['left']+(targetInfo['width']/ 2))-(contentInfo['width']/ 2);return contentInfo};$.fn.ezpz_tooltip.positions.rightStatic=function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=(targetInfo['top']+(targetInfo['height']/ 2))-(contentInfo['height']/ 2);contentInfo['left']=targetInfo['left']+targetInfo['width']+offset;return contentInfo};$.fn.ezpz_tooltip.positions.belowStatic=function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=targetInfo['top']+targetInfo['height']+offset;contentInfo['left']=(targetInfo['left']+(targetInfo['width']/ 2))-(contentInfo['width']/ 2);return contentInfo}})(jQuery);

/* -- FILE: [javascripts/advancedtable.js]*/
(function($){$.fn.advancedtable=function(custom){var defaults={rowsPerPage:10,currentPage:1,loadElement:"",searchField:"",searchColumn:1,searchCaseSensitive:false,navigationLabel:"",delay:300,sortDefault:"asc",sortColumnDefault:0,sorting:true,ascImage:'',descImage:'',csv:'',csvSeperator:',',evenColor:'',oddColor:''};var settings=$.extend({},defaults,custom);settings.currentPage--;var table=this;var currentPage=0;if(settings.csv!=''){showLoad();$.get(settings.csv,function(data){var rows=data.split('\n');var rowNumber=rows.length;var colNumber=rows[0].split(settings.csvSeperator).length;var htmlData="";for(var i=0;i<rowNumber;i++){cols=rows[i].split(settings.csvSeperator);htmlData+='<tr class="" style="display: table-row;">';for(var j=0;j<colNumber;j++){htmlData+="<td>"+cols[j]+"</td>";}
htmlData+="</tr>";}
table.find("tbody").html(htmlData);redrawTable();});}
if(settings.searchField!=""){$(settings.searchField).show();$(settings.searchField).keyup(redrawTable);}
redrawTable();function redrawTable(){showLoad();var strsearch="";if(typeof(this.value)!="undefined"){if(settings.searchCaseSensitive){strsearch=this.value;}else{strsearch=this.value.toLowerCase();}}
var i=0;table.find('tbody tr').each(function(){var found=false;var i=1;$(this).find('td').each(function(){if((settings.searchColumn==0)||(settings.searchColumn==i)){if(settings.searchCaseSensitive){var strcell=stripHtml(this.innerHTML);}else{var strcell=stripHtml(this.innerHTML.toLowerCase());}
if((strcell.indexOf(strsearch)>-1)){found=true;}}
i++;});if(found){$(this).removeClass("searchhide");}else{$(this).addClass("searchhide");}});tableRows=table.find('tbody tr:not(.searchhide)').length;var pages=Math.ceil(tableRows / settings.rowsPerPage);table.find("tfoot").remove();var firstRow=table.find("tr:first");var numCols=firstRow[0].cells.length;var endEow=((settings.currentPage+1)*settings.rowsPerPage);var startRow=(endEow-settings.rowsPerPage)+1;var blockInfo='<div class="tableInfo">Showing '+startRow+' - '+endEow+' of '+tableRows+'</div>';var blockNavigation="";if(tableRows>settings.rowsPerPage){blockNavigation+='<div class="tableNavigation">';if(settings.navigationLabel!=""){blockNavigation+='<span>'+settings.navigationLabel+'&nbsp;&nbsp;</span>';}
if(true){blockNavigation+='<ul>';for(var i=0;i<pages;i++){blockNavigation+='<li'+((settings.currentPage==i)?' class="active"':"")+'><a href="javascript:void();">'+(i+1)+'</a></li>';}
blockNavigation+='</ul>';}else{blockNavigation+='<select id="#tnavigation">';for(var i=0;i<pages;i++){blockNavigation+='<option value="'+(i+1)+'" '+((settings.currentPage==i)?' selected="selected"':"")+'>'+(i+1)+'</option>';}
blockNavigation+='</select>';}
blockNavigation+='</div>';}
table.append('<tfoot><tr><td colspan="'+numCols+'">'+blockInfo+blockNavigation+'</td></tr></tfoot>');table.find('.tableNavigation li').bind('click',function(){showLoad();var currentPage=(parseInt($(this).find("a").html()))-1;setActivePage(currentPage);hideLoad();stripeRows();});table.find('.tableNavigation select').change(function(){alert($('#tnavigation :selected').val());});if(settings.sorting){if(table.find('thead th a').length==0){var sorthandle=0;table.find('thead th').each(function(){$(this).html('<a href="javascript:void();" id="sorthandle'+sorthandle+'">'+$(this).html()+'</a><span id="sortaschandle'+sorthandle+'" class="sortshowhandle"><img src="'+settings.ascImage+'" alt="Arrow up icon"/></span><span id="sortdeschandle'+sorthandle+'" class="sortshowhandle"><img src="'+settings.descImage+'" alt="Arrow down icon"/></span><span id="sorttypehandle" class="allsorttypehandle" style="display:none"></span>');$(this).bind('click',sortTable);sorthandle++;});table.find(".sortshowhandle").hide();sortTable(settings.sortColumnDefault);}}
function sortTable(column){showLoad();if(typeof(column)=="number"){var sortColumn=table.find('thead th:eq('+column+') a').attr("id");}else{var sortColumn=$(this).find('a').attr("id");}
sortColumn=sortColumn.replace("sorthandle","");var sortAction=getSortAction(sortColumn);var rows=new Array(tableRows);var counter=0;table.find('tbody tr').each(function(){var sortString=$(this).find('td').eq(sortColumn).html().toLowerCase();rows[counter]=[sortString,'<tr>'+$(this).html()+'</tr>'];counter++;});if(sortAction=="asc"){rows.sort(sortAsc);}else{rows.sort(sortDesc);}
var sortedHtml="";for(var i=0;i<tableRows;i++){sortedHtml+=rows[i][1];}
table.find('tbody').html(sortedHtml);redrawTable();}
currentPage=getCurrentPage();setActivePage(currentPage);hideLoad();stripeRows();}
function setActivePage(number){table.find('.tableNavigation li').removeClass("active");table.find('.tableNavigation li:eq('+number+')').addClass("active");var rowsPerPage=settings.rowsPerPage;var from=number*rowsPerPage;var to=(number+1)*rowsPerPage;var tableRows=table.find('tbody tr:not(.searchhide)').length;table.find('tbody tr').hide();table.find('tbody tr:not(.searchhide)').slice(from,to).show();table.find('.tableInfo').html("Showing "+(from+1)+" - "+((tableRows<to)?tableRows:to)+" of "+tableRows);}
function getCurrentPage(){var currentPage=(parseInt(table.find('.tableNavigation li.active').find("a").html()))-1;if(isNaN(currentPage)){return 0;}
return currentPage;}
function showLoad(){if(settings.loadElement!=""){$(settings.loadElement).show();}}
function hideLoad(){if(settings.loadElement!=""){if(settings.delay>0){setTimeout(function(){$(settings.loadElement).hide();},settings.delay);}else{$(settings.loadElement).hide();}}}
function stripHtml(oldString){var newString="";var inTag=false;for(var i=0;i<oldString.length;i++){if(oldString.charAt(i)=='<')inTag=true;if(oldString.charAt(i)=='>'){if(oldString.charAt(i+1)=="<")
{}
else
{inTag=false;i++;}}
if(!inTag)newString+=oldString.charAt(i);}
return newString;}
function trimString(str){return str.replace(/^\s\s*/,'').replace(/\s\s*$/,'');}
function popup(data){var generator=window.open('','csv','height=400,width=600');generator.document.write('<html><head><title>CSV</title>');generator.document.write('</head><body >');generator.document.write('<textArea cols=70 rows=15 wrap="off" >');generator.document.write(data);generator.document.write('</textArea>');generator.document.write('</body></html>');generator.document.close();return true;}
function sortAsc(a,b){a=a[0];b=b[0];if(!isNaN(a)&&!isNaN(b)){return a-b;}
return a==b?0:(a<b?-1:1);}
function sortDesc(a,b){a=a[0];b=b[0];if(!isNaN(a)&&!isNaN(b)){return b-a;}
return a==b?0:(a>b?-1:1);}
function getSortAction(column){var columnObj=table.find('thead th').eq(column);var currentState=columnObj.find("#sorttypehandle").html()
table.find(".allsorttypehandle").html("");table.find(".sortshowhandle").hide();if(currentState=="asc"){columnObj.find("#sortdeschandle"+column).show();columnObj.find("#sortaschandle"+column).hide();columnObj.find("#sorttypehandle").html("desc");return"desc";}
if(currentState=="desc"){columnObj.find("#sortaschandle"+column).show();columnObj.find("#sortdeschandle"+column).hide();columnObj.find("#sorttypehandle").html("asc");return"asc";}
if(settings.sortDefault=="asc"){$("#sortaschandle"+column).show();columnObj.find("#sorttypehandle").html("asc");}else{$("#sortdeschandle"+column).show();columnObj.find("#sorttypehandle").html("desc");}
return settings.sortDefault;}
function stripeRows(){table.find("tbody tr").removeClass("odd");table.find("tbody tr").removeClass("even");table.find("tbody tr:visible:even").addClass("even");table.find("tbody tr:visible:odd").addClass("odd");}
return this;}})(jQuery);

/* -- FILE: [javascripts/jquery.animate-colors-min.js]*/
(function(d){function i(){var b=d("script:first"),a=b.css("color"),c=false;if(/^rgba/.test(a))c=true;else try{c=a!=b.css("color","rgba(0, 0, 0, 0.5)").css("color");b.css("color",a)}catch(e){}return c}function g(b,a,c){var e="rgb"+(d.support.rgba?"a":"")+"("+parseInt(b[0]+c*(a[0]-b[0]),10)+","+parseInt(b[1]+c*(a[1]-b[1]),10)+","+parseInt(b[2]+c*(a[2]-b[2]),10);if(d.support.rgba)e+=","+(b&&a?parseFloat(b[3]+c*(a[3]-b[3])):1);e+=")";return e}function f(b){var a,c;if(a=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(b))c=[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16),1];else if(a=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(b))c=[parseInt(a[1],16)*17,parseInt(a[2],16)*17,parseInt(a[3],16)*17,1];else if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))c=[parseInt(a[1]),parseInt(a[2]),parseInt(a[3]),1];else if(a=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(b))c=[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),parseFloat(a[4])];return c}
d.extend(true,d,{support:{rgba:i()}});var h=["color","backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","outlineColor"];d.each(h,function(b,a){d.fx.step[a]=function(c){if(!c.init){c.a=f(d(c.elem).css(a));c.end=f(c.end);c.init=true}c.elem.style[a]=g(c.a,c.end,c.pos)}});d.fx.step.borderColor=function(b){if(!b.init)b.end=f(b.end);var a=h.slice(2,6);d.each(a,function(c,e){b.init||(b[e]={a:f(d(b.elem).css(e))});b.elem.style[e]=g(b[e].a,b.end,b.pos)});b.init=true}})(jQuery);

/* -- FILE: [javascripts/cookies-agreement.js]*/
(function($){$.cookie=function(name,value,options){var msPerDay=864E5,returnValue,cookies=[],path,domain,expires,opts={},secure,date,defaults={expires:'',domain:'',path:'',secure:false};if(arguments.length===1){if(document.cookie&&document.cookie!==''){cookies=document.cookie.split(';');$.each(cookies,function(i,cookie){cookie=$.trim(cookie);if(cookie.substring(0,name.length+1)===name+'='){returnValue=decodeURIComponent(cookie.substring(name.length+1));return false;}});}
return returnValue;}else{$.extend(opts,defaults,$.cookie.settings,options);if(value===null){value='';opts.expires=-1;}
path=opts.path?';path='+opts.path:'';domain=opts.domain?';domain='+opts.domain:'';expires=opts.expires?(function(opts){if(typeof opts.expires==='number'){date=new Date();date.setTime(date.getTime()+(opts.expires*msPerDay));}else if($.type(opts.expires)==='date'){date=opts.expires;}else{date=new Date();date.setTime(date.getTime()+msPerDay);}
expires=';expires='+date.toUTCString();return expires;})(opts):'';secure=opts.secure?';secure':'';document.cookie=name+'='+encodeURIComponent(value)+expires+path+domain+secure;return document.cookie.indexOf(name);}};$.cookie.settings={expires:'',domain:'',path:'',secure:false};})(jQuery);$(window).load(function(){var cDate,cMinutes;cDate=new Date();cMinutes=1440;cDate.setTime(cDate.getTime()+(cMinutes*60*1000));$.cookie.defaults={expires:cDate,domain:'',path:'/',secure:false};if($.cookie('wbox-cookie')!='open'){$('#cookies-rules-box').animate({'bottom':0},600);}
$('#cookies-rules-box-btn').click(function(e){$.cookie('wbox-cookie','open',{expires:cDate,path:'/'});$(this).addClass('cookies-agreement');e.preventDefault();$('#cookies-rules-box').animate({'bottom':-300},300);});});

/* -- FILE: [javascripts/standard.js]*/
function SetMenuInterval(){$('#submenu-products').removeClass('active');menuOpened=false;}
$(document).ready(function(){if($(document).outerWidth()>764){if($('#nav-maps li.america').hasClass('active')){$('#select-country optgroup[label="USA"]').show();$('#select-country optgroup[label="Canada"]').show();$('#select-country optgroup[label="Greenland"]').show();$('#select-country optgroup[label="Africa"]').hide();$('#select-country optgroup[label="Asia"]').hide();$('#select-country optgroup[label="Europe"]').hide();}else if($('#nav-maps li.africa').hasClass('active')){$('#select-country optgroup[label="Africa"]').show();$('#select-country optgroup[label="USA"]').hide();$('#select-country optgroup[label="Asia"]').hide();$('#select-country optgroup[label="Canada"]').hide();$('#select-country optgroup[label="Greenland"]').hide();$('#select-country optgroup[label="Europe"]').hide();}else if($('#nav-maps li.asia').hasClass('active')){$('#select-country optgroup[label="Asia"]').show();$('#select-country optgroup[label="USA"]').hide();$('#select-country optgroup[label="Africa"]').hide();$('#select-country optgroup[label="Canada"]').hide();$('#select-country optgroup[label="Greenland"]').hide();$('#select-country optgroup[label="Europe"]').hide();}else if($('#nav-maps li.europe').hasClass('active')){$('#select-country optgroup[label="Europe"]').show();$('#select-country optgroup[label="USA"]').hide();$('#select-country optgroup[label="Africa"]').hide();$('#select-country optgroup[label="Asia"]').hide();$('#select-country optgroup[label="Canada"]').hide();$('#select-country optgroup[label="Greenland"]').hide();}}
$('.invalid').click(function(e){console.log('invalid');e.preventDefault();return false;});$(".more-countries").click(function(){$(".country-filtration-more").toggleClass("disp-block");$(".country-filtration").toggleClass("disp-block, disp-none");if($(".country-filtration-more").hasClass('disp-block')){$(this).text('HIDE COUNTRIES');console.log('1');}else{$(this).text('SHOW MORE COUNTRIES');console.log('2');}});var timerMenu;var menuOpened=false;$('#nav li a.products').parent().hover(function(){clearInterval(timerMenu);$('#submenu-products').addClass('active');menuOpened=true;},function(){timerMenu=setInterval(SetMenuInterval,1000);});$('#search-button').click(function(){if($('#search-name').val()!='Search...')
return true;$('#search-name').animate({color:'#F00'},200,function(){$(this).animate({color:'#FFF'},300);});return false;});$('#select-country').change(function(){document.location='/en/contacts/local-contacts/#'+$(this).val();});if(window.location.search.indexOf('compare_products[]')!=-1){$('.lightbox a').click(function(){$.ajax({url:$(this).attr('href'),success:function(data){document.location=document.location;}});return false;});}
if($.fn.ezpz_tooltip){$.fn.ezpz_tooltip.positions.topLeft=function(contentInfo,mouseX,mouseY,offset,targetInfo){contentInfo['top']=mouseY+20;contentInfo['left']=mouseX+3;return contentInfo;};}
$(".tooltip-target").ezpz_tooltip({contentPosition:'topLeft'});$('a#toogle-filter-box').click(function(){$('#filter-box').slideToggle(500);return false;});if($('#filter-box').length&&window.location.search.indexOf('&submit-filters=Filter')!=-1)
$('#filter-box').show();$('#nav-maps a').click(function(){var showContinent=jQuery(this).attr('class');console.log(showContinent);$('#nav-maps li').removeClass('active');jQuery(this).parent().addClass('active');$('#continent li').hide();$('#continent #'+showContinent).show();if(showContinent=='europe'){$('#continent .imagemap-europe').maphilight({stroke:false,fillOpacity:1,fillColor:'71b546',fade:false});$('#select-country optgroup[label="Europe"]').show();$('#select-country optgroup[label="USA"]').hide();$('#select-country optgroup[label="Africa"]').hide();$('#select-country optgroup[label="Asia"]').hide();$('#select-country optgroup[label="Canada"]').hide();$('#select-country optgroup[label="Greenland"]').hide();}else if(showContinent=='africa'){$('#continent .imagemap-africa').maphilight({stroke:false,fillOpacity:1,fillColor:'ff702a',fade:false});$('#select-country optgroup[label="Africa"]').show();$('#select-country optgroup[label="USA"]').hide();$('#select-country optgroup[label="Asia"]').hide();$('#select-country optgroup[label="Canada"]').hide();$('#select-country optgroup[label="Greenland"]').hide();$('#select-country optgroup[label="Europe"]').hide();}else if(showContinent=='asia'){$('#continent .imagemap-asia').maphilight({stroke:false,fillOpacity:1,fillColor:'64b2eb',fade:false});$('#select-country optgroup[label="Asia"]').show();$('#select-country optgroup[label="USA"]').hide();$('#select-country optgroup[label="Africa"]').hide();$('#select-country optgroup[label="Canada"]').hide();$('#select-country optgroup[label="Greenland"]').hide();$('#select-country optgroup[label="Europe"]').hide();}else if(showContinent=='america'){$('#continent .imagemap-america').maphilight({stroke:false,fillOpacity:1,fillColor:'64b2eb',fade:false});$('#select-country optgroup[label="USA"]').show();$('#select-country optgroup[label="Canada"]').show();$('#select-country optgroup[label="Greenland"]').show();$('#select-country optgroup[label="Africa"]').hide();$('#select-country optgroup[label="Asia"]').hide();$('#select-country optgroup[label="Europe"]').hide();}
return false;});$('#continent .imagemap-europe').maphilight({stroke:false,fillOpacity:1,fillColor:'71b546',fade:false});$('#nav-products-sidebar>li>a').click(function()
{if($(this).parent().hasClass('parentactive'))
{$(this).next('ul').slideUp('slow',function()
{$(this).parent().removeClass('parentactive');$(this).parent().addClass('parent');});return false;}
else if($(this).parent().hasClass('parent'))
{$('#nav-products-sidebar li.parentactive ul').slideUp('slow',function(){$(this).parent().removeClass('parentactive');$(this).parent().addClass('parent');});if($(this).next('ul').css('display')=='block')
$(this).next('ul').slideUp('slow');else
{$(this).next('ul').css('display','none');$(this).next('ul').slideDown('slow');}
$(this).parent().addClass('parentactive');return false;}});$(function()
{var tabContainers=$('.tab_content');tabContainers.hide().filter(':first').show();$('ul.tabs a').click(function()
{tabContainers.hide();tabContainers.filter(this.hash).show();$('ul.tabs li').removeClass('active');$(this).parent().addClass('active');return false;}).filter(':first').click();});$(function()
{var tabContainersSupport=$('.tab-content-support');tabContainersSupport.hide().filter(':first').show();$('ul.tabs a').click(function()
{tabContainersSupport.hide();tabContainersSupport.filter(this.hash).show();$('ul.tabs li').removeClass('active');$(this).parent().addClass('active');return false;}).filter(':first').click();});$(function(){$("table tr:nth-child(odd)").addClass("odd-row");$("table td:first-child, table th:first-child").addClass("first");$("table td:last-child, table th:last-child").addClass("last");});var hash=window.location.hash;if(hash!=""){$('#content address').css('display','none');$('address'+hash).css({'display':'block','background-color':'#fffddd'});}
$(function(){if($('.recommended-products .slider').length){recommendSlider=$('.recommended-products .slider').bxSlider({displaySlideQty:3,moveSlideQty:3,infiniteLoop:true,hideControlOnEnd:false,prevText:'',nextText:''});timer='';$(window).resize(function(){clearInterval(timer);if(recommendSlider){timer=setTimeout('recommendSlider.reloadShow()',300);}});}});var bannerImgUrl;$(function(){$('#slider img').each(function(){bannerImgUrl=$(this).attr('src');$(this).wrap('<li class="brand" style="background-image: url('+bannerImgUrl+');"></li>');$(this).hide();});});$(function(){$('#section-banner-wrap #slider').bxSlider({controls:false,mode:'fade',randomStart:false,speed:1000,pause:5000,auto:true,wrapperClass:'bx-wrapper'});});$(function(){$('#content #today-products-list').bxSlider({controls:false,mode:'horizontal',randomStart:false,speed:500,pause:5000,auto:true,wrapperClass:'bx-wrapper'});});$('.product-detail .tab_container').css('min-height',$('.product-detail .dimensions').height());$("#searchtable").show();if($('.tab-container-support #tab1 table').is('table')){supportCurrentProducts=$(".tab-container-support #tab1 table").advancedtable({searchField:"#support-filter",loadElement:"#loader",searchCaseSensitive:false,ascImage:"/content/images/design/2012/up.png",descImage:"/content/images/design/2012/down.png"});supportArchivedProducts=$(".tab-container-support #tab2 table").advancedtable({searchField:"#support-filter",loadElement:"#loader",searchCaseSensitive:false,ascImage:"/content/images/design/2012/up.png",descImage:"/content/images/design/2012/down.png"});}});(function($){var patterns={text:/^['"]?(.+?)["']?$/,url:/^url\(["']?(.+?)['"]?\)$/};function clean(content){if(content&&content.length){var text=content.match(patterns.text)[1],url=text.match(patterns.url);return url?'<img src="'+url[1]+'" />':text;}}
function inject(prop,elem,content){if(prop!='after')
prop='before';if(content=clean(elem.currentStyle[prop])){$(elem)[prop=='before'?'prepend':'append']($(document.createElement('span')).addClass(prop).html(content));}}
$.pseudo=function(elem){inject('before',elem);inject('after',elem);elem.runtimeStyle.behavior=null;};if(document.createStyleSheet){var o=document.createStyleSheet(null,0);o.addRule('.dummy','display: static;');o.cssText='html, head, head *, body, *.before, *.after, *.before *, *.after * { behavior: none; } * { behavior: expression($.pseudo(this)); }';}})(jQuery);

/* -- FILE: [javascripts/compare.js]*/
$(document).ready(function(){$('a.compare').click(function(){var firstComparedProduct=true,compareProductsUrl='',compareProductCount=0,categoryId=parseInt($('div#compareCategoryId').text(),10);$('.compare-me').each(function(){if($(this).is(':checked')){var productId=$(this).attr('id').replace('compare-product','');if(firstComparedProduct===false){compareProductsUrl+='&compare_products[]='+productId;}else{compareProductsUrl+='?compare_products[]='+productId;firstComparedProduct=false;}
compareProductCount++;}});if(compareProductCount>1&&compareProductCount<=3){window.location=globalRootUrl+"/compare-products/"+compareProductsUrl+"&category_id="+categoryId;}else if(compareProductCount>3){alert('You have to choose at most three products.');}else{alert('You have to choose at least two products.');}
return false;});$('.product-item .compare-me').change(function(){if($(this).is(':checked')){$(this).parent().parent().parent().find('a.compare').css('display','inline');}else{$(this).parent().parent().parent().find('a.compare').css('display','none');}});});$(window).load(function(){if($('div.compare-products #product-list').length){var productList=$('div.compare-products #product-list div.product-item'),numberOfTableRows=$('div.compare-products #product-list div.product-item table:first tr').length,i=0;orderRowsHeight(productList.find('div.image'));orderRowsHeight(productList.find('div.text'));for(i=0;i<numberOfTableRows;i++){orderRowsHeight(productList.find('table tr:eq('+i+')'));}}
$('a.removeCompareProduct').on('click',function(){var categoryId=parseInt($('div#compareCategoryId').text()),href=$(this).attr('href')+'?category_id='+categoryId,removedProductId=parseInt($(this).parents('div.product-item').find('div.productid').text());$('div.compare-products #product-list div.productid').each(function(){var productid=parseInt($(this).text());if(productid!=removedProductId){href+='&compare_products[]='+productid;}});$(this).attr('href',href);return true;});$('a.addCompareProduct').on('click',function(){var categoryId=parseInt($('div#compareCategoryId').text());$.post('http://www.ademco.eu/compare-products-add/',{'fromUrl':$(location).attr('href'),'categoryId':categoryId},function(data){fb.activate();},'html');return false;})});
