/* Cufon - Call */
	Cufon.replace('h1', { fontFamily: 'HelveticaNeue', wordSpacing: '-10px', hover: true });
	Cufon.replace('h1 strong', { fontFamily: 'HelveticaNeue', fontWeight: 'bold', wordSpacing: '-10px', hover: true });
	Cufon.replace('h2', { fontFamily: 'HelveticaNeue', wordSpacing: '-5px', hover: true });
	Cufon.replace('h2 strong', { fontFamily: 'HelveticaNeue', fontWeight: 'bold', wordSpacing: '-5px', hover: true });
	Cufon.replace('h3', { fontFamily: 'HelveticaNeue', wordSpacing: '-5px', hover: true });
	Cufon.replace('h3 strong', { fontFamily: 'HelveticaNeue', fontWeight: 'bold', wordSpacing: '-5px', hover: true });
	Cufon.replace('.item .box-1 a', { fontFamily: 'HelveticaNeue', wordSpacing: '-5px', hover: true });

$(function() {		
	/* Round Corners Call */
		if((!$.browser.msie)&&(!$.browser.opera)) {
			$('#heading .content').corner();
			$('#heading h1').corner();
		}		
	/* ValidationEngine call */
		$("form").validationEngine();
		
		
	/* IE6 Debugs */
		if($.browser.msie && $.browser.version.substr(0,1) < 9) {
			$('.nav li:last-child').css({ 'margin-right': 0});
			$('.wrapper .item:first-child').css({ 'margin-left': 0});
			$('#clients li:first-child').css({ 'margin-left': '10px'});
			$('#clients li:last-child').css({ 'margin-right': '10px'});
			$('#aside ul:first-child').css({ 
				'display': 'block',
				'background': 'transparent url(\'../img/bg-corner-aside.jpg\') no-repeat 100% 0'
			});
			
			$('.item').hover(function(){
				$('h2', this).css({ 'background-color': '#000'});
			}, function(){
				$('h2', this).css({ 'background-color': 'transparent'});
			});
			
			$('#packages dl').hover(function(){
				$(this).addClass('hover');
			}, function(){
				$(this).removeClass('hover');
			})
			$('form.payment input.text').focus(function(){
				$(this).addClass('textFocus');
			});
			$('form.payment input.text').blur(function(){
				$(this).removeClass('textFocus');
			})
		}

        $(".testmode").click(function() {
            var checkval = $(this).attr('checked') ? 1 : 0;

            $.ajax({
                url: '/checkout/testDecline',
                data: {
                    dps_test_decline: checkval
                },
                type: "POST"
            })
        });
});
