jQuery.noConflict();jQuery(document).ready(function($){$('ul#languageswitcher_ul li.languageswitcher_li, ul#languageswitcher_ul li.languageswitcher_li_top, ul#languageswitcher_ul div.no_language1, ul#languageswitcher_ul div.no_language2, ul#languageswitcher_ul div.no_language3, ul#languageswitcher_ul div.no_language4, ul#languageswitcher_ul div.no_language5, ul#languageswitcher_ul div.no_language6, ul#languageswitcher_ul div.no_language7').hide();$("ul#languageswitcher_ul li, #languageswitcher_img").click(function(){var refresh_languageswitcher_ul=setInterval(function(){$('ul#languageswitcher_ul li.languageswitcher_li, ul#languageswitcher_ul li.languageswitcher_li_top').hide();window.clearInterval(refresh_languageswitcher_ul)},8000),selectedEffect='blind',options={};$("ul#languageswitcher_ul li.languageswitcher_li, ul#languageswitcher_ul li.languageswitcher_li_top").toggle()})
function callback(){setTimeout(function(){$('ul#languageswitcher_ul li.languageswitcher_li, ul#languageswitcher_ul li.languageswitcher_li_top').hide()},8000);return true};$(".language_box_open").colorbox({transition:"",width:"500",height:"500",initialWidth:"100",initialHeight:"60",opacity:0.6,close:"",iframe:true});$(".login_box_open").colorbox({transition:"elastic",width:"540",height:"350",initialWidth:"100",initialHeight:"60",opacity:0.6,close:"",iframe:true,onClosed:function(){window.location.reload()}})});jQuery(document).ready(function($){$("ul.sf-menu").superfish({speed:'slow',autoArrows:false,delay:'400',pathClass:'current'})});jQuery(document).ready(function($){$('.product_list tbody tr.productlist_row').click(function(){var search_for=$(this).find("a").attr("href");window.location=search_for})});jQuery(document).ready(function($){$(".tx-tzproductdb-pi1-singleView .picture_thumbs .picture_thumb a").click(function(){var mainImage=$(this).attr("href");$(".tx-tzproductdb-pi1-singleView .picture_large img").attr({src:mainImage});$(".tx-tzproductdb-pi1-singleView .picture_large img").removeAttr('height');$(".tx-tzproductdb-pi1-singleView .picture_large img").removeAttr('width');return false})});jQuery(document).ready(function($){$(".tx-tzproductdb-pi1-singleView .color a").click(function(){var mainImage=$(this).attr("extraLarge");$(".tx-tzproductdb-pi1-singleView .picture_large img").attr({src:mainImage});$(".tx-tzproductdb-pi1-singleView .picture_large img").removeAttr('height');$(".tx-tzproductdb-pi1-singleView .picture_large img").removeAttr('width');return false});$(".tx-tzproductdb-pi1-singleView .color a").hover(function(){$(this).addClass('hover');var mainImage=$(this).attr("href"),mainTitle=$(this).attr("colortitle"),surface=$(this).attr("surface"),surface_headline=$(this).attr("surface_headline");if(surface!="")surface="<br /><div class=\"property_headline\">"+surface_headline+"</div>"+surface;var thickness=$(this).attr("thickness"),thickness_headline=$(this).attr("thickness_headline");if(thickness!="")thickness="<br /><div class=\"property_headline\">"+thickness_headline+"</div>"+thickness;var properties_headline=$(this).attr("property_headline"),properties="";properties=properties+"<img class=\"piktogramm\" src=\"fileadmin/template/img/"+$(this).attr("colorshine")+"\" />";properties=properties+"<img class=\"piktogramm\" src=\"fileadmin/template/img/"+$(this).attr("coloroutside")+"\" />";properties=properties+"<img class=\"piktogramm\" src=\"fileadmin/template/img/"+$(this).attr("colordeformable")+"\" />";properties=properties+"<img class=\"piktogramm\" src=\"fileadmin/template/img/"+$(this).attr("colorclaim")+"\" />";if(properties!="")properties="<br /><div class=\"property_headline\">"+properties_headline+"</div>"+properties;$('.tx-tzproductdb-pi1-singleView .color a.hover').after('<div class="color_tip"><strong>'+mainTitle+'</strong><img class="color_pic" src="" />'+surface+thickness+properties+'</div>');$(".color_tip img.color_pic").attr({src:mainImage});return false},function(){$(this).removeClass('hover');$(".color_tip").remove()})});jQuery(document).ready(function($){var count_navithumbs_a=$(".tx-cbgallery-pi1 .navithumbs a").length;if(count_navithumbs_a<=2)$(".tx-cbgallery-pi1 .navithumbs a").hide();$(".tx-cbgallery-pi1 .navithumbs a").click(function(){var nextDiv=$(this).attr("rel");$("*").removeClass("navithumb_active");$(".tx-cbgallery-pi1 .navithumbs").find("[rel='"+nextDiv+"']").addClass("navithumb_active");$(".tx-cbgallery-pi1 .cbgallery_thumbs").find(".thumbs").css('display','none');$(".tx-cbgallery-pi1 .cbgallery_thumbs ."+nextDiv+"").removeAttr("style");return false});$(".tx-cbgallery-pi1 .cbgallery_thumbs .thumbs a").click(function(){var mainImage=$(this).attr("href"),mainDesc=$(this).attr("title"),mainTitle=$(this).find("img").attr("title"),mainCopy=$(this).find("img").attr("alt");$(".tx-cbgallery-pi1 .cbgallery_large img").attr({src:mainImage});$(".tx-cbgallery-pi1 .cbgallery_large img").attr({title:mainTitle});$(".tx-cbgallery-pi1 .picturedesc").empty();$('.tx-cbgallery-pi1 .picturedesc').prepend(mainDesc+' <span class="copyright">'+mainCopy+'</span>');$("*").removeClass("active_thumb_img");$(this).addClass("active_thumb_img");return false})});jQuery(document).ready(function($){function properties_clicks(){var count_a_active_property=new Array(),tooltipp_off=true;$("#properties_vals a").addClass('optional');$("#properties_vals a").click(function(){var element_href=$(this).attr("href"),element_properties_id=$(this).attr("rel"),element_articletype=$("div.product_search #articletype_hidden").attr("value"),element_material=$("div.product_search #materials_hidden").attr("value"),element_makers=$("div.product_search #makers_hidden").attr("value"),element_properties=$("div.product_search #properties_hidden").attr("value");if(tooltipp_off==true){tooltipp_off=false;$(this).after('<div class="properties_tipp"><div class="properties_load"><img style=\"margin-left:250px;\" src=\"fileadmin/template/img/load_bar.gif\" /></div><div class="properties_close">Fertig</div></div>');$(".properties_close").hide();$(".properties_load").load(element_href+"&articletype="+element_articletype+"&materials="+element_material+"&makers="+element_makers+"&properties="+element_properties,function(){$(".properties_close").show();$("div.product_search .properties a.colorgroup").click(function(){var show_color=$(this).attr("colorgroup_uid"),a_class=$(this).attr("class");if(a_class.indexOf("properties_values_active")>=0){$(".properties_load .color_tip_thumb").find('[colorgroup="'+show_color+'"]').each(function(){$(this).removeClass("properties_values_active")})}else $(".properties_load .color_tip_thumb").find('[colorgroup="'+show_color+'"]').each(function(){$(this).addClass("properties_values_active")})});$("div.product_search .properties .color_tip_thumb a").hover(function(){$(this).addClass('hover');var mainImage=$(this).attr("href"),mainTitle=$(this).attr("colortitle"),surface=$(this).attr("surface"),surface_headline=$(this).attr("surface_headline");if(surface!="")surface="<br /><div class=\"property_headline\">"+surface_headline+"</div>"+surface;var thickness=$(this).attr("thickness"),thickness_headline=$(this).attr("thickness_headline");if(thickness!="")thickness="<br /><div class=\"property_headline\">"+thickness_headline+"</div>"+thickness;var properties_headline=$(this).attr("property_headline"),properties="";properties=properties+"<img class=\"piktogramm\" src=\"fileadmin/template/img/"+$(this).attr("colorshine")+"\" />";properties=properties+"<img class=\"piktogramm\" src=\"fileadmin/template/img/"+$(this).attr("coloroutside")+"\" />";properties=properties+"<img class=\"piktogramm\" src=\"fileadmin/template/img/"+$(this).attr("colordeformable")+"\" />";properties=properties+"<img class=\"piktogramm\" src=\"fileadmin/template/img/"+$(this).attr("colorclaim")+"\" />";if(properties!="")properties="<br /><div class=\"property_headline\">"+properties_headline+"</div>"+properties;$('div.product_search .properties .color_tip_thumb a.hover').after('<div class="color_tip"><strong>'+mainTitle+'</strong><img class="color_pic" src="" />'+surface+thickness+properties+'</div>');$(".color_tip img.color_pic").attr({src:mainImage});return false},function(){$(this).removeClass('hover');$(".color_tip").remove()});$("div.product_search .properties a").click(function(){var a_class=$(this).attr("class");if(a_class.indexOf("properties_values_active")>=0){$(this).removeClass("properties_values_active")}else $(this).addClass("properties_values_active");return false})})};$(".properties_close").click(function(){count_a_active_property[element_properties_id]="";$(".properties_load").find('[class="properties_values_active"]').each(function(){if(count_a_active_property[element_properties_id]!=""){count_a_active_property[element_properties_id]=count_a_active_property[element_properties_id]+'_'}else count_a_active_property[element_properties_id]=count_a_active_property[element_properties_id]+':';count_a_active_property[element_properties_id]=count_a_active_property[element_properties_id]+$(this).attr("rel")});var element_href=$("#property_refresh_url").attr("value");$(".properties_tipp").prev().append("<img style=\"float:right; margin-right:18px;\" src=\"fileadmin/template/img/load_small.gif\" />");$(".properties_tipp").remove();tooltipp_off=true;var element_articletype=$("div.product_search #articletype_hidden").attr("value"),element_material=$("div.product_search #materials_hidden").attr("value"),element_makers=$("div.product_search #makers_hidden").attr("value"),element_properties=$("div.product_search #properties_hidden").attr("value");load_productsearch(element_href+count_a_active_property[element_properties_id]+"&articletype="+element_articletype+"&materials="+element_material+"&makers="+element_makers+"&properties="+element_properties)});return false})};var element_load=$("div.product_search").attr("rel");$('div.product_search').prepend('<center><img src="fileadmin/template/img/load.gif" /></center>');$("div.product_search").load(element_load,function(){$("div.product_search a.loadcomplete").click(function(){var element_href=$(this).attr("href"),element_articletype=$("div.product_search #articletype_hidden").attr("value"),element_material=$("div.product_search #material_hidden").attr("value"),element_makers=$("div.product_search #makers_hidden").attr("value"),element_properties=$("div.product_search #properties_hidden").attr("value");load_productsearch(element_href+"&articletype="+element_articletype+"&material="+element_material+"&makers="+element_makers+"&properties="+element_properties);return false});properties_clicks()})
function load_productsearch(element_href){$("div.product_search").load(element_href,function(){$("div.product_search a.loadcomplete").click(function(){var element_href=$(this).attr("href"),element_articletype=$("div.product_search #articletype_hidden").attr("value"),element_materials=$("div.product_search #materials_hidden").attr("value"),element_makers=$("div.product_search #makers_hidden").attr("value"),element_properties=$("div.product_search #properties_hidden").attr("value");load_productsearch(element_href+"&articletype="+element_articletype+"&materials="+element_materials+"&makers="+element_makers+"&properties="+element_properties);return false});properties_clicks()})};$(".tx-tzproductdb-pi1-listrow .product_checkbox").click(function(){var act_userproductlist='',act_userproductlist_value='',print_link='';$(".tx-tzproductdb-pi1-listrow").find('input:checked').each(function(){if(act_userproductlist!=''){act_userproductlist=act_userproductlist+", "+$(this).attr("name");act_userproductlist_value=act_userproductlist_value+","+$(this).attr("value")}else{act_userproductlist=$(this).attr("name");act_userproductlist_value=$(this).attr("value")}});if(act_userproductlist_value!=""){print_link='<a class="act_userproductlist_print" href="?id=30&L=0&type=98&tx_tzproductdb_pi1[showUid]='+act_userproductlist_value+'" target="_blank">drucken</a>';save_link='<a class="act_userproductlist_save" href="?eID=userlist&mode=1&userlist_value='+act_userproductlist_value+'">In Merkliste speichern</a>'}else{print_link='';save_link=''};$('span#act_userproductlist').empty();$('span#act_userproductlist').append(act_userproductlist);$('a.act_userproductlist_print').remove();$('div.user_lists_edit span.act_userproductlistcontainer_print').append(print_link);$('a.act_userproductlist_save').remove();$('div.user_lists_edit span.act_userproductlistcontainer_save').append(save_link);$("a.act_userproductlist_save").colorbox({transition:"",width:"500",height:"500",initialWidth:"100",initialHeight:"60",opacity:0.6,close:"",iframe:true})});$('.product_list tr.productlist_row').mouseenter(function(){$(this).css('cursor','pointer');$(this).find('td.picture').css('border-top','1px solid #57C62E').css('border-bottom','1px solid #57C62E').css('border-left','1px solid #57C62E');$(this).find('td.platzhalter_width_15').css('border-top','1px solid #57C62E').css('border-bottom','1px solid #57C62E');$(this).find('td.productgroup_description').css('border-top','1px solid #57C62E').css('border-bottom','1px solid #57C62E');$(this).find('td.property_label').css('border-top','1px solid #57C62E').css('border-bottom','1px solid #57C62E');$(this).find('td.property_value').css('border-top','1px solid #57C62E').css('border-bottom','1px solid #57C62E').css('border-right','1px solid #57C62E')});$('.product_list tr.productlist_row').mouseleave(function(){$(this).css('cursor','pointer');$(this).find('td.picture').css('border-top','1px solid #ebebeb').css('border-bottom','1px solid #ebebeb').css('border-left','1px solid #ebebeb');$(this).find('td.platzhalter_width_15').css('border-top','1px solid #ffffff').css('border-bottom','1px solid #ffffff');$(this).find('td.productgroup_description').css('border-top','1px solid #ffffff').css('border-bottom','1px solid #ebebeb');$(this).find('td.property_label').css('border-top','1px solid #ffffff').css('border-bottom','1px solid #ebebeb');$(this).find('td.property_value').css('border-top','1px solid #ffffff').css('border-bottom','1px solid #ebebeb').css('border-right','1px solid #ffffff')});$('#contact_search_input').one("focus",function(){$('#contact_search_input').keyup(function(){var search_for=$(this).val();show_plz(search_for)})});var plz_find=""
function show_plz(plz){var plz=plz;if(plz!=""){$('#contact_person').find('.PLZ').hide();$("#contact_person").find('.PLZ').each(function(){plz_this=$(this).attr('rel');plz_find=plz_this.search(plz);if(plz_find!=-1)$(this).show()})}else $('#contact_person').find('.plz').show()};$('#contact_person div.country').hide();$('#contact_country').find('div').each(function(){var lang_div=$(this).attr('class').split(" ");$(this).click(function(){$("#contact_country").find("div").removeClass("act");$(this).addClass("act");$('#contact_person div.country').hide();$('#contact_person div.'+lang_div[0]).show();if(lang_div[0]=='NL'||lang_div[0]=='UK'||lang_div[0]=='INT'||lang_div[0]=='ME'){$('#contact_plz_headline').hide();$('#contact_search').hide();$('#contact_search_notice').hide()}else{$('#contact_plz_headline').show();$('#contact_search').show();$('#contact_search_notice').show()};return false});if(lang_div[1]=="act"){$('#contact_person div.'+lang_div[0]).show();if(lang_div[0]=='NL'||lang_div[0]=='UK'||lang_div[0]=='INT'||lang_div[0]=='ME'){$('#contact_plz_headline').hide();$('#contact_search').hide();$('#contact_search_notice').hide()}else{$('#contact_plz_headline').show();$('#contact_search').show();$('#contact_search_notice').show()}}});var domain=window.location.hostname,domain_blank=domain.replace(/.com/g,""),path=window.location.pathname,a=document.cookie;cookiename=a.substr(a.search('RosskopfLanguage='));cookienamesearch=cookiename.search('RosskopfLanguage=');if(cookienamesearch!=-1){cookiewert=cookiename.substr(17,cookiename.search(";")-17);if(cookiewert=="")cookiewert=cookiename.substr(17)}else cookiewert='';domain_split=domain.split(".");pos=domain_split.length-1;tld=domain_split[pos];if(cookiewert==""&&tld=="com"&&(path=="/"||path=="")){$('body').prepend('<div class="choose_language_dialog"><h1>Choose your country and language<br />Wählen Sie Ihr Land und Ihre Sprache</h1><div class="choose_language_flags"><a class="com" href="http://'+domain_blank+'.com"><img title="International" alt="International" src="fileadmin/template/img/flag/flag_uk_on.gif">R+P International - English</a><a class="de" href="http://'+domain_blank+'.de"><img title="deutsch" alt="deutsch" src="fileadmin/template/img/flag/flag_de_on.gif">Deutschland - Deutsch</a><a class="fr" href="http://'+domain_blank+'.es"><img title="spanisch" alt="spanisch" src="fileadmin/template/img/flag/flag_es_on.gif">España - Español</a><a class="fr" href="http://'+domain_blank+'.fr"><img title="französisch" alt="französisch" src="fileadmin/template/img/flag/flag_fr_on.gif">Françe - Français</a><a class="ru" href="http://'+domain_blank+'.ru"><img title="pусский" alt="pусский" src="fileadmin/template/img/flag/flag_ru_on.gif">Россия - pусский</a><a class="at" href="http://'+domain_blank+'.at"><img title="Österreich" alt="Österreich" src="fileadmin/template/img/flag/flag_at_on.gif">Österreich - Deutsch</a><a class="uk" href="http://'+domain_blank+'.co.uk"><img title="United Kingdom" alt="United Kingdom" src="fileadmin/template/img/flag/flag_uk_on.gif">United Kingdom - English</a></div></div>');$('.choose_language_dialog').hide();$('.choose_language_dialog').dialog({closeText:'',modal:true,width:360,draggable:false});$('.choose_language_dialog .choose_language_flags a').click(function(){var cookie_var=$(this).attr("href"),cookie_href=$(this).attr("href"),date=new Date();date=new Date(date.getTime()+1000*60*60*24*30);document.cookie='RosskopfLanguage='+cookie_var+'; expires='+date.toGMTString()+'; ';window.location.href='http://'+cookie_href})}else if(path==""||path=="/")if(cookiewert=="http://"+domain_blank+".de"||cookiewert=="http://"+domain_blank+".at"||cookiewert=="http://"+domain_blank+".co.uk"||cookiewert=="http://"+domain_blank+".fr"||cookiewert=="http://"+domain_blank+".de/"||cookiewert=="http://"+domain_blank+".at/"||cookiewert=="http://"+domain_blank+".co.uk/"||cookiewert=="http://"+domain_blank+".fr/"){var cookie_href=cookiewert;window.location.href=cookie_href}});jQuery(document).ready(function($){$("#sitemap").hide();$("#sitemap_open").click(function(){$("#sitemap").fadeIn("slow");$('html, body').animate({scrollTop:$("#sitemap").offset().top},2000);var refreshId=setInterval(function(){$('#sitemap').fadeOut("slow");window.clearInterval(refreshId)},10000);return false});$('#merken_container, #weitersagen_container').hide();$("#merken_open, #weiter_open").click(function(){var linkId=$(this).attr("id");if(linkId=="merken_open"){$("#merken_container").toggle();$("#weitersagen_container").hide()}else{$("#merken_container").hide();$("#weitersagen_container").toggle()};return false});$('.galleryimage_description').css({display:'block'})});(function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl()},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1)over.call(o.$path)},o.delay)},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone())};return this.each(function(){var s=this.serial=sf.o.length,o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass)});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(o.autoArrows)addArrow($('>a:first-child',this))}).not('.'+c.bcClass).hideSuperfishUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li)}).blur(function(){out.call($li)})});o.onInit.call(this)}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7))menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '))})};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined)this.toggleClass(sf.c.shadowClass+'-off')};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'normal',autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:'';o.retainPath=false;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul)});return this}})})(jQuery)
