var tabwidth = []; var width_1 = 300; var width_2 = 200; var width_com = 500; var width_1a = 100; var width_2a = 400; var width_coma = 500; var width_1b = 100; var width_2b = 400; var width_comb = 500; $j(document).ready(function() { obj = $j("body"); walkTree(obj); width = viewportSize().width; if(findSc("span:contains('epx_sc_internal')") == null) { for (i = 0; i < tabwidth.length; i++) { if(width < tabwidth[i] + 20) { $j("li[gen='"+i+"']").each(function(){ $j(this).css("display", "block"); var width = $j(this).attr("epiwidth"); $j(this).css("width", ""); $j(this).css("max-width", width); }); } } } if(findSc("span:contains('epx_sc_internal')") != null && scdocid != undefined && (scdocid == "rfshop-backend:d0000563" || scdocid == "rfshop-backend:d0000567") && width >= 550) { var obj = findSc("span:contains('epx_sc_internal')"); modifySc(obj,width_1,width_2,width_com); var obj = findSc("span:contains('epx_sc_1')"); modifySc(obj,width_1a,width_2a,width_coma); var obj = findSc("span:contains('epx_sc_2')"); modifySc(obj,width_1b,width_2b,width_comb); } if(findSc("span:contains('epx_sc_internal')") != null && scdocid != undefined && (scdocid == "rfshop-backend:d0000563" || scdocid == "rfshop-backend:d0000567") && width <= 549) { var obj = findSc("span:contains('epx_sc_internal')"); modifySc(obj,180,140,320); var obj = findSc("span:contains('epx_sc_1')"); modifySc(obj,100,220,320); var obj = findSc("span:contains('epx_sc_2')"); modifySc(obj,110,210,320); } var anker = window.location.hash; if(anker) { anker = anker.substr(1); var suche = "a[name='"+anker+"']"; x = $j(suche).get(); if(typeof(x) != "object" || !x.length) { suche = "a[name='"+anker.toUpperCase()+"']"; x = $j(suche).get(); } if(typeof(x) != "object" || !x.length) { suche = "a[name='"+encodeURIComponent(anker)+"']"; x = $j(suche).get(); } if(typeof(x) != "object" || !x.length) { suche = "a[name='"+encodeURIComponent(anker.toUpperCase())+"']"; x = $j(suche).get(); } } if(typeof(x) == "object" && x.length) { var xx = $j(x).get(0); if($j(xx).offset() != null) { var y = parseInt($j(xx).offset().top-70); $j('html,body').animate({ scrollTop: y },'slow'); } } }); var width = viewportSize().width; function mobileresize() { } function findSc(query) { var obj = $j(query); if(obj.length > 0) { obj = $j(obj).closest("ul"); obj = $j(obj).parent(); return obj; } else { return null; } } function modifySc(obj,width_1,width_2,width_com) { if(obj==null || obj.length==0) { return; } $j("ul", obj).each(function() { var first = $j(this).children().eq(0); var next = $j( this ).children().eq(1); if ($j(next).length > 0) { $j( first ).css("width", width_1); $j( next ).css("width", width_2); } else { $j( first ).css("width", width_com); } }); } function walkTree(obj) { var tabnum = 0; if($j(obj).length > 0) { do { if($j(obj).children()) { walkTree($j(obj).children().first()); } if($j(obj).is("table")) { var twidth = $j(obj).css("width"); tabwidth.push(parseInt(twidth,10)); var ul = $j("