var moviename = "phy";
var pressWin = null;
var discoWin = null;
var galleryWin = null;
var flyerWin = null;
var agent_str = navigator.userAgent.toLowerCase();
var v = parseInt(navigator.appVersion);
var is_mac = (agent_str.indexOf("mac")!= -1)? true : false;

function getName(moviename){

   if (navigator.appName.indexOf ("Microsoft") !=-1) {

      return window[moviename];

   }

   else {

      return document[moviename];

   }

}


function my_doFSCommand (command,args) {
	eval (command + ((command.indexOf ('(') == -1) ? ('(' + args + ')') : ''));
}

function my_wireFlashMovie (movieName) {
	window [movieName + '_DoFSCommand'] = my_doFSCommand;
	if (navigator.appName.indexOf ("Microsoft") != -1)
		document.writeln (
			'<SCRIPT LANGUAGE="VBScript">' +
			'Sub ' + movieName + '_FSCommand (ByVal command, ByVal args)' +
			'call my_doFSCommand (command, args)' +
			'end sub' +
			'</SCRIPT>'
		)
	;
}

function PopFlyerWin() {

   var winurl = ("flyer.html");

   if (flyerWin == null || flyerWin.closed){

     var wwidth = 400;
     var wheight = 413;
     var xp = (screen.width - wwidth)/2 ;
     var yp = (screen.height - wheight)/2 ;

     flyerWin=window.open(winurl,'flyerWindow','height='+wheight+',width='+wwidth+',toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no,location=no,history=no,'+'screenX='+xp+',screenY='+yp+',top='+yp+',left='+xp+'');
}
    else {

       flyerWin.location = winurl;

    } 

 flyerWin.focus();

}

function viewPress(artist) {

   var winurl = ("press/"+artist+".html");

   if (pressWin == null || pressWin.closed){

     var wwidth = 700;
     var wheight = 340;
     var xp = (screen.width - wwidth)/2 ;
     var yp = (screen.height - wheight)/2 ;

     pressWin=window.open(winurl,'pressWindow','height='+wheight+',width='+wwidth+',toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no,location=no,history=no,'+'screenX='+xp+',screenY='+yp+',top='+yp+',left='+xp+'');
}
    else {

       pressWin.location = winurl;

    } 

 pressWin.focus();

}

function viewDisco(artist) {

   var winurl = ("discographies/"+artist+".html");

   if (discoWin == null || discoWin.closed){

     var wwidth = 700;
     var wheight = 340;
     var xp = (screen.width - wwidth)/2 ;
     var yp = (screen.height - wheight)/2 ;

     discoWin=window.open(winurl,'discoWindow','height='+wheight+',width='+wwidth+',toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no,location=no'+'screenX='+xp+',screenY='+yp+',top='+yp+',left='+xp+'');
}
    else {

       discoWin.location = winurl;

    } 

 discoWin.focus();

}

function viewGallery(artist) {

   var winurl = ("galleries/"+artist+".html");

   if (galleryWin == null || galleryWin.closed){

     var wwidth = 700;
     var wheight = 340;
     var xp = (screen.width - wwidth)/2 ;
     var yp = (screen.height - wheight)/2 ;

     galleryWin=window.open(winurl,'galleryWindow','height='+wheight+',width='+wwidth+',toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no,location=no'+'screenX='+xp+',screenY='+yp+',top='+yp+',left='+xp+'');
}
    else {

       galleryWin.location = winurl;

    } 

 galleryWin.focus();

}

function youMoveMe() {

     var wwidth = 784;
     var wheight = 484;
     var xp = (screen.width - wwidth)/2 ;
     var yp = ((screen.height - wheight)/2 )-60;

    this.moveTo(xp,yp);
    this.resizeTo(wwidth, wheight);
}
