function getObject(name)
{
  if (document.getElementById)
  {
	if (document.getElementById(name)){ return document.getElementById(name)}
	else {return false};
  }
  else if (document.all)
  {
    return document.all[name];
  }
  else if (document.layers)
  {
    return document.layers[name];
  }
  else return false;
}



function dosize(){

var mnObj = getObject('mn1');
var nnObj = getObject('nn1');

	if ((mnObj != null) && (nnObj != null)){
		if (mnObj.offsetHeight){
			if (mnObj.offsetHeight > nnObj.offsetHeight){
//				nnObj.offsetHeight = mnObj.offsetHeight;
				nnObj.style.height = mnObj.offsetHeight + 'px';
			}
			else {
//				mnObj.offsetHeight = nnObj.offsetHeight;
				mnObj.style.height = nnObj.offsetHeight + 'px';
			}
		}
//		rs ='';
//		for(var i in mnObj){rs+= i + ' '+ mnObj[i] + "\n";}

	};


}

function getRandom() {

 var imgCount = 7;

 var random = parseInt(Math.random() * 10);
 var randomImage = 0;

 while (randomImage == 0){
  if ((random > 0) && (random <= imgCount)){
   randomImage = random;
  }
  else {
   random = parseInt(Math.random() * 10);
  };
 };

 return random;
}

function doPicture() {
	document.write('<div style="display:block; width:100%; height: 183px; background: url(' + "\'"+ 'simg/' + getRandom()+ '.jpg' + "\')" + '">&nbsp;</div>');
}


function newschange(value){

	var Nav = new Array();
	Nav[Nav.length] = '/dtp.shtml'; // 1
	Nav[Nav.length] = '/news.shtml'; // 2
	Nav[Nav.length] = '/archive.shtml'; // 3

	if(value == 0){return false} // 0

	top.location = Nav[value-1];

}


function regionchange(value){

	if(value == 0){return false} // 0
	top.location = value;

}