var goto = {}; goto["link0"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link1"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link2"] = "/go?to=http://zavod-emi.ru/contact"; goto["link3"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding/products"; goto["link4"] = "http://chel.dipoprom.ru/go?to=http://chel.dipo.ru/product/p39716630_razedinitel-rlnd-1-10-200-u1-3-h-pols-privprnz-10"; goto["link5"] = "/go?to=http://zavod-emi.ru/product/p40174564_Nakladka-NT-3"; goto["link6"] = "/go?to=http://zavod-emi.ru/document/info_deliv"; goto["link7"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link8"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link9"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link10"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link11"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link12"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link13"] = "/go?to=http://zavod-emi.ru/contact"; goto["link14"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding/products"; goto["link15"] = "http://chel.dipoprom.ru/go?to=http://chel.dipo.ru/product/p40174564_Nakladka-NT-3"; goto["link16"] = "http://chel.dipoprom.ru/go?to=http://chel.dipo.ru/product/p39716630_razedinitel-rlnd-1-10-200-u1-3-h-pols-privprnz-10"; goto["link17"] = "/go?to=http://zavod-emi.ru/product/p40174562_Nakladka-NT-1"; goto["link18"] = "/go?to=http://zavod-emi.ru/document/info_deliv"; goto["link19"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link20"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link21"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link22"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link23"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link24"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link25"] = "/go?to=http://zavod-emi.ru/contact"; goto["link26"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding/products"; goto["link27"] = "http://chel.dipoprom.ru/go?to=http://chel.dipo.ru/product/p40174562_Nakladka-NT-1"; goto["link28"] = "http://chel.dipoprom.ru/go?to=http://chel.dipo.ru/product/p40174564_Nakladka-NT-3"; goto["link29"] = "http://chel.dipoprom.ru/go?to=http://chel.dipo.ru/product/p39716630_razedinitel-rlnd-1-10-200-u1-3-h-pols-privprnz-10"; goto["link30"] = "/go?to=http://zavod-emi.ru/product/p40174566_Nakladka-NT-5"; goto["link31"] = "/go?to=http://zavod-emi.ru/document/info_deliv"; goto["link32"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link33"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link34"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; goto["link35"] = "/go?to=http://chel.dipo.ru/company/firm_2599_ElektroMontazh-Xolding"; /** Преобразовать все span в ссылки*/ $("span.jsGoto").each(function(){ var attr_array = ["id","rel","target","class","itempro","data-href","data-id","stype","alt"]; var attr_str = ''; var idspan = $(this).attr("data-span"); var key = 'link'+idspan; var id = $(this).attr("id"); var rel = $(this).attr("rel"); var target = $(this).attr("target"); var clas = $(this).attr("class"); var itemprop = $(this).attr("itemprop"); var href = goto[key]; var dataid = $(this).attr("data-id"); var style = $(this).attr("style"); var alt = $(this).attr("alt"); if (id!=undefined) { attr_str = attr_str+' id="'+id+'"';} if (rel!=undefined) { attr_str = attr_str+' rel="'+rel+'"';} if (target!=undefined) { attr_str = attr_str+' target="'+target+'"';} if (clas!=undefined) { attr_str = attr_str+' class="'+clas+'"';} if (itemprop!=undefined) { attr_str = attr_str+' itemprop="'+itemprop+'"';} if (dataid!=undefined) { attr_str = attr_str+' data-id="'+dataid+'"';} if (style!=undefined) { attr_str = attr_str+' style="'+style+'"';} if (alt!=undefined) { attr_str = attr_str+' alt="'+alt+'"';} if (href!=undefined) { attr_str = attr_str+' href="'+href+'"';} $(this).replaceWith(""+$(this).html()+""); });