function loginPlz() {
	new Effect.BlindDown(document.getElementById('loginplzdiv'), {queue: 'front', duration: 0.4});
	new Effect.BlindUp(document.getElementById('loginplzdiv'), {queue: 'end', delay: 3.0, duration: 0.75});
}
function showReply() {
	new Effect.toggle($(document.getElementById('hiddenreply')),'blind');
}
function showComment(id) {
	new Effect.toggle(id,'blind');
}
function changeNavOn(name, where) {
	where.src = '/images/'+name+'_on.jpg';
}
function changeNavOff(name, where) {
	where.src = '/images/'+name+'_off.jpg';
}

//preload images
function preload(imageArray) {
	var imgObj = new Image();
	for(var i=0;i<imageArray.length;i++) {
		imgObj.src = imageArray[i];
	}
}
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=500,left = 690,top = 275');");
}
function popUpInvite(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=500,left = 690,top = 275');");
}
function launchToolbar() {
	Effect.BlindDown('bottombar', { duration: 0.25 });
}
function showIMS(elmnt) { 
	new Effect.toggle(elmnt, 'appear', { duration: 0.25 }); 
	new Ajax.Request( '/global/getims.php', {
    onSuccess: function( transport ) {
    	$('myimlist').innerHTML=transport.responseText;
    	}
    } );

}
function addStatus() {
	if($('statm').value != "") {
		$('submitstat').disabled = true;
		$('submitstat').value = "Adding...";
 	 	new Ajax.Request( '/global/statusupdate.php', {
 	 	   method: 'post',
 	 	   parameters: $('statusform').serialize(true),
  	 	  onSuccess: function( transport ) {
  	 	    $('submitstat').value = "Updated!";
  	 	  }
  		} );
  	}
}