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 PopupPic(sPicURL)
{ 
	image=window.open("pub/windowPic.php?picture="+sPicURL, "image", "resizable=1,HEIGHT=200,WIDTH=200");
	if (window.focus) {image.focus()}
}


pic1= new Image(); pic1.src="gfx/noflash/sb12.jpg";
divpos=900;
function homeslide()
{ 
	document.getElementById('cont2').style.top=divpos;
	if (divpos>0)
	{
		divpos=divpos/1.2;
		setTimeout("homeslide()",50);
	}
	else divpos=0;
	
		/*
	if (divh<=document.getElementById('cont2').offsetHeight)
	{
		document.getElementById('cont1').style.height=divh+"px";
		divh+=10;
		
	}
	*/
}

function noflash_menu()
{
	document.write('<table cellpadding=0 cellspacing=2 border=0>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'whatiswoofstock.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb">What is <b>Woofstock</b><font style="padding-left:2px" face=tahoma size=1>&reg;<font size=2><b>?</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'history.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb">Woofstock<font style="padding-left:2px" face=tahoma size=1>&reg;<font size=2><b> History</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'sponsors.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Sponsors</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'whoscoming.php\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Who\'s Coming</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'eventsandcontests.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Events & Contests</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'highteaevent.php\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>High Tea Event</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'hotel.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Hotel</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'vipclub.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>VIP Club</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'exhibitor.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Exhibitor Info</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'location.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Location</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'adoptions.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Advertising Options</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'volunteer.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Volunteers</font></div></td></tr>');
//	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'tickets.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Tickets</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'bringyourdog.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>We Want Your Dog!</font></div></td></tr>');
	document.write('<tr height=1 valign=top align=center><td><div onclick="location.href=\'media.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Media</font></div></td></tr>');
	document.write('<tr valign=top align=center><td><div onclick="location.href=\'contact.htm\'" align=left style="color:#2b5975;background:#ffffff;width:155px;padding:3px" onmouseover="this.style.cursor=\'pointer\';this.style.background=\'#b50126\';this.style.color=\'#ffffff\'" onmouseout="this.style.background=\'#ffffff\';this.style.color=\'#2b5975\'"><font face="myriadb"><b>Contact</font></div></td></tr>');
	document.write('</table><br>');
}

function header()
{

	document.write('<!-- HEADER -->');
	document.write('<div style="position:relative;top:20px;z-index:0;border:0px solid #000;width:950px">');

	if (GetSwfVer()<8) document.write('<img src="gfx/noflash/header1.png">');
	else loadFlash('header',950,154,'','');

	document.write('</div>');
	document.write('<!-- HEADER -->');
}

function menu_sponsors()
{
	document.write('<!-- SPONSORS -->');
	document.write('<div style="position:absolute;top:0px;width:900px;border:0px solid #000;" align=right>');
	
	if (GetSwfVer()<8)
	{
		document.write('<div id="sponsors" class="slides" style="width:175px;visibility:hidden">');
		document.write('<img src="gfx/noflash/sponsors_bg1.png">');
		document.write('<img src="gfx/noflash/sponsors_bg2.png">');
		document.write('<img src="gfx/noflash/sponsors_bg3.png">');
		document.write('<img src="gfx/noflash/sponsors_bg4.png">');
		document.write('<img src="gfx/noflash/sponsors_bg5.png">');
		document.write('</div>');
	}
	else loadFlash('header_sponsors',175,66,'','');

	document.write('</div>');
	document.write('<!-- SPONSORS -->');
	document.write('<!-- MENU -->');
	document.write('<table width=200 cellpadding=0 cellspacing=2 border=0 background="gfx/menu_bg.png" height=100%><tr><td style="padding-left:16px" valign=top>');
	document.write('<div style="position:relative;top:20px;z-index:1">');
	
	if (GetSwfVer()<8) noflash_menu();
	else loadFlash('menu',165,480,'','');

//	document.write('<hr size=1 color=#cccccc width=160 align=left style="margin-bottom:10px">');
	document.write('<div style="position:relative;left:-5px;top:10px">');
	document.write('<a href="http://twitter.com/#!/woofstock" target="_blank" style="border:0px"><img src="gfx/twitter.jpg" style="position:relative;left:10px;margin-bottom:2px" border=0></a><br>');
	document.write('<a href="http://www.facebook.com/BarkleyWoofstock" target="_blank"  style="border:0px"><img src="gfx/facebook.jpg" style="position:relative;left:10px" border=0></a>');
	document.write('<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FBarkleyWoofstock&amp;width=165&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false&amp;height=100" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:165px; height:100px;" allowTransparency="true"></iframe>');
	document.write('</div>');
//	document.write('<div style="margin-left:12px"><font color=#b50126><b><font style="font-size:12px">WINTER WOOFSTOCK’S</font><br><font style="font-size:21px">GRAND &nbsp;PRIZE<br><font color=#888888>$4,000 VALUE</font></font></font><bR><input type="button" value="ENTER NOW!" onclick="location.href=\'grandprize.htm\'" style="width:135px;font-size:10px;font-weight:bold;margin-top:10px;margin-bottom:10px;height:30px" onmouseover="this.style.cursor=\'pointer\'"></div>');
//	document.write('<hr size=1 color=#cccccc width=160 align=left>');

	document.write('</div>');
	document.write('<tr><Td height=100% align=center valign=bottom><br><br><a href="http://www.woofstock.ca" target=_blank style="border:0px"><img src="gfx/summerwoofstock.jpg" border=0></a></td></tr>');
	document.write('</td></tr></table>');
	document.write('<!-- MENU -->');
}

function mailinglist()
{
    if (screen)
	{
        y = (screen.availHeight - 450)/2;
        x = (screen.availWidth - 300)/2;
    }
	mlist=window.open('http://woofstock.ca/pub/mailinglist.php','newWin','resizable=no,width=450,height=300,screenX='+x+',screenY='+y+',top='+y+',left='+x);
	mlist.focus();
}

function changeopacity( id, opacity )
{
	var object = document.getElementById(id).style;
	object.visibility="visible";
	object.opacity = ( opacity / 100 );
	object.MozOpacity = ( opacity / 100 );
	object.KhtmlOpacity = ( opacity / 100 );
	object.filter = "alpha(opacity=" + opacity + ")";
}

op=0;
function fadein(id)
{
	a=setInterval("changeopacity( 'fade_sponsors', op+=0.99)",1);
	if ("op"+id.replace("proy","")>=100) clearInterval(a)
}

function proy_ini()
{
	changeopacity( "fade_sponsors", 0 )
	fadein("fade_sponsors");
}

