window.onload = checkAvailableWidth;
window.onresize = checkAvailableWidth;
function checkAvailableWidth(){
	var smr = document.getElementById("smallres");
	smr.style.display = (document.body.clientWidth < 1125)? "none" : "inline";
	var smrt = document.getElementById("smallres2");
	smrt.style.display = (document.body.clientWidth < 1125)? "none" : "inline";

	var centrpic = document.getElementById("cpics");
	centrpic.style.width = (document.body.clientWidth < 1125)? "560px" : "609px";

	var contanierdiv = document.getElementById("contanier");
	contanierdiv.style.width = (document.body.clientWidth > 1300) ? "1300" : "100%";

	var footerdiv = document.getElementById("footer");
	footerdiv.style.width = (document.body.clientWidth > 1300) ? "1300" : "100%";


	var logopic = document.getElementById("lpic");
	logopic.style.width = (document.body.clientWidth < 1125)? "210px" : "230px",
	logopic.style.margin = (document.body.clientWidth < 1125)? "0" : "10px 0 0 10px";
}

function show(obj) 
{
if (document.getElementById(obj).style.display == 'none') 
document.getElementById(obj).style.display = 'block';
else document.getElementById(obj).style.display = 'none';}

<!--
function MM_reloadPage(init) { 
//reloads the window if Nav4 resized
 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
 document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function auto_tag(tag_name) {
	if (window.attachEvent) {
		window.attachEvent("onload", function() {
			var el = document.getElementsByTagName(tag_name);
			set_auto_tag(el);
		});
	}
}

function set_auto_tag (el) {
	for (var i=0; i<el.length; i++) {
	    if (el[i].target == '_blank'){
			el[i].className+=" onw";
	    }
	}
}

//auto_tag("A");


isDOM=document.getElementById //DOM1 browser (MSIE 5+, Netscape 6, Opera 5+)
isMSIE=document.all && document.all.item //Microsoft Internet Explorer 4+
isNetscape4=document.layers //Netscape 4.*
isOpera=window.opera //Opera
isOpera5=isOpera && isDOM //Opera 5+
isMSIE5=isDOM && isMSIE && !isOpera //MSIE 5+
isMozilla=isNetscape6=isDOM && !isMSIE && !isOpera

var obj;

function getLayer(layerName, parentLayerName){
  if(isDOM){ return document.getElementById(layerName); }
  if(isMSIE){ return document.all[layerName]; }
  if(isNetscape4){ return eval('document.layers[layerName]'); }
  return false;
}

function ts(e,what){
  mousex = e.clientX;
  mousey = e.clientY;
  pagexoff = 0;
  pageyoff = 0;
  if(isMSIE5){
    pagexoff = document.body.scrollLeft;
    pageyoff = document.body.scrollTop;
  }
  else{
    pagexoff = window.pageXOffset;
     pageyoff = window.pageYOffset;
  }
  if(getLayer(what)){
    if(isNetscape4)
      obj = getLayer(what);
    else
      obj = getLayer(what).style;

	  c_width = getLayer(what).offsetWidth;
	  oCanvas = document.getElementsByTagName(
	      (document.compatMode && document.compatMode == "CSS1Compat") ? "HTML" : "BODY"
      )[0];
	  w_width = oCanvas.clientWidth ? oCanvas.clientWidth + oCanvas.scrollLeft : window.innerWidth + window.pageXOffset;

  	
  	if(obj){
	    leftoff = mousex-pagexoff;
    	obj.left = (mousex+pagexoff);
        if (mousex + pagexoff + c_width > w_width) obj.left = w_width - c_width + "px";
  
	    topoff = mousey-pageyoff;
    	if(isOpera && topoff <= 30)
    	  obj.top = mousey + 20;
	    else 
		if( mousey <= 30) 
	        obj.top = (mousey+pageyoff) + 20;
		else 
	      if (isOpera) 
    	    obj.top = mousey + 20;
	    else
    	  obj.top = (mousey+pageyoff) + 20;
   		
		
	    if(isNetscape4)
    	  obj.visibility = 'show';
	    else
    	  obj.visibility = 'visible';
	  }
   }
  return true;
}

function tc(){
  if(obj){
    if(isNetscape4)
      obj.visibility = 'hide';
    else
      obj.visibility='hidden';
  }
  return true
}

var win = null;
function nwin(mypage,myname,w,h,scroll){LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;TopPosition = (screen.height) ? (screen.height-h)/2 : 0;settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function show_one(){
	document.getElementById('twoa').style.display='none',
	document.getElementById('twop').style.display='inline',
	document.getElementById('onea').style.display='inline',
	document.getElementById('onep').style.display='none',
	document.getElementById('all').style.display='inline',
	document.getElementById('ug').style.display='none';
	}

function show_two(){
	document.getElementById('onep').style.display='inline',
	document.getElementById('onea').style.display='none',
	document.getElementById('twoa').style.display='inline',
	document.getElementById('twop').style.display='none',
	document.getElementById('all').style.display='none'
	document.getElementById('ug').style.display='inline';
	}
