// JavaScript Document
jQuery(document).ready(function(){
	
	$(document).ready(function(){
			$('.slider').cycle({
				fx: 'fade',
				prev:   '.left-arrow', 
    				next:   '.right-arrow',
				speed: 3000,
				timeout: 2000,
				pager: '.pager',

				pagerAnchorBuilder: pagerFactory

		});

				function pagerFactory(idx, slide) {

				var s = idx > 6 ? ' style="display:none"' : '';

				return '<li'+s+'><a href="#">'+(idx+1)+'</a></li>';

				};

			});	
	
	/**TRADE STYLES**/
	$(function() {

    $('#slideshow ul').cycle({

        fx:     'fade',

        speed:  '1000',

        timeout: 0,

        pager:  '#nav',

        pagerAnchorBuilder: function(idx, slide) {

            // return sel string for existing anchor

            return '#nav li:eq(' + (idx) + ') a';

        }

    });

});

<!--DD_roundies.addRule('#header', '13px');-->
<!--DD_roundies.addRule('.misa-info', '15px');-->
	
	//this function attached focus and blur events with input elements
	var addFocusAndBlur = function($input, $val){
		
		$input.focus(function(){
			if (this.value == $val) {this.value = '';}
		});
		
		$input.blur(function(){
			if (this.value == '') {this.value = $val;}
		});
	}

	// example code to attach the events
	//addFocusAndBlur(jQuery('#name'),'Name');
	
});
