﻿var ztoday = new Date();var zyear = ztoday.getFullYear();var zcopyrighttext = "All content &copy; " + zyear + " <a href=\"http://12gaugechicken.com/contact/contact.php\">Greg DiGenti</a>.";var curWidth = 1;var curHeight = 1;var destWidth = 0;var destHeight = 0;var curLeft = 0;var curTop = 0;var keepGrowingWide = false;var keepGrowingTall = false;var flashMovieName = '';var flashPlay = true;var wordsleft, wordstop, boxleft, boxtop, boxdiv;var boxheader = '';var boxdescript = '';//var flashContent = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" height=\""+destHeight+" width=\""+destWidth+"\" align=\"middle\"><param name=\"movie\" value=\"flash/"+flashMovieName+"\"><param name=\"quality\" value=\"best\"><param name=\"play\" value=\""+flashPlay+"\"><embed align=\"middle\" height=\""+destHeight+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"flash/"+flashMovieName+"\" type=\"application/x-shockwave-flash\" width=\""+destWidth+"\" quality=\"best\" play=\""+flashPlay+"\"></object>";//var flashContent = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" height=\""+destHeight+" width=\""+destWidth+"\" align=\"middle\"><param name=\"movie\" value=\"flash/colorthis.swf\"><param name=\"quality\" value=\"best\"><param name=\"play\" value=\""+flashPlay+"\"><embed align=\"middle\" height=\""+destHeight+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"flash/colorthis.swf\" type=\"application/x-shockwave-flash\" width=\""+destWidth+"\" quality=\"best\" play=\""+flashPlay+"\"></object>";var flashContent = "";//voids linksfunction myVoid(){}//for pop up windowsfunction popUpWindow(zname,zwidth,zheight){	zwin = window.open(zname,"miscpop1","width="+zwidth+",height="+zheight+",left=200,top=100,scrollbars=no,toolbar=no,status=no,resizable=no");	zwin.focus();}//finds the top of the windowfunction getScrollingPosition(){	var position = 0;	if (typeof window.pageYOffset != 'undefined'){		position = window.pageYOffset;	}	else if (typeof document.documentElement.scrollTop != 'undefined' && document.documentElement.scrollTop > 0){		position = document.documentElement.scrollTop;	}else if (typeof document.body.scrollTop != 'undefined'){		position = document.body.scrollTop;	}	return position;}//makes movie div visible and sets variables for centering it//before it opens to full sizefunction openMovie(zWidth,zHeight,zname){	destWidth = zWidth;	destHeight = zHeight;	flashMovieName = zname;	var topofwindow = getScrollingPosition();	curTop = topofwindow + 110;	keepGrowingWide = true;	keepGrowingTall = true;	document.getElementById('grayoutbox').style.height = 100 + '%';	document.getElementById('grayoutbox').style.visibility = 'visible';	document.getElementById('grayoutbox').style.top = topofwindow + 'px';	document.getElementById('closeBox').style.top = (topofwindow + 95) + 'px';	document.getElementById('closeBox').style.left = (destWidth + 90) + 'px';	document.getElementById('movieBox').style.visibility = 'visible';	document.getElementById('movieBox').style.top = curTop+"px";	boxGrow();}//makes movie div, graybox and closebox invisiblefunction closeMovie(){	flashContent = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" height=\"5\" width=\"5\" align=\"middle\"><param name=\"movie\" value=\"../images/placeholder.swf\"><param name=\"quality\" value=\"best\"><param name=\"play\" value=\"false\"><embed align=\"middle\" height=\"5\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"../images/placeholder.swf\" type=\"application/x-shockwave-flash\" width=\"5\" quality=\"best\" play=\"false\"></object>";	document.getElementById('movieBox').innerHTML = flashContent;	document.getElementById('closeBox').style.top = 0 + 'px';	document.getElementById('movieBox').style.top = 0 + 'px';	document.getElementById('grayoutbox').style.height = 0 + 'px';	document.getElementById('grayoutbox').style.visibility = 'hidden';	document.getElementById('movieBox').style.visibility = 'hidden';	document.getElementById('closeBox').style.visibility = 'hidden';}function boxGrow(){	if(keepGrowingWide == true || keepGrowingTall == true){		if(curWidth <= destWidth){			document.getElementById('movieBox').style.width = curWidth+"px";			curWidth+=25;		}else{			document.getElementById('movieBox').style.width = destWidth+"px";			keepGrowingWide = false;		}		if(curHeight <= destHeight){			document.getElementById('movieBox').style.height = curHeight+"px";			curHeight+=25;		}else{			document.getElementById('movieBox').style.height = destHeight+"px";			keepGrowingTall = false;		}	setTimeout('boxGrow()',1);	}else{		flashContent  = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" height=\""+destHeight+"\" width=\""+destWidth+"\" align=\"middle\"><param name=\"movie\" value=\"flash/"+flashMovieName+"\"><param name=\"quality\" value=\"best\"><param name=\"play\" value=\"true\"><embed align=\"middle\" height=\""+destHeight+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"flash/"+flashMovieName+"\" type=\"application/x-shockwave-flash\" width=\""+destWidth+"\" quality=\"best\" play=\"true\"></object>";		document.getElementById('closeBox').style.visibility = 'visible';		document.getElementById('movieBox').innerHTML = flashContent;		curWidth = 1;		curHeight = 1;		destWidth = 0;		destHeight = 0;		curLeft = 0;		curTop = 0;		keepGrowingWide = false;		keepGrowingTall = false;	}}