window.moveTo(0,0);
if (document.all) {
	top.window.resizeTo(screen.availWidth,screen.availHeight);
} else if (document.layers||document.getElementById) {
 	if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
 		top.window.outerHeight = screen.availHeight;
 		top.window.outerWidth = screen.availWidth;
 	}
}

function fjs_url_appelant(str_variable_qs) {
	// declare global variables
	var rV = str_variable_qs;
	var str_titre = "Aries Music Downloads - ";  // define the starting string of the document title
	var str_motentier = "";
	var str_motentier1;
	var str_motentier2;
	var str_premierelettre;
	var str_premierelettreU;
	var strKeywordTemp;
	
	if (document.referrer != "") {  
		// if a referring URL was located
		var str_tableau = new Array();  // define array to contain all paramters in referring string
		var qs = document.referrer.substr(document.referrer.indexOf("?")+1);  // define the starting point for the referring string
		qs = qs.split("&");  // split the string using '&' as the delimiter
		for (var i=0; i < qs.length; i++) { // split up the referring string and populate the array
			tmp = qs[i].split("=");
			 str_tableau[tmp[0]] = tmp[1];
		}
		
		if (str_tableau["q"]) {
			var str_motcles = str_tableau["q"];  // assign the keywords value to the q variable
		} else if (str_tableau["terms"]) {
			var str_motcles = str_tableau["terms"];  // assign the keywords value to the terms variable
		} else if (str_tableau["k"]) {
			var str_motcles = str_tableau["k"];  // assign the keywords value to the terms variable
		} else if (str_tableau["p"]) {
			var str_motcles = str_tableau["p"];  // assign the keywords value to the terms variable
		} else {
			var str_motcles = "none";
		}
		
		if (str_motcles == "none") {
			str_motentier1 = "Aries Music Downloads";
			//str_motentier2 = str_motentier1 + ", ";
			str_motentier2 = str_motentier1 + " ";
		} else {
			var str_tableau_motcle = new Array();  // define array to contain individual keywords
			str_motcles = str_motcles.replace(/%20/g,"+");
			str_tableau_motcle = str_motcles.split("+");  // split the keywords using '+' as the delimiter

			
			for (var loop = 0; loop < str_tableau_motcle.length; loop++)	{  // loop through the keywords array
				str_premierelettre = str_tableau_motcle[loop].substr(0,1);  // define the first letter of each keyword
				str_premierelettreU = str_premierelettre.toUpperCase();  // make the first letter of each keyword uppercase
				str_motentier = str_motentier + str_premierelettreU + str_tableau_motcle[loop].substring(1,str_tableau_motcle[loop].length) + " ";  // append the first letter of the keyword to the rest of the word
			}
			str_motentier1 = str_motentier.substring(0,str_motentier.length-1);
			//str_motentier2 = str_motentier1 + ", ";
			str_motentier2 = str_motentier1 + " ";
		}
	} else { 
		// if no referring URL was located
		str_motentier1 = "Aries Music Downloads"; // set variable 1
		//str_motentier2 = str_motentier1 + ", "; // set variable 2 = variable 1 with a comma and space appended to the end
		str_motentier2 = str_motentier1 + " "; // set variable 2 = variable 1 with a comma and space appended to the end
	}
	str_motentier3 = str_motentier1.toUpperCase();
	str_motentier4 = str_motentier2.toUpperCase();
	document.title = str_titre + str_motentier1;  // change the page title
	if (rV == 1) {
		return str_motentier1;
	} else if (rV == 2) {
		return str_motentier2;
	} else if (rV == 3) {
		return str_motentier3;
	} else if (rV == 4) {
		return str_motentier4;
	}
 
}
