var goto = {}; goto["link0"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link1"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link2"] = "/go?to=http://domdecor74.mxayc.ru/contact"; goto["link3"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74/products"; goto["link4"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40344970_Domkrat-tyanushhij-D"; goto["link5"] = "/go?to=http://domdecor74.mxayc.ru/product/p40444180_Oboi-Limonta-Super-N"; goto["link6"] = "/go?to=http://domdecor74.mxayc.ru/document/info_deliv"; goto["link7"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link8"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link9"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link10"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link11"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link12"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link13"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link14"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link15"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link16"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link17"] = "/go?to=http://statusplus.mxayc.ru/contact"; goto["link18"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus/products"; goto["link19"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40444180_Oboi-Limonta-Super-N"; goto["link20"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40344970_Domkrat-tyanushhij-D"; goto["link21"] = "/go?to=http://statusplus.mxayc.ru/product/p40521119_Ruchka-Apeks-6093-03"; goto["link22"] = "/go?to=http://statusplus.mxayc.ru/document/info_deliv"; goto["link23"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link24"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link25"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link26"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link27"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link28"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link29"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link30"] = "/go?to=http://chel.dipo.ru/company/firm_2854_Status-plyus"; goto["link31"] = "/go?to=http://chel.dipo.ru/company/firm_2803_Fabrika-dverej-Geona"; goto["link32"] = "/go?to=http://chel.dipo.ru/company/firm_2803_Fabrika-dverej-Geona"; goto["link33"] = "/go?to=http://chel.dipo.ru/company/firm_2803_Fabrika-dverej-Geona"; goto["link34"] = "/go?to=http://chel.dipo.ru/company/firm_2803_Fabrika-dverej-Geona"; goto["link35"] = "/go?to=http://chel.dipo.ru/company/firm_2803_Fabrika-dverej-Geona"; goto["link36"] = "/go?to=http://chel.dipo.ru/company/firm_2803_Fabrika-dverej-Geona"; goto["link37"] = "/go?to=http://chel.dipo.ru/company/firm_2803_Fabrika-dverej-Geona"; goto["link38"] = "/go?to=http://chel.dipo.ru/company/firm_2803_Fabrika-dverej-Geona"; goto["link39"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link40"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link41"] = "/go?to=http://domdecor74.mxayc.ru/contact"; goto["link42"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74/products"; goto["link43"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40521119_Ruchka-Apeks-6093-03"; goto["link44"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40444180_Oboi-Limonta-Super-N"; goto["link45"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40344970_Domkrat-tyanushhij-D"; goto["link46"] = "/go?to=http://domdecor74.mxayc.ru/product/p40440217_Quarta-Parete-Opera-"; goto["link47"] = "/go?to=http://domdecor74.mxayc.ru/document/info_deliv"; goto["link48"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link49"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link50"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link51"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link52"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link53"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link54"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link55"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link56"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link57"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link58"] = "/go?to=http://domdecor74.mxayc.ru/contact"; goto["link59"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74/products"; goto["link60"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40440217_Quarta-Parete-Opera-"; goto["link61"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40521119_Ruchka-Apeks-6093-03"; goto["link62"] = "http://chel.dipostroi.ru/go?to=http://chel.dipo.ru/product/p40444180_Oboi-Limonta-Super-N"; goto["link63"] = "/go?to=http://domdecor74.mxayc.ru/product/p40444179_Oboi-Limonta-Super-N"; goto["link64"] = "/go?to=http://domdecor74.mxayc.ru/document/info_deliv"; goto["link65"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link66"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link67"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link68"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link69"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link70"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link71"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; goto["link72"] = "/go?to=http://chel.dipo.ru/company/firm_1945_DomDekor74"; /** Преобразовать все 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()+""); });