<!-- hide from browsers that do not know JavaScript

        if (document.images) {
            img1on=new Image();   img1on.src="images/but_home1.gif";
            img2on=new Image();   img2on.src="images/but_act1.gif";
            img3on=new Image();   img3on.src="images/but_guide1.gif";
            img4on=new Image();   img4on.src="images/but_manage1.gif";
            img5on=new Image();   img5on.src="images/but_ewa1.gif";
						img6on=new Image();   img6on.src="images/but_links1.gif";
            img7on=new Image();   img7on.src="images/but_files1.gif";
            img8on=new Image();   img8on.src="images/but_news1.gif";
            

            img1off=new Image();   img1off.src="images/but_home.gif";
            img2off=new Image();   img2off.src="images/but_act.gif";
            img3off=new Image();   img3off.src="images/but_guide.gif";
            img4off=new Image();   img4off.src="images/but_manage.gif";
            img5off=new Image();   img5off.src="images/but_ewa.gif";
						img6off=new Image();   img6off.src="images/but_links.gif";
            img7off=new Image();   img7off.src="images/but_files.gif";
            img8off=new Image();   img8off.src="images/but_news.gif";
            
        }


    function imgOn(imgName,txt) {
            if (document.images) {
                document[imgName].src = eval(imgName + "on.src");
            }
    }
    function imgOff(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "off.src");
            }
    }
function popwin(img,w,h){
var x1 = screen.width;
var y1 = screen.height;
//var top = parseInt((y1 - h)/2);
//var left = parseInt((x1 - w)/2);
//alert(x1 y1 top left);
top=75;left=100;
window.open(img,'imgs','width='+w+',height='+h+',resizable=no,scrollbars=no,status=no,top='+top+',left='+left);
return false;
}

function popopen(img){
window.open(img,'imx','width=100,height=50,resizable=no,scrollbars=no,status=no,top=50,left=50');
return false;
}




function win(image,title,w,h) {

var x1 = screen.width;
var y1 = screen.height;
var top = parseInt((y1 - h)/2);
var left = parseInt((x1 - w)/2);

ww=w;
wh=h+20;
//alert(image+'\nTitle : '+title+'\nWidth x Height :'+w+' x '+h+'\n Screen Size :'+x1+' x '+y1+'\n'+ww+' - '+wh);

	show=window.open('','show','width='+ww+',height='+wh+',resizable=no,scrollbars=no,status=no,top='+top+',left='+left);
	show.document.write('<html><head><title>Cicadamedia '+title+'</title>');
	show.document.write('<link rel="stylesheet" href="sns/styles.css"></head>');
	show.document.write('<body topmargin="0" leftmargin="0" marginwidth="0" bgcolor="#eeeeee" onload="window.focus();">');
	show.document.write('<table cellpadding="0" cellspacing="0" border="0" width="100%">');
	show.document.write('<tr><td><a href="javascript:window.close();"><img src="images/'+image+'.jpg" width="'+w+'" height="'+h+'" border="0"></a></td></tr>');
	show.document.write('<tr><td class="sbl" align="center" height="25"><a href="javascript:window.close();">Close this window</a></td></tr>');
	show.document.write('</table></body></html>');
}


/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate

// end hiding-->