function stopError() {
  return true;
}
// Enable this when site goes live
//window.onerror = stopError;

var message_clicked=false;
var qualifications_clicked=false;
var theme_clicked=false;

if (self != top) {
	if (document.images)
		top.location.replace(window.location.href);
	else
		top.location.href = window.location.href;
}


function simplePreload()
{ 
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}



// Add functions to the window.onload event
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    };
  }
}

//Functions to add to the window.onload event
addLoadEvent(function() { 
	if(window.remove_focus){
		remove_focus();
	}
	if(window.loadCorners){
		loadCorners();
	}
	if(window.loadFooterCorners()){
		loadFooterCorners();
	}
	if(window.loadStaticCorners()){
		loadStaticCorners();
	}
	simplePreload( '/assets/images/icons/rate_mine.gif');
	
});

