
toolimg1=new Image();	toolimg1.src="/img/btn-home.gif";
toolimg2=new Image();	toolimg2.src="/img/btn-home-x.gif";
toolimg3=new Image();	toolimg3.src="/img/btn-sitemap.gif";
toolimg4=new Image();	toolimg4.src="/img/btn-sitemap-x.gif";
toolimg5=new Image();	toolimg5.src="/img/btn-somsi.gif";
toolimg6=new Image();	toolimg6.src="/img/btn-somsi-x.gif";
toolimg7=new Image();	toolimg7.src="/img/btn-notice.gif";
toolimg8=new Image();	toolimg8.src="/img/btn-notice-x.gif";

function ds(nom) {	
	if (nom==1) document.images["home"].src = toolimg1.src;
	if (nom==2) document.images["home"].src = toolimg2.src;
	if (nom==3) document.images["sitemap"].src = toolimg3.src;
	if (nom==4) document.images["sitemap"].src = toolimg4.src;
	if (nom==5) document.images["contact"].src = toolimg5.src;
	if (nom==6) document.images["contact"].src = toolimg6.src;
	if (nom==7) document.images["notice"].src = toolimg7.src;
	if (nom==8) document.images["notice"].src = toolimg8.src;
	
}


function movr(src,clrOver,clrbr1){ if (!src.contains(event.fromElement)) {	src.bgColor = clrOver; src.style.border=clrbr1}}
function mout(src,clrIn,clrbr2) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn; src.style.border=clrbr2}}

function flier(pageurl, winname, attr) {
		window.open(pageurl, winname, attr + ", menubar=no, copyhistory=no, toolbar=no, status=no, scrollbars=no, resizable=no");
}

function flier2(pageurl, winname, attr) {
		window.open(pageurl, winname, attr + ", menubar=no, copyhistory=no, toolbar=no, status=no, scrollbars=YES, resizable=NO");
}

function ToggleDisplay(oItem,hItem)	{
	if ((oItem.style.display == "") || (oItem.style.display == "none"))	{
		oItem.style.display = "block";
		hItem.style.display = "none";
	}	else {
		oItem.style.display = "none";
		hItem.style.display = "block";
	}
}

function ToggleDisplayb(oButton, oItems)	{		
	if ((oItems.style.display == "") || (oItems.style.display == "none"))	{
		oItems.style.display = "block";
		oButton.src = "/img/icn_minus.gif";
	}	else {
		oItems.style.display = "none";
		oButton.src = "/img/icn_plus.gif";
	}
	return false;
}

function ToggleDisplayc(oItem)	{
	if ((oItem.style.display == "") || (oItem.style.display == "none"))	{
		oItem.style.display = "block";
	}	else {
		oItem.style.display = "none";
	}
}

function ToggleDisplayd(oItem,hItem,tItem) {
	hItem.style.display = "none";
	tItem.style.display = "none";
	oItem.style.display = "block";
}

function ToggleDisplayf(oItem,hItem,tItem) {
	hItem.style.display = "none";
	oItem.style.display = "block";
}

function ToggleDisplaye(oItems, t) {
	if (t == 1)  {
		oItems.style.display = "block";
	} else {
		oItems.style.display = "none";
	}
}

function ToggleDisplayg(oItem,aItem,bItem,cItem) {
	aItem.style.display = "none";
	bItem.style.display = "none";
	cItem.style.display = "none";
	oItem.style.display = "block";
}

function changeImage(img)	{
	element = event.srcElement;
	element.style.backgroundImage = "url(" + img + ")";
}

function draw_flash(swfname,swfwidth,swfheight) {
//	alert(swfname); 
	document.write('<OBJECT WIDTH=' + swfwidth + ' HEIGHT=' + swfheight + ' id=subnav classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" > ');	
	document.write('<PARAM NAME=MOVIE VALUE="/flash/' + swfname + '.swf" />' );
	document.write('<PARAM NAME=MENU VALUE=false />');
	document.write('<PARAM NAME=QUALITY VALUE=high />');
	document.write('<PARAM NAME=SCALE VALUE=noscale />');
	document.write('<embed SRC="/flash/' + swfname + '.swf" MENU="false" QUALITY="high" WMODE="transparent" SCALE="noscale" SALIGN="lt" bgcolor="#ffffff" width=260 height=' + swfheight + ' name="subnav" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></EMBED>');
	document.write(' </object>');
}

