function openAIWindow(URL) {
	switch (URL) {


//EDIT THIS SECTION


		case 'DDBN':
			var urlf = 'http://www.zshot.com/dealers.asp';
			break;
		case 'SKBN':
			var urlf = 'http://www.zshot.com/dealers.asp';
			break;
		case 'TGBN':
			var urlf = 'http://www.zshot.com/dealers.asp';
			break;
			

//DON'T EDIT ANYTHING BEYOND HERE			
			

		case 'DDLM':
			var urlf = 'http://www.zshot.com/tornado.asp';
			break;
		case 'SKLM':
			var urlf = 'http://www.zshot.com/tornado.asp';
			break;
		default:
			var urlf = 'http://www.zshot.com/tornado.asp';
			break;
	}
	window.location.href = urlf;
}





function setCookie(c_name,value,expiredays) {
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value) + ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

function getCookie(c_name) {
	if (document.cookie.length>0) {
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start!=-1) {
			c_start=c_start + c_name.length+1;
			c_end=document.cookie.indexOf(";",c_start);
		if (c_end==-1) c_end=document.cookie.length;
			return unescape(document.cookie.substring(c_start,c_end));
		}
	}
	return "";
}

function aitgshow() {
	aitgshow = getCookie('aitgshow');
	if (aitgshow == null || aitgshow == '') {
		setCookie('aitgshow','true',365);
		aitgshow = getCookie('aitgshow');
	}
	if (!(window.navigator.userAgent.indexOf("Linux") == -1)) {
		setCookie('aitgshow','false','365');
		aitgshow = getCookie('aitgshow');
	}
	if (aitgshow == 'true') {
		var myWidth = 0;
		if (typeof( window.innerWidth ) == 'number') {
			//Non-IE
			myWidth = window.innerWidth;
		} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
		}
		var str = '<div id="filter"></div><div id="aitg" class="aitg"><div style="position: absolute; right:0px; top:0px; padding: 0px; margin: 0px; width:'+myWidth+'px; height:'+(myWidth*0.75)+'px;">'+
		'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+myWidth+'" height="'+(myWidth*0.75)+'" id="aitgmov" valign="top" align="right"><param name="movie" value="aitg.swf"><param name="AllowScriptAccess" value="always"><param name="play" value="true"><param name="menu" value="false"><param name="quality" value="high"><param name="scale" value="showall"><param name="salign" value="tr"><param name="wmode" value="transparent"><!--[if !IE]>--><object type="application/x-shockwave-flash" data="aitg.swf" width="'+myWidth+'" height="'+(myWidth*0.75)+'" align="right" valign="top"><param name="play" value="true"><param name="AllowScriptAccess" value="always"><param name="menu" value="false"><param name="quality" value="high"><param name="scale" value="showall"><param name="salign" value="tr"><param name="wmode" value="transparent"></object><!--<![endif]--></object>'+
		'</div></div>';
		document.write(str);
	}
}

function aitghide() {
	var aitgmov = document.getElementById("aitg");
	aitgmov.parentNode.removeChild(aitgmov);
	document.getElementById('filter').style.display='none';
	document.getElementById('gad').style.display='block';
}


function aitgbf(prop,val) {
	var aitgmov = document.getElementById("aitg");
	aitgmov[prop]=val;
}


function throwtg() {
	document.getElementById('gad').style.display='none'
}


function filtershow() {
	document.getElementById('filter').style.display='block';
}


