

sfHover = function() {
	var sfEls = document.getElementById("mainlevel").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

$(function() {
        $('.contentdescription_lightBox a').lightBox();
});

$(function() {
        $('.contentpaneopen_lightBox a').lightBox();
});

$(document).ready(function(){
    $('#flashVid').flash(
        { src: 'http://franzoso.com/home/flash-video/franzoso-movieplayer.swf?03',
          width: 390,
          height: 309
		},
        { version: 8 }
    );
    //#flashVid
    
/*-----------Add weekly videos here-----------*/
    //alert('ready');
    $('#20110826').flash(
        { src: 'http://franzoso.com/vPlayer.swf',
          width: 320,
          height: 240,
          flashvars: { v: 'http://franzoso.com/Franzoso.2011.08.26.flv', mcolor: '0x003366', playVid: 'false' }
        },
        { version: 8 }
    );
/*-----------End weekly videos----------------*/
    
  /*  $("#popupAd").css('display','none').fadeIn('slow').delay(10000).fadeOut('slow');
    $('#popupAd a').click(function(){
    	//alert('clicked');
    	$("#popupAd").css('border-color','#036').clearQueue().fadeOut('fast');
    });
    
    var count = 10;
    countdown = setInterval(function(){
    	$("#popupAd span").html("This window will close in: "+count + " seconds.");
    	if (count == 0) {
      		//do something fun
    	}
    		count--;
  		}, 1000);*/
    
    $('a[@href$="mp3"]').flash(
        { src: 'http://franzoso.com/home/mp3/singlemp3player.swf', height: 20, width: 100 },
        { version: 7 },
        function(htmlOptions) {
            $this = $(this);
            htmlOptions.flashvars.file = $this.attr('href');
            $this.before($.fn.flash.transform(htmlOptions));						
        }
    );
});

function closeIt(){
	$("#flashVid").css("display","none");	
}


