// JavaScript Document
if ((navigator.userAgent.indexOf('iPhone') != -1) ||   
(navigator.userAgent.indexOf('iPod') != -1)) {   
document.location = "http://www.hoboditty.com/websites/bankerbots/iphone.html";   
}
var pagetitle='Hoboditty';//used by changepage()
var findcomic=0; var Honload=0;
var ver=parseInt(navigator.appVersion)
var ie4=(ver>3  && navigator.appName!="Netscape")?1:0//used by sound
var ns4=(ver>3  && navigator.appName=="Netscape")?1:0
var ns3=(ver==3 && navigator.appName=="Netscape")?1:0
var browser=navigator.appName;//used by flash
var b_version=parseInt(navigator.appVersion); 

var direction;//used by slideup and slidedown functions
var presentstatus='down';
var comic; var text;//used by slideup and slidedown functions (comic used by findrecentcomic)
var the_timeoutCM; var the_timeoutST; var the_timeoutCMOUT; //used by slideup and slidedown functions

var wp_call=0;var mu=0; var se=1;
var sound='off'; var returnmusic=0;//used for sound
var bringbackthemusic=0; var comicwithsound=0; var thecomicWS='';
var backgroundsound='monsters.swf';//used for sound
var musicartist='Band of Horses'; var musicwebsite='http://www.bandofhorses.com/';
var musicname='Monsters'; var musicalbum='Everything All The Time';

var actor="Jeff Eblen";//used for performers page


function changepage(page)
{
	if(page!=pagetitle || findcomic==1)
	{
		if(page.match('page_')=='page_')//pages that do not require stage change
		{
			if(page=="page_Contact Hoboditty" || page=="page_Disclosure")
			{
				changepagecontent(page);
			}
		}
		else
		{
			//alert(page+' '+pagetitle+' '+Honload+' '+wp_call);
			if(page!= "Sound Controls")
			{
				document.getElementById('comic').innerHTML='<table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td width="20" class="cs_topleft">&nbsp;</td><td width="100%" class="cs_top"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_topright">&nbsp;</td></tr><tr><td width="20" height="593" class="cs_left"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td><td class="thecomic" style="text-align:center;"><img src="http://www.hoboditty.com/images/animgif.gif" align="middle" /> </td><td width="20" height="593" class="cs_right"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td></tr><tr><td width="20" class="cs_botleft">&nbsp;</td><td width="100%" class="cs_bot"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_botright">&nbsp;</td></tr></table>';
				//if(((pagetitle=='Hoboditty' && Honload==1) || (pagetitle=='Sound Controls' && page!="Hoboditty" && presentstatus=='down')) && wp_call==0 && page!='Burnside Amphitheatre')
				//{movemenuCMOUT('dm','up'); presentstatus='up';}
				//else if((page=='Hoboditty' && Honload==1 && presentstatus=='up')&& wp_call==0)
				//{movemenuCMOUT('dm','down'); presentstatus='down';}
				if(page=="Hoboditty"&& wp_call==0)
				{document.getElementById('tuethu').innerHTML='<img src="http://www.hoboditty.com/images/tuethu-trans.png" alt="" />'}
				else if(pagetitle=="Hoboditty")
				{document.getElementById('tuethu').innerHTML="";}
				if(wp_call==1)
				{wp_call=0;page='Burnside Amphitheatre';}
			}
			findcomic=0;
			adjustmenu(pagetitle,page);
			pagetitle=page;
			if(pagetitle!='Dummy') {document.getElementById('bigtitle').innerHTML='<h1>'+pagetitle+'</h1>';}
			changestage();
			changestagecontrols();
			changepagecontent();
			changesound();
			Honload=1;
		}
	}
}


//stagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestagestage
function changestagecontrols()
{
	//alert('changestagecontrols');
	//alert(pagetitle);
	switch(pagetitle)
	{
		case "Burnside Amphitheatre":
		case "Hoboditty":
		case "Sound Controls":
		case "Dummy":
			break;
		default:
			document.getElementById('stagecontrol').innerHTML='<img id="b2b" style="border: 0px; padding: 10px 0px 12px 0px; margin: 0px;" width="198px" height="40px" onclick="changepage(\'Hoboditty\')" onmouseover="swapimagesrc()" onmouseout="changestagecontrols()" src="http://www.hoboditty.com/images/b2b.gif" />';
			break;
	}
}
function swapimagesrc()
{
	document.getElementById('b2b').src="http://www.hoboditty.com/images/b2b_hover.gif";
}
function changestage()
{
	//alert('changestage');
	if(bringbackthemusic==1)
	{startstopsound(1); bringbackthemusic=0;}
	switch(pagetitle)
	{
		case "Hoboditty":
		case "Dummy":
			findrecentcomic();
			break;
		case "Burnside Amphitheatre":
			findrecentcomic();
			break;
		case "Performers":
			document.getElementById('comic').innerHTML='<table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td width="20" class="cs_topleft">&nbsp;</td><td width="100%" class="cs_top"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_topright">&nbsp;</td></tr><tr><td width="20" class="cs_left"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td><td class="thecomic"><img src="http://www.hoboditty.com/images/profile_eblen.png" width="970" height="593" align="middle" /> </td><td width="20" class="cs_right"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td></tr><tr><td width="20" class="cs_botleft">&nbsp;</td><td width="100%" class="cs_bot"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_botright">&nbsp;</td></tr></table>';
			break;
		case "Daily Fortune":
			document.getElementById('comic').innerHTML='<table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td width="20" class="cs_topleft">&nbsp;</td><td width="100%" class="cs_top"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_topright">&nbsp;</td></tr><tr><td width="20" class="cs_left"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td><td class="thecomic"><img src="http://www.hoboditty.com/images/fortune01.png" width="970" height="593" align="middle" /><div id="fortunetext"><ul id="dailylinks"><li style="padding-left:22px;"><a onclick="changeDaily(\'rec\')">Receive</a></li><li style="padding-left:44px;"><a onclick="changeDaily(\'giv\')">Give</a></li><li style="padding-left:47px;"><a onclick="changeDaily(\'las\')">Last Ten</a></li></ul><br /><br /><div style="padding:0px; margin:0px;" id="thedailytext"><p style="font-weight:bold;">Come over.  Relax.  Sit Back if you want.<br />And let me tell you all about yourself.</p><br /><ul><li><a class="fortunestart" onclick="changeDaily(\'rec\')">Receive Fortune</a><p>Like a cup of coffee<br />everyone needs their Daily Fortune.</p></li><li><a class="fortunestart" onclick="changeDaily(\'giv\')">Give Fortune</a><p>Brighten someone\'s day <br />with your foresight and wit.</p></li><li><a class="fortunestart" onclick="changeDaily(\'las\')">Last Ten Fortunes</a><p>Most recent fortunes added.</p></li></ul></div></div></td><td width="20" class="cs_right"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td></tr><tr><td width="20" class="cs_botleft">&nbsp;</td><td width="100%" class="cs_bot"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_botright">&nbsp;</td></tr></table>';
			break;
		case "PUC Test":
			document.getElementById('comic').innerHTML='<table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td width="20" class="cs_topleft">&nbsp;</td><td width="100%" class="cs_top"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_topright">&nbsp;</td></tr><tr><td width="20" class="cs_left"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td><td class="thecomic" style="background-color: #ffffff; text-align: center; vertical-align: middle;"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="970" height="597" /><div id="responsetext"><h1>PUC Test</h1></div><div id="quiztext"><div id="quizmidtext"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" style="float:left; width:1px; height:325px; top:0px; left:0px;" />Only ages 18 and above please.</div><table width="100%"><tr><td width="33%" style="text-align:center;"><a onclick="changepage(\'Hoboditty\')">Not 18</a></td><td width="33%" style="text-align:center;"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" /></td><td width="33%" style="text-align:center;"><a onclick="quizwarning()">Continue</a></td></tr></table></div></td><td width="20" class="cs_right"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td></tr><tr><td width="20" class="cs_botleft">&nbsp;</td><td width="100%" class="cs_bot"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_botright">&nbsp;</td></tr></table>';
			break;
		default://Sound Controls
			break;
	}
}
function changeDaily(want)
{
	if(isNaN(want))
	{
		if(want=='rec')
		{
			document.getElementById('thedailytext').innerHTML='<form id="getfortune" action="postfortune"><div id="aform" class="aform" style="padding: 0px 8px 0px 8px;"><br /><br /><p><input type="button" onclick="givecheck();" value="Receive Fortune!" /></p><br /><br /><p>Only one fortune a day, kids.  Sorry, but paying someone to select these fortunes is expensive.<br /><br />(Even though I am outsourcing the task to South Africa.)</div></form>';
		}
		else if(want=='giv')
		{
			document.getElementById('thedailytext').innerHTML='<form id="receivefortune" action="receivefortune"><div id="bform" class="bform"><br /><p><input type="button" onclick="receivecheck();" value="Submit Fortune" /></p><br /><textarea name="receive" id="receive" rows="8" cols="25"></textarea></div></form>';
		}
		else
		{
			lastten(want);
		}
	}
	else
	{lastten(want);}
}
function swapcomic(comic)//changes the comic div to a new comic
{
	//alert(comic);
	if(bringbackthemusic==1)
	{startstopsound(1); bringbackthemusic=0;}
	document.getElementById('comic').innerHTML='<table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td width="20" class="cs_topleft">&nbsp;</td><td width="100%" class="cs_top"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_topright">&nbsp;</td></tr><tr><td width="20" class="cs_left"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td><td class="thecomic"><img src="http://www.hoboditty.com/images/'+comic+'" width="970" height="593" align="middle" /> </td><td width="20" class="cs_right"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td></tr><tr><td width="20" class="cs_botleft">&nbsp;</td><td width="100%" class="cs_bot"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_botright">&nbsp;</td></tr></table>';
	setcomiccontrols(comic);
}
function setComicFlash(comic)//changes the comic div to a new comic
{
	document.getElementById('comic').innerHTML='<table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td width="20" class="cs_topleft">&nbsp;</td><td width="100%" class="cs_top"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_topright">&nbsp;</td></tr><tr><td width="20" height="593" class="cs_left"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td><td class="thecomic" style="text-align:center;"><img src="http://www.hoboditty.com/images/animgif.gif" align="middle" /> </td><td width="20" height="593" class="cs_right"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td></tr><tr><td width="20" class="cs_botleft">&nbsp;</td><td width="100%" class="cs_bot"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_botright">&nbsp;</td></tr></table>';
	if(comic.match('_ns')=='_ns')
	{
		if(sound=='on' && se==1)
		{
			var findsound=comic.split('_ns');
			comic=findsound[0]+findsound[1];
			//cut off background music
			document.getElementById('mozsound').innerHTML='';
			bringbackthemusic=1;
		}
	}
	else if(bringbackthemusic==1)
	{startstopsound(1); bringbackthemusic=0;}
	//alert(comic);
	document.getElementById("comic").innerHTML="<table width='100%' align='center' cellspacing='0' cellpadding='0' border='0'><tr><td width='20' class='cs_topleft'>&nbsp;</td><td width='100%' class='cs_top'><img src='http://www.hoboditty.com/images/spacer.gif' alt='' width='100%' height='20' /></td><td width='20' class='cs_topright'>&nbsp;</td></tr><tr><td width='20' class='cs_left'><img src='http://www.hoboditty.com/images/spacer.gif' alt='' width='20' height='1' /></td><td class='thecomic'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' id='flashbutton' width='970' height='593'><param name='movie' value='http://www.hoboditty.com/images/flash/"+comic+"' /><param name=quality value=high /><embed src='http://www.hoboditty.com/images/flash/"+comic+"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='970' height='593' name='flashbutton'></embed></object></td><td width='20' class='cs_right'><img src='http://www.hoboditty.com/images/spacer.gif' alt='' width='20' height='1' /></td></tr><tr><td width='20' class='cs_botleft'>&nbsp;</td><td width='100%' class='cs_bot'><img src='http://www.hoboditty.com/images/spacer.gif' alt='' width='100%' height='20' /></td><td width='20' class='cs_botright'>&nbsp;</td></tr></table>";
	setcomiccontrols(comic);
}
function swapactor(name)
{
	switch(name)
	{
		case "Eblen":
			document.getElementById('comic').innerHTML='<table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td width="20" class="cs_topleft">&nbsp;</td><td width="100%" class="cs_top"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_topright">&nbsp;</td></tr><tr><td width="20" class="cs_left"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td><td class="thecomic"><img src="http://www.hoboditty.com/images/profile_eblen.png" width="970" height="593" align="middle" /> </td><td width="20" class="cs_right"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td></tr><tr><td width="20" class="cs_botleft">&nbsp;</td><td width="100%" class="cs_bot"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_botright">&nbsp;</td></tr></table>';
			document.getElementById('indcontactinfo').innerHTML='<h4 style="font-weight:bold;">Eblen\'s Links</h4><table width="100%" style="display: inline; margin-left: 10px; margin-right: 10px;"><tr><td width="25%"><p style="margin:5px;"><a href="http://www.eblencomics.com" target="_blank"><img src="http://www.hoboditty.com/images/eblencomics.png" alt="Eblen Comics" /></a></p></td><td width="25%"><p style="margin:5px;"><a href="http://www.eblendesign.com" target="_blank"><img src="http://www.hoboditty.com/images/eblendesign.png" alt="Eblen Web Design" /></a></p></td><td width="25%"><p style="margin:5px;"><!-- Facebook Badge START --><a href="http://www.facebook.com/people/Jeff-Eblen/550403308" title="Jeff Eblen&#039;s Facebook profile" target="_blank" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal;font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;">Jeff Eblen\'s Profile</a><br /><a href="http://www.facebook.com/people/Jeff-Eblen/550403308" title="Jeff Eblen&#039;s Facebook profile" target="_blank"><img src="http://badge.facebook.com/badge/550403308.872.1348377252.png" alt="Jeff Eblen&#039;s Facebook profile" style="border: 0px;" /></a><br /><a href="http://www.facebook.com/badges.php" title="Make your own badge!" target="_blank" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal;font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;">Create Your Badge</a></p></td><td width="25%"><p style="margin:5px;"><a href="http://www.myspace.com/jeffeblen" target="_blank"><img src="http://www.hoboditty.com/images/myspace.png" alt="MySpace" /></a></p></td></tr></table>';
			break;
		case "Joel":
			document.getElementById('comic').innerHTML='<table width="100%" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td width="20" class="cs_topleft">&nbsp;</td><td width="100%" class="cs_top"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_topright">&nbsp;</td></tr><tr><td width="20" class="cs_left"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td><td class="thecomic"><img src="http://www.hoboditty.com/images/profile_joel.png" width="970" height="593" align="middle" /> </td><td width="20" class="cs_right"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="20" height="1" /></td></tr><tr><td width="20" class="cs_botleft">&nbsp;</td><td width="100%" class="cs_bot"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" width="100%" height="20" /></td><td width="20" class="cs_botright">&nbsp;</td></tr></table>';
			document.getElementById('indcontactinfo').innerHTML='';
			break;
		default:
			alert('who?');
			break;
	}
}
function setcomiccontrols(thecomic)
{
	if(thecomic.match('_ns')=='_ns')
	{
		var splitup=thecomic.split('_ns');
		thecomic=splitup[0]+splitup[1];
	}
	var caller='setcomiccontrols';
	createRequest();
	var url = "http://www.hoboditty.com/bots.php?c="+caller+'&f='+thecomic;
	//alert(url);
	request.open("POST", url, true);
	request.onreadystatechange = setcomiccontrols_catch;
	request.send(null);
}
function setcomiccontrols_catch()
{
	if(request.readyState == 4)
	{
       	if(request.status ==200)
		{
			var variable = request.responseText;
			//alert(variable);
			if(variable.match('&')=='&')
			{
				var list = variable.split('&');
				if(list[0].match('swf')=='swf')
				{var first = 'setComicFlash(\''+list[0]+'\')';}
				else
				{var first = 'swapcomic(\''+list[0]+'\')';}
				if(list[1].match('swf')=='swf')
				{var prev = 'setComicFlash(\''+list[1]+'\')';}
				else
				{var prev = 'swapcomic(\''+list[1]+'\')';}
				if(list[2].match('swf')=='swf')
				{var next = 'setComicFlash(\''+list[2]+'\')';}
				else
				{var next = 'swapcomic(\''+list[2]+'\')';}
				if(list[3].match('swf')=='swf')
				{var last = 'setComicFlash(\''+list[3]+'\')';}
				else
				{var last = 'swapcomic(\''+list[3]+'\')';}
				var ch_name = list[4];
				var thedate = list[5];
				document.getElementById('stagecontrol').innerHTML='<p class="stagemessage">'+thedate+' from '+ch_name+'</p><table id="s_cont" class="blockCenter" border="0"><tr><td width="42px"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" /></td><td><div class="menubutton" onclick="'+first+'"><img style="padding: 0px; margin: 0px; border: 0px;" src="http://www.hoboditty.com/images/arrow_allback.gif" alt="First Comic" /></div></td><td><div class="menubutton"onclick="'+prev+'"><img style="padding: 0px; margin: 0px; border: 0px;" src="http://www.hoboditty.com/images/arrow_back.gif" alt="Previous Comic" /></div></td><td><div class="menubutton" onclick="'+next+'"><img style="padding: 0px; margin: 0px; border: 0px;" src="http://www.hoboditty.com/images/arrow_forward.gif" alt="Next Comic" /></div></td><td><div class="menubutton" onclick="'+last+'"><img style="padding: 0px; margin: 0px; border: 0px;" src="http://www.hoboditty.com/images/arrow_allforward.gif" alt="Most Recent Comic" /></div></td><td width="42px"><img src="http://www.hoboditty.com/images/spacer.gif" alt="" /></td></tr></table>';
			}
		}
	}
}
function adjustmenu(oldpage,newpage)//need to adjust after PUC test is ready
{
	if(oldpage=='Hoboditty')
	{document.getElementById('butAA').innerHTML='<a href="#top" onclick="changepage(\'Hoboditty\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/spacer.gif" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else if(oldpage=='Burnside Amphitheatre')
	{document.getElementById('butFF').innerHTML='<a href="#middle" onclick="changepage(\'Burnside Amphitheatre\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/spacer.gif" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else if(oldpage=='Daily Fortune')
	{document.getElementById('butBB').innerHTML='<a href="#top" onclick="changepage(\'Daily Fortune\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/spacer.gif" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else if(oldpage=='Performers')
	{document.getElementById('butCC').innerHTML='<a href="#top" onclick="changepage(\'Performers\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/spacer.gif" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else if(oldpage=='Sound Controls')
	{document.getElementById('butEE').innerHTML='<a href="#middle" onclick="changepage(\'Sound Controls\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/spacer.gif" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else
	{}
	if(newpage=='Hoboditty')
	{document.getElementById('butAA').innerHTML='<a href="#top" onclick="changepage(\'Hoboditty\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/buttonbackAA.jpg" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else if(newpage=='Burnside Amphitheatre')
	{document.getElementById('butFF').innerHTML='<a href="#middle" onclick="changepage(\'Burnside Amphitheatre\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/buttonbackFF.jpg" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else if(newpage=='Daily Fortune')
	{document.getElementById('butBB').innerHTML='<a href="#top" onclick="changepage(\'Daily Fortune\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/buttonbackBB.jpg" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else if(newpage=='Performers')
	{document.getElementById('butCC').innerHTML='<a href="#top" onclick="changepage(\'Performers\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/buttonbackCC.jpg" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else if(newpage=='Sound Controls')
	{document.getElementById('butEE').innerHTML='<a href="#middle" onclick="changepage(\'Sound Controls\')"><img style="border: 0px; padding: 0px; margin: 0px;" src="http://www.hoboditty.com/images/buttonbackEE.jpg" alt="Hoboditty Comic" width="190px" height="40px" /></a>';}
	else
	{}
}


//pagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepagepage
function changepagecontent(nonstage_page)
{
	if (typeof nonstage_page != 'undefined' )
	{
		switch(nonstage_page)
		{
			case "page_Contact Hoboditty":
				document.getElementById('pagecontent').innerHTML='<div id="contactpagecontent"><p><div id="errortext" style="color: red;"></div><br />To: numlock42@yahoo.com<br />From: <input type="text" size="40" id="viewer_email" /><br /><br />Message:<br /><textarea id="message" rows="10" cols="80">No HTML code.  And please no anger - I am sensitive.</textarea><br /><input type="button" onclick="sendemail()" value="Send Email" /></p></div>';
				break;
			case "page_Disclosure":
				document.getElementById('pagecontent').innerHTML='<div id="contactpagecontent"><p><br />Eblen\'s Info Disclosure:<br />Eblen doesn\'t know shit about shit.  Half of his information is from legitimate news sources; the rest is from comics.  He mixes all the info from those sources in a big bowl and the resulting goo is what Eblen believes.  Don\'t get the misconception that Eblen doesn\'t have a clue.  He does.  Lots of them; he reads a lot and actually retains information.  But he does horrible, crooked things to those clues.<br />He knows, for instance, that the Mormon Church helped pass Prop 8 because they are afraid that once gays can marry, their church is doomed.  After all, once you can marry the same sex, why not mix your marriages:  Maybe 3 wives and 2 husbands?  The wives can do what wives do; the husbands can help you with other chores.  With that type of reinforced inner-society, there would be no reason to pay attention to the world around you.  The Mormon Church would stagnate.  Husbands would realize that no one knows how to please a husband better than another husband.  The wives would be ignored; population would decrease and John Smith would roll in his grave.<br />While Eblen is loud about his misguided convictions, he is also weak in will.  If anyone disagrees with him, and gives a solid argument, he is not above switching his point of view.  After all, we are all human.  Even the aliens that live in human skin are human; "Third Rock from the Sun" taught us that.  So, unlike Rush Limbaugh, Michael Moore, and Dick Chaney, Eblen is willing to say, "My bad, I was wrong."  </p></div>';
				break;
			default:
				document.getElementById('pagecontent').innerHTML='<p>Other</p>';
				break;
		}
	}
	else
	{
		//alert('changepagecontent');
		switch(pagetitle)
		{
			case "Hoboditty":
				document.getElementById('pagecontent').innerHTML='<div id="contactpagecontent"><p><b style="color:#003; font-size:1.2em;">Welcome, please enjoy these attractions.</b><br /><b><a class="onclick" onclick="movemenuCM(\'buddy\',\'down\')">Hoboditty</a>:</b> Webcomic about the dark recesses of corporate greed.<br /><b><a class="onclick" onclick="changepage(\'Burnside Amphitheatre\')">Burnside Amphitheatre</a>:</b> Explore Burnside\'s blog entries.<br /><b><a class="onclick" onclick="changepage(\'Daily Fortune\')">Daily Fortune</a>:</b> Receive your daily fortune, and provide someone else with theirs.<br /></p></div>';
				break;
			case "Burnside Amphitheatre":
				document.getElementById('pagecontent').innerHTML='<table id="catstable" width="100%"><tr width="100%"><td colspan="4" width="100%"><img src="http://www.hoboditty.com/images/bs_intro-trans.png" width="100%" alt="Welcome to Burnside Amphitheatre" /></td></tr><tr><td width="25%" rowspan="3"><a href="http://www.hoboditty.com?cat=10" class="cat_title">All Comics</a><ul><li><a href="http://www.hoboditty.com?cat=16">Webcomics</a></li><li><a href="http://www.hoboditty.com?cat=18">Comic Events</a></li><li><a href="http://www.hoboditty.com?cat=17">Graphic Novels</a></li></ul></td><td name="cat_title" width="25%" rowspan="3"><a href="http://www.hoboditty.com?cat=19" class="cat_title">All Politics</a><ul><li><a href="http://www.hoboditty.com?cat=7">Ugly Politics</a></li><li><a href="http://www.hoboditty.com?cat=3">Revolution</a></li><li><a href="http://www.hoboditty.com?cat=14">Eblen Land</a></li></ul></td><td width="25%"><a href="http://www.hoboditty.com?cat=9">Sports</a></td><td width="25%"><a href="http://www.hoboditty.com?cat=6">Technology</a></td></tr><tr><td width="25%"><a href="http://www.hoboditty.com?cat=12">Movies</a></td><td width="25%"><a href="http://www.hoboditty.com?cat=15">Environment</a></td></tr><tr><td width="25%"><a href="http://www.hoboditty.com?cat=13">Music</a></td><td width="25%"><a href="http://www.hoboditty.com?cat=8">Hoboditty</a></td></tr><tr><td width="25%"><a href="http://www.hoboditty.com?cat=20">Buddy\'s Journal</a></td><td width="25%"><a href="http://www.hoboditty.com?bs=1">Most Recent</a></td><td width="25%"><a href="http://www.hoboditty.com?cat=11">Books</a></td><td width="25%"><a href="http://www.hoboditty.com?cat=1">The Other Stuff</a></td></tr></table>';
				break;
			case "Performers":
				document.getElementById('pagecontent').innerHTML='<table id="performerstable" width="100%"><tr width="100%"><td width="50%"><span style="padding: 0px; margin: 0px;" onclick="swapactor(\'Eblen\')"><h3>Jeff Eblen</h3></span></td><td width="50%"><span style="padding: 0px; margin: 0px;" onclick="swapactor(\'Joel\')"><h3>Joel Hendrickson</h3></span></td></tr><tr><td colspan="2"><div style="text-align:center; padding:0px; margin:0px;" id="indcontactinfo"><h4 style="font-weight:bold;">Eblen\'s Links</h4><table width="100%" style="display: inline; margin-left: 10px; margin-right: 10px;"><tr><td width="25%"><p style="margin:5px;"><a href="http://www.eblencomics.com" target="_blank"><img src="http://www.hoboditty.com/images/eblencomics.png" alt="Eblen Comics" /></a></p></td><td width="25%"><p style="margin:5px;"><a href="http://www.eblendesign.com" target="_blank"><img src="http://www.hoboditty.com/images/eblendesign.png" alt="Eblen Web Design" /></a></p></td><td width="25%"><p style="margin:5px;"><!-- Facebook Badge START --><a href="http://www.facebook.com/people/Jeff-Eblen/550403308" title="Jeff Eblen&#039;s Facebook profile" target="_blank" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal;font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;">Jeff Eblen\'s Profile</a><br /><a href="http://www.facebook.com/people/Jeff-Eblen/550403308" title="Jeff Eblen&#039;s Facebook profile" target="_blank"><img src="http://badge.facebook.com/badge/550403308.872.1348377252.png" alt="Jeff Eblen&#039;s Facebook profile" style="border: 0px;" /></a><br /><a href="http://www.facebook.com/badges.php" title="Make your own badge!" target="_blank" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal;font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;">Create Your Badge</a></p></td><td width="25%"><p style="margin:5px;"><a href="http://www.myspace.com/jeffeblen" target="_blank"><img src="http://www.hoboditty.com/images/myspace.png" alt="MySpace" /></a></p></td></tr></table></div></td></tr></table><br />';
				break;
			case "Daily Fortune":
				document.getElementById('pagecontent').innerHTML='<div id="fortune_bot"><br /><p style="font-weight: bold;">Background image created by Reid Craig.</p><p style="font-weight: bold;">Coded and Designed by Jeff Eblen.</p>';
				break;
			case "PUC Test":
				document.getElementById('pagecontent').innerHTML='<div id="PUC_bot"><br /><p style="font-weight: bold;">Quiz created by Jeff Eblen and Jeff Gilbert.</p>';
				break;
			case "Dummy":
				document.getElementById('pagecontent').innerHTML='<div id="PUC_bot"><br /><p style="font-weight: bold;">The gift shop has been closed.  It should open up in the future, keep your eyes open!</p>';
				break;
			case "Sound Controls":
				var alltext='<div class="mastersoundcontrols"><h3 style="margin-top: 10px;">Master Sound Controls.</h3><br /><ul><li><input type="radio" onclick="setsound(this.value)" ';
				if(mu==1 && se==1)
				{alltext+='checked="checked" ';}
				alltext+='id="both" name="sets" value="both" /> <b>All Sound</b></li><li><input type="radio" onclick="setsound(this.value)" ';
				if(mu==1 && se==0)
				{alltext+='checked="checked" ';}
				alltext+='id="music" name="sets" value="music" /> <b>Background Music Only</b></li><li><input type="radio" onclick="setsound(this.value)" ';
				if(mu==0 && se==1)
				{alltext+='checked="checked" ';}
				alltext+='id="se" name="sets" value="se" /><b>Only Special Effect Sounds</b></li></ul><hr /><br /><h3>Choose the background music you would like to hear.</h3><br /><ul><li><input type="radio" onclick="changeBGsound(this.value)" ';
				if(musicname=='Monsters')
				{alltext+='checked="checked" ';}
				alltext+='id="monsters" name="msc" value="monsters" /> <b>Monsters</b> by Band of Horses <small>(<a href="http://www.bandofhorses.com/" target="_blank">website</a>)</small></li><li><input onclick="changeBGsound(this.value)" type="radio" ';
				if(musicname=='Lamb On the Lam (In the City)')
				{alltext+='checked="checked" ';}
				alltext+='id="lam" name="msc" value="lam" /> <b>Lamb on the Lam (in the City)</b> by Band of Horses <small>(<a href="http://www.bandofhorses.com/" target="_blank">website</a>)</small></li><li><input type="radio" onclick="changeBGsound(this.value)" ';
				if(musicname=='Once Upon a Time')
				{alltext+='checked="checked" ';}
				alltext+='id="once" name="msc" value="once" /> <b>Once Upon a Time</b> by Ray Bradley\'s Backwater Surprise <small>(<a href="http://www.rcarecords.com/" target="_blank">website</a>)</small></li></ul></div>';
				document.getElementById('pagecontent').innerHTML=alltext;
				break;
			default:
				document.getElementById('pagecontent').innerHTML='<p>Other</p>';
				break;
		}
	}
}


//soundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsoundsound
function changesound()
{
	//alert('changesound');
	if(sound=='on')
	{
		if(returnmusic==1)
		{startstopsound(1); returnmusic=0;}
		switch(pagetitle)
		{
			case "Performers":
				
				//returnmusic=1;
				break;
			default://sound controls,burnside amphitheatre,fortune
				break;
		}
	}
}
function setsound(value)
{
	var new_mu;
	if(value=="both")
	{new_mu=1; se=1;}//if sound==on and oldmu==0 -> startstopsound();
	else if(value=="music")
	{new_mu=1; se=0;}//if sound==on and oldmu==0
	else if(value=="se")
	{new_mu=0; se=1;}
	if(sound=='on' && new_mu!=mu)
	{
		mu=new_mu;
		if(mu==1)
		{startstopsound(1);}
		else
		{startstopsound(2);}
	}
	mu=new_mu;//alert(se);
}
function startstopsound(want)
{
	if(want==1 && mu==1)
	{
		sound = "on";
		document.getElementById('mozsound').innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' id='flashbutton' width='0' height='0'><param name='movie' value='http://www.hoboditty.com/images/sound/"+backgroundsound+"' /><param name=quality value=high /><embed src='http://www.hoboditty.com/images/sound/"+backgroundsound+"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='0' height='0' name='flashbutton'></embed></object>";
		moveSoundText('"'+musicname+'" by '+musicartist+' off '+musicalbum+'.  Visit Sound Controls for more information.');
	}
	else if(want==1 && mu==0)
	{
		sound="on";
		moveSoundText('Sound is on.  Visit Sound Controls for background music and more options.');
	}
	else if(want==0 || want==2)
	{
		if(want==0){sound="off";}
		document.getElementById('mozsound').innerHTML='';
	}
	var caller='saveIP';
	createRequest();
	var url = "http://www.hoboditty.com/bots.php?c="+caller+'&m='+mu+'&s='+se;
	//alert(url);
	request.open("POST", url, true);
	request.send(null);
}
function changeBGsound(title)
{
	switch(title)
	{
		case 'monsters':
			backgroundsound='monsters.swf';//used for sound
			musicartist='Band of Horses'; musicwebsite='http://www.bandofhorses.com/';
			musicname='Monsters'; musicalbum='Everything All The Time';
			break;
		case 'lam':
			backgroundsound='lam.swf';//used for sound
			musicartist='Band of Horses'; musicwebsite='http://www.bandofhorses.com/';
			musicname='Lamb On the Lam (In the City)'; musicalbum='Cease To Begin';
			break;
		case 'once':
			backgroundsound='once.swf';//used for sound
			musicartist='Ray Bradley\'s Backwater Surprise'; musicwebsite='http://www.rcarecords.com/';
			musicname='Once Upon a Time'; musicalbum='Blackwater Surprise';
			break;
		default:
			backgroundsound='monsters.swf';
			musicartist='Band of Horses'; musicwebsite='http://www.bandofhorses.com/';
			musicname='Monsters'; musicalbum='Everything All The Time';
			break;
	}
	if(sound=="on")
	{startstopsound(1);}
}




//movemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemovemove
//moves the comic menu in left column
function movemenuCMOUT(comic,dir)//I dont think I use comic here at all.
{
	direction=dir;
	document.getElementById('pulldown').innerHTML='<a onclick="movemenuCM(\''+comic+'\',\'down\')" alt="">Pulldown Menu</a>';
	moveDivCMOUT();
}
function moveDivCMOUT()
{
  var new_bottom;
  var the_style = getStyleObject("comicmenu");
  if (the_style)
  {
    var current_bottom = parseInt(the_style.bottom);
	if(direction=="up")
    {new_bottom = current_bottom + 5;} 
    else 
    {new_bottom = current_bottom - 5;}
	if(new_bottom >= 1960)
    {
	  clearTimeout(the_timeoutCMOUT); 
	  return false;
    }
	if(new_bottom <= 1920 && direction=="down")
    {
      clearTimeout(the_timeoutCMOUT); 
	  return false;
    }
    if(document.layers) 
    {the_style.bottom=new_bottom;}
    else
    {the_style.bottom=new_bottom + "px";}
	the_timeoutCMOUT=setTimeout('moveDivCMOUT()',10);
  }
}
function movemenuCM(comic,dir)//I dont think I use comic here at all.
{
	direction=dir;
	if(direction=='up')
	{
		document.getElementById('pulldown').innerHTML='<a onclick="movemenuCM(\''+comic+'\',\'down\')" alt="">Pulldown Menu</a>';
	}
	else
	{
		document.getElementById('pulldown').innerHTML='<a onclick="movemenuCM(\''+comic+'\',\'up\')" alt="">Pulldown Menu</a>';
	}
	moveDivCM();
}
function moveDivCM()
{
  var new_bottom;
  var the_style = getStyleObject("comicmenu");
  if (the_style)
  {
    var current_bottom = parseInt(the_style.bottom);
	if(direction=="up")
    {new_bottom = current_bottom + 5;} 
    else 
    {new_bottom = current_bottom - 5;}
	if(new_bottom >= 1920)
    {
	  clearTimeout(the_timeoutCM); 
	  return false;
    }
	if(new_bottom <= 1760)
    {
      clearTimeout(the_timeoutCM); 
	  return false;
    }
    if(document.layers) 
    {the_style.bottom=new_bottom;}
    else
    {the_style.bottom=new_bottom + "px";}
	the_timeoutCM=setTimeout('moveDivCM()',10);
  }
}
//moves the sound tickertape on top
function moveSoundText(thetext)
{	
	document.getElementById('movingtext').innerHTML='<p style="white-space: nowrap;">'+thetext+'</p>';
	var the_style = getStyleObject("movingtext");
	var new_left=240;
	if(document.layers) 
    {the_style.left=new_left;}
    else
    {the_style.left=new_left + "px";}
	the_timeoutST=setTimeout('moveDivST()',200);
}
function moveDivST()
{
  var new_left;
  var the_style = getStyleObject("movingtext");
  if (the_style)
  {
    var current_left = parseInt(the_style.left);
	new_left = current_left - 1;
	if(new_left <= -800)
    {
	  clearTimeout(the_timeoutST); 
	  return false;
    }
    if(document.layers) 
    {the_style.left=new_left;}
    else
    {the_style.left=new_left + "px";}
	the_timeoutST=setTimeout('moveDivST()',40);
  }
}


//otherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherotherother
function getStyleObject(objectId) // cross-browser function to get an object's style object given its
{
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	//alert("w3c" + objectId);
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	//alert("ms4");
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	//alert("nn4");
	return document.layers[objectId];
    } else {
	//alert("blah");
	return false;
    }
}
//finds recent comic, sets it, and calls setComicFlash or swapcomic
function findrecentcomic()
{
	//alert('findrecentcomic');
	var caller='findrecentcomic';
	if(sound=="off")
	{caller='findrecentcomic_ns';}
	createRequest();
	var url = "http://www.hoboditty.com/bots.php?c="+caller;
	//alert(url);
	request.open("POST", url, true);
	request.onreadystatechange = findrecentcomic_catch;
	request.send(null);
}
function findrecentcomic_catch()
{
	if(request.readyState == 4)
	{
       	if(request.status ==200)
		{
			var variable = request.responseText;
			//alert(variable);
			comic=variable;
			var thecomic = comic;
			if(thecomic.match('swf')=='swf')
			{setComicFlash(thecomic);}
			else
			{swapcomic(thecomic);}
		}
	}
}
//sets the comic index when page is first loaded.
function setindex(wp)
{
	//alert('setindex');
	if(wp!=null)
	{wp_call=1;}
	moveSoundText('Hoboditty is best with sound.  Visit Sound Controls for more options.');
	var caller='setindex';
	createRequest();
	var url = "http://www.hoboditty.com/bots.php?c="+caller;
	//alert(url);
	request.open("POST", url, true);
	request.onreadystatechange = setindex_catch;
	request.send(null);
}
function setindex_catch()
{
	if(request.readyState == 4)
	{
       	if(request.status ==200)
		{
			findcomic=1;
			var variable = request.responseText;
			var completetext='<br /><table id="topofmenu" border="0" style="border-bottom: 2px solid black; border-top: 2px solid black;" width="100%"><tr><td width="80%"><h2 style="font-size: 16px;">Hoboditty</h2></td><td width="20%" style="text-align:right;"><div id="xout" onclick="movemenuCM(\'buddy\',\'up\')">X</div></td></tr></table>';
			//alert(variable);
			if(variable.match('&')=='&')
			{
				var list = variable.split('&'); 
				var count=0; var filename=''; var chaptername=''; var chapternum=-1; var num=0; var type=''; var thesound='no'; var thedate=''; var nextchapter=0; var tabs=0;var first=0;
				for(x in list)
				{
					switch(count)
					{
						case 0: filename=list[x]; count++; break;//filename
						case 1: if(list[x]!=chaptername)//ch_name
								{chaptername=list[x]; nextchapter=1; chapternum++;}
								count++; break;
						case 2: if(nextchapter==1)
								{
									if(tabs<5 && first!=0)
									{
										for(var m=tabs;m<5;m++)
										{completetext+='<td><img style="padding:0px; margin:0px; border:0px;" src="http://www.hoboditty.com/images/spacer.gif" border="0" width="29px" height="12px" alt="" /></td>';}
									}
									completetext+='</tr></table><h2>'+list[x]+': '+chaptername+'</h2><table class="chapter" border="0"><tr>';
									nextchapter=0;
									first=1; tabs=0;
								}
								count++; break;//ch_num
						case 3: thedate=list[x]; count++; break;//date
						case 4: num=list[x]; count++; break;//num
						case 5: thesound=list[x]; 
								if(thesound=='yes')
								{
									var findsound=filename.split('.');
									filename=findsound[0]+'_ns.'+findsound[1];
								}
								count++; break;//sound
						case 6: type=list[x];
								var ch_num=chapternum.toString();
								if(ch_num.length==1)
								{ch_num='0'+ch_num;}
								var co_num=num;
								if(co_num.length==1)
								{co_num='0'+co_num;}
								var comiclabel=ch_num+'-'+co_num;
								if(tabs==5)
								{completetext+='</tr><tr>'; tabs=0;}
								if(type=='img')
								{
									completetext+='<td><div class="transOFF" onclick="swapcomic(\''+filename+'\')" onmouseover="this.className=\'transON\'" onmouseout="this.className=\'transOFF\'">'+comiclabel+'</div></td>';
								}
								else if(type=='swf')
								{
									completetext+='<td><div class="transOFF_swf" onclick="setComicFlash(\''+filename+'\')" onmouseover="this.className=\'transON_swf\'" onmouseout="this.className=\'transOFF_swf\'">'+comiclabel+'</div></td>';
								}
								else{alert('newtype!');}
								tabs++;
								count=0; break;//type
						default: alert('error-default');
					}
					
				}
				if(tabs<5 && first!=0)
				{
					for(var m=tabs;m<5;m++)
					{completetext+='<td><img style="padding:0px; margin:0px; border:0px;" border="0" src="http://www.hoboditty.com/images/spacer.gif" width="29px" height="12px" alt="" /></td>';}
				}
				completetext+='</tr></table><br /><div id="pulldown"><a onclick="movemenuCM(\'buddy\',\'down\')">Pulldown Menu</a></div>';
				//alert(completetext);
				document.getElementById('comicmenu').innerHTML=completetext;
				changepage('Hoboditty');
			}
		}
	}
}
function check4sound(comic)//notused
{
	var caller='check4sound';
	thecomicWS=comic;
	createRequest();
	var url = "http://www.hoboditty.com/bots.php?c="+caller+'&w='+escape(comic);
	alert(url);
	request.open("POST", url, false);
	request.onreadystatechange = check4sound_catch;
	request.send(null);
	
	
	
}
function check4sound_catch()//notused
{
	if(request.readyState == 4)
	{
		if(request.status ==200)
		{
			var variable = request.responseText;
			alert(variable);
			if(variable=='yes')
			{comicwithsound=1;}
		}
	}
}


