$(document).ready(function(){
	$('#sign_up').click(function() {
		window.location = $('#secure_path').html() + 'sign_up.php';
	});

	$('#outer').show();

	$('#link-1').click(function() {
		window.location = $('#secure_path').html() + 'sign_up.php';
	});
	$('#link-3').click(function() {
		window.location = $('#secure_path').html() + 'sign_up.php';
	});
	$('#link-4').click(function() {
		window.location = $('#secure_path').html() + 'sign_up.php';
	});
   	$('#link-5').click(function() {
		window.location = $('#insecure_path').html() + 'tour.php';
	});
	$('#get_started').click(function() {
		window.location = $('#insecure_path').html() + 'pricing.php';
	});	
	setTimeout("load_delay_items()",1000);
});

function load_delay_items(){
	$('#hero0').attr('src', 'version/' + $('#version_number').html() + '/images/hero-team.png');
	$('#hero1').attr('src', 'version/' + $('#version_number').html() + '/images/hero-age.png');
	$('#hero2').attr('src', 'version/' + $('#version_number').html() + '/images/hero-appraisal.png');
	$('#hero3').attr('src', 'version/' + $('#version_number').html() + '/images/hero-marketing.png');
	$('#hero4').attr('src', 'version/' + $('#version_number').html() + '/images/hero-method.png');
	$('#hero5').attr('src', 'version/' + $('#version_number').html() + '/images/hero-response.png');

	$('#banner_hero').cycle();

}


var hpspeed = 1000;
if ($.browser.msie===true){
	if ($.browser.version < 9){
        hpspeed = 0;
    }
}


$.fn.cycle.defaults = { 
	    timeout:       4000,  // milliseconds between slide transitions (0 to disable auto advance) 
	    speed:         hpspeed,  // speed of the transition (any valid fx speed value) 
	    next:          null,  // id of element to use as click trigger for next slide 
	    prev:          null,  // id of element to use as click trigger for previous slide 
	    before:        null,  // transition callback (scope set to element to be shown) 
	    after:         null,  // transition callback (scope set to element that was shown) 
	    height:       'auto', // container height 
	    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:         0,     // additional delay (in ms) for first transition (hint: can be negative) 
	    slideExpr:     null   // expression for selecting slides (if something other than all children is required) 
}; 
