function CheckboxController(b,e,c){var i=this;var a="cbbuilt";(function f(){jQuery(document).ready(function(){g();});})();i.scanAndBuild=g;function g(){jQuery(b+'[class!="'+a+'"]').each(function(l){if(jQuery(this).next().hasClass(c)){return false;}var k=jQuery(this);var j=jQuery("<"+e+">").text("unchecked");
if(k.attr("class").length>0){j.attr("class",k.attr("class"));}if(c){j.attr("class",j.attr("class")+" "+c);}j.removeClass(b.split(".")[1]);j.addClass("unchecked");d(k,j);j.bind("click",function(){if(jQuery(this).prev().prop("checked")){jQuery(this).prev().prop("checked",false);}else{jQuery(this).prev().prop("checked",true);
}jQuery(this).prev().trigger("change");});k.after(j);k.bind("change",h);k.css("position","absolute");k.css("left","-9999px");k.addClass(a);});}function h(){if(!jQuery(this).hasClass("disabled")){d(jQuery(this),jQuery(this).next());}}function d(j,k){if(j.is(":checked")){k.text("checked");k.removeClass("unchecked");
k.addClass("checked");}else{k.text("unchecked");k.removeClass("checked");k.addClass("unchecked");}}}function RadioboxController(b,e,c){var i=this;var a="cbbuilt";(function h(){jQuery(document).ready(function(){f();});})();i.scanAndBuild=f;function f(){jQuery(b+'[class!="'+a+'"]').each(function(k){if(jQuery(this).next().hasClass(c)){return false;
}var l=jQuery(this);var j=jQuery("<"+e+">").text("unchecked");if(l.attr("class").length>0){j.attr("class",l.attr("class"));}if(c){j.attr("class",j.attr("class")+" "+c);}j.removeClass(b.split(".")[1]);j.addClass("unchecked");d(l,j);j.bind("click",function(){if(jQuery(this).prev().prop("checked")){jQuery(this).prev().prop("checked",false);
}else{jQuery(this).prev().prop("checked",true);}jQuery(this).prev().trigger("change");});l.after(j);l.bind("change",g);l.css("position","absolute");l.css("left","-9999px");l.css("top","-9999px");l.addClass(a);});}function g(){if(jQuery(this).attr("name").length>0){jQuery('input[name="'+jQuery(this).attr("name")+'"]').each(function(){d(jQuery(this),jQuery(this).next());
});}else{d(jQuery(this),jQuery(this).next());}}function d(k,j){if(k.is(":checked")){j.text("checked");j.removeClass("unchecked");j.addClass("checked");}else{j.text("unchecked");j.removeClass("checked");j.addClass("unchecked");}}}ArrowSlideControl.prototype=new NETSliderControl;function ArrowSlideControl(){var i=this;
i.init=g;var a;var h;function g(){h=$(window);var j=$("<a>").addClass("slideNext").attr("href","#").text("Next").bind("click",function(){i.slider.stop();i.slider.next(function(){});return false;});var k=$("<a>").addClass("slidePrevious").attr("href","#").text("Previous").bind("click",function(){i.slider.stop();
i.slider.previous(function(){});return false;});$(".slider .camera").append(j);$(".slider .camera").append(k);a=$(".slider .camera .slideNext, .slider .camera .slidePrevious");c();e();b();}i.sliderAnimates=f;function f(){}i.sliderAnimationComplete=d;function d(){c();e();}function c(){}function e(){if(typeof(i.slider.getTimeline()[i.slider.getPosition()])!="undefined"){if(i.slider.getTimeline()[i.slider.getPosition()].object.getHTMLObject().hasClass("darkControls")){a.addClass("black");
}else{a.removeClass("black");}}}$(window).resize(b);function b(){a.css("top",Math.round($(window).height()/2)-$(".header .wrapper").height()-$(".header .subnav-bg").height());if(h.width()>1040){a.removeClass("pad");a.addClass("liquid");}else{if(h.width()>1024&&h.width()<=1040){a.removeClass("liquid");
a.removeClass("pad");}else{a.removeClass("liquid");a.addClass("pad");}}}}PagingSlideControl.prototype=new NETSliderControl;function PagingSlideControl(){var a=this;var c=null;a.init=g;function g(){$(document).ready(function(){if(a.slider.getLength()>0){c=$("<ol>").addClass("position-control");var j,h;
h=Math.round(a.slider.getLength()/2);for(j=0;j<h;j++){c.append($("<li>").text(j).bind("click",e));}c.children("li").eq(Math.round(a.slider.getPosition()/2)).addClass("active");$(".slider .camera").append(c);b();$(window).resize(b);}});}a.sliderAnimates=d;function d(h){if(c){c.children("li").unbind("click");
c.children("li").css("cursor","default");}}a.sliderAnimationComplete=f;function f(){if(c){c.children("li").bind("click",e);c.children("li").css("cursor","pointer");c.children("li").removeClass("active");c.children("li").eq(Math.round(a.slider.getPosition()/2)).addClass("active");}}function e(){a.slider.stop();
var i=parseInt($(this).text())*2;var h=true;if(i===a.slider.getPosition()||i<0){return false;}if(i<a.slider.getPosition()){h=false;}if(c){c.children("li").removeClass("active");$(this).addClass("active");}a.slider.animateTo(i,h,function(){});return false;}function b(){c.css("margin-left","-"+Math.round(c.width()/2)+"px");
}}SwipeSlideControl.prototype=new NETSliderControl;function SwipeSlideControl(){var b=this;var e=null;var f=null;var c;b.init=h;function h(){if(b.slider.getLength()>0){c=$(".slider");c.bind("touchstart",function(i){e=i.originalEvent.touches[0].pageX;});c.bind("touchmove",function(i){f=i.originalEvent.touches[0].pageX;
});c.bind("touchend",function(i){a();});}}b.sliderAnimates=d;function d(){}b.sliderAnimationComplete=g;function g(){}function a(){b.slider.stop();if((e-f)>50){b.slider.next(function(){});}if((f-e)>50){b.slider.previous(function(){});}return false;}}ThumbSlideControl.prototype=new NETSliderControl;function ThumbSlideControl(){var a=this;
var b=null;a.init=f;function f(){if(a.slider.getLength()>0){b=$("ol.thumbscontrol");b.children("li").eq(Math.round(a.slider.getPosition()/2)).addClass("active");b.children("li").bind("click",d);}}a.sliderAnimates=c;function c(){if(b){b.children("li").unbind("click");b.children("li").css("cursor","default");
}}a.sliderAnimationComplete=e;function e(){if(b){b.children("li").bind("click",d);b.children("li").css("cursor","pointer");b.children("li").removeClass("active");b.children("li").eq(Math.round(a.slider.getPosition()/2)).addClass("active");}}function d(){a.slider.stop();var h=parseInt($(this).index()*2);
var g=true;if(h===a.slider.getPosition()||h<0){return false;}if(h<a.slider.getPosition()){g=false;}a.slider.animateTo(h,g,function(){});return false;}}DefaultSlide.prototype=new NETSlide;function DefaultSlide(){var b=this;b.init=e;function e(f){system.log("DEFAULTSLIDE-"+b.getPosition()+": init");f();
}b.reset=d;function d(f){system.log("DEFAULTSLIDE-"+b.getPosition()+": reset");b.getHTMLObject().show(function(){b.getHTMLObject().fadeTo(0,0.6);f();});}b.show=a;function a(f){system.log("DEFAULTSLIDE-"+b.getPosition()+": show");b.getHTMLObject().fadeTo(500,1);f();}b.hide=c;function c(f){system.log("DEFAULTSLIDE-"+b.getPosition()+": hide");
b.getHTMLObject().fadeTo(500,0.6);f();}}function NETSlider(){var k=this;var z=new Object;var Q=new Object;var j=new Array();var p=0;var X=null;var T;var y=new Array();var g={allSlides:false,firstSlideVisible:false};var m=false;var G=0;var A=0;var B=new Array();var f=new Array();var L={timelineObjectTypes:{slide:"slide",effect:"effect"},runningTypes:{rotation:"rotation",scrolling:"scrolling",iteration:"iteration"},slideshowStatus:{running:"running",paused:"paused",stopped:"stopped"}};
(function w(){z.me=null;z.camera=null;z.strip=null;b();})();k.restoreDefaultSettings=b;function b(){Q.defaultAnimationType=NETDefaultSlideEffect;Q.defaultSlideshowInterval=10000;Q.runningType=L.runningTypes.rotation;}k.setDefaultSettings=M;function M(Y){if(Y.defaultAnimationType&&Y.defaultAnimationType!="undefined"){Q.defaultAnimationType=Y.defaultAnimationType;
}if(Y.defaultSlideshowInterval&&Y.defaultSlideshowInterval!="undefined"){Q.defaultSlideshowInterval=Y.defaultSlideshowInterval;}if(Y.runningType&&Y.runningType!="undefined"){Q.runningType=Y.runningType;}}function s(){if(g.allSlides&&g.allSlides){return true;}else{return false;}}k.setHTMLObjects=x;function x(aa){if(aa.me){z.me=aa.me;
}if(aa.camera){z.camera=aa.camera;}if(aa.strip){z.strip=aa.strip;}if(aa.slides){var ab,Z;Z=aa.slides.length;for(ab=0;ab<Z;ab+=1){var Y=new NETSlide();Y.setHTMLObject(jQuery(aa.slides[ab]));V(Y,L.timelineObjectTypes.slide);}g.allSlides=true;c();q();}R();c();}k.getHTMLObjects=J;function J(){return z;}k.getLength=U;
function U(){return j.length;}k.getPosition=C;function C(){return p;}k.setPosition=O;function O(Y){p=Y;}k.getTimeline=d;function d(){return j;}function i(){if(jwplayer&&jwplayer()&&jwplayer().getState()==="PLAYING"){jwplayer().stop();}}function R(){}k.next=e;function e(Y){if(!m){m=true;i();H(function(){m=false;
Y();if(B.length>0){e(B.shift());}if(f.length>0){K(f.shift());}});}else{B.push(Y);}}k.previous=K;function K(Y){if(!m){m=true;i();n(function(){m=false;Y();if(B.length>0){e(B.shift());}if(f.length>0){K(f.shift());}});}else{f.push(Y);}}k.slideNext=D;function D(){a();H(function(){if(T=L.slideshowStatus.paused){v();
}});}k.slidePrevious=F;function F(){a();n(function(){if(T=L.slideshowStatus.paused){v();}});}function H(aa){if(j.length>1){if(j[p].type===L.timelineObjectTypes.slide){var Z=E();if(Z>=0){var Y=p+1;if(Q.runningType==L.runningTypes.scrolling&&Z===0){l(Z,false,function(){p=Z;aa();});return true;}else{P(p,Z,Y,true,function(){p=Z;
h("sliderAnimationComplete");aa();});return true;}}}}}function n(aa){if(j.length>1){if(j[p].type===L.timelineObjectTypes.slide){var Z=S();if(Z>=0){var Y=p-1;if(Q.runningType==L.runningTypes.rotation&&p===0){Y=Z-1;}else{if(Q.runningType==L.runningTypes.scrolling&&p===0){Y=1;l(Z,true,function(){p=Z;aa();
});return true;}}P(p,Z,Y,false,function(){p=Z;h("sliderAnimationComplete");aa();return true;});}}}}k.goTo=N;function N(){}k.animateTo=l;function l(Z,aa,ab){if(p!=Z){i();var Y=aa?p+1:p-1;P(p,Z,Y,aa,function(){p=Z;h("sliderAnimationComplete");ab();return true;});}else{ab();return false;}}function P(ab,Y,aa,Z,ac){if(Y<0||Y>=j.length-1){return false;
}if(!j[Y].object.isinit){j[Y].object.init(function(){j[Y].object.isinit=true;j[Y].object.reset(function(){j[ab].object.hide(function(){h("sliderAnimates",Z);if(Z){j[aa].object.animateForward(j[ab].object,j[Y].object,ab,Y,z,function(){if(Y>=0&&Y<j.length-1){j[aa].object.animationComplete(j[ab].object,j[Y].object,ab,Y,z,function(){j[Y].object.show(function(){ac();
return true;});});}});}else{j[aa].object.animateBackward(j[ab].object,j[Y].object,ab,Y,z,function(){j[aa].object.animationComplete(j[ab].object,j[Y].object,ab,Y,z,function(){j[Y].object.show(function(){ac();return true;});});});}});});});}else{j[Y].object.reset(function(){j[ab].object.hide(function(){h("sliderAnimates",Z);
if(Z){j[aa].object.animateForward(j[ab].object,j[Y].object,ab,Y,z,function(){j[aa].object.animationComplete(j[ab].object,j[Y].object,ab,Y,z,function(){j[Y].object.show(function(){ac();return true;});});});}else{j[aa].object.animateBackward(j[ab].object,j[Y].object,ab,Y,z,function(){j[aa].object.animationComplete(j[ab].object,j[Y].object,ab,Y,z,function(){j[Y].object.show(function(){ac();
return true;});});});}});});}}k.start=v;function v(){T=L.slideshowStatus.paused;c();}function c(){if(T==L.slideshowStatus.paused){if(s){X=setInterval(D,Q.defaultSlideshowInterval);T=L.slideshowStatus.running;}}}k.stop=o;function o(){clearInterval(X);T=L.slideshowStatus.stopped;}k.pause=a;function a(){if(T!=L.slideshowStatus.stopped){clearInterval(X);
T=L.slideshowStatus.paused;}}k.addToTimeline=V;function V(Y,Z,aa,ac){if(Z===L.timelineObjectTypes.slide||Z===L.timelineObjectTypes.effect){var ab=new Object;ab.object=Y;ab.type=Z;if(ac){ab.object.setPosition(0);j.unshift(ab);}else{ab.object.setPosition(j.length);j.push(ab);}if(j.length===1){if(aa===true){}else{if(!j[p].object.isinit){j[p].object.init(function(){j[p].object.isinit=true;
j[p].object.reset(function(){j[p].object.show(function(){g.firstSlideVisible=true;c();});});});}else{j[p].object.reset(function(){j[p].object.show(function(){g.firstSlideVisible=true;c();});});}}}q();}}k.removeFromTimeline=I;function I(Y){j.splice(Y,1);q();}k.addControl=W;function W(Y){y.push(Y);Y.setSlider(k);
Y.init();}function h(aa,ab){var Z,Y;Y=y.length;for(Z=0;Z<Y;Z+=1){y[Z][aa](ab);}}function r(Y){}function E(){q();if(p+2<j.length&&(j[p+1].type===L.timelineObjectTypes.effect&&j[p+2].type===L.timelineObjectTypes.slide)){return p+2;}else{if(Q.runningType==L.runningTypes.rotation||Q.runningType==L.runningTypes.scrolling){return 0;
}else{return -1;}}}function S(){q();if(j[p-1]&&j[p-2]&&j[p-1].type===L.timelineObjectTypes.effect&&j[p-2].type===L.timelineObjectTypes.slide){return p-2;}else{if(Q.runningType==L.runningTypes.rotation||Q.runningType==L.runningTypes.scrolling){return j.length-2;}else{return false;}}}function q(){var ab=Array();
var Z,Y;Y=j.length;for(Z=0;Z<Y;Z+=1){if(j[Z].type===L.timelineObjectTypes.slide){ab.push(j[Z]);j[Z].object.setPosition(Z);if(j[Z+1]&&j[Z+1].type===L.timelineObjectTypes.effect){ab.push(j[Z+1]);Z+=1;}else{var aa=new Object();aa.object=new Q.defaultAnimationType();aa.type=L.timelineObjectTypes.effect;ab.push(aa);
}}}j=ab;}}function NETSlide(){var j=this;var g=null;var c=0;j.isinit=false;var i={AJAX_LOADIND_FAILED:"ajaxloadingfailed",ELEMENT_NOT_FOUND:"htmlelementnotfound",DATA_IS_EMPTY:"dataisempty"};(function a(){jQuery(document).ready(function(){});})();this.setPosition=k;function k(o){c=o;}this.getPosition=n;
function n(){return c;}this.setHTMLObject=l;function l(o){g=o;}this.getHTMLObject=b;function b(){return(g);}this.init=m;function m(o){o();}this.reset=e;function e(o){g.show(100,function(){o();});}this.show=h;function h(o){o();}this.hide=d;function d(o){o();}this.loadContent=f;function f(o,p,q,s){var r=jQuery.ajax({url:o}).success(function(x){var w=null;
if(p&&p!="root"){if(jQuery(x).find(p).length>0){w=jQuery(x).find(p);}else{s(i.ELEMENT_NOT_FOUND);return false;}}else{w=jQuery(x);}if(w.length>0){if(w.find("img").length>0){var v=0,y=w.find("img").length;w.find("img").each(function(A){var z=new Image();jQuery(z).load(function(){v++;if(v==y){q(w);}}).attr("src",jQuery(this).attr("src"));
});}else{q(w);}}else{s(i.DATA_IS_EMPTY);}}).error(function(){s(i.AJAX_LOADIND_FAILED);}).complete(function(){});}}function NETSliderEffect(){var b=0;(function f(){jQuery(document).ready(function(){});})();this.setPosition=d;function d(h){b=h;}this.getPosition=g;function g(){return b;}this.animateForward=c;
function c(l,j,k,i,h,m){m();}this.animateBackward=e;function e(l,j,k,i,h,m){m();}this.animationComplete=a;function a(l,j,k,i,h,m){m();}}NETDefaultFadeEffect.prototype=new NETSliderEffect;function NETDefaultFadeEffect(){var b=this;var e=400;(function d(){jQuery(document).ready(function(){});})();b.animateForward=a;
function a(j,l,p,m,h,o){var n=j.getHTMLObject();var k=l.getHTMLObject();var g=h.me;var i=h.camera;var f=h.strip;n.fadeOut(e,o);k.fadeIn(e,o);}b.animateBackward=c;function c(j,h,i,g,f,k){a(j,h,i,g,f,k);}}NETDefaultSlideEffect.prototype=new NETSliderEffect;function NETDefaultSlideEffect(){var b=this;var e=400;
(function d(){jQuery(document).ready(function(){});})();b.animateForward=a;function a(j,l,p,m,h,o){var n=j.getHTMLObject();var k=l.getHTMLObject();var g=h.me;var i=h.camera;var f=h.strip;if(p<m){f.animate({left:(m/2)*n.width()*-1},e,function(){n.removeClass("active");o();k.addClass("active");});}else{h.strip.children().last().after(h.strip.children().first());
f.css("left",(h.strip.children().length-2)*n.width()*-1);f.animate({left:(h.strip.children().length-1)*n.width()*-1},e,function(){n.removeClass("active");h.strip.children().last().after(h.strip.children(":lt("+(h.strip.children().length-1)+")"));f.css("left",0);o();k.addClass("active");});}}b.animateBackward=c;
function c(h,j,n,k,g,m){var l=h.getHTMLObject();var i=j.getHTMLObject();var f=g.strip;if(n>k){f.animate({left:(k/2)*l.width()*-1},e,function(){m();});}else{g.strip.children().first().before(g.strip.children().last());g.strip.css("left",l.width()*-1);f.animate({left:0},e,function(){g.strip.children().first().before(g.strip.children(":gt(0)"));
f.css("left",(g.strip.children().length-1)*l.width()*-1);m();});}}}function NETSliderControl(){var c=this;c.slider=null;(function a(){jQuery(document).ready(function(){});})();this.init=f;function f(){}this.sliderAnimates=b;function b(){}this.sliderAnimationComplete=e;function e(){}this.setSlider=d;function d(g){c.slider=g;
}}function Resizer(c,h,f,d,j,i,a){var k=this;(function g(){$(document).ready(function(){jQuery(window).resize(b);b();});})();function b(){var m=1;var e=1;if(f&&f>0){m=f;}if(d&&d>0){e=d;}var n=0;if(j&&j!="undefined"){n=j;}var l=0;if(i&&i!="undefined"){l=i;}c.width((h.width()*m)-n);c.height((h.height()*e)-l);
if(c.is("ul")&&typeof(a)!="undefined"){c.css("left",(window.slider.getPosition()/2)*h.width()*-1);}}}function ImageResizer(h,i){var b=this;var a=0;var g=0;(function f(){jQuery(window).resize(c);d();})();function d(){if(h.width()){jQuery(window).resize();}else{setTimeout(d,150);}}function c(){if($(window).width()>=1024){if($(window).width()/h.width()>$(window).height()/h.height()){if(a===0){a=h.height();
}if(g===0){g=h.width();}h.width(i.width());var e=i.width()/g;h.height(Math.round(a*e));}else{if(a===0){a=h.height();}if(g===0){g=h.width();}h.height(i.height());var e=i.height()/a;h.width(Math.round(g*e));}}}}function SliderResizer(b,c){(function d(){jQuery(window).resize(a);a();})();function a(){var e=b.find(".camera > ul > li.active");
$(".camera > ul").css({left:"-"+(b.width()*e.index())+"px"});}}function FooterResizer(g,e){var c=this;var b;var f;(function a(){b=$(".service-footer").eq(0);f=$("#retailerMap").length;jQuery(window).resize(d);d();})();c.resize=d;function d(){if(!f){if((e.outerHeight()+b.height())<g.height()){b.css("position","absolute");
}else{b.css("position","relative");}}}}function SmartImageResizer(){var i=this;var h=new Array();var f=new Array();var a=new Array();var b=0;(function g(){d();jQuery(window).resize(c);setTimeout(c,150);})();i.update=d;function d(){var j=$(".imageholder");var k=0;b=j.length;for(k;k<j.length;k=k+1){var l=j.eq(k).find("img").eq(0);
h.push(j.eq(k));f.push(l);l.each(e);}}function e(){var k=$(this);var j=new Image();jQuery(j).load(function(){k.data("width",j.width);k.data("height",j.height);k.data("relation",j.width/j.height);c();}).attr("src",k.attr("src"));}i.resize=c;function c(){var j=0;for(j;j<f.length;j=j+1){var l=f[j].data("relation");
var k=h[j].width()/h[j].height();if(k>=l){h[j].removeClass("heightcheck");var m=(f[j].height()-h[j].height())/(-2);f[j].css("top",m+"px");}else{f[j].css("top",0);h[j].addClass("heightcheck");}}}}function ApplicationLinks(){var j=this;var f=[];var h=[["/productpreviewdisplay/titan_glam","http://www.silhouette.com/at/de/optische_brillen/titan_glam/preview"],["/productpreviewdisplay/titan_impressions","http://www.silhouette.com/at/de/optische_brillen/titan_impressions/preview"]];
var a="/productpreviewdisplay";(function i(){if(typeof cmsdata!="undefined"&&cmsdata.pagelinks){f=cmsdata.pagelinks;}b();})();function b(){var m=window.location.hash;if(m.indexOf(a)!=-1){for(var l=0;l<h.length;l++){if(m.indexOf(h[l][0])!=-1){window.location=h[l][1];}}}}j.openRetailerPage=function g(){window.location=j.getRetailerPageLink();
};j.getProductPageLink=function c(l){return f[l];};j.getRetailerPageLink=function d(){return f["retailersearch"];};j.getPageNotFoundLink=function k(){return f["404"];};j.navigateToPageNotFound=function e(){window.location=f["404"];};}var Config={"rootUrl":"http://www.silhouette.com/","sendmailUrl":"http://www.silhouette.com/sendmail/sendMail.aspx","track":true,"mailPrefix":"","showSocialMedia":true,"appid":"310714475616291","appsecret":"f19131a571b4c0d5f5bff18d11c851d8"};
if(setDocdomain){document.domain="silhouette.com";}function App(){var b=this;var a=($.browser.msie&&($.browser.version=="8.0"||$.browser.version=="7.0"));(function c(){$(document).ready(function(){Modernizr.load({test:Modernizr.mq("(min-height: 0px)"),nope:"https://raw.github.com/scottjehl/Respond/master/respond.min.js"});
var j=$(window);var f=$("body");var C=$(".service-footer");var e=$(".global-footer");var s=$(".mediabar-container");var E=$(".slider");var z=E.find(".camera");var v=$(".header").height();var l=$(".more-link").height()+30;var F=$(".banner");var p=$(".haccord");var y=$(".stage");f.css("min-height",j.height());
j.resize(function(){f.css("min-height",j.height());});var m=new HeaderFooterViewController();window.radioboxController=new RadioboxController(".radio","div","custom-radiobox");window.checkboxController=new CheckboxController(".checkbox","div","custom-checkbox");window.applicationLinks=new ApplicationLinks();
if(typeof(ProductViewControllerMain)=="function"){window.productViewController=new ProductViewControllerMain();}window.campaignController=new CampaignController();window.popupViewController=new PopupViewController();window.geolocator=new GeoLocator();window.localisationLanguageController=new LocalisationLanguageController();
window.labelController=new LabelController();window.videoController=new VideoController();window.formValidationController=new FormValidationController();window.facebookController=new FacebookController();var g={lines:12,length:7,width:4,radius:10,color:"#000",speed:1,trail:60,shadow:false,hwaccel:false};
window.blackSpinner=new Spinner();var h={lines:12,length:7,width:4,radius:10,color:"#fff",speed:1,trail:60,shadow:false};window.whiteSpinner=new Spinner(h);if(E.length>0){var B=new Object();B.me=E;B.camera=z;B.strip=z.children("ul");window.slider=new NETSlider();window.slider.setHTMLObjects(B);var q=E.find(".camera > ul > li");
var x,w;w=q.length;for(x=0;x<w;x+=1){var d=new NETSlide();d.setHTMLObject($(q[x]));window.slider.addToTimeline(d,"slide");}if(E.hasClass("eyecare")){window.slider.addControl(new ArrowSlideControl());window.slider.addControl(new ThumbSlideControl);if(Modernizr.touch){window.slider.addControl(new SwipeSlideControl());
}}else{if(!Modernizr.touch){window.slider.addControl(new PagingSlideControl());}else{window.slider.addControl(new SwipeSlideControl());}}window.slider.start();if(E.hasClass("fullscreen")){var n=new Resizer(E,j,null,null,null,v+l);var n=new Resizer(z,j,null,null,null,v+l);var n=new Resizer(E.find(".camera > ul > li"),j,null,null,null,v+l);
var n=new Resizer(E.find(".camera > ul"),E.find(".camera > ul > li"),E.find(".camera > ul > li").length,null,null,null,window.slider);var n=new Resizer(E.find(".camera > ul iframe"),z);var D=new ImageResizer(E.find(".camera > ul > li > img"),j);}else{if(E.hasClass("eyecare")){var A=new SliderResizer(E,j);
var k=Modernizr.touch?v:v+C.height()+e.height();var n=new Resizer(E,j,null,null,null,k);var n=new Resizer(z,j,null,null,null,k);var n=new Resizer(E.find(".camera > ul > li"),j,null,null,null,k);var n=new Resizer(E.find(".camera > ul"),E.find(".camera > ul > li"),E.find(".camera > ul > li").length,null,null,null,window.slider);
var D=new ImageResizer(E.find(".camera > ul > li > img"),j);}}}if(F.length>0){if(F.hasClass("fullscreen")){var r=s.height();var n=new Resizer(F,j,null,null,null,v+r);var n=new Resizer(F.find(".camera"),j,null,null,null,v+r);var n=new Resizer(F.find(".camera > ul > li"),j,null,null,null,v+r);var D=new ImageResizer(F.find(".camera > ul > li > img"),j);
}if(F.find(".style-and-beauty-video").length>0){F.find(".style-and-beauty-video a").bind("click",function(H){H.preventDefault();var G=$(this);var i=$("<video>");i.attr("src",G.attr("href")).attr("id","popup-video").attr("height",G.attr("vid-height")).attr("width",G.attr("vid-width")).addClass("video-component");
window.popupViewController.set({innerhtml:i[0],close:true,callback:function(){var I=$("#popup-video");jwplayer(I.attr("id")).setup({flashplayer:"/_media/swf/player.swf",stretching:"fill"});I.addClass("initialized");}});return false;});}}if(p.length){p.each(function(){var i=new HorizontalAccordion({jobj:$(this),h:194,wn:117,overlay:true});
});}window.footerResizer=new FooterResizer(j,y);if(s.length>0){var o=new ContentMediabarController(s);o.init(true);o.show();}window.tooltip=new TooltipController(".tooltip","tooltip-drop");window.infobox=new TooltipController(".infobox","infobox-drop",0,true);window.infoboxArrowTop=new TooltipController(".infobox-arrow-top","infobox-drop-top",0,true,true);
window.infoboxArrowTopLeft=new TooltipController(".infobox-arrow-top-left","infobox-drop-top-left",0,true);window.checkboxController.scanAndBuild();window.radioboxController.scanAndBuild();window.utilities=new UtilitiesController();window.smartImageResizer=new SmartImageResizer();$(".more-link").bind("click",function(){$(window).resize();
if(!a){$("html,body").animate({scrollTop:$(".more-link").offset().top-$("#scrollnav").height()-15},500);}else{window.scrollTo(0,$(".more-link").offset().top-$("#scrollnav").height()-15);}});if($("#simplefader").length){window.frontpageCampaigns=new FrontpageCampaigns();}simplefader.init();Tracking.init();
});jQuery(window).load(function(){jQuery(".thumbscontrol").fadeIn(400);});})();}window.iframeLocation="";window.app=new App();function receiveMessage(b){var a=b.split("_");if(a[0]=="height"){if(a[1].toString().search(/^[0-9]+$/)==0){$(document).ready(function(){$("iframe.full-content").height(a[1]);});
}}else{if(a[0]=="href"){window.iframeLocation=decodeURIComponent(a[1]);}else{if(a[0]=="title"){window.iframeTitle=decodeURIComponent(decodeURIComponent(a[1]));}}}}var simplefader={me:false,active:false,children:false,headerHeight:false,moreHeight:false,defaultZIndex:"20",topZIndex:"99",fadetime:1300,delay:3500,timer:false,ol:false,init:function(){simplefader.me=jQuery("#simplefader");
if(simplefader.me&&simplefader.me.length){simplefader.headerHeight=jQuery(".header").height();simplefader.moreHeight=jQuery(".more-link").height()+30;simplefader.children=simplefader.me.children("li");simplefader.active=simplefader.children.first();if(!Modernizr.csstransitions||!Modernizr.opacity){simplefader.children.css("opacity","0");
simplefader.active.css("opacity","1");simplefader.children.css("z-index",simplefader.defaultZIndex);}else{simplefader.active.addClass("active");}ol=$("<ol>").addClass("position-control");var b,a;a=simplefader.children.length;for(b=0;b<a;b++){ol.append($("<li>").text(b).bind("click",function(){clearInterval(simplefader.timer);
if(!jQuery(this).hasClass("active")){simplefader.go(jQuery(this).index());}}));}ol.children("li:eq(0)").addClass("active");simplefader.ol=ol;simplefader.me.after(simplefader.ol);simplefader.resize();ol.css("margin-left","-"+(Math.round(ol.width()/2)+40)+"px");simplefader.timer=setInterval(simplefader.next,simplefader.delay+simplefader.fadetime);
}},stop:function(){if(simplefader.timer){clearInterval(simplefader.timer);}},next:function(){var a=simplefader.active.next();if(!a.length){a=simplefader.children.first();}simplefader.go(a.index());},prev:function(){var a=simplefader.active.prev();if(!a.length){a=simplefader.children.last();}simplefader.go(a.index());
},go:function(d){if(jwplayer("iMirrorCampaign").getState()=="PLAYING"){jwplayer("iMirrorCampaign").pause();}var b=simplefader.ol.children().eq(d);b.siblings().removeClass("active");b.addClass("active");var a=simplefader.me.children("li").eq(d);if(a.length){simplefader.animate(simplefader.active,a);}},animate:function(d,c){if(Modernizr.csstransitions){d.removeClass("active");
c.addClass("active");simplefader.active=c;}else{c.css("z-index",simplefader.topZIndex);c.animate({opacity:1},simplefader.fadetime,function(){d.css("opacity","0");c.css("z-index",simplefader.defaultZIndex);simplefader.active=c;});}},resize:function(){var b=new Resizer(simplefader.me,jQuery(window),null,null,null,simplefader.headerHeight+simplefader.moreHeight);
var b=new Resizer(simplefader.me.children(),simplefader.me);var b=new Resizer(simplefader.me.find("iframe"),simplefader.me);var a=new ImageResizer(simplefader.me.find("li > img"),simplefader.me);}};function HeaderFooterViewController(){var j=this;var g=false;(function a(){h();$(window).load(o);$(document).ready(function(){jQuery(".header .wrapper > .nav > li.search-item > a").bind("click",function(){var s=this;
window.popupViewController.set({innerhtml:jQuery(s).parent().find(".search-popup")[0],close:true});return false;});});})();function h(){$(".global-footer .follow-drop > a").bind("click",c);$(".global-footer .share-drop > a").bind("click",c);$(".global-footer .wrapper .share-drop .drop .share-icons a.mail").bind("click",r);
$(".global-footer .wrapper .country-label").bind("click",function(){location.hash="#selectcountrylanguage";window.localisationLanguageController.lpopup.open(true);return false;});$(".service-footer .teaser .content form .submit").bind("click",e);$(".header .wrapper .logo").mouseenter(function(){f(this,"mouseenter");
});$(".header .wrapper .logo").mouseleave(function(){f(this,"mouseleave");});l();$(".global-footer > .wrapper > div:not(.follow-drop)").find(".drop *").bind("click",function(){return false;});}function o(){var v=$(".header .subnav-bg");var s=$(".header .wrapper > .nav li.active > .nav").clone();if(v.length>0&&s.length>0){var w=$("<div>").addClass("wrapper");
s.appendTo(w);s.css("min-width",$(".header .wrapper > .nav").width()+"px");v.append(w);v.animate({"bottom":"-28px"},{queue:false,duration:500,easing:"easeOutBack"});}}function e(){var v=$(this).parents(".content").next(".newsletter");if(!v.is(":visible")){v.find("#newsletter-form").show();v.find("#newsletter-message").hide();
v.slideDown(200);$(".global-footer .drop .arrow").slideUp(20);$(".global-footer .drop").slideUp(200);var s=$(this).parent().prev(".textfield-small").find("input");if(s.val()!=""){v.find("#nlEmail").val(s.val());}$("body").children(".stage, .header, #scrollnav, .global-footer").one("click",function(){$(".service-footer .newsletter").slideUp(200);
});}return false;}function c(){var s=$(this).parent().children(".drop");if(s){$(".global-footer .drop .arrow").slideUp(20);$(".global-footer .drop").slideUp(200);$(".service-footer .newsletter").slideUp(200);s.children(".arrow").slideToggle(20);s.slideToggle(200);if(s.is(":visible")){var v=$(this);$("body").children(".stage, .header, #scrollnav, .service-footer, .global-footer").one("click",m);
}}return false;}function m(){$(".global-footer .drop .arrow").slideUp(20);$(".global-footer .drop").slideUp(200);}function f(v,w){var s=$(v).children(".subnav");if(s.length>0){if(w==="mouseleave"&&s.is(":visible")){s.stop().animate({height:0},200,function(){s.css("left",-9999);s.show();s.height(parseInt(s.attr("rev")));
s.css("left",0);s.hide();});}else{if(s.attr("rev")===undefined){s.css("left",-9999);s.show();s.attr("rev",s.height());s.hide();s.css("left",0);}s.height(0);s.show();s.stop().animate({height:parseInt(s.attr("rev"))},200);}}return false;}function r(){var s=jQuery(".global-footer .wrapper .share-drop .drop form");
s.slideToggle(200);return false;}function l(){var s=$(".header");var v=$("#scrollnav");if(v.length>0){if(typeof(Modernizr)!="undefined"&&Modernizr.touch){}else{v.live("mouseenter",function(){n(s,v);});s.live("mouseleave",function(){k(s,v);});s.live("mouseenter",function(){s.addClass("mover");});$(window).bind("scroll",function(){i(s,v);
});}}}function n(s,v){if(!s.hasClass("fixed")){q(v,function(){p(s);});}}function k(s,v){s.removeClass("mover");if(s.hasClass("fixed")){d(s,function(){b(v);});}}function i(s,v){if($(window).scrollTop()>=s.height()){if(s.hasClass("fixed")&&!s.hasClass("mover")){d(s,function(){b(v);});}else{if(!s.hasClass("fixed")){b(v);
}}}else{if(v.hasClass("visible")){q(v);}if(s.hasClass("fixed")&&$(window).scrollTop()<2){s.stop();s.css("top",0);s.removeClass("fixed");s.css("position","absolute");}}}function p(s,v){s.stop();s.css("top",-90);s.css("position","fixed");s.addClass("fixed");s.animate({"top":"0px"},{queue:false,duration:500,easing:"easeOutSine",complete:function(){if(typeof(v)=="function"){v();
}}});}function d(s,v){s.stop();s.animate({"top":"-90px"},{queue:false,duration:500,easing:"easeOutSine",complete:function(){s.css("top",0);s.removeClass("fixed");s.css("position","absolute");if(typeof(v)=="function"){v();}}});}function b(v,s){if($(window).scrollTop()>10){v.stop().animate({"top":0},{queue:false,duration:200,easing:"easeOutSine",complete:function(){v.addClass("visible");
if(typeof(s)=="function"){s();}}});}}function q(v,s){v.stop().animate({"top":"-38px"},{queue:false,duration:200,easing:"easeOutSine",complete:function(){v.removeClass("visible");if(typeof(s)=="function"){s();}}});}}function PopupViewController(){var j=this;var r=false;var s=false;var n=false;var a=false;
var p="close";var c=null;var l=false;var k=false;var v="Please add html";(function d(){})();j.set=g;function g(w){o(w);window.tooltip.handlerOut();e(function(z){if(z){s.prepend(v);var C=h();var y=C.w;var A=C.h;var x=y+parseInt(r.css("padding-left"))+parseInt(r.css("padding-right"));var B=A+parseInt(r.css("padding-top"))+parseInt(r.css("padding-bottom"));
if(typeof(w.width)!="undefined"){x=l+parseInt(r.css("padding-left"))+parseInt(r.css("padding-right"));y=l;}if(typeof(w.height)!="undefined"){B=k+parseInt(r.css("padding-top"))+parseInt(r.css("padding-bottom"));A=k;}r.css("margin-left",x/2*-1);r.css("margin-top",B/2*-1);r.width(y);r.height(A);r.fadeIn(400,function(){if(typeof(w.callback)!="undefined"&&typeof(w.callback)=="function"){w.callback();
}});}else{s.fadeOut(300,function(){s.prepend(v);var D=h();window.setTimeout(function(){var F=D.w;var G=D.h;var E=F+parseInt(r.css("padding-left"))+parseInt(r.css("padding-right"));var H=G+parseInt(r.css("padding-top"))+parseInt(r.css("padding-bottom"));if(typeof(w.width)!="undefined"){E=l+parseInt(r.css("padding-left"))+parseInt(r.css("padding-right"));
F=l;}if(typeof(w.height)!="undefined"){H=k+parseInt(r.css("padding-top"))+parseInt(r.css("padding-bottom"));G=k;}r.animate({"margin-left":E/2*-1,"margin-top":H/2*-1,"width":F,"height":G},{queue:false,duration:400,complete:function(){s.fadeIn(300,function(){if(typeof(w.callback)!="undefined"&&typeof(w.callback)=="function"){w.callback();
}});}});},30);});}if($(window).height()<750){scroll(0,0);}});}j.get=q;function q(){return v.html();}j.loading=b;function b(w){e(function(x){if(x){window.blackSpinner.spin(s[0]);jQuery(window.blackSpinner.el).css("left","50%");jQuery(window.blackSpinner.el).css("top","50%");r.fadeIn(400);r.height(44);
r.width(44);s.height(44);s.width(44);r.css("margin-left",-22);r.css("margin-top",-22);if(typeof(w)!="undefined"&&typeof(w)=="function"){w();}}else{s.fadeOut(300,function(){s.empty();n.unbind("click");window.blackSpinner.spin(s[0]);jQuery(window.blackSpinner.el).css("left","50%");jQuery(window.blackSpinner.el).css("top","50%");
r.animate({"margin-left":-22,"margin-top":-22,"width":44,"height":44},{queue:false,duration:400,complete:function(){s.height(44);s.width(44);s.fadeIn(300,function(){if(typeof(w)!="undefined"&&typeof(w)=="function"){w();}});}});});}});}j.close=i;function i(){r.fadeOut(400,function(){r.remove();if(typeof(c)=="function"){c();
}});n.fadeOut(400,function(){n.remove();});if(window.tooltip){window.tooltip.handlerOut();}return false;}j.rescale=f;function f(){window.setTimeout(function(){var y=s.width();var z=s.height();var x=y+parseInt(r.css("padding-left"))+parseInt(r.css("padding-right"));var A=z+parseInt(r.css("padding-top"))+parseInt(r.css("padding-bottom"));
r.animate({"margin-left":x/2*-1,"margin-top":A/2*-1,"width":y,"height":z},{queue:false,duration:150});},500);}function m(w){index=0;}function o(w){if(typeof(w)!="undefined"){if(typeof(w.close)!="undefined"){a=w.close;}else{a=false;}if(typeof(w.closed)=="function"){c=w.closed;}if(typeof(w.width)!="undefined"){l=w.width;
}else{l=false;}if(typeof(w.height)!="undefined"){k=w.height;}else{k=false;}if(typeof(w.innerhtml)!="undefined"){v=w.innerhtml;}}}function e(x){if(jQuery("#overlay").length>0){n=jQuery("#overlay");}else{n=jQuery('<div id="overlay">');n.hide();n.prependTo("body");}if(a){n.bind("click",i);}else{n.unbind("click");
}n.fadeIn(300);if(jQuery("#popup").length>0){r=jQuery("#popup");}else{r=jQuery('<div id="popup">');r.hide();r.prependTo("body");}if(r.children(".inner").length>0){s.width("auto");s.height("auto");s.empty();if(a){var w=jQuery('<a href="#" title="'+p+'" class="close">'+p+"</a>");w.bind("click",i);s.append(w);
}if(typeof(x)!="undefined"&&typeof(x)=="function"){x(false);}}else{s=jQuery('<div class="inner">');r.append(s);s.children(".close").unbind("click").remove();if(a){var w=jQuery('<a href="#" title="'+p+'" class="close">'+p+"</a>");w.bind("click",i);s.append(w);}if(typeof(x)!="undefined"&&typeof(x)=="function"){x(true);
}}}function h(){if(r){r.css("left","-9999px");r.css("top","-9999px");var z=false;if(r.is(":visible")){}else{r.show();z=true;}var B=false;if(s.is(":visible")){}else{s.show();B=true;}var A=r.width();var x=r.height();r.width("auto");r.height("auto");var w=r.width();var y=r.height();r.width(A);r.height(x);
if(B){s.hide();}r.css("left","50%");r.css("top","50%");if(z){r.hide();}return({w:w,h:y});}return false;}}function LocalisationLanguageController(){var a=this;this.lbar=null;this.lpopup=null;var c=null;(function b(){a.lbar=new LocalisationLanguageBarController();a.lpopup=new LocalisationLanguagePopupController();
})();}function LocalisationLanguageBarController(){var c=this;var g=$("#localisation-language-bar");(function b(){f();if(typeof(g)!="undefined"&&g.length>0){a();}})();function f(){g.find(".button.default-grey").live("click",e);}function a(){$(window).load(function(){g.fadeIn(300,function(){if(g.find(".left").height()>35){g.find(".left").addClass("long");
}$("body").animate({"margin-top":"42px"},{queue:false,duration:1000,easing:"easeOutExpo",complete:function(){$(".stage,.header,.service-footer,.global-footer").one("click",e);}});});});}function e(){var h="/controller/countryLanguageController.php";$("body").animate({"margin-top":"0"},{queue:false,duration:1000,easing:"easeOutExpo",complete:d});
var i="session";if(jQuery("#remember-localisation-language-bar").is(":checked")){i="cookie";}jQuery.ajax({url:h+"?action=save&type="+i+jQuery(this).attr("href"),dataType:"html",success:function(j){},error:function(){alert("ERROR: Could not save Country and Language. Please check your internet connection!");
}});return false;}function d(){g.fadeOut(200,function(){g.remove();});}}function LocalisationLanguagePopupController(){var k=this;var a="selectcountrylanguage";var q="/data/countries/CountriesWithLangs.json";var i="/controller/countryLanguageController.php";var r=false;var m=false;var n=false;var d=false;
(function e(){jQuery(document).ready(function(){if(jQuery.bbq){h();}else{}});})();function h(){s(function(){window.languagecode=m.iso2;window.countrycode=n.iso2;if(window.labelController!="undefined"){window.labelController.refresh();}g();});jQuery(".country-language-overlay .default-dark").live("click",p);
jQuery(".country-language-overlay .default-grey").live("click",o);jQuery(".country-language-select .continents li a").live("click",j);if(Modernizr.touch){jQuery(".country-language-select .countrylists div ul li a:not(.countrylabel)").live("click",b);jQuery(".country-language-select .countrylists div ul li a.countrylabel").live("click",function(){if(jQuery(this).siblings().length>1){jQuery(".country-language-select .countrylists div ul li a:not(.countrylabel)").css("display","none");
jQuery(this).siblings().css("display","inline");}else{b(null,this);}return false;});}else{jQuery(".country-language-select .countrylists div ul li a").live("click",b);}}k.open=g;function g(w){if(typeof(location.hash)!="undefined"&&location.hash=="#"+a){window.popupViewController.set({innerhtml:f(w)[0],width:720,callback:function(){if(w!=undefined){o();
if(Modernizr.touch){$("html,body").scrollTop(0);}}}});window.checkboxController.scanAndBuild();}}function c(w){$("div.countrylists").find("a").hide();w.siblings("a").show();}function p(){var w=jQuery(".country-language-overlay p span:eq(0)");var y=jQuery(".country-language-overlay p span:eq(1)");if(typeof(w.attr("original"))!="undefined"&&typeof(w.attr("new"))!="undefined"&&typeof(y.attr("original"))!="undefined"&&typeof(y.attr("new"))!="undefined"&&w.attr("original").length==2&&w.attr("new").length==2&&y.attr("original").length==2&&y.attr("new").length==2){if(w.attr("original")==w.attr("new")&&y.attr("original")==y.attr("new")){location.hash="";
if(jQuery(".country-language-overlay .controls input").is(":checked")){jQuery.ajax({url:i+"?action=save&type=cookie&country="+w.attr("new")+"&language="+y.attr("new"),dataType:"html",success:function(z){l(function(){window.popupViewController.close();});},error:function(){alert("ERROR: Could not save Country and Language. Please check your internet connection!");
}});}else{l(function(){window.popupViewController.close();});}}else{if(w.attr("new").length==2&&y.attr("new").length==2){var x="session";if(jQuery(".country-language-overlay .controls input").is(":checked")){x="cookie";}jQuery.ajax({url:i+"?action=save&type="+x+"&country="+w.attr("new")+"&language="+y.attr("new"),dataType:"html",success:function(z){l(function(){window.popupViewController.close();
window.location="http://"+document.domain;});},error:function(){alert("ERROR: Could not save Country and Language. Please check your internet connection!");}});}}}else{}return false;}function o(){if(jQuery(".country-language-select").length>0){return false;}var w=jQuery(".country-language-overlay p span:eq(0)");
var x=jQuery(".country-language-overlay p span:eq(1)");jQuery.ajax({url:i+"?action=getCountrySelectHTMLByContinent&continent="+w.attr("continentid")+"&country="+w.attr("original")+"&language="+x.attr("original"),dataType:"html",success:function(B){if(B.length>0){var z=jQuery(B);jQuery("#popup").after(z);
z.css("left","-9999px");z.css("top","-9999px");z.show();var y=z.width();var A=z.height();z.css("left","50%");z.css("top","50%");z.height(0).show();jQuery("#popup").animate({"margin-top":"-300px"},300,function(){});z.animate({"margin-top":"-200px","height":A+"px"},300,function(){});}},error:function(){alert("ERROR: Could not load Countries");
}});return false;}function l(z){var w=jQuery("#popup");var x=jQuery(".country-language-select");if(x.length<=0){z();return false;}var y=w.height()+parseInt(w.css("padding-top"))+parseInt(w.css("padding-bottom"));w.animate({"margin-top":y/2*-1},300);x.animate({"margin-top":"60px","height":0},300,function(){x.remove();
z();});return false;}function j(){jQuery(".country-language-select .continents li a").die("click");var A=jQuery(".continents li a.active").attr("continentid");var B=jQuery(this).attr("continentid");if(A==B){return false;}var x=jQuery(".country-language-select");var y=x.clone();y.find(".countrylists div").hide();
y.find('.countrylists div[continentid="'+B+'"]').show();x.after(y);y.css("left","-9999px");y.css("top","-9999px");y.show();y.height("auto");var w=y.width();var z=y.height();y.remove();x.find('.countrylists div[continentid="'+A+'"]').fadeOut(300,function(){x.animate({"height":z},300,function(){x.find('.countrylists div[continentid="'+B+'"]').fadeIn(300);
x.find(".continents li a").removeClass("active");x.find('.continents li a[continentid="'+B+'"]').addClass("active");jQuery(".country-language-select .continents li a").live("click",j);});});return false;}function b(D,G){var C=this;if(typeof(G)!="undefined"){C=G;}if(jQuery(C).hasClass("active")){l(function(){window.popupViewController.close();
});return false;}var F=jQuery(".country-language-overlay p span:eq(0)");var B=jQuery(".country-language-overlay p span:eq(1)");jQuery(".country-language-select .countrylists ul li a").removeClass("active");jQuery(C).addClass("active");var A=jQuery(C).attr("langcode");var z=jQuery(C).text();var E=jQuery(C).parent().attr("countryid");
var x=jQuery(C).parent().children("span").text();var w=jQuery(".country-language-select .continents li a.active").attr("continentid");var y=jQuery(".country-language-select .continents li a.active").text();F.attr("continentid",w);F.attr("continentname",y);F.attr("new",E);F.text(x);B.attr("new",A);B.text(z);
p();return false;}function s(w){jQuery.ajax({url:i+"?action=getLanguageAndCountry",dataType:"json",success:function(x){if(x.country.iso2){n=x.country;m=x.language;}w();},error:function(){}});}function v(w){if(!r){jQuery.ajax({url:q,dataType:"json",success:function(x){r=x;w();},error:function(){}});}}function f(w){var z=jQuery('<div class="country-language-overlay">');
if(w&&n){var y=jQuery(".global-footer .country-label");if(y.length){z.append(jQuery('<p>Your selected country is <span continentid="'+y.attr("data-continent-id")+'" continentname="'+y.attr("data-continent-name")+'" original="'+y.attr("data-country-iso")+'" new="'+y.attr("data-country-iso")+'">'+y.attr("data-country-name")+'</span> and your language is <span original="'+y.attr("data-language-iso")+'" new="'+y.attr("data-language-iso")+'">'+y.attr("data-language-name")+"</span></p>"));
z.append(jQuery('<div class="controls"><a href="#" class="button default-dark"><span>Visit</span></a><a href="#" class="button default-grey"><span>Change</span></a><input type="checkbox" class="checkbox" id="remember-country-language-overlay" /><label for="remember-country-language-overlay">Remember my choice</label></div>'));
}else{var x=window.Utilities.getLanguageFromUrl();z.append(jQuery('<p>Your selected country is <span continentid="'+n.continentid+'" continentname="'+n.continentname+'" original="'+n.iso2+'" new="'+n.iso2+'">'+n.name+'</span> and your language is <span original="'+x+'" new="'+x+'">'+m.name+"</span></p>"));
z.append(jQuery('<div class="controls"><a href="#" class="button default-dark"><span>Visit</span></a><a href="#" class="button default-grey"><span>Change</span></a><input type="checkbox" class="checkbox" id="remember-country-language-overlay" /><label for="remember-country-language-overlay">Remember my choice</label></div>'));
}}else{if(n&&m){z.append(jQuery('<p>We think you are in <span continentid="'+n.continentid+'" continentname="'+n.continentname+'" original="'+n.iso2+'" new="'+n.iso2+'">'+n.name+'</span> and your language is <span original="'+m.iso2+'" new="'+m.iso2+'">'+m.name+"</span></p>"));z.append(jQuery('<div class="controls"><a href="#" class="button default-dark"><span>Visit</span></a><a href="#" class="button default-grey"><span>Change</span></a><input type="checkbox" class="checkbox" id="remember-country-language-overlay" /><label for="remember-country-language-overlay">Remember my choice</label></div>'));
}else{z.html("Error: Could not load Country and Language");}}return z;}}function LabelController(){var g=this;var a="/Content.Node/_inc/labelsjson.";var h="de";var d;(function i(){f();})();function f(){}function b(){var j;j=window.Utilities.getLanguageFromUrl();return j;}g.refresh=e;function e(){$.ajax({url:a+b().toLowerCase()+".php",dataType:"json",async:false,success:function(j){g.labels=j;
}});}g.get=c;function c(k){if(g.labels==null||g.labels=="undefined"){e();if(g.labels==null||g.labels=="undefined"){return k;}}var j=g.labels[k];if(j=="undefined"||j==undefined){return k;}else{return j;}}}function ContentMediabarController(m){var p=this;p.ITEM_CHANGE_EVENT="ContentMediabarController_ItemChange";
var A=false;var f=false;var h=($.browser.msie&&($.browser.version=="8.0"||$.browser.version=="7.0"));var l=$(m);var g=false;var w=null;var v=0;var o=null;var q=null;var b=null;var z=-1;(function a(){})();p.init=function x(H,F,G){b=F;g=H;w=l;if(g){w.hide();v=w.height();}l.find(".mediabar-module .mediabar-thumbs").hide();
q=new GalleryDisplayController(l);q.init();if(G){G();}};p.hide=function j(G,F){l.find(".mediabar-module .mediabar-thumbs").hide();q.hide();y();if(g){w.stop();}if(F){F();}};p.show=function D(F){q.show();if(l.find(".video-component").length){if(window.videoControler==undefined){window.videoController=new VideoController();
}window.videoController.initPlayer();}if(g){o=F;w.height(0);E();$(w).animate({"height":v},{queue:false,duration:1000,easing:"easeOutQuart",complete:d});}else{E();B();if(F){F();}n();if(window.footerResizer){window.footerResizer.resize();}}};function E(){w.css("visibility","visible");w.show();}function d(){w.css("height","auto");
B();n();if(b){var F=w.find(".mediabar li[id="+b+"]");if(F.length){F=l.find(".mediabar-thumbs li:eq("+F.index()+") a");k.call(F,null,true);}}if(o){o();o=null;}if(window.footerResizer){window.footerResizer.resize();}}function B(){l.find(".mediabar-module .mediabar-thumbs").stop(false,true).fadeIn(1000,"easeInQuart");
}function n(){l.find(".mediabar-module .mediabar-thumbs li > a").bind("click",k);l.find(".mediabar-module .close").bind("click",e);}function y(){l.find(".mediabar-module .mediabar-thumbs li > a").unbind("click",k);l.find(".mediabar-module .close").unbind("click",e);}function i(H,G,J){var F=H.find(".mediabar > li:eq("+G+")");
var I=F.attr("id");if(H.find(".mediabar li.active").length){H.find(".mediabar li.active").fadeOut(200,function(){H.find(".mediabar li").removeClass("active");F.addClass("active");F.fadeIn(200);r(F);if(!A){C();}J(F.height());});}else{F.addClass("active");F.fadeIn(200);r(F);if(!A){C();}J(F.height());}return I;
}function c(G,F,I){var H="easeOutExpo";G.animate({"height":F},{queue:false,duration:1000,easing:H,complete:I});}function s(){l.find(".mediabar-thumbs li").removeClass("active");}function k(J,G){var I=$(this).parents(".mediabar-module").eq(0);var F=$(this);s();$(this).parent().addClass("active");F.parent().index();
var K="";var H=F.parent().index();if(F.parent().index()!==I.find(".mediabar li:visible").index()||!f){f=true;if(I.height()>50){K=i(I,F.parent().index(),function(L){c(I,(L+50)+"px",function(){if(!h){window.scrollTo(0,I.offset().top);}});});}else{I.height(30);K=i(I,$(this).parent().index(),function(L){c(I,(L+50)+"px",function(){I.find(".close").show();
if(!h){$("html,body").animate({scrollTop:I.offset().top},500);}else{window.scrollTo(0,I.offset().top);}});});}}z=H;if(!G){$(p).triggerHandler($.Event(p.ITEM_CHANGE_EVENT,{itemId:K}));}return false;}function e(){var G=$(".resizeme.active .video-module object");if(G.length){var H=G.attr("id");jwplayer(H).stop();
}s();var F=$(this).parents(".mediabar-module").eq(0);c(F,"30px",function(){});F.find(".close").fadeOut(200);f=false;$(p).triggerHandler($.Event(p.ITEM_CHANGE_EVENT,{itemId:null}));return false;}function r(F){F.find(" .fixed-size").each(function(){var G=$(this).find("> img").width();if(G){$(this).css("width",G);
}$(this).css("height",$(this).find("> img").height());});}function C(){}}function GalleryDisplayController(a){var j=this;var a=a;var c=false;j.init=function i(){c=$(a).find(".gallery-module").length>0;};j.show=function h(){if(c){var k=0;$(a).find(".gallery-module-item").each(function(){if(k%3==0){$(this).addClass("gallery-module-item-first");
}k++;$(this).bind("mouseenter",g);$(this).bind("mouseleave",b);});}};j.hide=function d(){if(c){$(a).find(".gallery-module-item").each(function(){$(this).unbind("mouseenter",g);$(this).unbind("mouseleave",b);});}};function g(){$(this).toggleClass("hover");e($(this));}function b(k){$(this).toggleClass("hover");
f($(this));}function e(k){$(k).find("img").animate({"width":"105%","height":"105%"},250,"easeOutExpo");}function f(k){$(k).find("img").each(function(){$(this).stop();$(this).css("width","100%");$(this).css("height","100%");});}}function TooltipController(e,d,g,a,j){var l=this;(function i(){f();})();function f(){if(a||(Modernizr&&!Modernizr.touch)){jQuery(e).bind("mouseenter",k);
jQuery(e).bind("mouseover",k);jQuery(e).bind("mouseout",b);jQuery(e).bind("mouseleave",b);jQuery(e).bind("click",b);}}l.reset=h;function h(){f();}function k(){if(jQuery("."+d).length>0){jQuery("."+d).remove();jQuery("."+d).unbind("mousemove");}if(jQuery(this).attr("title").length>0){jQuery(this).attr("_title",jQuery(this).attr("title"));
jQuery(this).attr("title","");}var n=jQuery("<div>").addClass(d);var m=jQuery("<div>").appendTo(n);jQuery("<span>").text(jQuery(this).attr("_title")).appendTo(m);jQuery("<div class='arrow'>").appendTo(n);n.hide();jQuery("body").prepend(n);jQuery(this).bind("mousemove",c);n.stop().fadeIn(g);}l.handlerOut=b;
function b(){if(jQuery("."+d).length>0){jQuery("."+d).stop().fadeOut(g,function(){jQuery(this).unbind("mousemove");jQuery(this).remove();});}}function c(m){if(jQuery("."+d).length>0&&jQuery("."+d).is(":visible")){jQuery("."+d).css("top",m.pageY-35);if(j){jQuery("."+d).css("left",Math.floor(m.pageX-jQuery("."+d).width()));
}else{jQuery("."+d).css("left",m.pageX);}}}}function CampaignController(){var k=this;var n="/_media/img/global/ajax_loader_big.gif";k.hashtag={inlay:"inlay",overlay:"overlay",blank:"blank"};k.inlay_CAMPAIGN_OPENED="inlayCampaignOpened";k.inlay_CAMPAIGN_CLOSED="inlayCampaignClosed";k.INIT_COMPLETE="campaignControllerInitComplete";
var c=true;var o=false;var f=false;(function l(){$(window).load(function(){i();$(window).trigger("hashchange");});})();function i(){$(window).bind("hashchange",k.hashChanged);}k.deactivateStartupCheck=function p(){window.checkCampaign=false;};k.hashChanged=q;function q(x){var v=c;var w=jQuery.deparam(location.hash.substr(1));
c=false;if((x!="undefined"&&x==true)||(v&&typeof(w.overlay)=="undefined"&&typeof(w.inlay)=="undefined"&&typeof(window.checkCampaign)!="undefined"&&window.checkCampaign)){e(false,false,function(A){if(A&&A.url.length>0&&A.cid.length>0&&A.type.length>0){var z=$('<iframe scrolling="no">').attr("src",A.url);
if(A.type==k.hashtag.inlay){var y=undefined;if(typeof(A.height)!="undefined"&&A.height){y=parseInt(A.height);}r(z,true,y);}else{if(A.type==k.hashtag.overlay){h(z);}}$(window).unbind("hashchange");jQuery.bbq.pushState(A.type+"="+A.cid);setTimeout(function(){$(window).bind("hashchange",k.hashChanged);},100);
}else{b();m();}});}else{if(typeof(w.overlay)!="undefined"){e($.bbq.getState(k.hashtag.overlay),false,function(z){if(z&&z.url.length>0&&z.cid.length>0){var y=$('<iframe scrolling="no">').attr("src",z.url);h(y);}else{b();m();}});}else{if(typeof(w.inlay)!="undefined"){e($.bbq.getState(k.hashtag.inlay),false,function(A){if(A&&A.url.length>0&&A.cid.length>0){var z=$('<iframe scrolling="no">').attr("src",A.url);
var y=undefined;if(typeof(A.height)!="undefined"&&A.height){y=parseInt(A.height);}if(v){r(z,true,y);}else{r(z,false,y);}}else{b();m();}});}}}if(typeof(w.blank)!="undefined"){e($.bbq.getState(k.hashtag.inlay),false,function(y){if(y&&y.url.length){window.open(y.url,"_blank");}});}else{b();m();}}function e(z,x,y){var v="/controller/CampaignController.php";
var w="";if(z&&typeof(z)!="undefined"&&z.length>0){w+="?cid="+z;if(typeof(window.productViewController)!="undefined"&&window.productViewController.getSalesConceptId()){w+="&sc="+window.productViewController.getSalesConceptId();}}else{if(typeof(window.productViewController)!="undefined"&&window.productViewController.getSalesConceptId()){w+="?sc="+window.productViewController.getSalesConceptId();
}}v+=w;$.ajax({url:v,dataType:"jsonp",success:function(A){if(typeof(y)=="function"){if(A.result){y(A.result);}else{y(false);}}},error:function(){system.warn("Can't load campaign "+z);}});}function h(w){var v=$("#campaign-popup");if(v.length<=0){v=$('<div id="campaign-popup">');v.hide();v.appendTo("body");
var x=new Resizer(v,$(window));var y=new Resizer(w,$(window));w.hide();v.append(w);v.fadeIn(300);g(v,function(){w.load(function(){s(v,function(){w.fadeIn(300);f=true;});});});}else{v.find("iframe").fadeOut(200,function(){g(v,function(){v.find("iframe").remove();v.append(w);var z=false;w.load(function(){if(!z){z=true;
s(v,function(){w.fadeIn(300);f=true;});}});setTimeout(function(){if(!z){z=true;s(v,function(){w.fadeIn(300);f=true;});}},500);});});}}function r(x,B,C){if(typeof(B)=="undefined"){B=false;}var v=0;if(typeof($("#pv-subheader"))!="undefind"){v=$("#pv-subheader").height();}var y=$("#campaign-inlay");if(y.length<=0){y=$('<div id="campaign-inlay">');
y.hide();$(".stage").prepend(y);if(typeof(C)!="undefined"&&C){y.height(C);x.height(C);y.width("100%");x.width("100%");}else{var w=new Resizer(y,$(window),null,null,null,$(".header").height()+v);var A=new Resizer(x,$(window),null,null,null,$(".header").height()+v);}x.hide();y.append(x);var z=jQuery("#placeholder-top");
if(B){if(z.length){z.hide();}y.show();}else{window.scrollTo(0,0);if(z.length){z.slideUp(300);}y.slideDown(300);}g(y,function(){var D=false;x.load(function(){if(!D){D=true;s(y,function(){x.show();$(k).triggerHandler(k.inlay_CAMPAIGN_OPENED);o=true;});}});setTimeout(function(){if(!D){D=true;s(y,function(){x.show();
$(k).triggerHandler(k.inlay_CAMPAIGN_OPENED);o=true;});}},500);});}else{window.scrollTo(0,0);y.find("iframe").fadeOut(200,function(){g(y,function(){y.find("iframe").remove();y.append(x);var D=new Resizer(x,$(window),null,null,null,$(".header").height()+v);x.load(function(){s(y,function(){x.fadeIn(300);
$(k).triggerHandler(k.inlay_CAMPAIGN_OPENED);o=true;});});});});}}k.popupClose=m;function m(){if($("#campaign-popup").length>0){$("#campaign-popup").fadeOut(400,function(){$("#campaign-popup").remove();f=false;});}}k.inlayClose=b;function b(){if($("#campaign-inlay").length>0){$("#campaign-inlay").slideUp(400,function(){$("#campaign-inlay").remove();
$(k).triggerHandler(k.inlay_CAMPAIGN_CLOSED);o=false;});}}function g(w,x){if(w.find(".loading").length>0){x();return false;}var v=$('<img src="'+n+'" class="loading big" alt="loading" />').hide();w.append(v);v.fadeIn(200,x);}function s(w,x){var v=w.find(".loading");v.fadeOut(100,function(){v.remove();
x();});}k.isInlayOpen=j;function j(){return o;}k.isOverlayOpen=d;function d(){return f;}k.closeall=a;function a(){if(jQuery.bbq.getState("inlay")){jQuery.bbq.removeState("inlay");}if(jQuery.bbq.getState("overlay")){jQuery.bbq.removeState("overlay");}}}function HorizontalAccordion(a){var d={h:200,wn:100,wh:300,jobj:false,overlay:false};
var b=this;(function(){jQuery.extend(d,a);if(!d.jobj){return false;}if(d.overlay){d.jobj.find("li > a").append(jQuery('<div class="overlay">'));}d.jobj.find("li:not(.active)").live("mouseenter",function(){if(!Modernizr.csstransitions){if(d.jobj.find(".active").length){var f=d.jobj.find(".active");f.width(f.width()).removeClass("active").addClass("set-active");
}e(d.jobj.find("li.set-active"));d.jobj.find("li.set-active").removeClass("set-active");jQuery(this).addClass("set-active");c(jQuery(this));}else{d.jobj.find("li.active").removeClass("active");d.jobj.find("li.set-active").removeClass("set-active");jQuery(this).addClass("set-active");}});d.jobj.mouseleave(function(){if(Modernizr.csstransitions){if(d.jobj.find("li.set-active").length){d.jobj.find("li.set-active").addClass("active").removeClass("set-active");
}else{d.jobj.find("li.eq(0)").addClass("active");}}});})();function e(f,g){f.stop().animate({"width":d.wn},{duration:700,easing:"easeInOutCirc",complete:function(){if(typeof("callback")=="function"){g();}}});f.find("p").stop().animate({"bottom":-100},{duration:500,easing:"easeInCirc",complete:function(){}});
if(d.overlay){f.find(".overlay").stop().animate({"opacity":1},{duration:500,easing:"easeInOutCirc",complete:function(){}});}}function c(f,g){f.stop().animate({"width":d.wh},{duration:700,easing:"easeInOutCirc",complete:function(){if(typeof("callback")=="function"){g();}}});f.find("p").stop().animate({"bottom":0},{duration:500,easing:"easeInCirc",complete:function(){}});
if(d.overlay){f.find(".overlay").stop().animate({"opacity":0},{duration:500,easing:"easeInOutCirc",complete:function(){}});}}}function System(){var p=this;var h="";p.load=o;function o(v,w){var s,q;var r=0;for(s=0,q=v.length;s<q;s++){a(v[s],function(){r+=1;if(r>=v.length){w();}});}}function a(r,v){var q=document.getElementsByTagName("script")[document.getElementsByTagName("script").length-1];
var s=document.createElement("script");s.onreadystatechange=function(){if(s.readyState==="loaded"||s.readyState==="complete"){s.onreadystatechange=null;v();}};s.onload=function(){v();};s.src=h+""+r;q.parentNode.insertBefore(s,q.nextSibling);}p.setScriptRoot=k;function k(q){h=q;}p.log=e;function e(q){try{console.log(q);
}catch(r){}}p.info=c;function c(q){try{console.info(q);}catch(r){}}p.error=l;function l(q){try{console.error(q);}catch(r){}}p.debug=b;function b(q){try{console.debug(q);}catch(r){}}p.warn=j;function j(q){try{console.warn(q);}catch(r){}}p.time=d;function d(q){try{console.time(q);}catch(r){}}p.timeEnd=m;
function m(q){try{console.timeEnd(q);}catch(r){}}p.trace=f;function f(){try{console.trace(message);}catch(q){}}function g(s,v,w){if(w){var r=new Date();r.setTime(r.getTime()+(w*24*60*60*1000));var q="; expires="+r.toGMTString();}else{var q="";}document.cookie=s+"="+v+q+"; path=/";}function i(r){var v=r+"=";
var q=document.cookie.split(";");for(var s=0;s<q.length;s++){var w=q[s];while(w.charAt(0)==" "){w=w.substring(1,w.length);}if(w.indexOf(v)==0){return w.substring(v.length,w.length);}}return null;}function n(q){g(q,"",-1);}}var system=new System();if(typeof String.prototype.trim!=="function"){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");
};}function VideoController(){var a=this;(function c(){b();})();a.initPlayer=b;function b(){if($(".video-component").length){var d=$(".video-component").not(".initialized");d.each(function(){var e=$(this);if(Modernizr.touch){jwplayer(e.attr("id")).setup({flashplayer:"/_media/swf/player.swf",stretching:"fill"});
}else{jwplayer(e.attr("id")).setup({flashplayer:"/_media/swf/player.swf",stretching:"fill",skin:"/_media/skin.zip"});}e.addClass("initialized");});}}}function FAQController(){var b=this;var e="silhouette/b2c/contact/silb2c_test_contact_";var a="http://sendmail.netural.com/sendmail/sendMail.aspx";var d="de";
(function c(){$(window).load(function(){var g=$("#faq-module");var h=g.find(".faq-item-item").each(function(){$(this).data("h",$(this).height());}).hide();var f=g.find(".faq-cat-item").each(function(){var i=$(this);i.siblings("h3").html(i.siblings("h3").html()+" ("+i.find("li").length+")");i.data("h",i.height());
}).hide(0,window.footerResizer.resize);g.find(".faq-cat-header").live("click",function(){$(this).toggleClass("active");var i=$(this).next(".faq-cat-item");i.css("height",i.data("h"));i.slideToggle(500,function(){$(this).height("auto");window.footerResizer.resize();});});g.find(".faq-item-header").live("click",function(){$(this).toggleClass("active");
var i=$(this).next(".faq-item-item");i.css("height",i.data("h"));i.slideToggle(500,function(){var j=i.parents(".faq-cat-item");j.data("h",j.height());window.footerResizer.resize();});});});})();}var faq=new FAQController();function FormController(){var i=this;var b={"contact":"silhouette/b2c/contact/silb2c_"+Config.mailPrefix+"contact_","newsletter":"silhouette/b2c/newsletter/silb2c_newsletter","remail":"silhouette/b2c/remail/silb2c_"+Config.mailPrefix+"remail_","share":"silhouette/b2c/share/silb2c_share_"};
var j=Config.sendmailUrl;var k="de";(function c(){$(window).load(function(){$(".textfield input, #newsletter-form input").bind("click",function(l){l.preventDefault();if($(this).val()==$(this).attr("data-std")){$(this).val("");}return false;});$(".textfield input, #newsletter-form input").bind("blur",function(l){l.preventDefault();
if($(this).val()==""){$(this).val($(this).attr("data-std"));}return false;});a();f();e();});})();function e(){var l=$(".share-drop form .text");var m=$(".share-drop form textarea");l.attr("data-std",l.val());l.bind("click",function(){var n=$(this);if(n.val()==n.attr("data-std")){n.val("");}return false;
});l.bind("blur",function(){var n=$(this);if(n.val()==""){n.val(n.attr("data-std"));}return false;});m.attr("data-std",m.val());m.bind("click",function(){var n=$(this);if(n.val()==n.attr("data-std")){n.val("");}return false;});m.bind("blur",function(){if($(this).val()==""){$(this).val($(this).attr("data-std"));
}return false;});$(".share-drop form .submit").bind("click",function(n){if(window.formValidationController.checkForm($("#share-form"),"direct")){n.preventDefault();var o={profileId:b["share"]+g(),to:l.val(),yourMessage:m.val(),pageURL:window.location.href};Tracking.trackEvent("TellAFriend","general",window.location.href);
$.ajax({type:"POST",url:j,data:o,success:function(p){$(".share-drop > .drop form").slideUp();$(".share-drop > .drop").slideUp();},error:function(p){$(".share-drop > .drop form").slideUp();$(".share-drop > .drop").slideUp();}});}return false;});}function a(){$("#contactform-faq textarea").bind("click",function(){if($(this).val()==$(this).attr("data-std")){$(this).val("");
}return false;});$("#contactform-faq textarea").bind("blur",function(){if($(this).val()==""){$(this).val($(this).attr("data-std"));}return false;});$(".send").bind("click",function(){if(window.formValidationController.checkForm($(".checkform"))){var l={profileId:b["contact"]+g(),sex:$(".contactGender:checked").val(),firstname:$("#contactFirst").val(),lastname:$("#contactLast").val(),street:$("#contactStreet").val(),zip:$("#contactZip").val(),city:$("#contactCity").val(),country:$("#contactCountry").find("option:selected").text(),from:$("#contactEmail").val(),email:$("#contactEmail").val(),telephone:$("#contactTel").val(),topic:$(".contactTopic:checked").val(),yourMessage:$("#yourMessage").val(),to:$("#contactCountry").val()};
Tracking.trackEvent("form","contact");$.ajax({type:"POST",url:j,data:l,success:function(m){$("#contactform-faq").fadeOut();h();$("#message").fadeIn();},error:function(m){$("#contactform-faq").fadeOut();h();$("#message").html(window.labelController.get("contact_message_error")).fadeIn();},dataType:"html"});
}});}function h(){var l={profileId:b["remail"]+g(),from:"noreplay@silhouette.com",to:$("#contactEmail").val(),sex:$(".contactGender:checked").val(),firstname:$("#contactFirst").val(),lastname:$("#contactLast").val(),street:$("#contactStreet").val(),zip:$("#contactZip").val(),city:$("#contactCity").val(),country:$("#contactCountry").val(),email:$("#contactEmail").val(),telephone:$("#contactTel").val(),topic:$(".contactTopic:checked").val(),yourMessage:$("#yourMessage").val()};
$.ajax({type:"POST",url:j,data:l,success:function(m){$("#contactform-faq").fadeOut();$("#message").fadeIn();},error:function(m){$("#contactform-faq").fadeOut();$("#message").html(window.labelController.get("contact_message_error")).fadeIn();},dataType:"html"});}function f(){$(".service-footer div.teaser input.email").bind("keypress",function(m){var l=m.keyCode?m.keyCode:m.which;
if(l==13){$(this).parents("form").find(".submit").trigger("click");}});$("#newsletter-form .submit").bind("click",function(){if(window.formValidationController.checkForm($("#newsletter-form"),"direct")){var l={profileId:b["newsletter"],from:$("#nlEmail").val(),firstname:$("#nlFirst").val(),lastname:$("#nlLast").val(),street:$("#nlStreet").val(),zip:$("#nlZip").val(),city:$("#nlCity").val(),email:$("#nlEmail").val(),country:$("#nlCountry").val(),pagelang:$("#nlLang").val(),sex:$(".nlSex:checked").val()};
Tracking.trackEvent("form","newsletter subscription",window.location.href);$.ajax({type:"POST",url:j,data:l,success:function(m){$("#newsletter-form").fadeOut();$("#newsletter-message").fadeIn();setTimeout(function(){$("#newsletter").slideUp(200);},3000);},error:function(m){$("#newsletter-form").fadeOut();
$("#newsletter-message").html(window.labelController.get("contact_message_error")).fadeIn();},dataType:"html"});}return false;});}function g(){var l;if(typeof(window.languagecode)=="undefined"||window.languagecode=="undefined"){l=k;}else{l=window.languagecode;}l=l.toLowerCase();return l;}i.showError=d;
function d(){var l='<div style="padding: 15px">'+window.labelController.get("contact_message_error")+"</div>";window.popupViewController.set({innerhtml:l,close:true});}}var form=new FormController();function FormValidationController(){var n=this;var m=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-\.])+\.)+([a-zA-Z0-9]{2,4})+$/;
var k="parent";(function e(){})();n.checkForm=g;function g(v){if(arguments.length>1){n.errorElementType=arguments[1];}else{n.errorElementType="parent";}var y=false;var p=v.find("input[type=text].required");y=y||o(p);var q=v.find("textarea.required");y=h(q)||y;var s=v.find("select.required");y=l(s)||y;
var x=v.find("input[type=email].required");y=d(x)||y;var w=v.find("input[type=radio].required");y=i(w,v)||y;var r=v.find("input[type=checkbox].required");y=b(r)||y;if(!y){c(v);}return !y;}function c(v){var q=v.find("input[type=text]").not(".required");for(var s=0;s<q.length;s++){var p=$(q[s]);if(p.val()===p.attr("data-std")){p.val("");
}}var r=v.find("textarea").not(".required");for(var s=0;s<r.length;s++){var p=$(r[s]);if(p.val().trim()===p.attr("data-std")){p.val("");}}}function f(p){}function a(){var s=$(this);j(s).removeClass("error");if(s.attr("type")=="radio"){var r=s.parents("form");var p=r.find("input[type=radio][name="+s.attr("name")+"]");
for(var q=0;q<p.length;q=q+1){j(p.eq(q)).removeClass("error");}}}function b(r){j(r).removeClass("error");var s=false;for(var q=0;q<r.length;q++){var p=$(r[q]);if(!p.is(":checked")){j(p).addClass("error");p.one("click",a);s=true;}}return s;}function i(p,s){j(p).removeClass("error");var v=false;for(var r=0;
r<p.length;r++){var q=$(p[r]);if(s.find("input[type=radio][name="+q.attr("name")+"]:checked").length==0){j(q).addClass("error");q.one("change",a);v=true;}}return v;}function o(r){j(r).removeClass("error");var s=false;for(var q=0;q<r.length;q++){var p=$(r[q]);if(p.val()==""||p.val()==p.attr("data-std")){j(p).addClass("error");
p.one("change",a);s=true;}}return s;}function d(r){j(r).removeClass("error");var s=false;for(var q=0;q<r.length;q++){var p=$(r[q]);if(p.val()==""||p.val()==p.attr("data-std")){j(p).addClass("error");p.one("keypress",a);s=true;}if(!m.test(p.val())){j(p).addClass("error");p.one("keypress",a);s=true;}}return s;
}function h(r){j(r).removeClass("error");var s=false;for(var p=0;p<r.length;p++){var q=$(r[p]);if(q.val().trim()==""||q.val().trim()==q.attr("data-std")){j(q).addClass("error");q.one("keypress",a);s=true;}}return s;}function l(q){j(q).removeClass("error");var s=false;for(var r=0;r<q.length;r++){var p=$(q[r]);
if(p.children(":selected").hasClass("not-selectable")){j(p).addClass("error");p.one("click",a);s=true;}}return s;}function j(q){switch(n.errorElementType){case"direct":var p=q;q.each(function(){var r=$(this).siblings("label[for="+this.id+"]");if(r.length>0){p=p.add(r);}});return p;break;case"parent":default:return q.parent();
}}}function FacebookController(){var k=this;var f=Config.appid;var m=Config.appsecret;var n;var e;(function b(){n=window.FB;})();k.init=j;function j(){if(!n){n=window.FB;}n.init({appId:f,secret:m,status:true,cookie:true,file_upload:true,publish_stream:true});}k.getAppId=c;function c(){return f;}k.getAppSecret=d;
function d(){return m;}k.check=a;function a(){if(!window.FB||!window.FB.provide){h(document,"script","facebook-jssdk");setTimeout(function(){n=window.FB;j();},200);}else{if(!n){n=window.FB;}}}k.login=g;function g(o){n.login(function(p){if(p.status=="connected"){if(p.authResponse){e=p.authResponse.accessToken;
}else{if(p.session){e=p.session.access_token;}}n.api("/me",function(q){});n.ui({method:"permissions.request",perms:"publish_stream",display:"popup"},function(q){if(q&&q.perms){if(o){o();}}else{if(!q.perms){console.log("User did not authorize permission(s).");}}});}else{}});}function l(){n.logout(function(o){console.log("Logged out.");
});}k.getAccessToken=i;function i(){return e;}function h(r,o,v){var q,p=r.getElementsByTagName(o)[0];if(r.getElementById(v)){return;}q=r.createElement(o);q.id=v;q.src="//connect.facebook.net/de_DE/all.js#xfbml=1";p.parentNode.insertBefore(q,p);}}function LinkController(){var c=this;var b=[];var e=false;
(function d(){$(window).load(function(){a();});})();function a(){var h=window.languagecode;var g=window.countrycode;if(h==undefined){h="de";}if(g==undefined){g="de";}$.ajax({url:"/controller/LinkController.php?country="+g+"&lang="+h,success:function(i){b=i;e=true;}});}c.getLink=function f(i){if(e){if(b.hasOwnProperty(i)){var g=b[i];
var h=/(http(s)?)/g;if(!g.match(h)){g=Config.rootUrl+g;}return g;}}else{}return null;};}window.linkController=new LinkController();var Utilities={language:undefined,country:undefined,getCountryFromUrl:function(){if(Utilities.country){return Utilities.country;}var a=window.location.href;var b=/http(s)?:\/\/(.+?)\/(.+?)\/(.+?)\//g;
match=b.exec(a);Utilities.country=match[3];return match[3];},getLanguageFromUrl:function(){if(Utilities.language){return Utilities.language;}var a=window.location.href;var b=/http(s)?:\/\/(.+?)\/(.+?)\/(.+?)\//g;match=b.exec(a);if(match){Utilities.language=match[4];return match[4];}else{return"de";}},getFacebookCode:function(){var a=window.Utilities.getLanguageFromUrl();
if(a=="de"){return"de_DE";}else{if(a=="en"){return"en_GB";}else{if(a=="fr"){return"fr_FR";}else{if(a=="it"){return"it_IT";}else{if(a=="es"){return"es_ES";}else{return"en_US";}}}}}},trackPage:function(a){if(arguments.length>1){Tracking.trackPage(a,arguments[1]);}else{Tracking.trackPage(a);}},Share:{facebook:function(){u=encodeURIComponent(Utilities.getCurrentUrl());
t=encodeURIComponent(Utilities.getTitle());window.open("http://www.facebook.com/sharer.php?u="+u+"&t="+t,"facebook","toolbar=0,status=0,width=626,height=436");return false;},google:function(a){u=Utilities.getCurrentUrl();a=Utilities.getTitle();window.open("https://m.google.com/app/plus/x/?v=compose&hideloc=1&content="+a+" "+u,"twitter","toolbar=0,status=0,width=626,height=436");
return false;},twitter:function(a){u=Utilities.getCurrentUrl();if(a==undefined||a==""){a=Utilities.getTitle();}window.open("https://twitter.com/home?status="+a+" "+u,"twitter","toolbar=0,status=0,width=626,height=436");return false;},linkedIn:function(b,a){u=Utilities.getCurrentUrl();if(b==undefined||b==""){b=Utilities.getTitle();
}window.open("http://www.linkedin.com/shareArticle?mini=true&title="+b+"&summary="+a+"&source=Silhouette&url="+u,"facebook","toolbar=0,status=0,width=626,height=436");return false;},digg:function(a){u=Utilities.getCurrentUrl();if(a==undefined||a==""){a=Utilities.getTitle();}window.open("http://digg.com/submit?&jump=close&title="+a+"&url="+u,"digg","toolbar=no,width=1020,height=600");
return false;},stumbleUpon:function(){u=Utilities.getCurrentUrl();window.open("http://www.stumbleupon.com/submit?url="+u,"sharer","toolbar=0,status=0,width=626,height=436");return false;},delicious:function(a){u=Utilities.getCurrentUrl();if(a==undefined||a==""){a=Utilities.getTitle();}window.open("http://www.delicious.com/save?v=5&noui&jump=close&url="+u+"&title="+a,"delicious","toolbar=no,width=700,height=500");
return false;}},getCurrentUrl:function(){var a=Utilities.getIFrameUrl();var b=window.location.href;if(a!=""){if(b.indexOf("?")>0){b+="&";}else{b+="?";}b+="goto="+a;}return b;},getIFrameUrl:function(){return window.iframeLocation;},getTitle:function(){if(window.iframeLocation!=""){return window.iframeTitle.replace("|","");
}return document.title.replace("|","");}};function UtilitiesController(){var b=this;b.isIDevice=d();(function a(){e();})();b.init=e;function e(){c();}function d(){if((navigator.userAgent.toLowerCase().indexOf("iphone")!=-1)||(navigator.userAgent.toLowerCase().indexOf("ipod")!=-1)||(navigator.userAgent.toLowerCase().indexOf("ipad")!=-1)){return true;
}return false;}function c(){var f=$(".teaser-clickable");f.each(function(){var g=$(this);var h=g.find("a");if(((g.hasClass("fix")||h.length>0)||h.length==1)&&h.attr("href").match(/mailto:/g)===null){g.addClass("pointer").click(function(){window.location.href=h.attr("href");});}});}}function FrontpageCampaigns(){var d=this;
var f;var e;(function c(){g();})();function g(){f=$("#campaign-one");if(f.length){b();}e=$("#campaign-two");if(e.length){a();}}d.campaignOne=b;function b(){window.frontpageCampaignOne=new FrontpageCampaignOne(f);}function a(){window.frontpageCampaignTwo=new FrontpageCampaignTwo(e);}}function FrontpageCampaignTwo(i){var l=this;
var c;var a;var e=false;var j=$(window);var k;var g=700;(function h(){c=$(".grabber");a=$(".ipadholder");k=a.parent();d();jQuery(window).resize(b);setTimeout(b,200);})();function d(){a.bind("click",f);}function f(n){if(!e){var m=(j.width()-a.width()-60)/2;a.css("left",a.offset().left+"px");a.animate({"left":m+"px"},function(){e=true;
jwplayer("iMirrorCampaign").play();a.addClass("alt");});if(simplefader){simplefader.stop();}}else{if(n.target==a[0]){e=false;jwplayer("iMirrorCampaign").stop();a.animate({left:(j.width()*0.85)+"px"},function(){a.removeClass("alt");});}}}function b(){if(k.height()<g){k.addClass("smaller");}else{k.removeClass("smaller");
}var n=((k.height()-143)-a.height())/2;a.css("top",n);if(e){var m=(j.width()-a.width())/2;a.css("left",m+"px");}}}function FrontpageCampaignOne(d){var a=this;var f=new Array(4);var c=new Array(4);(function e(){})();function b(){}}var Tracking={init:function(){Tracking.delegates();},delegates:function(){$(".global-footer .share-drop .share-icons").children().not(".mail, script").bind("click",function(){var b=$(this);
var a=$(this).attr("class").replace(" tooltip","");Tracking.trackShare(a);});},trackPage:function(a){if(Config.track&&typeof(_gaq)!="undefined"){if(a.indexOf("/")!==0){a="/"+a;}if(arguments.length>1){_gaq.push(["_setCustomVar",1,"pagename",arguments[1],3]);}_gaq.push(["_trackPageview",a]);}else{}},trackEvent:function(a,b){if(Config.track&&typeof(_gaq)!="undefined"){if(arguments.length>2){_gaq.push(["_trackEvent",a,b,arguments[2]]);
}else{_gaq.push(["_trackEvent",a,b]);}}},trackShare:function(a){Tracking.trackEvent("share",a,location.href);}};
