var arr = getUrlArray();
		
s.prop4=getUrlId(window.location.search.substring(1));

var arrlen = arr.length;
var pageNameURL = "";
if(arrlen > 0) {
	s.prop6 = arr[0];
	pageNameURL += checkHome(cap(arr[0]));
}
if(arrlen > 1) {
	s.prop7=s.prop6 + ":" + arr[1];
	if(arrlen != 2) {
		pageNameURL += " - " + checkHome(cap(arr[1]));
	} else {
		pageNameURL = pageNameURL;
	}
	
}
if(arrlen > 2) {
	s.prop8=s.prop7 + ":" + arr[2];
	if(arrlen != 3) {
		pageNameURL += " - " + checkHome(cap(arr[2]));
	} else {
		pageNameURL = pageNameURL;
	}
}
if(arrlen > 3) {
	s.prop9=s.prop8 + ":" + arr[3];
	if(arrlen != 4) {
		pageNameURL += " - " + checkHome(cap(arr[3]));
	} else {
		pageNameURL = pageNameURL;
	}
}
s.pageName = pageNameURL + " - " + document.title;

s.prop10 = document.location.href;
function getUrlId(str) {
	if(str) {
    	qstring = str;
		gy = qstring.split("&");
		for (i=0;i<gy.length;i++) {
			id = gy[i].split("=");
			if (id[0] == "id") {
				return id[1];
			}
		}
    }
	
}
function getUrlArray(lo) {
	var href = document.location.href;
    href = href.split('/');
	var hreflen = href.length;
	href = href.splice(3,hreflen);
	return href;
}

function cap(str){
	return(str.charAt(0).toUpperCase() + str.substr(1).toLowerCase());
}

function checkHome(str) {
	var hName;
	if(str == "Default.aspx") {
		hName = "Home Page";
	} else {
		hName = str;
	}
		
	
	return hName;
}