// Avoid "framing" in other sites...
if (top.location != self.location) {
top.location = self.location.href}

// Browser version sensing and alert messages
function browserType() 
	{
//Setting variables
   var browserok= 1;
   var sizeok =1;
   var langok =1;

//Detecting browser version
   var name = navigator.appName;
		var type = navigator.appVersion;
		var typeNr=parseFloat(navigator.appVersion.substring(0,3))
		if (typeNr < 4)
			{
      browserok = 0;
			}

//Detecting screen size
		if (screen.width < 800 && screen.height < 600)
			{sizeok = 0;}

//Detecting visitor language
if (name == 'Netscape')
        {langok = 0;
         var language = navigator.language;
}
else 
 if (name == 'Microsoft Internet Explorer')	
      {var language = navigator.userLanguage;}
else 
       {var language = 'en';
         langok = 0;}

var alrt = "";
var alrt1 = "You are using " + name +", version " + navigator.appVersion.substring(0,3) + " or older.\nOur site was designed to make use of a browser\'s advanced characteristics, so some features may not operate properly. Although we have taken all necessary care to make this site viewable with the most popular  browsers, we strongly recommend that you upgrade to Internet Explorer version 4.0 or newer or Netscape version 4.3 or newer.\n\n";

var alrt3= "Your monitor is set to a resolution of " + screen.width + "X" + screen.height + "\nIn order to get better viewing results in ART TOPOS, you need to set it at least to 800X600\n\n";

var alrt4 ="Unfortunately, Netscape does not provide enough information about your preferred language.\nIf our pages appear in the wrong language, please select your preferred one from within our home page\n\n";

var alrt5 = "Unsortunately, your browser does not provide enough information about your preferred languge.\nIf our pages appear in the wrong language, please select your preferred one from within our home page";

// FLASH SENSING!!!!!


// Redirecting...
var win = null;
LeftPosition = (screen.width) ? (screen.width-800)/2 : 0;
TopPosition = (screen.height) ? (screen.height-600)/2 : 0;
settings ='height=600,width=750,top='+TopPosition+',left='+LeftPosition+',scrollbars=no,scroll,resizable=no';
if (language.indexOf('el') > -1) 
	{
window.open("index-gr.html","sitewindow",settings);
}
else
	{
window.open("index-en.html","sitewindow",settings);
}
}

