function init() {
	document.getElementById('loading').style.display='none';
}

$(document).ready(function() {
						   


	//var frameUrl = "http://reservations.aviawest.com/irmnet/Res/ResMain.aspx?";
	var frameUrl = "http://reservations.parksidevictoria.com/irmnet/Res/ResMain.aspx?";
	//var frameUrl = "http://www.parksidevictoria.com/irmnet/Res/ResMain.aspx?";
	var getUrl = window.location.href;
	var position = getUrl.indexOf("?");
	position = position + 1;
	var getString = getUrl.slice(position);
	var getItem = getString.split("&");
	var i = 0;
	var frameUrlPath = frameUrl;
	while (i < getItem.length) {
		if (frameUrlPath != frameUrl) {
			frameUrlPath = frameUrlPath + "&";
		}
		frameUrlPath = frameUrlPath + getItem[i];
		i++;
	}
	



	if (typeof _gaq=="undefined") {
		document.getElementById("irmFrame").src=frameUrlPath;
	} else {
	  _gaq.push(function() {
        var iFrameTracker = _gaq._getAsyncTracker();
        frameUrlPathLinker = iFrameTracker._getLinkerUrl(frameUrlPath);
		document.getElementById("irmFrame").src=frameUrlPathLinker;
		
		//$('body').append('<p style="color: white;">frameUrlPath: '+frameUrlPath+'<br/>frameUrlPathLinker: '+frameUrlPathLinker+'</p>');
      });			
	}
	
	// Using the below methods return:
	// Error: document.getElementById("irmFrame") is null
	
	//document.getElementById("irmFrame").src=frameUrl;
	//document.irmFrame.src.value = frameurl;

});
