function MM_jumpMenu(targ,selObj,restore) { //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

if (top.location != self.location) {
	top.location = self.location
}

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height) {
	if(popUpWin) {
		if(!popUpWin.closed) popUpWin.close();
	}
	popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top+'');
	popUpWin.window.focus();
	}
	
function popUpWindowRes(URLStr, left, top, width, height) {
	if(popUpWin) {
		if(!popUpWin.closed) popUpWin.close();
	}
	popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top+'');
	popUpWin.window.focus();
	}

function ctc(theIP) {
	window.clipboardData.setData('Text', theIP);
}

function displaycopy(theIP) {
	if (window.clipboardData) {
		document.write('<a href="javascript:ctc(\''+theIP+'\');" ');
		document.write('onMouseOver="window.status=\'Copy Your IP\'; return true " ');
		document.write('onMouseOut="window.status=\'\'; return true " ');
		document.write('title="Copy Your IP">Copy Your IP</a>');
	}
}

function bm() {
	if (window.external) {
		document.write('<br><a href="javascript:window.external.AddFavorite(\'http://www.mediastream.pl\',\'MEDIASTREAM . PL\');" ');
		document.write('onMouseOver="window.status=\'Bookmark\'; return true " ');
		document.write('onMouseOut="window.status=\'\'; return true " ');
		document.write('title="Bookmark">Bookmark</a>');
	}
}

// Example:
// writeCookie("myCookie", "my value", 24);
// Stores the string "my name" in the cookie "myCookie" which expires after 24 hours.
function writeCookie(name, value, hours)
{
  var expire = "";
  if(hours != null)
  {
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + expire;
}

function elementShowHide(aelement) {
	aobj=document.all(aelement);
	if (aobj.style.display=='') {
		aobj.style.display='none';
	}
	else {
		aobj.style.display='';
	}
}

