$(document).ready(function(){


		// in jquery_globals
		MM_preloadImages('aboutus_over.png','contact_over.png','currency_over.png','links_over.png','localfunds_over.png','offshorefunds_over.png','weeklymarkets_over.png','portfolios_over.png','blogging_over.png','providers_over.png','home_over.png')
		
		Ajq_fetchhomepic ()

});

function Ajq_fetchhomepic () {
//   var poststr = "username="+$('#ajxusn').val()+"&password="+$('#ajxpwd').val()
		$.ajax({
   			type: "POST",
   			url: "ajq_gethomepic.php",
//			data: poststr,
			dataType: "json",
   			success: function(jr){
				if (jr.respz.mainpicpath!='nil') {
					$('#homepic').html('<img id="homeimg" src="'+jr.respz.mainpicpath+'" alt="main picture"  title="<span class=ttip>'+jr.respz.txt+'</span>">')
					$('#homeimg').Tooltip({showURL: false})
					if ($('#homeimg').width()>390) $('#homeimg').width(390)
					$('#moverpic').show()
				}
   			}
 		});
}

