// set a default content url
var contentUrl = 'home.aspx';
var rootUrl = location.protocol + '//' + location.host;

// check the parent url's hash for a content url
if (location.hash) {
	contentUrl = location.hash.substring(1);
}

$(document).ready(function(){
	
	// set the src of the content frame
	$("#frameMain").each(function(){
		this.src = contentUrl;
	}).load(function(){
		// set the parent document title to the iframe's title
		document.title = this.contentWindow.document.title;
	});
	
});