// 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, '| Mind Magic', 'mindmagic.html', '_self', 'Shelby Collinge\'s Mind Magic'],  
	[null, '| Limitless Possibilities', 'limitlesspossibilities.html', '_self', 'Sign up here to receive coaching by email 3 times per week'],  
	[null, '| Personal 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, 'Testimonials', '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" />');
};
};

