// JavaScript Document

	jQuery(document).ready(function() { 
	jQuery("#dropmenu ul").css({display: "none"}); // Opera Fix 
	jQuery("#dropmenu li").hover(function(){ 
			jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(268); 
			},function(){ 
			jQuery(this).find('ul:first').css({visibility: "hidden"}); 
			}); 
	});

    /*        


    $f("Life_Video", "javascript/flowplayer-3.0.5.swf", {    
        clip: { autoPlay: false}
    });

    flowplayer("player", "javascript/flowplayer-3.1.3.swf", {

    // here is our playlist with two clips     
    playlist: [
    // this first PNG clip works as a splash image        
    {
        url: '/img/title/screens.png',
        scaling: 'orig'
    },

    // second clip is a video. when autoPlay is set to false the splash screen will be shown     
    {

        url: 'http://flowplayer.org/video/flowplayer-700.flv',
        autoPlay: false,

        // video will be buffered when splash screen is visible             
        autoBuffering: true
    }]});*/



	var bgimages = new Array()
	bgimages[0] = "/wp-content/themes/Inner-Active/images/slide_vision_to_reality.jpg"
	bgimages[1] = "/wp-content/themes/Inner-Active/images/slide_insight_to_action.jpg"
	bgimages[2] = "/wp-content/themes/Inner-Active/images/slide_become_a_member.jpg"

	var pathToImg = new Array()
	for (i = 0; i < bgimages.length; i++) {
	    pathToImg[i] = new Image()
	    pathToImg[i].src = bgimages[i]
	}
	var inc = -1

	function bgSlide() {
	    if (inc < bgimages.length - 1)
	        inc++
	    else
	        inc = 0
	    document.getElementById('home_image').style.background = 'url(' + bgimages[inc] + ')';
	}

	if (document.all || document.getElementById)
	    window.onload = new Function('setInterval("bgSlide()",4000)')
