if (top !=self) {
 	top.location=self.location;
}
var selfurl = new String(document.location.href) ;
var dophp = new Boolean(true);
var s = new String('http://dev.airapp.com/');
if(selfurl.substr(0,s.length) == s){
	dophp = false ;
};
s = new String('http://svn.airapp.com/');
if(selfurl.substr(0,s.length) == s){
	dophp = false ;
};
if(dophp == true){
	var spos = new Number(selfurl.length - 4);
	if(selfurl.substr(spos,4) == '.php'){

	} else if(selfurl.substr(spos,4) == '.htm'){
		 var newurl = new String(selfurl.substr(0,spos)+".html");
		 document.location.href=newurl ;
	} else if(selfurl.substr(spos,4) == 'html'){
		var newurl = new String(selfurl.substr(0,spos)+"php");
		  document.location.href=newurl ;
	}
}
