// Overall Object
var doc = document;
var jse = {};
var key, keyno = undefined;
var num = undefined;
// Settings
jse.s = {};
jse.s.d = { // Defaults
	h : " />", // HTML / XHTML
	f : "index.html", // Default File to use results in
	n : false, // Wether to display Link numbers or not
	ao : "-", // Advanced Input
	ac : "+", // Simple Input
	q : "*", // Search Criteria
	s : "link", // Sort
	b : "asc", // By
	l : 5, // Links
	ps : 3, // Pages
	p : 1, // Page
	top : {
		xtyoz : true,
		pages : true
	},
	bottom : {
		xtyoz : true,
		pages : true
	}
};
jse.s.i = { // IDs
	f : "jse-q",
	a : "jse-q-a",
	q : "jse-q-q",
	g : "jse-q-g",
	n : "jse-q-n",
	s : "jse-q-s",
	b : "jse-q-b",
	l : "jse-q-l",
	p : "jse-q-p",
	t : "jse-q-t",
	r : "jse-q-r"
};
jse.s.n = { // Names
	q : "search",
	n : "number",
	s : "sort",
	b : "by",
	l : "links",
	ps : "pages",
	p : "page"
};
// Settings - IDs - Data Builder
jse.s.i.bd = {
	d : "jse-bd-d",
	c : "jse-bd-c",
	k : "jse-bd-k",
	r : "jse-bd-r"
};
jse.s.i.bd.l = {
	n : "jse-bd-l-n",
	u : "jse-bd-l-u",
	w : "jse-bd-l-w",
	t : "jse-bd-l-t"
};
jse.s.i.bd.i = {
	u : "jse-bd-i-u",
	a : "jse-bd-i-a",
	h : "jse-bd-i-h",
	w : "jse-bd-i-w"
};
// Settings - IDs - Data Updater
jse.s.i.up = {
	f : "jse-u-uf",
	t : "jse-u-ut",
	d : "jse-u-ud",
	r : "jse-u-ur"
};
// Standard Functions
jse.keypress = function (key) {
	if (keyno === 13) {
		doc.getElementById(jse.s.i.f).submit();
	}
	return true;
};
jse.even = function (num) {
	return !(num % 2);
}
