var FrameworkObj = Class.create();
FrameworkObj.prototype = {
  initialize: function(currentUrl)
  {
    this.CurrentUrl = currentUrl;
    this.DefaultPageUrl = 'http://mikejr83.servebeer.com:1983/Default.aspx';
  },
  
  PageLoad: function()
  {
    if(this.CurrentUrl.match(/mikejr83.servebeer.com/) == null &&
        this.CurrentUrl.match(/localhost/) == null &&
        this.CurrentUrl.match(/www.itsnotfound.com/) == null &&
        this.CurrentUrl.match(/itsnotfound.com/) == null)
      window.parent.location.replace(this.DefaultPageUrl);
  },
  
  NavButtonImgChange: function(Button, ImgUrl)
  {
    Button.style.backgroundImage = "url(" + ImgUrl + ")";
  },
  
  ShowNavigation: function()
  {
    
  },
  
  GetElementPosition: function()
  {
	  var curleft = curtop = 0;
	  if (obj.offsetParent) {
		  curleft = obj.offsetLeft
		  curtop = obj.offsetTop
		  while (obj = obj.offsetParent) {
			  curleft += obj.offsetLeft
			  curtop += obj.offsetTop
		  }
	  }
	  return {X:curleft,Y:curtop};
  }
};
