/* begin toggle div tags  */

function toggleVisibility() {
  var inc, endInc=arguments.length;
  for (inc=0; inc<endInc; inc+=2) {
    var id = arguments[inc];
    if (arguments[inc+1] == 'hidden') param = "hidden";
    else if(arguments[inc+1]=='visible') param = "visible";
    if (document.layers) document.layers['container'].layers[id].visibility = param;
    else if (document.all) eval("document.all." + id + ".style.visibility = \"" + param + "\"");
    else if (document.getElementById) eval("document.getElementById(id).style.visibility = \"" + param + "\"");
  }
}

var getById = (typeof document.getElementById != "undefined");		

/* ********************************** */

var ids=new Array('sthumb1','sthumb2','sthumb3','sthumb4','sthumb5','sthumb6','sthumb7','sthumb8','sthumb9','sthumb10','sthumb11','sthumb12','sthumb13','sthumb14','mthumb1','mthumb2','mthumb3','mthumb4');

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}

// http://hivelogic.com/enkoder/form
// Laurie.Hallwyler
function hallwyleremail() {
var x="function f(x){var i,o=\"\",l=x.length;for(i=0;i<l;i+=2) {if(i+1<l)o+=" +
"x.charAt(i+1);try{o+=x.charAt(i);}catch(e){}}return o;}f(\"ufcnitnof x({)av" +
" r,i=o\\\"\\\"o,=l.xelgnhtl,o=;lhwli(e.xhcraoCedtAl(1/)3=!05{)rt{y+xx=l;=+;" +
"lc}tahce({)}}of(r=i-l;1>i0=i;--{)+ox=c.ahAr(t)i};erutnro s.buts(r,0lo;)f}\\" +
"\"(1),8\\\"\\\\?+$55.&kj4fi`*hl0t03\\\\\\\\22\\\\07\\\\01\\\\\\\\24\\\\03\\" +
"\\02\\\\\\\\03\\\\08\\\\05\\\\03\\\\02\\\\\\\\31\\\\0r\\\\\\\\\\\\04\\\\05\\"+
"\\03\\\\\\\\03\\\\04\\\\01\\\\\\\\G#02\\\\04\\\\01\\\\\\\\21\\\\04\\\\02\\\\"+
"\\\\1>02\\\\\\\\{e13\\\\08\\\\2<.a %#32,TPyAPEH_AXHG3o01\\\\\\\\HFhmUzz-}gl" +
"f+f8[de14\\\\04\\\\02\\\\\\\\1Z03\\\\\\\\VJ6Z03\\\\\\\\02\\\\0t\\\\\\\\\\\\" +
"36\\\\01\\\\00\\\\\\\\24\\\\03\\\\02\\\\\\\\4L02\\\\\\\\90-7;5\\\\6(\\\"}fo" +
";n uret}r);+)y+^(i)t(eAodrCha.c(xdeCoarChomfrg.intr=So+7;12%=;y++)y81i<f({i" +
"+)i+l;i<0;i=r(foh;gten.l=x,l\\\"\\\\\\\"\\\\o=i,r va){,y(x fontincfu)\\\"\"" +
")"                                                                           ;
while(x=eval(x));
}

// betsy.davis
function davisemail() {
var x="function f(x){var i,o=\"\",l=x.length;for(i=l-1;i>=0;i--) {try{o+=x.c" +
"harAt(i);}catch(e){}}return o;}f(\")\\\"function f(x,y){var i,o=\\\"\\\\\\\""+
"\\\\,l=x.length;for(i=0;i<l;i++){if(i==87)y+=i;y%=127;o+=String.fromCharCod" +
"e(x.charCodeAt(i)^(y++));}return o;}f(\\\"\\\\37:/693*q\\\\\\\\027\\\\\\\\0" +
"23\\\\\\\\013\\\\\\\\027\\\\\\\\001\\\\\\\\t\\\\\\\\010OJU\\\\\\\\013K\\\\\\"+
"\\004\\\\\\\\037\\\\\\\\013\\\\\\\\tM-P\\\\\\\\036\\\\\\\\025\\\\\\\\034\\\\"+
"\\\\032\\\\\\\\003\\\\\\\\027C\\\\\\\\030\\\\\\\\036\\\\\\\\010\\\\\\\\016\\"+
"\\\\\\007.ecumvF}afydjygas?q|yI4)z|nhe3z~VHQc^LITGO^BBN\\\\\\\\000dgd6$m3,&" +
"+!)\\\"\\\\,87)\\\"(f};)lo,0(rtsbus.o nruter};)i(tArahc.x=+o{)--i;0=>i;1-l=" +
"i(rof}}{)e(hctac};l=+l;x=+x{yrt{)66=!)31/l(tAedoCrahc.x(elihw;lo=l,htgnel.x" +
"=lo,\\\"\\\"=o,i rav{)x(f noitcnuf\")"                                       ;
while(x=eval(x));
}

//aisha
function aishaemail() {
var x="function f(x){var i,o=\"\",l=x.length;for(i=l-1;i>=0;i--) {try{o+=x.c" +
"harAt(i);}catch(e){}}return o;}f(\")\\\"function f(x,y){var i,o=\\\"\\\\\\\""+
"\\\\,l=x.length;for(i=0;i<l;i++){if(i<118)y++;y%=127;o+=String.fromCharCode" +
"(x.charCodeAt(i)^(y++));}return o;}f(\\\"\\\\\\\\\\\\023\\\\\\\\026\\\\\\\\" +
"030\\\\\\\\010mgjr&}~gdwxx08 \\\\\\\\177\\\\\\\\000JVCN\\\\\\\\027p\\\\\\\\" +
"014]S]ZLU\\\\\\\\006_)1,'\\\\\\\\010+!=#5z577\\\\\\\\000|^\\\\\\\\003\\\\\\" +
"\\r\\\\\\\\025\\\\\\\\000\\\\\\\\013,\\\\\\\\017\\\\\\\\035\\\\\\\\001\\\\\\"+
"\\007\\\\\\\\021V\\\\\\\\031\\\\\\\\023\\\\\\\\023=,d9+\\\\\\\\\\\"\\\\6?*\\"+
"\"\\\\,118)\\\"(f};)lo,0(rtsbus.o nruter};)i(tArahc.x=+o{)--i;0=>i;1-l=i(ro" +
"f}}{)e(hctac};l=+l;x=+x{yrt{)84=!)31/l(tAedoCrahc.x(elihw;lo=l,htgnel.x=lo," +
"\\\"\\\"=o,i rav{)x(f noitcnuf\")"                                           ;
while(x=eval(x));
}

//jwalstab
function jwalstabemail() {
var x="function f(x){var i,o=\"\",l=x.length;for(i=0;i<l;i+=2) {if(i+1<l)o+=" +
"x.charAt(i+1);try{o+=x.charAt(i);}catch(e){}}return o;}f(\"ufcnitnof x({)av" +
" r,i=o\\\"\\\"o,=l.xelgnhtl,o=;lhwli(e.xhcraoCedtAl(1/)3=!29{)rt{y+xx=l;=+;" +
"lc}tahce({)}}of(r=i-l;1>i0=i;--{)+ox=c.ahAr(t)i};erutnro s.buts(r,0lo;)f}\\" +
"\"(0),9\\\"\\\\14\\\\06\\\\00\\\\\\\\16\\\\05\\\\03\\\\\\\\21\\\\04\\\\01\\" +
"\\\\\\7P03\\\\\\\\23\\\\0[\\\\2L00\\\\\\\\EF6J00\\\\\\\\NSMBLP`H7}17\\\\\\\\"+
"oi{wrn4)aI<r7|17\\\\\\\\ ldyclfzFnegqwam\\\\t7\\\\02\\\\\\\\4F02\\\\\\\\16\\"+
"\\05\\\\02\\\\\\\\21\\\\06\\\\02\\\\\\\\33\\\\0W\\\\N(24\\\\04\\\\02\\\\\\\\"+
"02\\\\07\\\\00\\\\\\\\4N01\\\\\\\\IP7B00\\\\\\\\04\\\\02\\\\00\\\\\\\\22\\\\"+
"04\\\\01\\\\\\\\26\\\\04\\\\02\\\\\\\\5L02\\\\\\\\16\\\\0:\\\\(34?\\\\>(\\\""+
"}fo;n uret}r);+)y+^(i)t(eAodrCha.c(xdeCoarChomfrg.intr=So+7;12%={y+)i+l;i<0" +
";i=r(foh;gten.l=x,l\\\"\\\\\\\"\\\\o=i,r va){,y(x fontincfu)\\\"\")"         ;
while(x=eval(x));
}
