function adjust()
{
	document.getElementById('background').style.height=document.getElementById('t_cont').offsetHeight;
}


function pageHeight()
{
	if (navigator.appName.indexOf("Microsoft")!=-1) return document.body.offsetHeight-4;
	else return window.innerHeight;
}

function pageWidth()
{
	if (navigator.appName.indexOf("Microsoft")!=-1) return document.body.offsetWidth-4;
	else return window.innerWidth;
}

function bgAdjust()
{
	document.getElementById('bgCont').style.width=document.getElementById('tabCont').offsetWidth-10;
	document.getElementById('bgCont').style.height=document.getElementById('tabCont').offsetHeight;
}

//window.onresize=function () {bgAdjust()}

function PopupPic(sPicURL)
{ 
	image=window.open("pub/windowPic.php?picture="+sPicURL, "image", "resizable=1,HEIGHT=200,WIDTH=200");
	if (window.focus) {image.focus()}
}

function checkEmail(id)
{
	var email = document.getElementById(id).value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(email)) return false;
	else return true;
}

function background()
{
	document.write('<div id="background" style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:0">');
	document.write('<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>');
	document.write('<tr><td background="gfx/bg1.jpg" height=343>&nbsp;</td></tr>');
	document.write('<tr><td background="gfx/bg2.jpg" height=100%>&nbsp;</td></tr>');
	document.write('</table>');
	document.write('</div>');
}

function header()
{
	document.write('<table cellpadding=0 cellspacing=0 border=0>');
	document.write('	<tr align=right>');
	document.write('		<td>');
	document.write('			<table cellpadding=0 cellspacing=0 border=0>');
	document.write('				<tr><td colspan=2><img src="gfx/noflash/header01.png"></td></tr>');
	document.write('				<tr>');
	document.write('					<td valign=bottom>');
	/*
	document.write('						<table cellpadding=0 cellspacing=0><tR>');
	document.write('							<td><a href="keynotespeakers.htm" onfocus=this.blur()><img src="gfx/noflash/header02.png" border=0></a></td>');
	document.write('							<td><a href="keynotespeakers.htm" onfocus=this.blur()><img src="gfx/noflash/header03.png" border=0></a></td>');
	document.write('						</tr></table>');
	*/
	document.write('<a href="keynotespeakers.htm" onfocus=this.blur()><img src="gfx/noflash/header_tot.png" border=0></a>');
	document.write('					</td>');
	document.write('				</tr>');
	document.write('			</table>');
	document.write('		</td>');
	document.write('		<td valign=bottom><img src="gfx/noflash/header04.png"></td>');
	document.write('	</tr>');
	document.write('	<tr valign=top>');
	document.write('		<td colspan=2>');
	document.write('			<table cellpadding=0 cellspacing=0>');
	document.write('				<tr valign=top>');
	document.write('					<td><a href="home.htm" onfocus=this.blur()><img src="gfx/noflash/b11.jpg" border=0 onmouseover=\'this.style.cursor="pointer";this.src="gfx/noflash/b12.jpg"\' onmouseout=\'this.src="gfx/noflash/b11.jpg"\' border=0></a></td>');
	document.write('					<td><a href="attending.htm" onfocus=this.blur()><img src="gfx/noflash/b21.jpg" border=0 onmouseover=\'this.style.cursor="pointer";this.src="gfx/noflash/b22.jpg"\' onmouseout=\'this.src="gfx/noflash/b21.jpg"\' border=0></a></td>');
	document.write('					<td><a href="gettingthere.htm" onfocus=this.blur()><img src="gfx/noflash/b31.jpg" border=0 onmouseover=\'this.style.cursor="pointer";this.src="gfx/noflash/b32.jpg"\' onmouseout=\'this.src="gfx/noflash/b31.jpg"\' border=0></a></td>');
	document.write('					<td><a href="purchasetickets.htm" onfocus=this.blur()><img src="gfx/noflash/b41.jpg" border=0 onmouseover=\'this.style.cursor="pointer";this.src="gfx/noflash/b42.jpg"\' onmouseout=\'this.src="gfx/noflash/b41.jpg"\' border=0></a></td>');
	document.write('					<td><a href="invitefriends.htm" onfocus=this.blur()><img src="gfx/noflash/b51.jpg" border=0 onmouseover=\'this.style.cursor="pointer";this.src="gfx/noflash/b52.jpg"\' onmouseout=\'this.src="gfx/noflash/b51.jpg"\' border=0></a></td>');
	document.write('					<td><a href="keynotespeakers.htm" onfocus=this.blur()><img src="gfx/noflash/b61.jpg" border=0 onmouseover=\'this.style.cursor="pointer";this.src="gfx/noflash/b62.jpg"\' onmouseout=\'this.src="gfx/noflash/b61.jpg"\' border=0></a></td>');
	document.write('					<td><a href="seminarspeakers.htm" onfocus=this.blur()><img src="gfx/noflash/b71.jpg" border=0 onmouseover=\'this.style.cursor="pointer";this.src="gfx/noflash/b72.jpg"\' onmouseout=\'this.src="gfx/noflash/b71.jpg"\' border=0></a></td>');
	document.write('					<td><a href="exhibitorinfo.htm" onfocus=this.blur()><img src="gfx/noflash/b81.jpg" border=0 onmouseover=\'this.style.cursor="pointer";this.src="gfx/noflash/b82.jpg"\' onmouseout=\'this.src="gfx/noflash/b81.jpg"\' border=0></a></td>');
	document.write('					<td><a href="contact.htm" onfocus=this.blur()><img src="gfx/noflash/b91.jpg" border=0 onmouseover=\'this.style.cursor="pointer";this.src="gfx/noflash/b92.jpg"\' onmouseout=\'this.src="gfx/noflash/b91.jpg"\' border=0></a></td>');
	document.write('				</tr>');
	document.write('			</table>');
	document.write('		</td>');
	document.write('	</tr>');
	document.write('</table>');
}

function footer()
{
	document.write('<tr align=center>');
	document.write('<td>');
	document.write('<br><br><br><img src="gfx/home21.png">');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td>');
	document.write('<br>');	
	document.write('<table width=990 align=center border=0 cellpadding=0 cellspacing=0>');
	document.write('<tr valign=bottom>');
	document.write('<td width=20></td>');
	document.write('<td align=left>		');					
	document.write('<font color=#660000 size=2><b>');
	document.write('ARIZONA\'S ULTIMATE WOMEN\'S EXPO<br></B>');
	document.write('April 21-22 & October 13-14, 2012<br>');
	document.write('</td>');

	document.write('<td align=right style="padding-right:20px">');
	document.write('<a href="http://www.lawomensexpo.com" target=_blank><img src="gfx/home22d.png" border=0></a>');
	document.write('<a href="http://www.sfwomensexpo.com" target=_blank><img src="gfx/home22c.png" border=0></a>');
	document.write('<a href="http://www.dallaswomensexpo.com" target=_blank><img src="gfx/home22b.png" border=0></a>');
	document.write('</td>');

	document.write('</tr><tr><td></td>');
	document.write('<td align=center colspan=2 style="padding-right:20px"><hr size=1 color=#bd862a style="margin-top:5px;margin-bottom:5px"></td></tr>');
	document.write('<tr><td></td><td>');
	document.write('<font color=#990000>www.azwomensexpo.com</font> | </b><font size=1>website by <a href="http://www.alvaroramos.com" target=_blank>alvaroramos.com</a>');
	document.write('</td>');
	document.write('<td align=right style="padding-right:20px"><font style="font-size:12px">The Ultimate Women\'s Expo also takes place in Los Angeles, San Francisco and Dallas!</td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('<br>');
	document.write('</td>');
	document.write('</tr>');
}

function splash()
{
	pic1= new Image(); pic1.src="gfx/noflash/sb12.jpg";
	pic2= new Image(); pic2.src="gfx/noflash/sb22.jpg";
	pic3= new Image(); pic3.src="gfx/noflash/sb32.jpg";

	document.write('<div align=center><a href="home.htm"><img src="gfx/noflash/splash_tot.png" border=0></a></div>');	
	/*
	document.write('<table cellpadding=0 cellspacing=0 border=0>');
	document.write('	<tr><td><img src="gfx/noflash/splash01.png"></td></tr>');
	document.write('	<tr><td><table cellpadding=0 cellspacing=0><tr>');
	document.write('				<td width=160</td>');
	document.write('				<td><img src="gfx/noflash/splash02_1.png" onmouseover="this.style.cursor=\'pointer\';this.src=\'gfx/noflash/splash02_2.png\'" onmouseout="this.src=\'gfx/noflash/splash02_1.png\'" onclick="location.href=\'home.htm\'"></td>');
	document.write('				<td><img src="gfx/noflash/splash03.png"></td></tr>');
	document.write('			</td></tr></table>');
	document.write('	<td></tr>');
	document.write('	<tr><td><img src="gfx/noflash/splash04.png"></td></tr>');
	document.write('</table>');
	*/
}

function promotion()
{
	document.write('<table cellpadding=0 cellspacing=0 width=100%>');
	document.write('<tr><td><img src="gfx/home8.png"></td></tr>');
	document.write('<tr><td background="gfx/home9.png" height=183>');
	document.write('<div style="width:350px;height:227px;line-height:17px">');
//	document.write('<img src="gfx/home23.png"><bR>');
	document.write('<font style="font-size:12px">How about some retail therapy to put a little bounce in your step... we’re kicking off the new fashion season with a chance for one lucky winner and her five fabulous girlfriends to win a trip to New York, including round trip air for the entourage and three luxurious nights in a Posh Five-Star Manhattan Hotel.  Prepare to be pampered with head to toe makeovers plus a Coach suitcase filled to the brim with luxe hair and beauty products.   Need a little spending money?  How about  $1,000 in cash to help make New York unforgettable.   You’ll wake up with the city that never sleeps, and enjoy the luxury of your 24 limousine, dinner at the legendary Plaza Hotel and box seats at a Broadway show.');
	document.write('<div style="margin-top:5px"><font color=#990000>Just text <b><u>azwomen</u></b> to <b>411247</b> for your chance to win.</div>');
	document.write('</div>');
	document.write('</td></tr>');
	document.write('<tr><td><img src="gfx/home10.png"></td></tr>');
	document.write('</table>');
}
