function selectStyleSheet() {
  var myWidth = 0, myHeight = 0;
  
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  
  else {
    var nua, IE, OP, Gecko, Mac, ie_pos, IENu, IE6x, IE5x; 
	 nua = navigator.userAgent;
	 IE = (nua.toUpperCase().indexOf('MSIE')!=-1);  
    OP = (nua.toLowerCase().indexOf('opera')!=-1);
	 Gecko = (nua.toLowerCase().indexOf('gecko')!=-1);
	 Mac = (nua.toLowerCase().indexOf('mac')!=-1);
	 ie_pos = nua.toUpperCase().indexOf('MSIE');
	 IEnu = nua.substr((ie_pos+5),3);
	 IE6x = (IEnu>=6.0);
	 IE5x = (IEnu>=5.0);
  
    if (IE5x && !OP&& !Gecko) { myWidth = screen.width; };
  }
  
  if (myWidth < 950) {
    document.write('<link href="/encryption/styles800x600.css" rel="stylesheet" type="text\/css">');
  } 
  else {
    document.write('<link href="/encryption/styles.css" rel="stylesheet" type="text\/css">');
  }
  
  return 1;
}

function rollImage(imageName, imageSource) { document.images[imageName].src = imageSource; } 

function Spotlight(Quantity) {
  writeHeading();
  var i = 0;
  
  while (i < Quantity) {
    getItem(i);
    if (i >= 1) { writeMargin(); }
    i = i + 1;
  }
  
  writeTail();
  return 1;
}

function getItem(Num) {
  var blurb; var link;
  
  if (Num == 0) {
    link = "http://www.globalnetpromotions.com";
    blurb = "Domain Hosting with the Leader in Innovative and Comprehensive Web Hosting Solutions, Globalnet GNP.";
    title="Linux Domain Hosting";
  }
  
  writeItem(blurb, link, title); 
  return 1;
}

function writeHeading () {
  document.write('<tr><td align="center" valign="top"><br><br><table width="100%" cellpadding="0" cellspacing="0" border="0"');
  document.write(' bgcolor="#EEEEEE"><tr><td valign="top" align="left"><p><img src="/linux/images/grey-corner4.png" alt=" ">');
  document.write('<\/p></td><td valign="middle" align="center"><p><b>Website Spotlight<\/b><\/p><\/td><td valign="top"');
  document.write(' align="right"><p><img src="/linux/images/grey-corner2.png" alt=" "><\/p><\/td><\/tr><\/table>');
  return 1;
}

function writeItem (blurb, link, title) {
  document.write('<table width="100%" border="0"><tr><td><p>');
  document.write(blurb);
  document.write('<br><br><a href="');
  document.write(link);
  document.write('" title="');
  document.write(title);
  document.write('" target="_blank">');
  document.write(title);
  document.write('</a></p><\/td><\/tr><\/table>');
  return 1;
}

function writeMargin () { document.write ('<p><img src="greenPixel.gif" class="greenPixel" alt=" "><br><br></p>'); return 1; }

function writeTail () { document.write(' <\/td><\/tr>'); return 1; }

