
var getParams = new Object();

function getStrings() {
	//alert(getParams['strings']);
	return(getParams['strings']);
} 

function getOffset() {
	return(getParams['offset']);
} 

function getMode() {
	return(getParams['tune']);
} 

function parseGet()
{
	
	if ( !window.location.search ) {
		return;
	}

	var urlquery=window.location.search.split("?");
	//alert(urlquery[1]);

	if ( urlquery[1] ) {
		var urlterms=urlquery[1].split("&");
		var len = urlterms.length;
		for ( var i = 0; i < len; i++ ) {
			var ps = urlterms[i].split("=");
			var name = ps[0];
			if ( ps[1] ) {
				getParams[name] = decodeURIComponent(ps[1].replace("/+/g", ' '));
			} else {
				getParams[name] = null;
			}
			//alert(name);
			//alert(getParams[name]);

		}
	}
}

function ol() 
{
	parseGet();
}

window.onload=ol;

