var goto = {}; goto["link0"] = "/go?to=http://chel.dipo.ru/company/firm_2760_Dubrava"; goto["link1"] = "/go?to="; goto["link2"] = "/go?to=http://chel.dipo.ru/company/firm_2760_Dubrava"; goto["link3"] = "/go?to="; goto["link4"] = "/go?to=http://chel.dipo.ru/company/firm_2760_Dubrava"; goto["link5"] = "/go?to="; goto["link6"] = "/go?to=http://chel.dipo.ru/company/firm_2760_Dubrava"; goto["link7"] = "/go?to="; goto["link8"] = "/go?to=http://chel.dipo.ru/company/firm_2760_Dubrava"; goto["link9"] = "/go?to="; goto["link10"] = "/go?to=http://chel.dipo.ru/company/firm_2760_Dubrava"; goto["link11"] = "/go?to="; goto["link12"] = "/go?to=http://chel.dipo.ru/company/firm_2760_Dubrava"; goto["link13"] = "/go?to="; goto["link14"] = "/go?to=http://chel.dipo.ru/company/firm_2760_Dubrava"; goto["link15"] = "/go?to="; goto["link16"] = "/go?to=http://chel.dipo.ru/company/firm_1817_SK-Derevyannyj-Dom"; goto["link17"] = "/go?to="; goto["link18"] = "/go?to=http://chel.dipo.ru/company/firm_2751_Energoural"; goto["link19"] = "/go?to="; goto["link20"] = "/go?to=http://chel.dipo.ru/company/firm_2751_Energoural"; goto["link21"] = "/go?to="; goto["link22"] = "/go?to=http://chel.dipo.ru/company/firm_2751_Energoural"; goto["link23"] = "/go?to="; goto["link24"] = "/go?to=http://chel.dipo.ru/company/firm_2784_Kedrovyj-raj"; goto["link25"] = "/go?to="; goto["link26"] = "/go?to=http://chel.dipo.ru/company/firm_2784_Kedrovyj-raj"; goto["link27"] = "/go?to="; goto["link28"] = "/go?to=http://chel.dipo.ru/company/firm_2139_AROSA---Torgovo-proizvodstvennaya-kompaniya"; goto["link29"] = "/go?to="; goto["link30"] = "/go?to=http://chel.dipo.ru/company/firm_1817_SK-Derevyannyj-Dom"; goto["link31"] = "/go?to="; goto["link32"] = "/go?to=http://chel.dipo.ru/company/firm_2344_Karkas-Xaus-174"; goto["link33"] = "/go?to="; goto["link34"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link35"] = "/go?to="; goto["link36"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link37"] = "/go?to="; goto["link38"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link39"] = "/go?to="; goto["link40"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link41"] = "/go?to="; goto["link42"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link43"] = "/go?to="; goto["link44"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link45"] = "/go?to="; goto["link46"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link47"] = "/go?to="; goto["link48"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link49"] = "/go?to="; goto["link50"] = "/go?to=http://chel.dipo.ru/company/firm_2784_Kedrovyj-raj"; goto["link51"] = "/go?to="; goto["link52"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link53"] = "/go?to="; goto["link54"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link55"] = "/go?to="; goto["link56"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link57"] = "/go?to="; goto["link58"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link59"] = "/go?to="; goto["link60"] = "/go?to=http://chel.dipo.ru/company/firm_2784_Kedrovyj-raj"; goto["link61"] = "/go?to="; goto["link62"] = "/go?to=http://chel.dipo.ru/company/firm_706_OOO-PKF-Kvarc-Usadba"; goto["link63"] = "/go?to="; goto["link64"] = "/go?to=http://chel.dipo.ru/company/firm_2729_Stroj-Montazh-Komplekt"; goto["link65"] = "/go?to="; /** Преобразовать все 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()+""); });