
function dfRound()
{
		
		var IE = document.all?true:false; //detekcja przeglądarki
		
		if (!IE)
		{
				var body = $(document.body);
				var round = body.getElementsByClass("round", "div");
				
				for (var r in round) 
				{
							var t = '<div class="t"><div class="tl"></div><div class="tr"></div></div>';
							var b = '<div class="b"><div class="bl"></div><div class="br"></div></div>';
							round[r].innerHTML = t + round[r].innerHTML + b;
				}
				
				if (!$("columnRight")) $("columnLeft").style.width = '998px';
		}

}

function fxRound()
{		
    /*
		var body = $(document.body);
		var objSectionLeft  = body.getElementsByClass("sectionLeft", "div");
		var objSectionRight = body.getElementsByClass("sectionRight", "div");
		
		if ( objSectionLeft[0].offsetHeight > objSectionRight[0].offsetHeight )
		{
				 objSectionLeft[0].style.borderRight  = '1px solid #EFEFEF';
				 objSectionLeft[0].style.paddingRight = '20px';
				 objSectionRight[0].style.border = 'none';
		}
			else
		{
				 objSectionLeft[0].style.borderRight = 'none';
				 objSectionLeft[0].style.paddingRight = '0px';
				 objSectionRight[0].style.borderLeft = '1px solid #EFEFEF';
				 objSectionRight[0].style.paddingLeft = '20px';
		}		
		*/
		
		if ($("fxCategories")) 	  mint.fx.Round("fxCategories", "all", "small", true);		
		if ($("search")) 		 		  mint.fx.Round("search", "all", "small", true);
		if ($("fxTopper")) 	  	  mint.fx.Round("fxTopper", "br bl", "small", true);
		if ($("fxOgloszenia"))    mint.fx.Round("fxOgloszenia", "tl tr", "small", true);
		if ($("fxSectionName"))   mint.fx.Round("fxSectionName", "all", "small", true);
		if ($("accountUserName")) mint.fx.Round("accountUserName", "all", "small", true);
		if ($("fxKatalogFirm"))   mint.fx.Round("fxKatalogFirm", "tl tr", "small", true);
		if ($("fxKonto"))   			mint.fx.Round("fxKonto", "tl tr", "small", true);
		if ($("fxWiadomosci"))   	mint.fx.Round("fxWiadomosci", "tl tr", "small", true);
		if ($("layerNewsletter")) mint.fx.Round("layerNewsletter", "all", "small", true);
		if ($("fxFooter")) 			  mint.fx.Round("fxFooter", "all", "small", true);
		if ($("fxHelp")) 				  mint.fx.Round("fxHelp", "all", "small", true);
		if ($("fxMenu"))
		{
				mint.fx.Round("fxMenu", "all", "small", true);
				if ($("fxSelected")) mint.fx.Round("fxSelected", "tl bl", "small", true);
		}
		if ($("fxUp")) 				    		 mint.fx.Round("fxUp", "all", "small", true);
		if ($("fxDown")) 				  		 mint.fx.Round("fxDown", "all", "small", true);
		if ($("fxContent"))			  		 mint.fx.Round("fxContent", "all", "small", true);		
		if ($("fxTabCities")) 				 mint.fx.Round("fxTabCities", "tl tr", "small", true);
		if ($("fxCity")) 							 mint.fx.Round("fxCity", "tl tr", "small", true);
		if ($("fxResults")) 					 mint.fx.Round("fxResults", "all", "small", true);
		if ($("fxNavigator")) 				 mint.fx.Round("fxNavigator", "all", "small", true);
		
}

function stRound()
{			
			mint.fx.Round("layerStatus", "all", "small", true);
}

function eventTab(t)
{
		//var objAhref = $(t).down('a').getAttribute('rel');
		var obj = t.getAttribute('id');
		
		t.style.backgroundImage = 'url("gfx/btn' + obj + '-light.png")';
		t.onmouseout = function(){
					t.style.backgroundImage = 'url("gfx/btn' + obj + '.png")';
		}
}

function eventSuggest(t)
{		
		var objSuggest = $("SuggestList");
		var strSuggest = t.value;		
		var req = mint.Request();
	  
	  if ( strSuggest.length > 0 )
		{
					req.OnSuccess = function()
					{			
						var grid = mint.gui.CreateGridWidget("grid");
						grid.selectClass = "select";
						grid.multiSelect = false;
						grid.SetSelective();
												
						grid.OnSelect = function(row) 
						{
								t.value = row.cells[0].innerHTML;								
								objSuggest.style.display = 'none';
						}
					}
					
					objSuggest.style.display = 'block';
					
					req.AddParam("strSuggest", strSuggest);
					req.Send("ajax/miasta.php", "SuggestList");
		} else objSuggest.style.display = 'none';
}

function eventTdOver(t)
{
		t.style.backgroundColor = '#FAFAFA';
		
		t.onmouseout = function()
		{
				t.style.backgroundColor = '#FFFFFF';
		}
}


function BlankText( color )
{
					var body = $(document.body);
					var aHrefs = body.getElementsByClass("BlankText", "a");
					
					for (var i in aHrefs)
					{
							 if (aHrefs[i].style.color == 'transparent')
							 {
									 if ( color == null ) aHrefs[i].style.color = '#0000DD';
									 else aHrefs[i].style.color = color;
							 } else aHrefs[i].style.color = 'transparent';
					}
					if ( !tId )
					{
								var tId = setTimeout("BlankText()", 500);
					}
}

