var intSize = 11;
var intBuffer = 0;
var intOnOff = 0;
var divHolder = null;
var divChild = null;
var divLine = null;
var intSubNavHeight = 120;

function initSubNav()
{
	if(document.getElementById)
	{
		divHolder = document.getElementById("divRegHolder");
		divChild = document.getElementById("divReg");
		divLine = document.getElementById("divRegLine");
	}
	else if(document.all)
	{
		divHolder = document.all["divRegHolder"];
		divChild = document.all["divReg"];
		divLine = document.all["divRegLine"];
	}
	
	if(divHolder.style)
	{
		divHolder = divHolder.style;
		divChild = divChild.style;
		divLine = divLine.style;
	}
	
	if(intOnOff == 0)
	{
		divHolder.height = (125+intBuffer)+"px";
		//divHolder.height = "125px";
		divLine.overflow = "hidden";
		divLine.visibility = "hidden";
		divLine.height = "0px";
		divChild.height = (125+intBuffer)+"px";
		divChild.overflow = "visible";
		divChild.visibility = "visible";
		intOnOff = 1;
	}
	else
	{
		divChild.overflow = "hidden";
		divChild.visibility = "hidden";
		divHolder.height = "0px";
		divLine.overflow = "hidden";
		divLine.height = "3px";
		divLine.visibility = "visible";
		intOnOff = 0;
	}
}


function chgSize()
{
	intSize++;
	intBuffer+=18;
	if(intSize > 13)
	{
		intSize = 11;
		intBuffer = 0;
		if(intOnOff != 0)
		{
			intOnOff = 0;
			initSubNav();
		}
		dw_fontSizerDX.reset();
	}
	else
	{
		if(intOnOff != 0)
		{
			intOnOff = 0;
			initSubNav();
		}
		dw_fontSizerDX.adjust(1);
	}
}


function mainSideNav()
{
	intSize = (getCookie('fontSize')!=null)?getCookie('fontSize'):11;
	var x = 0;
	for(x=11;x<intSize;x++)
	{
		intBuffer+=18;
		if(intSize == x)
			break;
	}
	document.writeln('          <tr>');
	document.writeln('            <td><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image32\',\'\',\'images/m_home_on.gif\',1)"><img src="images/m_home.gif" name="Image32" width="200" height="23" border="0" id="Image32" /></a></td>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><img src="images/m_line.gif" width="200" height="3" /></td>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><a href="#" onclick="initSubNav();" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image33\',\'\',\'images/m_registration_on.gif\',1)"><img src="images/m_registration.gif" name="Image33" width="200" height="23" border="0" id="Image33" /></a><br>');
	document.writeln('			    <div id="divRegHolder" style="position: relative;visibility: visible;height: 0px;overflow: hidden"><div id="divReg" style="position: parent;top:0px;left:0px;visibility: hidden;overflow: hidden;"><table width="200" border="0" cellspacing="0" cellpadding="0">');
	document.writeln('				      <tr>');
	document.writeln('				        <td><img src="images/m_sub_spacer.gif" width="200" height="19" /></td>');
	document.writeln('				      </tr>');
	document.writeln('				      <tr>');
	document.writeln('				        <td background="images/m_sub_bk.gif" valign="top"><table border="0" width="190" cellpadding="0" cellspacing="0"><tr><td width="26"><img src="images/trans.gif" width="26" height="1" border="0" /></td><td valign="top"><a href="https://www.secure-online-transaction.com/grocery/login.asp" target="_blank" class="txtWH">Attendee Registration (On-Line)</a></td></tr></table></td>');
	document.writeln('				      </tr>');
	document.writeln('				      <tr>');
	document.writeln('				        <td><img src="images/m_sub_line.gif" width="200" height="11" /></td>');
	document.writeln('				      </tr>');
	document.writeln('				      <tr>');
	document.writeln('				        <td background="images/m_sub_bk.gif" valign="top"><table border="0" width="190" cellpadding="0" cellspacing="0"><tr><td width="26"><img src="images/trans.gif" width="26" height="1" border="0" /></td><td valign="top"><a href="pdf/GIC_Registration_Form-WEB.pdf"  target="_blank" class="txtWH">Attendee Registration (pdf)</a></td></tr></table></td>');
	document.writeln('				      </tr>');
	document.writeln('				      <tr>');
	document.writeln('				        <td><img src="images/m_sub_line.gif" width="200" height="11" /></td>');
	document.writeln('				      </tr>');
	document.writeln('				      <tr>');
	document.writeln('				        <td background="images/m_sub_bk.gif" valign="top"><table border="0" width="190" cellpadding="0" cellspacing="0"><tr><td width="26"><img src="images/trans.gif" width="26" height="1" border="0" /></td><td valign="top"><a href="comingsoon.htm" class="txtWH">Exhibitor Registration (On-Line)</a></td></tr></table></td>');
    document.writeln('				      </tr>');
	document.writeln('				      <tr>');
	document.writeln('				        <td><img src="images/m_sub_line.gif" width="200" height="11" /></td>');
	document.writeln('				      </tr>');
	document.writeln('				      <tr>');
	document.writeln('				        <td background="images/m_sub_bk.gif" valign="top"><table border="0" width="190" cellpadding="0" cellspacing="0"><tr><td width="26"><img src="images/trans.gif" width="26" height="1" border="0" /></td><td valign="top"><a href="pdf/GIC2010_Space_Application.pdf" target="_blank" class="txtWH">Exhibitor Space Application (pdf)</a></td></tr></table></td>');
	document.writeln('				      </tr>');
	document.writeln('				      <tr>');
	document.writeln('				        <td><img src="images/m_sub_spacer2.gif" width="200" height="21" /></td>');
	document.write('				      </tr>');
	document.write('				</table></div></div>');
	document.writeln('			    <div id="divRegLine" style="position: relative;visibility: visible;height: 3px;overflow: hidden;"><table width="200" border="0" cellspacing="0" cellpadding="0">');
	document.writeln('          		<tr>');
	document.writeln('            			<td><img src="images/m_line.gif" width="200" height="3" /></td>');
	document.writeln('          		</tr>');
	document.write('				</table></div>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><a href="about.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image34\',\'\',\'images/m_about_on.gif\',1)"><img src="images/m_about.gif" name="Image34" width="200" height="23" border="0" id="Image34" /></a></td>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><img src="images/m_line.gif" width="200" height="3" /></td>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><a href="http://www.torontotourism.com/visitor" target="_blank" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image35\',\'\',\'images/m_toronto_on.gif\',1)"><img src="images/m_toronto.gif" name="Image35" width="200" height="23" border="0" id="Image35" /></a></td>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><img src="images/m_line.gif" width="200" height="3" /></td>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><a href="request.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image36\',\'\',\'images/m_request_on.gif\',1)"><img src="images/m_request.gif" name="Image36" width="200" height="23" border="0" id="Image36" /></a></td>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><img src="images/m_line.gif" width="200" height="3" /></td>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><a href="contact.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image37\',\'\',\'images/m_contact_on.gif\',1)"><img src="images/m_contact.gif" name="Image37" width="200" height="23" border="0" id="Image37" /></a></td>');
	document.writeln('          </tr>');
	document.writeln('          <tr>');
	document.writeln('            <td><img src="images/m_black.gif" width="200" height="7" /></td>');
	document.writeln('          </tr>')
	document.writeln('          <tr>');
	document.writeln('            <td><a href="javascript:chgSize();" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image13\',\'\',\'images/m_bottom_on.gif\',1)"><img src="images/m_bottom.gif" name="Image13" width="200" height="33" border="0" id="Image13" /></a></td>');
	document.writeln('          </tr>');
}

mainSideNav();