if(top.location != self.location){top.location=self.location};
function getWidth(){
	var scrWidth = screen.width;
	if (scrWidth <= 800){
		mainWidth = 750;
		//var headersize = "Sm2";
		//var headerwidth = "800"; 
		//var headerheight = "64"; 
		//var myCSS = "<link href=\"st800.css\" rel=\"stylesheet\" type=\"text/css\">"
	}else{

		if(scrWidth > 1100){
			mainWidth = 1100;

		}else{
			mainWidth = scrWidth - 60;
		}
	}
	document.write("<table width=\"" + mainWidth + "\" id=\"mainTable\" align=\"center\" cellspacing=\"0\" cellpadding=\"0\">");
}

//findDOM sniffs browser version or DHTML capability to use specific DOM to access object
var isDHTML = 0; //init vars
var isID = 0; 
var isAll = 0; 
var isLayers = 0; 

if (document.getElementById){ //CSS DOM type, IE5+, NN6+
    isID = 1; 
    isDHTML = 1; 
    }else{ 
    if (document.all){ //IE4 type
        isAll = 1; 
        isDHTML = 1; 
    }else{ //NN4 type
    browserVersion = parseInt(navigator.appVersion); 
    if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)){ 
        isLayers = 1; 
        isDHTML = 1; 
    } 
  } 
} 
function findDOM(objectID,withStyle){ //optional use of style, if withStyle=1
	if (withStyle == 1){ 
	    if (isID){ //CSS DOM type, IE5+, NN6+
			return (document.getElementById(objectID).style);
		}else{ 
			if(isAll){ //IE4 type
				return (document.all[objectID].style);
			}else{ 
				if(isLayers){ //NN4 type
					return (document.layers[objectID]);
				} 
			}
		} 
	}else{ 
	    if (isID){ //CSS DOM type, IE5+, NN6+
			return (document.getElementById(objectID)) ;
	    }else{ 
			if (isAll){ //IE4 type
				return (document.all[objectID]);
			}else{ 
				if(isLayers){ //NN4 type
					return (document.layers[objectID]);
				} 
			}   
		} 
	} 
}

function toggleClam(objectID) {
	if (isAll || isID) 
	{
		domStyle = findDOM(objectID,1);
		if (domStyle.display =='block') 
		{ 
		domStyle.display='none';
		}else{
		 domStyle.display='block';
		}
	}else{
		destination = objectID + '.htm';
		self.location = destination;
	}
	return;
}

function smallScreen(){
	var scrWidth = screen.width;
	if(scrWidth <= 800){
		return true;
	}else{
		return false;
	}
}

function openClam(objectID) {  //ALWAYS Open on 
	if (isAll || isID) 
	{
		domStyle = findDOM(objectID,1);
		domStyle.display='block';
	}else{
		destination = objectID + '.htm';
		self.location = destination;
	}
	return;
}





