
function setNavig(s)
{
	navig.innerHTML = s;
}

function createMenuItem(imagebase, url, target)
{
	document.write("<A HREF='"+url+"' TARGET='"+target+"'>"+
		"<IMG SRC='"+imagebase+"_dn.gif' onMouseOver='this.src=\""+imagebase+"_ov.gif\";' onMouseOut='this.src=\""+imagebase+"_dn.gif\";' BORDER='0'>"+
		"</A>");
}
	
	
function createCookie(name,value,days)
{
	if (days) 
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else 
		var expires = "";
		
	document.cookie = name+"="+value+expires+"; path=/";
}
	

function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
		
	for(var i=0;i < ca.length;i++) 
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) 
			return c.substring(nameEQ.length,c.length);
	}
		
	return null;
}

	
function eraseCookie(name)
{
	createCookie(name,"",-1);
}


function openImage(path)
{
	var newWindow;
	var outputHTML;
	newWindow = window.open('','','resizable=no,width=470,height=395,titlebar=no,menubar=yes,toolbar=no,location=no,status=no');
	outputHTML = "<HTML>"+
				"<HEAD><TITLE>Strange Son Blog</TITLE></HEAD>"+
				"<BODY TOPMARGIN='0' LEFTMARGIN='0' BOTTOMMARGIN='0' RIGHTMARGIN='0'>"+
				"<TABLE WIDTH='100%' HEIGHT='100%'><TR><TD ALIGN='center' VALIGN='center'><IMG SRC='"+path+"'></TD></TR></TABLE>"+
				"</BODY>"+
				"</HTML>";
	newWindow.document.write(outputHTML);
}

