// JavaScript Document

/* Menu Tree is here */

var myMenu =
[
    [null, 'Home', 'index.html', '_self', 'Home Page of Shelby Collinge, Mindset Expert and Spiritual Advisor'],  // a menu item
    [null, '| Perception University', 'perceptionuniversity.html', '_self', 'Shelby Collinge\'s Self Accredited Perception University'],  
	[null, '| Ecourse Programs', null, '_self', null,
	  [null,' Miracles Ecourse - 30 days', 'miraclespackage.html', '_self', null],
	  [null,' Problems Ecourse - 45 days', 'problemsecourse.html', '_self', null]
	  ],  
	[null, '| Sessions', 'sessionswithshelby.html', '_self', 'Private sessions with Shelby'],
		    
/* _cmSplit, */

        [null, '| Drops of Inspiration', 'dropsofinspiration.html', '_self', 'Shelby Collinge\'s Drops of Inspiration'],
		[null, '| About Me', 'aboutshelbycollinge.html', '_self', 'A few facts about myself',
		 [null, 'Client Results', 'testimonials.html', '_self', 'Don\'t just take my word for it, see what my Customers have to say about my work!'], 
		 ],  
		[null, '| Blog', 'http://shelbycollinge.blogspot.com', '_self', 'Check out my blog!'],
		
		// a folder item
];


/*  Flying Div Scripts  */

var rmax = 200;
var tmr  = 8;
var intg = 1;
var dir  = 1;
var leafStop = 70;

function moveIt() {
  obj = document.getElementById("optinbox").style;
  curr = parseInt(obj.left);
  if (curr > rmax) {dir = -dir;}
  obj.left = curr + dir + "px";
  setTimeout("moveIt()", intg*tmr);
  if (curr == leafStop) {dir = 0;};
}

function init() {
  setTimeout("moveIt()", intg*tmr);
}

/* close flying div */

function changeToInvisible(obj)
{

obj = document.getElementById("optinbox");
obj.style.visibility = 'hidden';

}

/*  End of Flying Div Scripts  */

/* detect browser type */

function changeFooter(){
if (navigator.appName == 'Opera') {
document.write('<link href="ShelbyFixedOpera.css" rel="stylesheet" type="text/css" />');
}
else {
	document.write('<link href="ShelbyFixed2.css" rel="stylesheet" type="text/css" />');
};
};


