// JavaScript Document
//lśćąę

var DebugQueryMode=false; //Show Alerts

var glob_topul=[];
function jTopulSet(ID) {
	try{
		if(!ID || ID==''){ return false; }
		var elements=$JQ('#'+ID).find('li');
		var k=0;
		for(i=0;i<elements.length;i++){
			if($JQ(elements).eq(i).attr('class')!='active'){
				
				glob_topul[k]=$JQ(elements).eq(i).attr('id');
				glob_topul[k][0]='1';
				k+=1;
				$JQ(elements).eq(i).find('a').eq(0).mouseover(function(){
					jTopulOver(this);
				}).mouseout(function(){
					jTopulOut(this);
				});
			}
		}
	}catch(err){ if(DebugQueryMode==true){ alert('jSetTopul: ' +err); } }
}


function jTopulOver(This) {
	try{
		//alert(glob_topul[2][0]);
		//$JQ(This).stop(false,true);
		//$JQ(This).parent().stop(false,true);
		$JQ(This).animate({ marginTop:"0px" }, { queue:false, duration:200 },"swing");
		//$JQ(This).parent().animate({ height:"25px", paddingTop:"0px" },  { queue:false, duration:100 },"swing");
		//$JQ(This).animate({ paddingBottom:"13px" }, { queue:false, duration:100 },"swing");
		
	}catch(err){ if(DebugQueryMode==true){ alert('jTopulOver: ' +err); } }
}

function jTopulOut(This) {
	try{
		$JQ(This).animate({ marginTop:"13px" }, { queue:false, duration:200 },"swing");
		//$JQ(This).stop(false,true);
		//$JQ(This).parent().stop(false,true);
		//$JQ(This).parent().animate({ height:"12px", paddingTop:"13px" }, { queue:false, duration:100 },"swing");
		//$JQ(This).animate({ paddingBottom:"0px" }, { queue:false, duration:100 },"swing");
		
		//alert('Out');
	}catch(err){ if(DebugQueryMode==true){ alert('jTopulOut: ' +err); } }
}


