// Version 20030618.1532r - MM
// JavaScript Copywrite 2003 1Dev, Inc.

	lastlayer = "1"
	var isNav, isIE;

	if (parseInt(navigator.appVersion) >= 4) {
		if (navigator.appName == "Netscape") {
			isNav = true;
		} else {
			isIE = true;
		}
	}

	function showLayer(a) {
		if (isNav) {
			document.layers[a].visibility="visible"
		} else {
			document.all[a].style.visibility="visible"
		}
	}

	function hideLayer(a) {
		if (isNav) {
			document.layers[a].visibility="hidden"
		} else {
			document.all[a].style.visibility="hidden"
		}
	}

	function changeView(curlayer) {

		// This JavaScript is a Copywrite 2003 1Dev, Inc.

		curlayername = ("labrada" + curlayer);
		curlayerimgname = ("labradaimg" + curlayer);
		curlayerimagepath = ("/images/labradaimg" + curlayer + "on.gif");

		if (lastlayer > 0) {
		lastlayername = ("labrada" + lastlayer);
		lastlayerimgname = ("labradaimg" + lastlayer);
		lastlayerimagepath = ("/images/labradaimg" + lastlayer + "off.gif");
		hideLayer(lastlayername);
		document.images[lastlayerimgname].src = lastlayerimagepath
		}

		showLayer(curlayername);
		document.images[curlayerimgname].src = curlayerimagepath
		lastlayer = curlayer
	}

	curlayer = lastlayer

	function on(pic) {
	document.images[pic].src = eval(pic + 'on.src');
	return;
	}

	function off(pic) {
	document.images[pic].src = eval(pic + 'off.src');
	return;
	}

	

	function openWindow(a,b,c,d,x) {
	// a = width
	// b = height
	// c = url
	// d = windowname
	// x = window properties

	var aheight = ('height=');
	var aline = (aheight + b);
	var bwidth = ('width=');
	var bline = (bwidth + a);
	var commachar = (',');
	var size = (aline + commachar + bline);

	// select a value for the attributes
	// 0 = nothing and is the default
	// 1 = scrollbars only
	// 2 = scrollbars and location (url)
	// 3 = scrollbars and toolbar
	// 4 = scrollbars and toolbar and location (url)
	// 5 = resize ok nothing = default

	if (x == 0) {
		window.open(c, d, size);
	} else if (x == 1) {
		one = (size + ',scrollbars=yes,');
		window.open(c, d, one);
	} else if (x == 2) {
		two = (size+ ',scrollbars=yes,location=yes,');
		window.open(c, d, two);
	} else if (x == 3) {
		three = (size + ',scrollbars=yes,toolbar=yes');
		window.open(c, d, three);
	} else if (x == 4) {
		four = (size + ',scrollbars=yes,location=yes,toolbar=yes');
		window.open(c,d, four);
	} else if (x == 5) {
		four = (size + ',resize=yes');
		window.open(c,d, four);
	} else if (x == 6) {
		one = (size + ',resize=yes,scrollbars=yes');
		window.open(c, d, one);		
	} else end
	}


	/* external file "yourbcparmsgname.txt" begins */
	// begin: Belt Conveyer's Parameters - 
	//width of the Conveyer in pixels: set to your own; 
	//Longer Messages (exceeding width) will slide OK anyway;
	var bwidth=380; 

	//height of the Conveyer in pixels: set to your own; 
	//you may set the height for as many lines as you'd like; 
	//"20" is more or less for one line!
	var bheight=17; 

	//BACKGROUND: either color(1) or image(2) ; 
	//1.Background color: could be like: "#ffff00" or "yellow";
	//set it "" for no background color;
	var bbcolor="#011762";

	//or 2.Background image: "imagename.ext";
	//leave it "" for no image background;
	var bbground="";

	//border for sliding area: 1, ... ;
	//set it 0(zero) for no border;
	var bborder=0;

	//speed in pixels: the higher the faster!
	var bspeed=4; 

	//pause between messages in milliseconds: 1000=1s; set to your own;
	var bpause = 2000; 

	//speed for exceeding portions in milliseconds: 1000=1s; 
	//the higher the slower: set to your own;
	//"20" equals the speed to the main portion!
	//leave it unchanged otherwise;
	var fpause=10;

	//First message shows up at the left edge (or centered) and pauses: 1
	//First message shows up at the right edge and starts scrolling: 0
	var rlopt=0;

	//live speed-change option: 0 (not desired) or 1 (desired);
	//yourclass would be the STYLE
	//celcolor would be background color
	var lsopt = 1;
	if(lsopt==1){
	var yourclass='class=stileupdn';
	var celcolor='#ccffcc';
	}
	//end Parameters 

	// begin: Belt Conveyer's Messages/Images - 
	var sglm=new Array();

	//Stand alone Images only - as many as you'd like;
	//If no preloading desired go to Messages and fill in as usual:
	//sglm[..]='<img src="image1name.ext" width= ...>'; ...
	//If you want to preload them all when loading your page: 
	//Remove all lines from: //Messages: ... up to ... //end Messages 
	//Remove "//" from next 6 lines and set your images in first one;

	//sglm=["image1name.ext", "image2name.ext", ...];
	//var preloadname = new Array();
	//for(pp=0;pp<sglm.length;pp++){
	//preloadname[pp]=new Image();
	//preloadname[pp].src=sglm[pp];
	//sglm[pp]='<img src='+preloadname[pp].src+'>';}
	//end stand alone Images 

	//Messages: as many/few as you'd like: set to your own; 
	//<DIV class=... ...> and </DIV> are recommended    
	//for alignment and/or Size, Color, ... control.
	//Inside any message you MUST use \' in lieu of '!
	//You may use as many "&+n+b+s+p+;" as you'd need to space 
	//within messages - quotes and plus signs don't belong there! 
	//Images used within a message - preload is recommended:
	//preloadname = new Image();
	//preloadname.src = "imagename.ext";
	//sglm[..]='< ... ><img ... src='+preloadname.src+'><...>';

	sglm[0]='<div class=tabc><a class="tabbc" href="joinfreenow.htm"><i>Benefits of Joining the Lean Body Coaching Club:</a></i></div>'
	sglm[1]='<div class=tabc><a class="tabbc" href="joinfreenow.htm">Tip of the Week Fitness & Nutrition e-mail newsletter</a></div>'
	sglm[2]='<div class=tabc><a class="tabbc" href="joinfreenow.htm">Exclusive Content not available anywhere else Online</a></div>'
	sglm[3]='<div class=tabc><a class="tabbc" href="joinfreenow.htm">Lee Labrada as your Online Personal Trainer</a></div>'
	sglm[4]='<div class=tabc><a class="tabbc" href="joinfreenow.htm">The ASK LEE E-Mail Service answers your fitness questions</a></div>'
	sglm[5]='<div class=tabc><a class="tabbc" href="joinfreenow.htm">Exclusive Members only training & fitness Downloads</a></div>'
	sglm[6]='<div class=tabc><a class="tabbc" href="joinfreenow.htm">Members Only Discounts on orders from our Online Store</a></div>'
	sglm[7]='<div class=tabc><a class="tabbc" href="joinfreenow.htm">CLICK HERE TO JOIN FREE NOW!</a></div>'

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_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_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

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];}
}
