//jacascript function scripts
//created by Anthony Caraway
//Site: http://www.mobiussoft.com

//these functions uses prototype.js and scriptaculous.j
//make sure to load them first in order to use these functions.

//function for calling a page into a div box.
//siteurl = page to load
//divname = target div content to change
function LoadPage(siteurl, divname){
	Effect.BlindUp(divname, {duration: 0.1, queue: {position: 'start', scope: divname}});
	new Ajax.Request(siteurl, 
		{
			method: 'get',
			onComplete: function(pageresult){
				var response = pageresult.responseText || "no response text";
				$(divname).innerHTML = response;
				Effect.BlindDown(divname, {queue: {position: 'end', scope: divname}});
				// alert('everything should be loaded now...');
			},
			onFailure: function(){
				alert('Something is wrong with the programmers brain... I apologize for his dumbness...');
			}
		});
}


