﻿function usrRegForm() {
	$('#topForm').html("Norėdami sukurti naują vartotoją, įveskite el. pašto adresą: <input type='text' name='newUserReg'>  <input type='submit' value='Sukurti'> | <a href='#' onclick='usrLogForm();'>Prisijungti</a>");
}

function usrRemForm() {
	$('#topForm').html("Norėdami prisiminti slaptažodį, įveskite el. pašto adresą: <input type='text' name='userRemPass'>  <input type='submit' value='Priminti'> | <a href='#' onclick='usrLogForm();'>Prisijungti</a>");
}
function usrLogForm() {
	$('#topForm').html("Prisijungimo vardas: <input type='text' name='dlogin'> Slaptažodis: <input type='password' name='dpasswd'>  <input type='submit' value='Prisijungti'>");
}



$(function() {
	$(document).ready(function() {
	
	
	
	
	
	
		$("#topmenu").superfish();

	
		$.tablesorter.defaults.widgets = ['zebra'];
		$(".tablesorter").tablesorter(); 
		bubbleInfo();
		$(".lightbox").lightbox();
		
		simpleTreeCollection = $('.simpleTree').simpleTree({
		autoclose: false,
		afterClick:function(node){
			//alert("text-"+$('span:first',node).text());
		},
		afterDblClick:function(node){
			window.location =$('a:first',node).attr("href");
			//$('#trakeris').html($('a:first',node).attr("href"));
		},
		afterMove:function(destination, source, pos){
			$('#trakeris').html($.post("http://mesdarom.lt/modules/adm/users_groups/ajax.php", {dest:destination.attr('id'), src:source.attr('id'), pos:pos}));
			//$('#trakeris').html("destination-"+destination.attr('id')+" source-"+source.attr('id')+" pos-"+pos);
		},
		afterAjax:function()
		{
			//alert('Loaded');
		},
		animate:true
		//docToFolderConvert:true
		});

		
		
	});
});
