// JavaScript Document
$(document).ready(function() {
		$("#text").css("margin-top","360px");
		$("#right").css("margin-top","360px");
		$('#imgcycle').cycle({
			timeout:       6000,  // milliseconds between slide transitions (0 to disable auto advance) 
			speed:         1000,  // speed of the transition (any valid fx speed value)
			before:        null,  // transition callback (scope set to element to be shown) 
			after:         null,  // transition callback (scope set to element that was shown)
			sync:          1,     // true if in/out transitions should occur simultaneously 
			fit:           0,     // force slides to fit container 
			pause:         0,     // true to enable "pause on hover" 
			//delay:         -5000,     // additional delay (in ms) for first transition (hint: can be negative) 
			slideExpr:     null,
			pager:         '#numbers',  // id of element to use as pager container 
			pagerClick:    null,  // callback fn for pager clicks:  function(zeroBasedSlideIndex, slideElement) 
			pagerEvent:   'click', // event which drives the pager navigation 
			pagerAnchorBuilder: null, // callback fn for building anchor links
			pause:         1,     // true to enable "pause on hover" 
			pauseOnPagerHover: 0, // true to pause when hovering over pager link 
			autostop:      false,     // true to end slideshow after X transitions (where X == slide count) 
			autostopCount: 5,     // number of transitions (optionally used with autostop to define X) 
			cleartype:     0,     // true if clearType corrections should be applied (for IE) 
			nowrap:        0      // true to prevent slideshow from wrapping 
			
							 
		});
});

function anchorBuilder() {
	if (this.id == "one") {
		$('#imgcycle').cycle({
			timeout:       0
		});
	}
    /*$('#title') 
        .html(this.alt); */
};
