var agent=navigator.userAgent.toLowerCase();
var dom=document.getElementById;
var iex=document.all;
var ns4=document.layers;

getElement=function(name,nest){
	/* squidfingers */
	var nest=nest?'document.'+nest+'.':'';
	var el=dom?document.getElementById(name):iex?document.all[name]:ns4?eval(nest+'document.'+name):false;
	return el;
}

var MM_contentVersion = 5;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i=0; i<words.length; i++) {
		if (isNaN(parseInt(words[i]))) continue;
		var MM_PluginVersion = words[i]; 
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
document.write('<scr' + 'ipt language="VBScript"\> \n'+'on error resume next \n'+'MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n'+'</scr' + 'ipt\>');


function waitForLoad() {
	if(getElement("doneLoading")){
		doneLoading();
	}else setTimeout('waitForLoad();',100);
}
function doneLoading() {
	loadBird();
	if(getElement("deliveryInfo"))getElement("deliveryInfo").style.display="none";
}
setTimeout('waitForLoad();',1000);

document.i=0;
function loadBird(){
	var wingitbird=getElement("wingitbird");
	if(MM_FlashCanPlay&&document.i<100){
		wingitbird.innerHTML=('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  id="wingit-anim" width="800" height="295" style="width:800px; height:295px; border:0;">'+'<param name="movie" value="wingit.swf?goto='+pageId+'"><param name="quality" value="high"><param name="bgcolor" value="#ffff99">'+'<embed src="wingit.swf?goto='+pageId+'" quality="high" bgcolor="#ffff99"'+' swLiveConnect=false width="800" height="295" name="movie" align=""'+' type="application/x-shockwave-flash">'+'</embed>'+'</object>');
	} else{document.i++;loadBird();}
}

function showCC(obj){
	if(obj.value!="CASH"&&obj.value!="PAYPAL"){
		getElement("pretip").style.display="block";
		getElement("cardinfo").style.display="block";
	}else if(obj.value=="PAYPAL"){
		getElement("pretip").style.display="block";
		getElement("cardinfo").style.display="none";
	}else{
		getElement("pretip").style.display="none";
		getElement("cardinfo").style.display="none";
	}
}

function setTip(amt){
	getElement("cctip").value="$"+amt;
}

function showDI(obj){
	if(obj.selectedIndex>1){
		getElement("deliveryInfo").style.display="block";
	}else getElement("deliveryInfo").style.display="none";
}


var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
var jsns = "https://www.w3.org/1999/xhtml"; var jsxfok = false; var jsxfcp = false;

function jsxwm(jsxf,jsxw,jsxh,jsxp,jsxfv,jsxscale,jsxq,jsxbgc) { if (!jsxfv) jsxfv=6; if (plugin) { var words = navigator.plugins["Shockwave Flash"].description.split(" "); for (var i=0; i<words.length; ++i) { if (isNaN(parseInt(words[i]))) continue; var jsxfpv = words[i]; } var jsxfok = jsxfpv >= jsxfv; } else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) { document.write('<scr'+'ipt language=VBScript\>\non error resume next\njsxfcp = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+jsxfv+')))\n</scr'+'ipt\>'); } if (jsxfok || jsxfcp) { document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+jsxfv+',0,0,0" width="'+jsxw+'" height="'+jsxh+'" id="'+jsxf+'" scale="noscale" salign="lt"><param name="movie" value="'+jsxp+jsxf+'.swf?jsxp='+jsxp+'&jsxscale='+jsxscale+'&jsxw='+jsxw+'&jsxf='+jsxf+"&"+jsxq+'" /><embed src="'+jsxp+jsxf+'.swf?jsxp='+jsxp+'&jsxscale='+jsxscale+'&jsxw='+jsxw+'&jsxf='+jsxf+"&"+jsxq+'" quality="high" bgcolor="#'+jsxbgc+'" width="'+jsxw+'" height="'+jsxh+'" name="'+jsxf+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" id="'+jsxf+'" scale="noscale" salign="lt" /></object>'); } else { var jsxnsd = jsxce("div"); jsxnsd.innerHTML = jsxge("ns-"+jsxf).innerHTML; var jsxtd = jsxnsd.innerHTML.replace(/\&gt;/gi, ">"); document.write([jsxtd.replace(/\&lt;/gi, "<")].join("")); } }


function getMap(a,c,s,z) {
	var windowVariable = null;
	windowVariable = window.open("https://maps.google.com/maps?f=q&hl=en&q="+a+",+"+c+"+"+s+"+"+z+"&om=1", "pickupwindow", "width=720, height=580, menubar=no, resizable=no, status=no, toolbar=no");
}
