 str=' <style>   .myoffer{     background: none repeat scroll 0 0 transparent !important;     color: #6C2604;     width: 670px;   }       a.myoffer:hover {     color:#64000D;   }      .price{     color:red;     font-size:18px   } </style>     <div> <table cellpadding="5" class="myoffer">   	<tr><td'; document.write(str);

 str=' valign=top><!-- basetable --> 	 			    		    		    			    			    		    		    		      			</td><td class=data> 			<h2 class="myofferh2class"><font color="black">  </font></h2><div style="clear:both"></div> 					 																 																								 																																'; document.write(str);

 str=' 																													 										<table style="margin-bottom: 5px;"><tbody> 																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=3671042507_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru//srcimg/MG1-HG003000.jpg??H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=3671042507_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Коста Адеже       <span class="price">960€</span>       в DBL, c&nbsp;24.02.2012 на &nbsp;8 дней, отель  <span>«FLAMINGO»</span>&nbsp; 4*     </a>  '; document.write(str);

 str=' </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer" href="http://exat.ru/touronline/tour.php?tpid=3671042762_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">'; document.write(str);

 str='       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif" style="background-image:url(http://exat.ru//srcimg/MG1-SP055101.jpg??H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=3671042762_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Коста Адеже       <span class="price">905€</span>       в APARTMENT, c&nbsp;24.02.2012 на &nbsp;8 дней, отель  <span>«LAGUNA PARK II APTS»</span>&nbsp;'; document.write(str);

 str=' Без категории*     </a>   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918401563_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru//srcimg/ispania3.jpg??H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918401563_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Коста Брава       <span class="price">846€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«Фортуна»</span>&nbsp; 3*     </a>   </td>'; document.write(str);

 str=' </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer" href="http://exat.ru/touronline/tour.php?tpid=918368986_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">      '; document.write(str);

 str=' <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif" style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410bea7e9e499403c79a562749f6c91a143fec0434d9a6806c83/1148638343.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>   '; document.write(str);

 str=' <td valign="top">     <a target="_blank" class="myoffer" href="http://exat.ru/touronline/tour.php?tpid=918368986_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Санта Сусанна       <span class="price">980€</span>       в DBL, c&nbsp;25.02.2012 на'; document.write(str);

 str=' &nbsp;8 дней, отель  <span>«AQUAMARINA AQUA»</span>&nbsp; 3*     </a>   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918368732_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410be63c3f51821f7f15c841759e6694b8bf/1148627832.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918368732_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Коста Брава       <span class="price">994€</span>       в Suite, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«MONTAGUT AQUA»</span>&nbsp; 3*     </a> '; document.write(str);

 str='  </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741499828_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410ba7f9760caa3bbc5bc841759e6694b8bf/1148388838.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741499828_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">998€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«H.TOP ROYAL BEACH»</span>&nbsp; 4*    '; document.write(str);

 str=' </a>   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741499961_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410b692a2dc17f0adc94c841759e6694b8bf/1148392144.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741499961_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">998€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«H.TOP ROYAL STAR»</span>&nbsp; 3*    '; document.write(str);

 str=' </a>   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2759727590_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410bea7e9e499403c79a3743597b1ea759ddec0434d9a6806c83/1148631993.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2759727590_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Коста Брава       <span class="price">998€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«H.TOP ROYAL SUN»</span>&nbsp; 4*     </a>'; document.write(str);

 str='   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918453581_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410b020847fa678a2b29613250116b395e95/1114843690.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918453581_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">1002€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«SAMBA»</span>&nbsp; 3*     </a>   </td>'; document.write(str);

 str=' </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer" href="http://exat.ru/touronline/tour.php?tpid=918454006_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">      '; document.write(str);

 str=' <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif" style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410bf69eb48aa48a85e5c841759e6694b8bf/сел1.bmp?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">   '; document.write(str);

 str='  <a target="_blank" class="myoffer" href="http://exat.ru/touronline/tour.php?tpid=918454006_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">974€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель '; document.write(str);

 str=' <span>«SELVAMAR»</span>&nbsp; 3*     </a>   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741499438_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410b5c35c12976bfd38e613250116b395e95/g1275135943835.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741499438_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Калела       <span class="price">1016€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«H.TOP CALELLA PALACE»</span>&nbsp; 4*    '; document.write(str);

 str=' </a>   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741498233_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410bc847fb49b603f19dc841759e6694b8bf/1148460009.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741498233_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">904€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«H.TOP GRAN CASINO ROYAL»</span>&nbsp;'; document.write(str);

 str=' 3*     </a>   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741393736_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru//srcimg/MG1-42-15213034.jpg??H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741393736_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">922€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«H.TOP ALEXIS»</span>&nbsp; 3*     </a> '; document.write(str);

 str='  </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741499570_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410b1557903e55358d97c841759e6694b8bf/1127299692.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=2741499570_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Калела       <span class="price">940€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«H.TOP OLYMPIC»</span>&nbsp; 3*     </a>  '; document.write(str);

 str=' </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer" href="http://exat.ru/touronline/tour.php?tpid=918452615_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb"> '; document.write(str);

 str='      <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif" style="background-image:url(http://exat.ru//srcimg/ispania2.jpg??H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918452615_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">948€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«MARIA DEL MAR»</span>&nbsp; 3*     </a> '; document.write(str);

 str='  </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer" href="http://exat.ru/touronline/tour.php?tpid=918453872_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">'; document.write(str);

 str='       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif" style="background-image:url(http://exat.ru//srcimg/MG1-RT093796.jpg??H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918453872_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Коста Брава       <span class="price">948€</span>       в DBL, c&nbsp;25.02.2012 на &nbsp;8 дней, отель  <span>«SANTA MONICA»</span>&nbsp; 3*     </a>  '; document.write(str);

 str=' </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer" href="http://exat.ru/touronline/tour.php?tpid=918452991_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb"> '; document.write(str);

 str='      <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif" style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410bea7e9e499403c79a3c6b1483887402cfec0434d9a6806c83/1148635329.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>  '; document.write(str);

 str=' </td>    <td valign="top">     <a target="_blank" class="myoffer" href="http://exat.ru/touronline/tour.php?tpid=918452991_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Санта Сусанна       <span class="price">956€</span>       в DBL, c&nbsp;25.02.2012'; document.write(str);

 str=' на &nbsp;8 дней, отель  <span>«MERCURY»</span>&nbsp; 3*     </a>   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918401190_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410b67d71a8be1706d37c841759e6694b8bf/fe.bmp?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918401190_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">1010€</span>       в DBL, c&nbsp;10.03.2012 на &nbsp;8 дней, отель  <span>«FENALS GARDEN»</span>&nbsp; 4*     </a>'; document.write(str);

 str='   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918401314_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410bd1f650fa820b7735613250116b395e95/1215662527.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918401314_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">1014€</span>       в DBL, c&nbsp;03.03.2012 на &nbsp;8 дней, отель  <span>«FLAMINGO & FRIGOLA»</span>&nbsp; 3*    '; document.write(str);

 str=' </a>   </td> </tr>																																																											 <tr>   <td valign="top" align="center" width="100">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918401692_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       <img border="0" src="http://exat.ru/htdocs/myaccount/img/e.gif"'; document.write(str);

 str=' style="background-image:url(http://exat.ru/Hotels/3v90baa5fa9112410b61947f03469e26ff613250116b395e95/1275322950.jpg?W=100?H=100&W=100&CW=100&CH=50);height:50px;width:100px;repeat:no-repeat; ">     </a>   </td>    <td valign="top">     <a target="_blank" class="myoffer"'; document.write(str);

 str=' href="http://exat.ru/touronline/tour.php?tpid=918401692_0&amp;client_id=3v90baa5fa9112410b26098bdadacffca03020a5ff7d0f6cdb">       Испания / Ллорет де Мар       <span class="price">972€</span>       в DBL, c&nbsp;03.03.2012 на &nbsp;8 дней, отель  <span>«FRIGOLA»</span>&nbsp; 3*     </a>  '; document.write(str);

 str=' </td> </tr>																						</tbody></table> 										</div> 																										 																																					 																											 																	 						</td></tr> </table>'; document.write(str);

 str=' </div>'; document.write(str);


function gaCounter(){
				var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	
	this.ids={
		'common': 	'UA-9478516-24',
		'local': 	'UA-9478516-12'
			};
	this.user_id = '77734'
	if(!this.ids['local'] || this.ids['local'].substring(0,2)=='{'+'{')
		this.ids['local']=this.ids['default'];
	var matches=document.location.host.match(/(\.?)([^\.]+)\.([a-z]+)$/);//(.)(exat).(ru)
	if(matches && matches[1]){
			this.host=matches[0];
	}
	
	this.initCounter('local');
	this.initCounter('common');
}

gaCounter.prototype.addOrganic = function() {
	}

gaCounter.prototype.trackPageviews = function(event_source /*SearchResultContext*/, event_type /*view|click*/, banner_id /*hott.ru-egypt*/) {
	var url='/gaTrackPageview/'+event_source+'/'+event_type+'/id/'+banner_id+'/';
	this.trackPageview('local', url);
	this.trackPageview('common', url);
}
gaCounter.prototype.trackPageview = function(name, url) {
	this.customVar(name, 3, 'user_id', '77734', 3);

   
   if(url==undefined)
	  _gaq.push(['exat'+name+'._trackPageview']);
	else
	  _gaq.push(['exat'+name+'._trackPageview',url]);
}

gaCounter.prototype.trackEvents= function(category, action, id){
	this.trackEvent('local', category, action, id);
	this.trackEvent('common', category, action, id);
}
gaCounter.prototype.trackEvent= function(countertype, category, action, id){
	_gaq.push(['exat'+countertype+'._trackEvent', category, action, id]);
}

gaCounter.prototype.customVars= function(index, name, value, opt_scope){
	this.customVar('local', index, name, value, opt_scope);
	this.customVar('common', index, name, value, opt_scope);
}
gaCounter.prototype.customVar= function(countertype, index, name, value, opt_scope){
	_gaq.push(['exat'+countertype+'._setCustomVar', index, name, value, opt_scope]);
}

gaCounter.prototype.initCounter = function(name,url) {
	var id=this.ids[name];
	_gaq.push(['exat'+name+'._setAccount', id]);
	this.addOrganic(name);
	if(this.host){
	_gaq.push(['exat'+name+'._setDomainName', this.host]);
	}

		
	
		this.trackPageview(name, url);
}


var _gaq = _gaq || [];
var gaCounters= gaCounters || new gaCounter();




