par="";prart="";if (docoo.match(/ prart=[^\&;\s\%\~]+;/)) { prart=docoo.match(/ prart=([^\&;\s\%\~]++);/)[1] }if (docoo.match(/ qprt=[^\&;\s\%\~]+;/)) { par=docoo.match(/ qprt=([^\&;\s\%\~]+);/)[1] }if (location.search.match(/partner=[^\&]+/)) { par=location.search.match(/partner=([^\&]+)/)[1]; }if (!par.match(/(ya\d+|mirorg)/)) {if (document.referrer.match(/rambler/i)) { par="rambler" }if (document.referrer.match(/top100\.rambler/i)) { par="top100" }if (document.referrer.match(/[^a-z]bing.com/i)) { par="bing" }if (document.referrer.match(/[^a-z]ask.com/i)) { par="ask" }if (document.referrer.match(/[^a-z]vk.com\//i)) { par="vkontakte" }if (document.referrer.match(/mail\.ru\//i)) { par="mailru" }if (document.referrer.match(/google\.[a-z]+[\/\.]/i)) { par="google" }if (document.referrer.match(/yandex\.[a-z]+[\/\.]/i)) { if (!document.referrer.match(/yabs\./i)) { par="yandex" } }if (document.referrer.match(/yaca\.yandex\.ru\//i)) { par="yandexcat" }}if (par!="") {dat2=new Date();dat2.setTime(dat2.getTime()+3600*24*90*1000);edate=dat2.toGMTString();document.cookie="prart="+par+"; path=/; expires="+edate;prart=par;lnk="";if (docoo.match(/ lnk=[^\&;\s\%\|\~]+;/)) { lnk=docoo.match(/ lnk=([^\&;\s\%\|\~]+);/)[1] }if (docoo.match(/ qlink=[^\&;\s\%\|\~]+;/)) { lnk=docoo.match(/ qlink=([^\&;\s\%\|\~]+);/)[1] }if (location.search.match(/link=[^\&\%\|]+/)) { lnk=location.search.match(/link=([^\&\%\|]+)/)[1] }if (lnk!="") {document.cookie="lnk="+lnk+"; path=/; expires=Tue, 21 Apr 2046 17:04:03 GMT;";document.cookie="qlink="+lnk+"; path=/; expires=Tue, 21 Apr 2046 17:04:03 GMT;";}tid="";if (docoo.match(/ tid=\d+;/)) { tid=docoo.match(/ tid=(\d+);/)[1] }if (docoo.match(/ qtid=\d+;/)) { tid=docoo.match(/ qtid=(\d+);/)[1] }if (location.search.match(/tid=\d+/)) { tid=location.search.match(/tid=(\d+)/)[1] }if (par.match(/ya\d+/)) { tid="222"+par.match(/ya(\d+)/)[1] }else if (par=="mirorg") { tid="333001" }else if (par=="yandex") { tid="111001" }else if (par=="google") { tid="111002" }if (tid!="") {document.cookie="tid="+tid+"; path=/; expires=Tue, 21 Apr 2046 17:04:03 GMT;";document.cookie="qtid="+tid+"; path=/; expires=Tue, 21 Apr 2046 17:04:03 GMT;";}sid="";if (docoo.match(/ sid=\d+;/)) { sid=docoo.match(/ sid=(\d+);/)[1] }if (docoo.match(/ qsid=\d+;/)) { sid=docoo.match(/ qsid=(\d+);/)[1] }if (location.search.match(/sid=\d+/)) { sid=location.search.match(/sid=(\d+)/)[1] }if (sid!="") {document.cookie="sid="+sid+"; path=/; expires=Tue, 21 Apr 2046 17:04:03 GMT;";document.cookie="qsid="+sid+"; path=/; expires=Tue, 21 Apr 2046 17:04:03 GMT;";}fpage="main";if (location.search.match(/fpage=[a-z]/)) { fpage=location.search.match(/fpage=([a-z\d\|]+)/)[1] }if (fpage.match(/^[a-z\d\|]+/)) {document.cookie="fpage="+fpage+"; path=/; expires=Tue, 21 Apr 2046 17:04:03 GMT;";}}document.cookie="refer=; path=/; domain=.mirorgazma.ru; expires=Tue, 21 Apr 2046 17:04:03 GMT;";document.cookie="referc=; path=/; domain=.mirorgazma.ru; expires=Tue, 21 Apr 2046 17:04:03 GMT;";