<!--
//********************************************************************************


function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}


//********************************************************************************


function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}


//********************************************************************************


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


//********************************************************************************


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


//********************************************************************************


function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//********************************************************************************

var message="***************************************************************\nThe images, audio and all of the sites content are Copyright 2004 Apple Corps\n\n                                        Please do no distribute\n***************************************************************\n                                       ©2005 Apple Corps Ltd.\n***************************************************************";

///////////////////////////////////
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("alert(message);return false")
//********************************************************************************

function icon_over(arg){
		document.getElementById('icon_info').innerHTML=arg;
}

//********************************************************************************

function icon_out(){
		document.getElementById('icon_info').innerHTML="Interactives//";
}

//********************************************************************************

function pop_up(myURL,W,H,features){
	window.open(myURL, '', 'width='+W+', height='+H+','+features);
}

//********************************************************************************

function popwin(theurl,thename,thewidth,theheight,special,left,top,scrollToggle,resizeToggle) {
	if (special==1) {
		var left=(screen.width-thewidth)/2;
		var top=(screen.height-theheight)/2;
	}		window.open(theurl,thename,'left='+left+',top='+top+',width='+thewidth+',height='+theheight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scrollToggle+',resizable='+resizeToggle+'');
} 

//********************************************************************************

//window width
function getInnerWidth(win) {
	var winWidth;
 	if (win.clientWidth) {
   		winWidth = win.clientWidth;
  	} else if (win.document.documentElement && win.document.documentElement.clientWidth) {
    	winWidth = win.document.documentElement.clientWidth;
  	} else if (win.innerWidth) {
   		winWidth = win.innerWidth;
  	} else if (document.body) {
    	winWidth = win.document.body.clientWidth;
  	}
  	return winWidth;
}

//********************************************************************************

//*** interactive launch function ***//
		function iLaunch(iNum) {
			//check if window already exists and shut
			//to do
			
			//array of variables for interactives
			ints=Array("");
			//1,2,3,4,5,6
			//interactive variables [folder,rootpage,width,height,center,left,top,scroll,resize]
			ints.push(['one','index.html',700,730,1,0,0,1,0]);
			ints.push(['anthology','launch.php',790,520,1,0,0,0,0]);
			ints.push(['letitbe','choose.php',790,520,1,0,0,0,0]);
			ints.push(['firstus','detect.html',790,520,1,0,0,0,0]);
			ints.push(['yellow','splash.php',790,520,1,0,0,0,0]);
			ints.push(['capitol','index.html',790,630,1,0,0,0,0]);
			//open the window based on the variable that has been passed
			interWin("http://www.beatles.com/"+ints[iNum][0]+"/"+ints[iNum][1],'beatlesWin',ints[iNum][2],ints[iNum][3],ints[iNum][4],ints[iNum][5],ints[iNum][6],ints[iNum][7],ints[iNum][8]);
		}
		
		function iClose() {
			if (win && win.open && !win.closed){
				win.close();
			}
		}
//********************************************************************************
var win='';
//*** interactive window function ***//
		function interWin(url,id,w,h,sp,l,t,sc,re) {
			if (win && win.open && !win.closed){
				//close the window
				win.close();
			}
			if (sp==1) {
				var l=(screen.width-w)/2;
				var t=(screen.height-h)/2;
			}
win=window.open(url,id,'left='+l+',top='+t+',width='+w+',height='+h+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+sc+',resizable='+re+'');
		}

// --> 
