/*
Plugin Screen Resolution()

 by Aaron Weed aaron@perfectcomputersolutions.com

*/
//  document.write(screen.width);
//  document.write(screen.height);

function screen_resolution() {
//0 for unknown
//1 for 800x600
//2 for 1024x768
//3 for higher

// for NN4/IE4
if (self.screen) {     
        width = screen.width
        height = screen.height
}

// for NN3 w/Java
else if (self.java) {   
       var javakit = java.awt.Toolkit.getDefaultToolkit()
       var scrsize = javakit.getScreenSize()       
       width = scrsize.width 
       height = scrsize.height
}
else {

// N2, E3, N3 w/o Java (Opera and WebTV)
width = height = 0 
 
}
//---------
if (width==800 && height==600) {
  return 1
}
else if (width==1024 && height==768) {
  return 2
}
else if (width>=1024 && height>=768) {
  return 3
}
else {
  return 0
}


}

