$(function () {
var msie6 = $.browser == 'msie' && $.browser.version < 7;
if (!msie6) {
	var top = $('#summary').offset().top - parseFloat($('#summary').css('margin-top').replace(/auto/, 0));
	$(window).scroll(function (event) {
		 var y = $(this).scrollTop();
		
		 if (y >= top) {
			$('#summary').addClass('fixed');
		 } else {
			$('#summary').removeClass('fixed');
		 }
	 });
 }
 
	evalPrice();
	$("#obutton").click(function() {
		evalPrice();
	}); 
	$('input.radio').click(function() {
		evalPrice();
	}); 
	$('input.baseprice').click(function() {
		evalPrice();
	}); 
	$('input#Pages').change(function() {
		evalPrice();									  
	}); 	
	$('input#Pages').blur(function() {
		evalPrice();									  
	});
	$('input#Pages').focus(function() {
		this.select();				  
	});
	$('input#order-coupon').change(function() {
		evalPrice();									  
	}); 	
	$('input#order-coupon').keyup(function() {
		evalPrice();									  
	});
	
 
	$("a.ot").toggle(function() {
		$(this).css('background','url(./img/minus.gif) no-repeat left center');
		$(this).next('div.oc').css('display','block');	
	}, function() {
		$(this).css('background','url(./img/plus.gif) no-repeat left center');
		$(this).next('div.oc').css('display','none');
	});	
	
	$("input#File").filestyle({ 
			image: "img/browse.gif",
			imageheight : 24,
			imagewidth : 82,
			width : 118
	});
}); 



