//-->base css on screen resolution-->
//-->Copyright 2002 DataTech Designs, Inc.  All Rights Reserved. Do Not Use Without Permission.-->

var theCSS = new Array(4)
theCSS[640] = '<link rel="stylesheet" type="text/css" href="new-york-hotels-guide-640.css">'
theCSS[800] = '<link rel="stylesheet" type="text/css" href="new-york-hotels-guide-800.css">'
theCSS[1024] = '<link rel="stylesheet" type="text/css" href="new-york-hotels-guide-1024.css">'
theCSS[1152] = '<link rel="stylesheet" type="text/css" href="new-york-hotels-guide-1024.css">'
theCSS[1280] = '<link rel="stylesheet" type="text/css" href="new-york-hotels-guide-1024.css">'

var theImg = new Array(4)
theImg[640] = '<img src="images/nylogo-800.gif" alt="new york city hotels" border="0" vspace="2">'
theImg[800] = '<img src="images/nylogo-800.gif" alt="new york city hotels" border="0" vspace="8">'
theImg[1024] = '<img src="images/nylogo.gif" alt="new york city hotels" border="0" vspace="8">'
theImg[1152] = '<img src="images/nylogo.gif" alt="new york city hotels" border="0" vspace="25">'
theImg[1280] = '<img src="images/nylogo.gif" alt="new york city hotels" border="0" vspace="25">'

var a = 0
var b = theCSS.length;
var preBuffer = new Array()
for (c = 0; c < b; c++){
   preBuffer[c] = new String()
   preBuffer[c].src = theCSS[c]
}

var d = 0
var e = theImg.length;
var preBuffer = new Array()
for (f = 0; f < e; f++){
   preBuffer[f] = new String()
   preBuffer[f].src = theImg[f]
}


// 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 = 480
height = 640 

}



      //-->
	  
var whichImg0 = width;

if ([whichImg0] == 640)	{
var whichImg1 = 640;
}else if([whichImg0] == 800)	{
var whichImg1 = 800;
}else if([whichImg0] == 1024)	{
var whichImg1 = 1024;
}else if([whichImg0] > 1151)	{
var whichImg1 = 1152;
}else if([whichImg0] > 1279)	{
var whichImg1 = 1280;
}

var whichCSS0 = width;

if ([whichCSS0] == 640)	{
var whichCSS1 = 640;
}else if([whichCSS0] == 800)	{
var whichCSS1 = 800;
}else if([whichCSS0] == 1024)	{
var whichCSS1 = 1024;
}else if([whichCSS0] > 1151)	{
var whichCSS1 = 1152;
}else if([whichCSS0] > 1279) {
var whichCSS1 = 1280;
}

function showCSS0(){
document.write(theCSS[width]);
}

function showImg0(){
document.write(theImg[width]);
}

//  End script-->


