var TestPage = new Object(
{
	host:document.location.host,
	goto:function(param){
		if(param != "verno"){
		var file = new Array(document.location.pathname.split('/'));
		document.location.replace('http://'+this.host+'/?page='+file[file.length-1].toString().replace(',','')+'&lang=bg');
		}
	},
	isset:function(varname)  {
  		if(typeof( window.varname ) != "undefined") return true;
  		else return false;
	}
});
if(!TestPage.isset(window.IamIncluded)){
	TestPage.goto(window.IamIncluded);
}
