$(document).ready(function () {

	  if(!(jQuery.browser.msie && jQuery.browser.version.substr(0,1) < 7)){
		$('#Doc').wrap('<div id="DocOmbreTop"></div>');
		$('#DocOmbreTop').wrap('<div id="DocWarpper"></div>');
		$("#DocWarpper").append('<div id="DocOmbreBottom"></div>');
	  }

	var currentLocation = document.URL;

	var checkFileRootFF = new RegExp("file:///(.+):", "i");
	var checkFileRootWin = new RegExp("file://(.+):", "i");
	var checkFileRootMac = new RegExp("file:///volumes/([^/]+)/", "i");

	var matches = false;

	if (matches = checkFileRootFF.exec(currentLocation)) {
		AppConstant.webroot = matches[0] + '/';
	} else if (matches = checkFileRootWin.exec(currentLocation)) {
		AppConstant.webroot = matches[0] + '\\';
	} else if (matches = checkFileRootMac.exec(currentLocation)) {
		AppConstant.webroot = matches[0];
	}

});
