<!--
//	iAGUMode definitions:
//
//	1 - Accepting Summer clothing
//	2 - red we are not accepting due to the tremendous response, until further notice,
//	3 - red we are no longer accepting spring and summer clothing (for the month of July)
//		we will begin accepting Fall and winter clothing in August
//	4 - green accepting Fall and winter clothing
//	5 - red are not accepting due the tremendous response
//	6 - red no longer accepting fall and winter clothing (month of December) 
//		Spring and summer clothing will begin to be accepted in January
//

var iAGUMode=5;
var iAGUTagMode=4;
var iAGUSuperMode=-1;
var sAGUSMsg='';

//	iHWGAMode definitions:
//
//	1 - Accepting SpringSummer clothing
//	2 - red we are not accepting 16 to end of month
//	3 - red we are no longer accepting spring and summer clothing (for the month of July) but toys and equipment
//		are accepted in July, we will begin accepting Fall and winter clothing in August
//	4 - green accepting Fall and winter clothing
//	5 - red we are not accepting 16 to end of month
//	6 - red we are not accepting December shutdown
//	7 - red no longer accepting fall and winter clothing (month of December) but are accepting toys and
//		equipment…Spring and summer clothing will begin to be accepted in February

var iHWGAMode=7;
var iHWGATagMode=11;
var sHWGADate='';
var iHWGASuperMode=-1;
var sHWGASMsg='';
var sHWGADate='';

function print_cont_agu()
{
popupWin = window.open('../shared/agu_cont_print.html','open_window','scrollbars,resizable,toolbar,menubar,width=600,height=500,screenX=0,screenY=0')
}

function legal()
{
popupWin = window.open('../shared/win_legal.html','open_window','noscrollbars,resizable,width=475,height=425,screenX=0,screenY=0')
}

function privacy()
{
popupWin = window.open('../shared/win_privacy.html','open_window','noscrollbars,resizable,width=475,height=425,screenX=0,screenY=0')
}

function legalagu()
{
popupWin = window.open('../shared/win_legal_agu.html','open_window','noscrollbars,resizable,width=420,height=240,screenX=0,screenY=0')
}

function privacyagu()
{
popupWin = window.open('../shared/win_privacy_agu.html','open_window','scrollbars,resizable,width=475,height=425,screenX=0,screenY=0')
}

function ldimg()
{
preloadImages('images/drawer_home_hl.gif','images/drawer_home.gif','images/drawer_whatnew_hl.gif','images/drawer_whatnew.gif','images/drawer_features_hl.gif','images/drawer_features.gif','images/drawer_consign_hl.gif','images/drawer_consign.gif','images/drawer_now_hl.gif','images/drawer_now.gif','images/drawer_dandr_hl.gif','images/drawer_dandr.gif','images/drawer_faq_hl.gif','images/drawer_faq.gif','images/drawer_loc_hl.gif','images/drawer_loc.gif','images/drawer_cont_hl.gif','images/drawer_cont.gif','images/drawer_sitemap.gif','images/drawer_sitemap_hl.gif','images/drawer_products_hl.gif','images/drawer_products.gif');
}

function MM_swapImgRestore() 
{
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function preloadImages() 
{
    var d=document; 
    if(d.images)
    { 
	if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=preloadImages.arguments; 
	for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0)
	    { 
		d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
	    }
    }
}

function swapImage() 
{
    var i,j=0,x,a=swapImage.arguments; 
    document.MM_sr=new Array; 
    for(i=0;i<(a.length-2);i+=3)
	if ((x=findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImage() 
{
    var i,j=0,x,a=MM_swapImage.arguments; 
    document.MM_sr=new Array; 
    for(i=0;i<(a.length-2);i+=3)
	if ((x=findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function findObj(n, d) 
{
    var p,i,x;  
    if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) 
    {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
    }
    if(!(x=d[n])&&d.all) 
	x=d.all[n]; 
    for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
	x=findObj(n,d.layers[i].document);
    if(!x && d.getElementById) 
	x=d.getElementById(n); 
    return x;

}

function GetMonth()
{
var myMonths=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
today=new Date();
thisMonth=today.getMonth();
return myMonths[thisMonth];
}

function GetTag()
{
	var a=GetTag.arguments
	var myMonths=new 	Array("Yellow","Red","Blue","Pink","Orange","Purple","Yellow","Red","Blue","Pink","Orange","Purple");
	if (iAGUTagMode==-1)
		{
		if (a.length==0)
			{
			today=new Date();
			thisMonth=today.getMonth();
			return myMonths[thisMonth];
			}
		else
			{
			return myMonths[a[0]];
			}
		}
	else
		{
		return myMonths[iAGUTagMode];

		}
}

function GetHWGATag()
{
	var a=GetHWGATag.arguments
	var myMonths=new 	Array("Yellow","Red","Blue","Pink","Orange","Purple","Yellow","Red","Blue","Pink","Orange","Purple");
	if (iHWGATagMode==-1)
		{
		if (a.length==0)
			{
			today=new Date();
			thisMonth=today.getMonth();
			return myMonths[thisMonth];
			}
		else
			{
			return myMonths[a[0]];
			}
		}
	else
		{
		return myMonths[iHWGATagMode];

		}
}

function GetHWGASSpec()
{
	if (iHWGASuperMode > -1)
	{
          document.write('<tr>');
          document.write('<td class=\"biggcenter\" style=\"color: #000000\">Super Special</td></tr>');
          document.write('<tr><td class=\"smallcenter\" style=\"color: #000000\">');
		document.write(sHWGASMsg+ '<br><br>Look for items with ');
          document.write(GetModeColour(iHWGASuperMode) + ' tags and take 50% off the<br> original ticket price.<br><br>Prices will be marked down upon checkout.</td></tr>');
	}


}

function GetAGUSSpec()
{
	if (iAGUSuperMode > -1)
	{
          document.write('<tr>');
          document.write('<td class=\"biggcenter\" style=\"color: #000000\">Super Special</td></tr>');
          document.write('<tr><td class=\"smallcenter\">');
		document.write(sAGUSMsg+ '<br><br>Look for items with ');
          document.write(GetModeColour(iAGUSuperMode) + ' tags and take 50% off the<br> original ticket price.<br><br>Prices will be marked down upon checkout.</td></tr>');
	}


}

function GetModeColour()
{

	var a=GetModeColour.arguments
	var myModes=new 	Array("Yellow","Red","Blue","Pink","Orange","Purple","Yellow","Red","Blue","Pink","Orange","Purple");
	return myModes[a[0]];
}

function GetColor()
{
var a=GetColor.arguments
var myMonths=new Array("#FFFF99","#FF3300","#CCFFFF","#FFC1D6","#FFCC66","#CC99FF","#FFFF99","#FF3300","#CCFFFF","#FFC1D6","#FFCC66","#CC99FF");
if (a.length==0)
{
today=new Date();
thisMonth=today.getMonth();
return myMonths[thisMonth];
}
else
{
return myMonths[a[0]];
}
}

function GetHWGAColor()
{
	var a=GetHWGAColor.arguments
	var myMonths=new Array("#FFFF99","#FF3300","#CCFFFF","#FFC1D6","#FFCC66","#CC99FF","#FFFF99","#FF3300","#CCFFFF","#FFC1D6","#FFCC66","#CC99FF");
	if (iHWGATagMode==-1)
		{
		if (a.length==0)
			{
			today=new Date();
			thisMonth=today.getMonth();
			return myMonths[thisMonth];
			}
		else
			{
			return myMonths[a[0]];
			}
		}
	else
		{
		return myMonths[iHWGATagMode];
		}
}

function GetHWGAImageLine(iLine)
{
	switch(iLine)
		{
		case 1:
			document.write("<a href='features.html' class='hwga_mainsign_lone'>Tag Sale<br>" + GetHWGATag() + " Tags now 25% off</a>");
			break;
		}
}

function GetAGUAcceptImg()
{
	switch(iAGUMode)
		{
		case 1:
			document.write("<a href='accepting.html'><img border='0' src='images/acc_summercloth.gif' title='Accepting Items'></a>");
			break;
		case 4:
			document.write("<a href='accepting.html'><img border='0' src='images/acc_fallwintercloth.gif' title='Accepting Items'></a>");
			break;
		case 2:
		case 3:
		case 5:
			document.write("<a href='accepting.html'><img border='0' src='images/acc_nothing.gif' title='Not Accepting Clothing'></a>");
			break;
		case 6:
			document.write("<a href='accepting.html'><img border='0' src='images/acc_not_fallwinterfeb.gif' title='Not Accepting Clothing'></a>");
			break;
		}
}



function GetAGUAcceptText()
{
	switch(iAGUMode)
		{
		case 1:
			document.write("<p><span class=\"agu_CompName\">All Grown Up</span> is accepting <b>Spring</b> and <b>Summer</b> women's clothing, and <b>Maternity</b> clothing on consignment.</p>");
			document.write("&nbsp;<br><span class=\"agu_CompName\">All Grown Up</span> will be pleased to accept up to a <b>limit of 20 consignment items per family per month. </b><br>");
			break;
		case 2:
			document.write("Due to tremendous response, <span class=\"agu_CompName\">All Grown Up</span> is currently NOT accepting consignment clothing until further notice.<br>");
			break;

		case 3:
			document.write("<p><span class=\"agu_CompName\">All Grown Up</span> is no longer accepting Spring and Summer clothing (for the month of July), we will begin accepting <b>Fall</b> and <b>Winter</b> clothing in August</p>");
			break;
		case 4:
			document.write("<p><span class=\"agu_CompName\">All Grown Up</span> is  accepting <b>Fall</b> and <b>Winter</b> women's clothing, and <b>Maternity</b> clothing on consignment.</p>");
			document.write("&nbsp;<br><span class=\"agu_CompName\">All Grown Up</span> will be pleased to accept up to a <b>limit of 20 consignment items per family per month. </b><br>");
			break;
		case 5:
			document.write("Due to tremendous response, <span class=\"agu_CompName\">All Grown Up</span> is currently NOT accepting consignment clothing until further notice.<br>");
			break;
		case 6:
			document.write("<span class=\"agu_CompName\">All Grown Up</span> is currently NOT accepting consignment clothing.  We will start accepting Spring and Summer clothing in February<br>");
			break;
		}
}

function GetHWGASeasonalImg()
{
	switch(iHWGAMode)
		{
		case 1:
		case 2:
			document.write("<img border='0' src='images/na_spring.JPG' title='Spring'>");
			break;
		case 3:
			document.write("<img border='0' src='images/acc_nothing.gif' title='Not Accepting Clothing'>");
			break;
		case 4:
			document.write("<img border='0' src='images/na_fall_winter.jpg' title='Fall and Winter'>");
			break;
		case 5:
		case 6:
			document.write("<img border='0' src='images/na_fall_winter.jpg' title='Not Accepting Clothing'>");
			break;
		}
}


function GetHWGAAcceptImg()
{
	switch(iHWGAMode)
		{
		case 1:
			document.write("<img src='images/acc_summercloth.gif'>");
			break;
		case 2:
		}
}
function GetHWGAScrollBG()
{
	switch(iHWGAMode)
		{
		case 1:
		case 4:
			document.write("<style>.AccScroll {background-image: url('images/bg_marq.jpg'); background-repeat: no-repeat; padding-left: 40px; padding-right: 100px; background-position: left top}</style>");
			break;
		case 2:
		case 3:
		case 5:
		case 6:
		case 7:
			document.write("<style>.AccScroll {background-image: url('images/bg_marq_red.jpg'); background-repeat: no-repeat; padding-left: 40px; padding-right: 100px; background-position: left top}</style>");
			break;
		}
}
function GetHWGAScroll()
{
	switch(iHWGAMode)
		{
		case 1:
			document.write("Now accepting consignment Spring/Summer clothing, toys and equipment.");
			break;

		case 2:
			document.write("Not Accepting from the 16th until the end of the month. Here We Grow Again is currently NOT accepting consignment clothing or toys. We continue to accept your quality equipment. We will resume intake on the 1st of next month");
			break;
		case 3:
			document.write("Not Accepting.  We are no longer accepting Spring and Summer clothing (for the month of July) but we are accepting equipment, we will begin accepting Fall and Winter clothing in August");
			break;
		case 4:
			document.write("Now accepting consignment Fall and Winter clothing, toys and equipment.");
			break;
		case 5:
			document.write("Not Accepting from the 16th until the end of the month. Here We Grow Again is currently NOT accepting consignment clothing at its Stittsville and Barrhaven locations. We continue to accept your clothing at our Orleans location along with toys and quality equipment at all locations.");
			break;
		case 6:
			document.write("Not Accepting during the month of December Here We Grow Again is currently NOT accepting consignment clothing or toys at its Stittsville location. We continue to accept your clothing and toys at our Barrhaven and Orleans locations and quality equipment at Stittsville.");
			break;
		case 7:
			document.write("Not Accepting. We are no longer accepting Fall and Winter clothing or toys and equipment…Spring and Summer clothing will begin to be accepted in February");
			break;
		}
}
function GetHWGAStopGo()
{
	document.write("<a href=\"accepting.htm\">");
	switch(iHWGAMode)
		{
		case 1:
		case 4:
			document.write("<img src='images/go.jpg' border=\'0\'>");
			break;
		case 2:
		case 3:
		case 5:
		case 6:
		case 7:
			document.write("<img src='images/stop.jpg' border=\'0\'>");
			break;
		}
	document.write("</a>");
}
function GetHWGAAcceptPolicy()
{
	switch(iHWGAMode)
		{
		case 1:
			document.write("is accepting <b>Spring</b> and <b>Summer</b> children\'s clothing. We continue to accept high quality <a class=\"footer\" href=\"#toys\">toys</a> and <a class=\"footer\" href=\"#equip\">equipment</a>.");
			break;
		case 2:
			document.write("is NOT accepting clothing on consignment until further notice. We continue to accept high quality <a class=\"footer\" href=\"#equip\">toys and equipment</a>.");
			break;
		case 3:
			document.write("is NOT accepting clothing on consignment until August, when we will begin accepting Fall and Winter clothing. We continue to accept high quality <a class=\"footer\" href=\"#equip\">toys and equipment</a>.");
			break;
		case 4:
			document.write("is accepting <b>Fall</b> and <b>Winter</b> children\'s clothing and high quality <a class=\"footer\" href=\"#toys\">toys</a> and <a class=\"footer\" href=\"#equip\">equipment</a>.");
			document.write("<p class=\"midgcenter\"> Limit of 20 items per month per family.</p>");
			document.write("<p class=\"smallcenter\">Select up to 20 of your best items</p>");
			document.write("<p class=\"smallcenter\">Check our <a class=\"footer\" href=\"consign_tips.htm\">Consignment");
			document.write("Tips</a> page for more information</p>");
			break;
		case 5:
			document.write("is NOT accepting clothing or toys on consignment until further notice. We continue to accept high quality <a class=\"footer\" href=\"#equip\">equipment</a>.");
			break;
		case 6:
			document.write("is NOT accepting clothing or toys on consignment until further notice. We continue to accept high quality <a class=\"footer\" href=\"#equip\">equipment</a>.  Starting in February, we will be accepting Spring and Summer clothing.");
			break;
		}
}
function GetHWGAClothingToys()
{
	switch(iHWGAMode)
		{
		case 1:
		case 4:
			document.write("is accepting");
			break;
		case 2:
		case 3:
		case 5:
		case 6:
		case 7:
			document.write("is NOT accepting");
			break;
		}
}
function GetHWGAEntText()
{
	switch(iHWGAMode)
		{
		case 3:
			document.write('Here We Grow Again is currently not accepting consignment clothing, but we are still accepting toys, and equipment.');
			break;
		case 4:
			document.write('Here We Grow Again is currently accepting Fall and Winter Clothing on consignment.');
			break;
		case 5:
		case 6:
			document.write('Due to tremendous response, Here We Grow Again is currently not accepting consignment clothing, but we are still accepting toys, and equipment.');
			break;
		}
}
function GetHWGAAcceptTitle()
{
	switch(iHWGAMode)
		{
		case 2:
			document.write('Now Accepting Spring and Summer Clothing');
			break;
		case 3:
			document.write('NOT Accepting Spring and Summer Clothing');
			break;
		case 4:
			document.write('Now Accepting Fall and Winter Clothing');
			break;
		case 5:
		case 6:
		case 7:
			document.write('NOT Accepting Fall and Winter Clothing');
			break;
		}
}

function GetSeasonFrame()
{
	today=new Date();
	thisMonth=today.getMonth();
	switch(thisMonth)
		{
		case 7:
			document.write('<iframe frameborder=\"0\" width=\"648px\" height=\"256px\" src=\"seasonalframes/month\_08.htm\"></iframe>');
			break;
		}
}

function GetHWGAAcceptDate()
{
	if (sHWGADate!='')
		document.write('<tr><td class=\"hwgaopendate\">'+sHWGADate+'</td></tr>');
}

function centerpop(sURL,sTitle,iPopWidth,iPopHeight)
{
	var iMyWidth = (window.screen.width/2) - ((iPopWidth/2) + 10);
	var iMyHeight = (window.screen.height/2) - ((iPopHeight/2) + 50);
	window.open(sURL,sTitle,'titlebar=no, scrollbar=no, menubar=no, width=' + iPopWidth + 'px, height=' + iPopHeight + 'px, left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight);

}

//-->

