ï»¿function player(target) {
var xposition=0;
var yposition=0;
var params = '';
var width = 192;
var height = 128;
var base = '';
if (arguments.length>1){
base = arguments[1];
}
if (parseInt(navigator.appVersion) >= 4 ){
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2;
}
params = "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=0,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //NN
+ "screeny=" + yposition + "," //NN
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE
startWin = window.open(base + 'http://il.na-mobily.cz/player.php?play=on&cid=' + target,'player', params)
startWin.focus();
return startWin;
}

function AddFavorite(linkObj,addUrl,addTitle)
{
  if (document.all && !window.opera)
  {
    window.external.AddFavorite(addUrl,addTitle);
    return false;
  }
  else if (window.opera && window.print)
  {
    linkObj.title = addTitle;
    return true;
  }
  else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))
  {
    if (window.confirm('Pøidat oblíbenou stránku jako nový panel?'))
    {
      window.sidebar.addPanel(addTitle,addUrl,'');
      return false;
    }
  }
  window.alert('Press CTRL-D for add to bookmark');
  return false;
}

//var playingSound=null;
function swfPlayer(url) {
	if (url==playingSound) {
		url=null;
		window.document.swf_player.LoadMovie(1, "http://il.na-mobily.cz/player/empty.swf");
	} else {
		window.document.swf_player.LoadMovie(1, url);
	}
	playingSound=url;
	return true;
}

///////////////////////////////////
function clickIE4(){
if (event.button==2){
// alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
// alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false");
