
	
		var card_checked_premier = '';
		var card_checked_classic = '';

		$(document).ready(function() {


		    $('a#features').click(function(e) {
		        e.preventDefault();
		        $('#tabs-2').css('display', 'none');
		        $('#tabs-1').css('display', 'block');
		        $('a#card_designs').removeClass('selected');
		        $(this).addClass('selected');
		        $('img', this).attr('src', siteURL + 'images/cs_tab_features_on.jpg');
		        $('a#card_designs img').attr('src', siteURL + 'images/cs_tab_designs.jpg');
		    });


		    $('a#card_designs').click(function(e) {
		        e.preventDefault();
		        $('#tabs-1').css('display', 'none');
		        $('#tabs-2').css('display', 'block');
		        $('a#features').removeClass('selected');
		        $(this).addClass('selected');
		        $('img', this).attr('src', siteURL + 'images/cs_tab_designs_on.jpg');
		        $('a#features img').attr('src', siteURL + 'images/cs_tab_features.jpg');
		    });



		    //	open tab 'designs' with 'start' button
		    $('a.start_btn').click(function(e) {
		        e.preventDefault();
		        $('#tabs-2').css('display', 'block');
		        $('#tabs-1').css('display', 'none');
		        $('a#features').removeClass('selected');
		        $('a#card_designs').addClass('selected');
		        location.href = "#top";
		        $('a#features img').attr('src', siteURL + 'images/cs_tab_features.jpg');
		        $('a#card_designs img').attr('src', siteURL + 'images/cs_tab_designs_on.jpg');
		    });


		    $('a#features').hover(
			function() {
			    $('img', this).attr('src', siteURL + 'images/cs_tab_features_on.jpg');
			},
			function() {
			    if (!$(this).hasClass('selected')) {
			        $('img', this).attr('src', siteURL + 'images/cs_tab_features.jpg');
			    }
			});


		    $('a#card_designs').hover(
			function() {
			    $('img', this).attr('src', siteURL + 'images/cs_tab_designs_on.jpg');
			},
			function() {
			    if (!$(this).hasClass('selected')) {
			        $('img', this).attr('src', siteURL + 'images/cs_tab_designs.jpg');
			    }
			});



		    $('a#features').attr('tabindex', '1');
		    $('a#card_designs').attr('tabindex', '2');



		    //	add tabindex to radio buttons	
		    $('input:radio').each(function(i) {
		        i = i + 1;
		        $(this).attr('tabindex', i);
		        i++;
		    });




		    //	grab what radio btn was clicked and pass to "apply" link
		    card_checked_premier = 0;
		    $('#cards_premier input:radio').change(function(e) {
		        card_checked_premier = $(this).val();
		    });

		    card_checked_classic = 0;
		    $('#cards_classic input:radio').change(function(e) {
		        card_checked_classic = $(this).val();
		    });



		    $('<div id="tabs_footer"></div>').insertAfter('#tabs');


		    //colorbox
		    $("a[rel='premier'], a[rel='classic']").colorbox({
		        inline: true,
		        scrolling: false,
		        innerWidth: '888px',
		        innerHeight: '449px',
			//	close: '<a href="#" onclick="return false;" tabindex="3"><img src="' + siteURL + 'images/overlay_close_btn.jpg" alt="close" /></a>',
			//	next: '<a href="#" onclick="return false;" tabindex="4"><img src="' + siteURL + 'images/overlay_next_btn.gif" alt="next" /></a>',
			//	previous: '<a href="#" onclick="return false;" tabindex="5"><img src="' + siteURL + 'images/overlay_prev_btn.gif" alt="previous" /></a>',
		        close: 'close<span><img src="' + siteURL + 'images/overlay_close_btn.jpg" alt="close" /></span>',
		    //    previous: 'previous<span><img src="' + siteURL + 'images/overlay_prev_btn.gif" alt="previous" /></span>',
		        //    next: 'next<span><img src="' + siteURL + 'images/overlay_next_btn.gif" alt="next" /></span>',
		        previous: 'previous<span style="background:url(' + siteURL + 'images/overlay_prev_btn.gif) no-repeat 0 0;width:85px;height:33px;"></span>',
		        next: 'next<span style="background:url(' + siteURL + 'images/overlay_next_btn.gif) no-repeat 0 0;width:85px;height:33px;"></span>',
		        onOpen: function() {
		            $("#cboxClose").attr("tabindex", "0").focus();
		            $("#cboxPrevious").attr("tabindex", "0");
		            $("#cboxNext").attr("tabindex", "0");
		        }
		    });

		});
		
		




