// JavaScript Document

// Example: obj = findObj("image1");

function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
   theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
 }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  return foundObj;
}


function runPlayer32() {
window.open('http://www.abradio.cz/player.php?kod=116&quality=asx32','ABradio','width=395,height=250,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no'); }

function runPlayer64() {

window.open('http://www.abradio.cz/player.php?kod=116&quality=asx64','ABradio','width=395,height=250,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no');}






function SwapLayer( num, maxNum ) {
	for(n=1; n<=maxNum; n++) {
				var obj = findObj('zz'+n);
				//var obj2 = findObj('z'+n);
				
			if(n==num) {
					obj.style.display = 'block';
					//obj2.style.background = 'white';
					//obj2.style.color = '#666666';
					
				} else {
					obj.style.display = 'none';
					//obj2.style.background = 'none';
					//obj2.style.color = 'auto';
					//obj.visibility = 'hidden';
				}	
		
		}
	}