// Index Page Functions

$(document).ready(function() {
	
	// Cache the elements to work on
	var $slider = $('#newsPanel .articles').after('<div class="navigation"></div>');
		
	// Assign the Cycle plugin to the news panel
	$slider.cycle({ 
    	fx:     'scrollLeft', 
    	speed:	500, 
    	timeout: 6000,
    	pause:	1,
    	pager:   '#newsPanel .navigation'
	});
	
	// Use the example function to populate the form fields with thier titles
	$('#login input[type=text], #login input[type=password]').example(function() {
		return $(this).attr('title');
	}, {className: 'blank'});
	
	// Open a popup for the video player
	$('.videoLink').click(function() {
		window.open(this.href,'vidWindow','width=320,height=240');
        return false;
	});

});