





/**************************************************************************************************************
 location.rewrite.js 
***************************************************************************************************************/
// console.log('rewrite init');var url = window.location;var prot = window.location.protocol;var host = window.location.host;var path = window.location.pathname;// console.log( url );// console.log( prot );// console.log( path );if( location.href.indexOf("#") == -1 ) {	var _href = url;	var _val = path;	// console.log(_val);	// append slash if necessary	var lastPos = path.length-1;	if( path.charAt(lastPos) != '/' ) {		path = path + '/';	}	if(path != '/') {		if( path.indexOf('fragrances') != -1 ) {			path = path.replace("fragrances", "");			path = path.replace("//", "/");			location = prot+'//'+host+'/fragrances/#'+path;		} else if( path.indexOf('camao') != -1 ) {			path = path.replace("camao", "");			path = path.replace("//", "/");			location = prot+'//'+host+'/camao/#'+path;		} else {//			alert('whatever');			location = prot+'//'+host+'/#/'+path;		}	} 	else {		alert('Server Debugging in progress.');	}}
