var goto = {}; goto["link0"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link1"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link2"] = "/go?to=http://prorabst.mapt.ru/contact"; goto["link3"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab/products"; goto["link4"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40524610_Izdeliya-iz-stekla"; goto["link5"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40446462_Oboi-Zambaiti-Parati"; goto["link6"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40575195_Gazonnaya-reshetkaEc"; goto["link7"] = "/go?to=http://prorabst.mapt.ru/product/p40217490_baswool-fasad-160"; goto["link8"] = "/go?to=http://prorabst.mapt.ru/document/info_deliv"; goto["link9"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link10"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link11"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link12"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link13"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link14"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link15"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link16"] = "/go?to=http://chel.dipo.ru/company/firm_2550_OOO-Prorab"; goto["link17"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link18"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link19"] = "/go?to=http://promelement74.mapt.ru/contact"; goto["link20"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement/products"; goto["link21"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40217490_baswool-fasad-160"; goto["link22"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40524610_Izdeliya-iz-stekla"; goto["link23"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40446462_Oboi-Zambaiti-Parati"; goto["link24"] = "/go?to=http://promelement74.mapt.ru/product/p40575194_Gazonnaya-reshetkaEc"; goto["link25"] = "/go?to=http://promelement74.mapt.ru/document/info_deliv"; goto["link26"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link27"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link28"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link29"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link30"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link31"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link32"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link33"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link34"] = "/go?to=http://chel.dipo.ru/company/firm_2760_Dubrava"; goto["link35"] = "/go?to="; goto["link36"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40575194_Gazonnaya-reshetkaEc"; goto["link37"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40217490_baswool-fasad-160"; goto["link38"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40524610_Izdeliya-iz-stekla"; goto["link39"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link40"] = "/go?to="; goto["link41"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link42"] = "/go?to="; goto["link43"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link44"] = "/go?to="; goto["link45"] = "/go?to=http://chel.dipo.ru/company/firm_631_Promelement"; goto["link46"] = "/go?to="; goto["link47"] = "/go?to=http://chel.dipo.ru/company/firm_1958_Kopejskij-zavod-kamnya"; goto["link48"] = "/go?to="; goto["link49"] = "/go?to=http://chel.dipo.ru/company/firm_1817_SK-Derevyannyj-Dom"; goto["link50"] = "/go?to="; goto["link51"] = "/go?to=http://chel.dipo.ru/company/firm_1129_OOO-Aelita"; goto["link52"] = "/go?to="; goto["link53"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link54"] = "/go?to="; goto["link55"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link56"] = "/go?to="; goto["link57"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link58"] = "/go?to="; goto["link59"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link60"] = "/go?to="; goto["link61"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link62"] = "/go?to="; goto["link63"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link64"] = "/go?to="; goto["link65"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link66"] = "/go?to="; goto["link67"] = "/go?to=http://chel.dipo.ru/company/firm_2729_Stroj-Montazh-Komplekt"; goto["link68"] = "/go?to="; goto["link69"] = "/go?to=http://chel.dipo.ru/company/firm_2729_Stroj-Montazh-Komplekt"; goto["link70"] = "/go?to="; goto["link71"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40575194_Gazonnaya-reshetkaEc"; goto["link72"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40217490_baswool-fasad-160"; goto["link73"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40524610_Izdeliya-iz-stekla"; /** Преобразовать все 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()+""); });