var $j = jQuery.noConflict();
$j(".wrapper").css({backgroundColor:"#eceadb"});
foloact = 0;
$j(".folog").live("click", function(){	
if(foloact == 0){
$j(".wrapper").prepend('<div class="logforma"><form name="loginforma" method="post" autocomplete="off"><div class="f_sn"><div class="f_lb">username:</div> <div class="f_in"><input name="username" type="text" size="17" /></div></div><div class="f_sn"><div class="f_lb">password:</div> <div class="f_in"><input name="password" type="password" size="17" /></div></div><div class="cl"> </div><input name="login" type="submit" value="login" /><input name="logincancel" class="offlgfrm" type="button" value="cancel" /></form></div>');
foloact = 1;
}
}); 
$j(".offlgfrm").live("click", function(){	
$j(".logforma").remove();
foloact = 0;
}); 
$j(".cright").live("click", function(){	
$j("body").prepend('<div class="entinfo"></div>');
visina = $j(document).height();
$j(".entinfo").css({height:visina+'px'});
new Ajax.Request("/proces.php",{method:'post',postBody:'showterms=1',onComplete:termsshowme});
});
function termsshowme(req){	
termsshowme_akt = req.responseText;
$j(".entinfo").prepend(termsshowme_akt);
}
$j(".clterms").live("click", function(){								
$j(".entinfo").css({display:"none"});
$j(".entinfo").remove();
$j(".tottermscc").css({display:"none"});
$j(".tottermscc").remove();
});
