// Javascript for Elegant Celebrations// by: Nick Kempinski// web: http://www.whoisnick.com//a global var to track onoff menusvar onoff, keep, flip;function show(str) {//shows a div bi id 	var obj = document.getElementById(str);	if(obj) {		obj.style.display='block';		obj.style.visibility='visible';	}} function hide(str) {//shows a div bi id	var obj = document.getElementById(str);	if (obj) {		obj.style.display='none';		obj.style.visibility='hidden';	}}function swapper(args) {	var order = arguments[0];	flip = arguments[1];	keep = arguments[2];		//by default will do this 	clearInterval(onoff);	//if no values then do't do anything	if (order==="show") {		show(flip);		hide(keep);	}	else if (order==="hide") {		onoff=setInterval('show(keep);hide(flip);',800);	}	}function write_gallery(start,x) {		var col=4;				for(var i=1;i<=x;i++) {			start++;			document.write("<td>");						document.write("<img src=\"img/gallery/wedding/" + start + "-tr.png\" alt=\"\" height=\"45\" width=\"45\" onmouseover=\"this.src='img/gallery/wedding/" + start + "-sm.jpg'\" onmouseout=\"this.src='img/gallery/wedding/" + start + "-tr.png'\" onclick=\"current=" + start + ";large.src='img/gallery/wedding/" + start + "-lg.jpg'\"/>");			document.write("</td>");			if (i % col ==0) {				document.write("</tr><tr>");			}		}}
