<!--
		var IsOverImgAdLink = false;
		var WhichStarLoaded = 0;
		var IsMenuLoaded = false;
		var IsMsIE;
		var IsToolTipVisible = false;
		var ItemsPerRow = 4;
		
		if ((navigator.appName == "Microsoft Internet Explorer") ? true : false)
		{
				IsMsIE = true;
		}
		else
		{
				IsMsIE = false;
		}
		
// XMLHtttpRequest -------------------------------- Start
		var objXMLCounter;
		var objXMLLastNews;
		var objXMLMainRequest;
		var objXMLWeather;
		var MainInnerHTML;
		var CounterInnerHTML;
		var LatestNewsInnerHTML;
		var WeatherInnerHTML;
		var IEBrowserVer = "Msxml2.XMLHTTP";
		var XMLLoadingTag = '<p dir="ltr"><img border="0" src="images/Loading.gif" width="16" height="16"><br><font color="#666666" face="Arial"><span style="font-size: 7pt">Loading...</span></font></p>';
		
		if (IsMsIE == true)
		{
				if (navigator.appVersion.indexOf("MSIE 5.5") >= 0)
				{
						IEBrowserVer = "Microsoft.XMLHTTP";
				}
				
				objXMLCounter = new ActiveXObject(IEBrowserVer);
				objXMLLastNews = new ActiveXObject(IEBrowserVer);
				objXMLMainRequest = new ActiveXObject(IEBrowserVer);
				objXMLWeather = new ActiveXObject(IEBrowserVer);
		}
		else	// FireFox, Opera, Safari
		{
				objXMLCounter = new XMLHttpRequest();
				objXMLLastNews = new XMLHttpRequest();
				objXMLMainRequest = new XMLHttpRequest();
				objXMLWeather = new XMLHttpRequest();
		}
		
		function RequestPage(vPageID, vAddition)
		{
				if (vPageID == 1 || vPageID == 10 || vPageID == 12 || vPageID == 14)
				{
						window.scrollTo(document.body.scrollWidth, 0);
						
				}
				
				if (objXMLMainRequest.readyState == 0 || objXMLMainRequest.readyState == 4)
				{
						MainInnerHTML = TD_MainRequest.innerHTML;
						TD_MainRequest.innerHTML = '<div align="center"><br><br><br><br><br><br><table id="tblRequest" style="border:3px double #FFFFFF; width: 250px; height: 100px; font-size: 8pt; color: #000058; border-collapse: collapse; padding-left:3px; padding-right:3px; padding-top:2px; padding-bottom:2px" cellpadding="0" bgcolor="#DBDBDB"><tr><td style="text-align: center; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#DBDBDB, endColorstr=#EBEBEB)"><p dir="ltr"><img border="0" src="images/Loading.gif" width="16" height="16"><br><font color="#666666" face="Arial"><span style="font-size: 7pt">Loading...<br>Sending your request</span></font></p></td></tr></table></div>';
						objXMLMainRequest.open("GET", "./PageRequest.asp?RequestID=" + vPageID + vAddition);
						objXMLMainRequest.onreadystatechange = MainCallBack;
						
						try
						{
								objXMLMainRequest.send(null);
						}
						catch (e)
						{
								TD_MainRequest.innerHTML = MainInnerHTML;
						}
				}
		}
		
		function MainCallBack()
		{
				if (objXMLMainRequest.readyState == 4)
				{
						if (objXMLMainRequest.status == 200)
						{
								TD_MainRequest.innerHTML = objXMLMainRequest.responseText;
						}
						else
						{
								if (MainInnerHTML !== '&nbsp;' || MainInnerHTML !== '')
								{
										TD_MainRequest.innerHTML = MainInnerHTML;
								}
						}
				}
		}
		
		function RefreshCounter(vPgID)
		{
				if (objXMLCounter.readyState == 0 || objXMLCounter.readyState == 4)
				{
						CounterInnerHTML = TD_Counter.innerHTML;
						TD_Counter.innerHTML = '<table id="tblCounterElements" style="padding: 2px 3px 2px 3px; width: 100%; height: 100%; font-size: 8pt; color: #000058; border-collapse: collapse" cellspacing="0" cellpadding="0"><tr><td style="text-align: center; padding-bottom: 20px;">' + XMLLoadingTag + '</td></tr></table>';
						objXMLCounter.open("GET", "./modules/basCounter.asp?PgID=" + vPgID);
						objXMLCounter.onreadystatechange = CounterCallBack;
						
						try
						{
								objXMLCounter.send(null);
						}
						catch (e)
						{
								TD_Counter.innerHTML = CounterInnerHTML;
						}
						
						setTimeout('RefreshCounter("' + vPgID + '")', 20000);
				}
		}
		
		function CounterCallBack()
		{
				if (objXMLCounter.readyState == 4)
				{
						if (objXMLCounter.status == 200)
						{
								TD_Counter.innerHTML = objXMLCounter.responseText;
						}
						else
						{
								if (CounterInnerHTML !== '&nbsp;' || CounterInnerHTML !== '')
								{
										TD_Counter.innerHTML = CounterInnerHTML;
								}
						}
				}
		}
		
		function RefreshLatestNews()
		{
				if (objXMLLastNews.readyState == 0 || objXMLLastNews.readyState == 4)
				{
						LatestNewsInnerHTML = TD_LatestNews.innerHTML;
						TD_LatestNews.innerHTML = '<img src="images/IMG03.gif" alt="" width="100%" height="2px"><br><br style="font-size:5px"><table id="tblLatestNewsElements" style="padding: 2px 3px 2px 3px; width: 100%; height: 100%; font-size: 8pt; color: #000058; border-collapse: collapse" cellspacing="0" cellpadding="0"><tr><td style="text-align: center; padding-bottom: 20px;">' + XMLLoadingTag + '</td></tr></table>';
						objXMLLastNews.open("GET", "./modules/basLatestNews.asp");
						objXMLLastNews.onreadystatechange = LatestNewsCallBack;
						
						try
						{
								objXMLLastNews.send(null);
						}
						catch (e)
						{
								TD_LatestNews.innerHTML = LatestNewsInnerHTML;
						}
						
						setTimeout('RefreshLatestNews()', 40000);
				}
		}
		
		function LatestNewsCallBack()
		{
				if (objXMLLastNews.readyState == 4)
				{
						if (objXMLLastNews.status == 200)
						{
								TD_LatestNews.innerHTML = objXMLLastNews.responseText;
						}
						else
						{
								if (LatestNewsInnerHTML !== '&nbsp;' || LatestNewsInnerHTML !== '')
								{
										TD_LatestNews.innerHTML = LatestNewsInnerHTML;
								}
						}
				}
		}
// XMLHtttpRequest -------------------------------- End

		function MenuMouseOver(vTD, vBorderColor, vDivMenu)
		{
				if(IsMenuLoaded == true)
				{
						MenuMouseDown(vTD, vDivMenu);
				}
				else
				{
						if (IsMsIE == true)
						{
								vTD.filters[0].enabled = 'true';
						}
						
						vTD.style.backgroundColor = '#FFF5CC';
						vTD.style.border = '1px solid ' + vBorderColor;
				}
		}
		
		function MenuMouseOut(vTD, vBorderColor)
		{
				if (IsMsIE == true)
				{
						vTD.filters[0].enabled = 'false';
				}
				
				vTD.style.backgroundColor = '';
				vTD.style.border = '1px solid ' + vBorderColor;
		}
		
		function MenuMouseDown(vTD, vDivMenu)
		{
				vTD.onmouseout;
				SetMenuPosition(Div_Menu1, IMG01, 14);
				SetMenuPosition(Div_Menu2, IMG02, 14);
				SetMenuPosition(Div_Menu3, IMG03, 20);
				SetMenuPosition(Div_Menu4, IMG04, 15);
				SetMenuPosition(Div_Menu5, IMG05, 14);
				SetMenuPosition(Div_Menu6, IMG06, 14);
				SetMenuPosition(Div_Menu7, IMG07, 26);
				SetMenuPosition(Div_Menu8, IMG08, Div_Menu8.clientWidth - IMG08.clientWidth - 6);
				SetMenuPosition(Div_Menu9, IMG09, 16);
				SetMenuPosition(Div_Menu10, IMG10, Div_Menu10.clientWidth - IMG10.clientWidth - 6);
				SetMenuPosition(Div_Menu11, IMG11, Div_Menu11.clientWidth - IMG11.clientWidth - 8);
				SetMenuPosition(Div_Menu12, IMG12, Div_Menu12.clientWidth - IMG12.clientWidth - 10);
				SetMenuPosition(Div_Menu13, IMG13, Div_Menu13.clientWidth - IMG13.clientWidth - 4);
				SetMenuPosition(Div_Menu14, IMG14, 14);
				SetMenuPosition(Div_Menu15, IMG15, 14);
				SetObjectFilter(vDivMenu, 'visible');
				vDivMenu.focus();
				IsMenuLoaded = true;
		}
		
		function SetMenuPosition(vMenu, vImage, vleftMargine)
		{
				var BOW0 = document.body.offsetWidth;
				var BSW0 = document.body.scrollWidth;
				var BSL0 = document.body.scrollLeft;
				var ScrolBarWidth0 = BOW0 - document.body.clientWidth;
				var oBndRct0 = vImage.getBoundingClientRect();
				
				vMenu.style.right = BOW0 - (oBndRct0.left + vImage.clientWidth) - vleftMargine + (BSW0 - BOW0) - BSL0 + ScrolBarWidth0 - 2;
				
				//=======================================
				var BST0 = document.body.scrollTop;
				
				vMenu.style.top = oBndRct0.top + BST0 - 10;
		}
		
		function HideMenu(vDivMenu)
		{
				SetObjectFilter(vDivMenu, 'hidden');
		}
		
		function PanelMouseCapture(vTD, vFilter, vBorderColor, vBGColor)
		{
				if (IsMsIE == true)
				{
						vTD.filters[0].enabled = vFilter;
				}
				
				vTD.style.backgroundColor = vBGColor;
				vTD.style.border = '1px solid ' + vBorderColor;
		}
		
		function DisplayPanel(vTD, vDivPanel, vFilter)
		{
				vTD.onmouseout;
				SetObjectFilter(vDivPanel, vFilter);
				vDivPanel.focus();
		}
		
		function SetAdvSearchPosition()
		{
				var BOW1 = document.body.offsetWidth;
				var BSW1 = document.body.scrollWidth;
				var BSL1 = document.body.scrollLeft;
				var ScrolBarWidth1 = BOW1 - document.body.clientWidth;
				var oBndRct = imgReturnLeft.getBoundingClientRect();
				var LeftMargin = oBndRct.left - ScrolBarWidth1 + BSL1; // It's always equal to 7
				
				Div_AdvSearch.style.right = BOW1 - (oBndRct.left + Div_AdvSearch.clientWidth) + (BSW1 - BOW1) - BSL1 + ScrolBarWidth1 - LeftMargin;
				//=======================================
				var BST1 = document.body.scrollTop;
				
				Div_AdvSearch.style.top = (oBndRct.top + imgReturnLeft.clientHeight) + BST1;
		}
		
		function SetAdminAdsPosition()
		{
				var BOW2 = document.body.offsetWidth;
				var BSW2 = document.body.scrollWidth;
				var BSL2 = document.body.scrollLeft;
				var ScrolBarWidth2 = BOW2 - document.body.clientWidth;
				
				if (BSW2 == Div_AdminAds.clientWidth)
				{
						Div_AdminAds.style.right = (BOW2 - Div_AdminAds.clientWidth + ScrolBarWidth2) / 2;
				}
				else
				{
						Div_AdminAds.style.right = (BOW2 - Div_AdminAds.clientWidth + ScrolBarWidth2) / 2 + BSW2 - BOW2 - BSL2;
				}
		}
				
		var I = 0;
		var IsOpenAdminAds = true;
		
		function DisplayAdminAds(IsSWF)
		{
				if (IsOpenAdminAds == true)
				{
						if (I > -(Div_AdminAds.clientHeight - 28) && IsSWF == false)
						{
								I = I - 10;
								Div_AdminAds.style.top = I;
								setTimeout('DisplayAdminAds(false)', 1);
						}
						else
						{
								Div_AdminAds.style.top = -(Div_AdminAds.clientHeight - 28);
								btnAdminArrow.style.background = "#B3D0F5 url('images/IMG31.gif') no-repeat center";
								IsOpenAdminAds = false;
								Div_AdminAds.filters[0].enabled = 'false';
						}
				}
				
				else
				{
						if (I < 0 && IsSWF == false)
						{
								I = I + 10;
								Div_AdminAds.style.top = I;
								setTimeout('DisplayAdminAds(false)', 1);
						}
						else
						{
								Div_AdminAds.style.top = 0;
								btnAdminArrow.style.background = "#B3D0F5 url('images/IMG32.gif') no-repeat center";
								IsOpenAdminAds = true;
								Div_AdminAds.filters[0].enabled = 'true';
						}
				}
		}
		
		function SetPanelIconPosition(vPanelIcon, vPanelImg)
		{
				vPanelIcon.style.top = vPanelImg.getBoundingClientRect().top - vPanelIcon.clientHeight + document.body.scrollTop + 20;
				vPanelIcon.style.visibility = 'visible';
		}
		
		function ShowToolTip(vTtText, vTtTitle)
		{
				ToolTipText.innerHTML = vTtText;
				ToolTipTitle.innerText = vTtTitle;
				
				Div_ToolTip.style.top = event.y + document.body.scrollTop + 20;
				Div_ToolTip.style.right = document.body.offsetWidth - event.x + (document.body.scrollWidth - document.body.clientWidth) - document.body.scrollLeft;
				
				if (document.body.offsetWidth - (Div_ToolTip.offsetLeft + Div_ToolTip.clientWidth) + Div_ToolTip.clientWidth + 10 > document.body.offsetWidth + (document.body.scrollWidth - document.body.clientWidth) - document.body.scrollLeft)
				{
						Div_ToolTip.style.right = document.body.offsetWidth - Div_ToolTip.clientWidth - 10 + (document.body.scrollWidth - document.body.clientWidth) - document.body.scrollLeft - (document.body.offsetWidth - document.body.clientWidth);
				}
				
				if (Div_ToolTip.offsetTop + Div_ToolTip.clientHeight + 10 > document.body.offsetHeight + document.body.scrollTop)
				{
						Div_ToolTip.style.top = document.body.offsetHeight - Div_ToolTip.clientHeight - 10 + document.body.scrollTop - (document.body.offsetHeight - document.body.clientHeight);
				}

				if (Div_ToolTip.style.visibility == 'hidden')
				{
						SetObjectFilter(Div_ToolTip, 'visible');
				}
				
				IsToolTipVisible = true;
		}
		
		function HideToolTip()
		{
				if (IsToolTipVisible == false)
				{
						SetObjectFilter(Div_ToolTip, 'hidden');
				}
 		}
 		
 		function ResetToolTipPos()
		{
				Div_ToolTip.style.top = 0;
				Div_ToolTip.style.right = 0; 
 		}
		
		function OpenNews(vNewsID)
		{
				window.open('./ViewLatestNews.asp?LNID=' + vNewsID, '_blank', '', false);
		}
		
		function SetObjectFilter(vSofObj, vSofVisibility)
		{
				if (IsMsIE == true)
				{
						vSofObj.filters[0].Apply();
						vSofObj.style.visibility = vSofVisibility;
						vSofObj.filters[0].Play();
				}
				else
				{
						vSofObj.style.visibility = vSofVisibility;
				}
		}
		
		function SetShadowPosition()
		{
				Div_Shadow.style.width = document.body.clientWidth - 1;
				Div_Shadow.style.height = document.body.clientHeight;
				
				if (document.body.scrollWidth == Div_Shadow.clientWidth)
				{
						Div_Shadow.style.right = (document.body.offsetWidth - Div_Shadow.clientWidth + (document.body.offsetWidth - document.body.clientWidth)) / 2;
				}
				else
				{
						Div_Shadow.style.right = (document.body.offsetWidth - Div_Shadow.clientWidth + (document.body.offsetWidth - document.body.clientWidth)) / 2 + document.body.scrollWidth - document.body.offsetWidth - document.body.scrollLeft;
				}
				
				Div_Shadow.style.top = (document.body.clientHeight - Div_Shadow.clientHeight) / 2 + document.body.scrollTop
		}
		
		function LoadStar(vIMG)
		{
				if (event.offsetX < 17)
				{
						if (WhichStarLoaded !== 1) {vIMG.src = './images/Star-1.gif';}
						
						WhichStarLoaded = 1;
				}
				else if (event.offsetX < 2 * 16 + 1)
				{
						if (WhichStarLoaded !== 2) {vIMG.src = './images/Star-2.gif';}
						WhichStarLoaded = 2;
				}
				else if (event.offsetX < 3 * 16 + 1)
				{
						if (WhichStarLoaded !== 3) {vIMG.src = './images/Star-3.gif';}
						WhichStarLoaded = 3;
				}
				else if (event.offsetX < 4 * 16 + 1)
				{
						if (WhichStarLoaded !== 4) {vIMG.src = './images/Star-4.gif';}
						WhichStarLoaded = 4;
				}
				else if (event.offsetX < 5 * 16 + 1)
				{
						if (WhichStarLoaded !== 5) {vIMG.src = './images/Star-5.gif';}
						WhichStarLoaded = 5;
				}
				else if (event.offsetX < 6 * 16 + 1)
				{
						if (WhichStarLoaded !== 6) {vIMG.src = './images/Star-6.gif';}
						WhichStarLoaded = 6;
				}
				else if (event.offsetX < 7 * 16 + 1)
				{
						if (WhichStarLoaded !== 7) {vIMG.src = './images/Star-7.gif';}
						WhichStarLoaded = 7;
				}
				else if (event.offsetX < 8 * 16 + 1)
				{
						if (WhichStarLoaded !== 8) {vIMG.src = './images/Star-8.gif';}
						WhichStarLoaded = 8;
				}
				else if (event.offsetX < 9 * 16 + 1)
				{
						if (WhichStarLoaded !== 9) {vIMG.src = './images/Star-9.gif';}
						WhichStarLoaded = 9;
				}
				else if (event.offsetX < 10 * 16 + 1)
				{
						if (WhichStarLoaded !== 10) {vIMG.src = './images/Star-10.gif';}
						WhichStarLoaded = 10;
				}
				
				fntAdsRank.innerText = WhichStarLoaded;
		}
		
		function RequestWeather(vCityCode)
		{
				if (objXMLWeather.readyState == 0 || objXMLWeather.readyState == 4)
				{
						WeatherInnerHTML = TDWeather.innerHTML;
						TDWeather.innerHTML = '<p dir="ltr"><img border="0" src="images/Loading.gif" width="16" height="16"><br><font color="#666666" face="Arial"><span style="font-size: 7pt">Loading...<br>Sending your request</span></font></p>';
						objXMLWeather.open("GET", "./WeatherRequest.asp?CityCode=" + vCityCode);
						objXMLWeather.onreadystatechange = WeatherCallBack;
						
						try
						{
								objXMLWeather.send(null);
						}
						catch (e)
						{
								TDWeather.innerHTML = WeatherInnerHTML;
						}
				}
		}
		
		function WeatherCallBack()
		{
				if (objXMLWeather.readyState == 4)
				{
						if (objXMLWeather.status == 200)
						{
								TDWeather.innerHTML = objXMLWeather.responseText;
						}
						else
						{
								if (WeatherInnerHTML !== '&nbsp;' || WeatherInnerHTML !== '')
								{
										TDWeather.innerHTML = WeatherInnerHTML;
								}
						}
				}
		}
//-->
