var sor = {} ;

sor.init = function(options) {
	var sor = this ;

	var checkout_button = options.checkout_button ;
	var checkout_button_hover = options.checkout_button_hover ;
	
	sor.ready_callback = function() {
		$("#cart").hover(
			function () {
				$("#cart-checkout-button").attr('src', checkout_button_hover) ;
			},
			function () {
				$("#cart-checkout-button").attr('src', checkout_button) ;
			}
		);
		$(".has-hover-border").hover(
			function () {
				$(this).children().first().addClass('hover') ;
			},
			function () {
				$(this).children().first().removeClass('hover') ;
			}
		);
		$(".has-hover-class").hover(
			function () {
				$(this).addClass('hover') ;
			},
			function () {
				$(this).removeClass('hover') ;
			}	
		) ;
		$('#login-form-email').val('email (jake@example.com)') ;
		$('#login-form-email').unbind('focus').focus(function(event) {
			if($(this).val() === 'email (jake@example.com)') {
				$(this).val('');
			}
		}) ;
		$('#login-form-password').hide().attr('tabindex', -1);
		$('#login-form-fake-password').show().attr('tabindex', 2);
		$('#login-form-fake-password').unbind('focus').focus(function(event) {
			$(this).hide();
			$('#login-form-password').show().attr('tabindex', 2);
			$('#login-form-password').focus();
		}) ;
	} ;
} ;

