
	$(document).ready(function() {
		//$('.dividers a img').fadeTo('slow',0.8);
		//$('.dividers a img').hover(	function() { $(this).fadeTo('slow',.8); },
		//						function() { $(this).fadeTo('slow',1); });
		$.localScroll();
	});	
	var ie = /MSIE/.test(navigator.userAgent); 
    var moz = !ie && navigator.product == "Gecko";
	var swf1 = "http://www.ich-bin-raus.de/blackstar/refshader/basic.htm";
	var swf2 = "http://www.ich-bin-raus.de/blackstar/refshader/complex4.htm";
	
	if (moz)
	{
			swf1 = "c4dshader_tut_basic.html";
			swf2 = "c4dshader_tut_complex.html";
	}

	function isNumeric(input)
	{
	   return (input - 0) == input && input.length > 0;
	}

	function validate()
	{
		sn = document.frmPurchase.os0.value;
	
		if(sn.length != 11)
		{
			alert("Please enter the first 11 digits of your C4D serial number.");
			if (moz)
				window.stop();
			else
				document.execCommand('Stop');
			return;
		}
		
		if(sn.length > 0 && sn.charAt(0) != "1")
		{
			alert("Please enter the C4D number (must start with 1), not the update number.");
			if (moz)
				window.stop();
			else
				document.execCommand('Stop');
			return;
		}
		
		if(!isNumeric(sn))
		{
			alert("The first 11 digits of your C4D serial should be numbers only.");
			if (moz)
				window.stop();
			else
				document.execCommand('Stop');
			return;
		}
		
		document.frmPurchase.action = "https://www.paypal.com/cgi-bin/webscr";
		document.frmPurchase.submit();
	}
