<!-- 
var pope = null;

function popdown() {
  if (pope && !pope.closed) pope.close();
}

function popup(obj) {
  var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
  if (!url) return true;
  
/*   if (window.innerHeight) {
    randH=  0.75*(window.outerHeight-window.innerHeight);

  } else if (document.body && document.body.offsetHeight) {
    randH=  0.75*(document.body.offsetHeight-document.body.offsetHeight);
  } else {
    return 0;
  }*/
 if (window.innerHeight) {
	w = 500;
	t = screenY+125;
	h = (screen.height-t)*0.65;
	l = screenX;

  } else if (document.body && document.body.offsetHeight) {
	w = 500;
	t = window.top+125;
	h = (screen.height-t)*0.65;
	l = window.left;
  } 
  
/*	w = 500;
	t = screenY+125;
	h = (screen.height-t)*0.65;
	l = screenX;*/

  var args = 'left='+l+',top='+t+',width='+w+',height='+h+',resizable,scrollbars';
  popdown();
  pope = window.open(url,'',args);
  return (pope) ? false : true;
} 

window.onunload = popdown;
window.onfocus = popdown;


var start=true;

function stopParty()
{
 document.body.style.borderTopColor = '#00ffff';
 document.body.style.borderLeftColor = '#00ffff';

 document.getElementsByName("head")[0].style.borderRightColor = '#00ffff';
 document.getElementsByName("head")[0].style.borderBottomColor = '#00ffff';

 document.getElementsByName("charpin")[0].style.backgroundColor = '#00ffff'; 
 document.getElementsByName("charpin")[0].style.color = '#00ffff';
 
 
 document.getElementsByName("logo1")[0].style.display = 'inline';
 document.getElementsByName("logo2")[0].style.display = 'inline';  
 document.images[0].src="/layout/img/green.gif";
 document.images[1].src="/layout/img/green.gif";
 document.images[2].src="/layout/img/green.gif";
 document.images[3].src="/layout/img/green.gif";
 document.images[4].src="/layout/img/men4.gif";
 document.images[5].src="/layout/img/green.gif";
 document.images[6].src="/layout/img/green.gif";
 document.images[7].src="/layout/img/green.gif";
}

function startParty()
{
 document.images[0].src="/layout/img/black.gif";
 document.images[1].src="/layout/img/black.gif";
 document.images[2].src="/layout/img/black.gif";
 document.images[3].src="/layout/img/black.gif";
 document.images[4].src="/layout/img/blinki_f.gif";
 document.images[5].src="/layout/img/black.gif";
 document.images[6].src="/layout/img/black.gif";
 document.images[7].src="/layout/img/black.gif";
 document.body.style.borderTopColor = '#000';
 document.body.style.borderLeftColor = '#000';
 document.getElementsByName("logo1")[0].style.display = 'none'; 
 document.getElementsByName("logo2")[0].style.display = 'none'; 
 document.getElementsByName("head")[0].style.borderRightColor = '#000';
 document.getElementsByName("head")[0].style.borderBottomColor = '#000';
  document.getElementsByName("charpin")[0].style.backgroundColor = '#000';
   document.getElementsByName("charpin")[0].style.color = '#000';
}

function allGreen()
{
stopBlink();
 document.getElementsByName("charpin")[0].style.color = '#0ff';
 document.images[0].src="/layout/img/spacer.gif";
 document.images[1].src="/layout/img/spacer.gif";
 document.images[2].src="/layout/img/spacer.gif";
 document.images[3].src="/layout/img/spacer.gif";
 document.images[4].src="/layout/img/spacer.gif";
 document.images[5].src="/layout/img/spacer.gif";
 document.images[6].src="/layout/img/spacer.gif";
 document.images[7].src="/layout/img/spacer.gif";
 start=false
}


function stopBlink(){
	if(start==true){
		stopParty();
		start=false;
	}
}
function startBlink(){
	if(start==false){
		startParty();
		start=true;
	}
}

function showCredits(){
 document.getElementsByName("credits")[0].style.display = 'none';
 document.getElementsByName("credits2")[0].style.display = 'block'; 
//document.body.style.backgroundImage = "/layout/img/contactbg.gif";
//document.getElementsByTagName("body")[0].style.backgroundImage = "/layout/img/contactbg.gif";
}
function hideCredits(){
 document.getElementsByName("credits")[0].style.display = 'block';
 document.getElementsByName("credits2")[0].style.display = 'none'; 
//document.body.style.backgroundImage = "/layout/img/charpin_c.gif";
//document.getElementsByTagName("body")[0].style.backgroundImage = "/layout/img/charpin_c.gif";
}

var speed=1000;
var position=0;

function showdia () {
if (!(document.images)) {return;}
if (!(document.show)) {return;}
 document.show.src=pictures[position++];
 if (position == pictures.length) { position = 0; }
 setTimeout("showdia();",speed);
}

//-->         