//
// Configuration
//
var config 					= 	new Array();
config['use_charset'] 				= 	"iso-8859-1";
config['AJAXed_Online'] 			=	true;
config['AJAXed_ShowOverlay'] 			=	false;
config['AJAXed_Poll_Menu'] 			=	true;
config['AJAXed_Poll_Title'] 			=	true;
config['AJAXed_Poll_Options'] 			=	true;
config['AJAXed_Poll_Max'] 			=	"15";
config['AJAXed_Poll_count'] 			=	"0";
config['AJAXed_Poll_counted'] 			=	"0";
config['AJAXed_Poll_Adding'] 			=	false;
config['AJAXed_Poll_View'] 			=	null;
config['AJAXed_Poll_Viewed'] 			=	null;
config['AJAXed_Post_Title'] 			=	true;
config['AJAXed_User_List'] 			=	true;
config['AJAXed_User_Selected']			=	null;
config['AJAXed_User_Power']			=	null;
config['AJAXed_User_Typed']			=	null;
config['AJAXed_User_Max']			=	null;
config['AJAXed_User_mode']			=	false;
config['AJAXed_Username_Check'] 		=	true;
config['AJAXed_Password_Check'] 		=	true;
config['AJAXed_Is_Loading']			=	false;
config['AJAXed_Topic_ID']			=	null;
config['AJAXed_Post_ID']			=	null;
config['AJAXed_Class_1']			=	"";
config['AJAXed_Class_2']			=	"";
config['AJAXed_KeyUp']				=	null;
config['AJAXed_base']				=	(location.search.substring(1)).split('&');
//
// Language
//
var lang 					= 	new Array();
lang['AJAXed_Error']				=	"There was an error in AJAXed.";
lang['AJAXed_Loading']				=	"&nbsp;Loading...";
lang['AJAXed_Check_User_1']			= 	"This username has not been takin yet! ";
lang['AJAXed_Check_True']			= 	"The passwords you entered match! ";
lang['AJAXed_Check_False']			= 	"The passwords you entered didn't match! ";
lang['AJAXed_Delete_Post']			=	"Are you sure you want to delete this post?";
lang['AJAXed_Delete_Confirm']			=	"Are you sure you want to delete this topic and its posts?";
lang['AJAXed_Poll_Update']			= 	"Update";
lang['AJAXed_Poll_Confirm']			=	"Are you sure you want to delete this poll option?";
lang['AJAXed_Poll_Delete']			=	"Delete";
lang['AJAXed_Poll_Many']			=	"You have tried to enter too many poll options.";
lang['AJAXed_Poll_Option']			= 	"Poll option";
lang['AJAXed_Poll_Select']			=	"You must select a poll option before casting your vote.";
lang['AJAXed_Timed_Out']			=	"AJAXed has timed out! Please try again later.";
lang['AJAXed_Topic_Move']			= 	"<b>Moved:</b> ";
lang['AJAXed_Topic_Title']			=	"Zhentor Online:: View topic - ";
//
// Image
//
var image 					= 	new Array();
image['AJAXed_Wrong']				=	"templates/images/AJAXed_red_X.png";
image['AJAXed_Correct']				=	"templates/images/AJAXed_green_Check.png";
image['spacer']					=	"./images/spacer.gif";
//
// Page Setup
//
var page 					= 	new Array();
page['clientX']					= 	null;
page['clientY']					= 	null;
page['clientWidth']				= 	null;
page['clientHeight']				= 	null;
page['scrollLeft']				=	null;
page['scrollTop']				=	null;
page['scrollWidth']				=	null;
page['scrollHeight']				=	null;
//
// Template
//
function poll(id){
		var template 			= 	'<span class="genmed"><input type="text" name="poll_option_text[' + id + ']" size="50" class="post" maxlength="255" value="' + document.post.add_poll_option_text.value + '" /></span> &nbsp;<input type="submit" name="edit_poll_option" value="' + lang['AJAXed_Poll_Update'] + '" class="liteoption" /> <input type="submit" onClick="kc(this); return false;" name="del_poll_option[' + id + ']" value="' + lang['AJAXed_Poll_Delete'] + '" class="liteoption" />';	return template;
}
//
// Url Settings
//
var url 					= 	new Array();
for(i = 0; i < config['AJAXed_base'].length; i++){
  sub 						= config['AJAXed_base'][i].indexOf('=');
  url[config['AJAXed_base'][i].substring(0, sub).toLowerCase()] = unescape(config['AJAXed_base'][i].substring(sub + 1));
}
