//---------------- MISC

function global(i) {
	if (document.forms.remind_me) {
		document.links.namedItem('remind_me_link').style.display = 'block';
	}
//	setupRollovers();
//	if (!i) setupSNAVRollovers();
}

/*
function setupSNAVRollovers() {
	for (i=0;(obj=mysnav[i]);i++) {setSNAVEvent(obj,'#F3F2F0','#C0BCAF')}
	for (i=0;(obj=mysnav_dark[i]);i++) {setSNAVEvent(obj,'#636362','#373737')}
}

function setSNAVEvent (obj,n,o) {
	obj.onmouseover=function() {this.style.backgroundColor=o;}
	obj.onmouseout=function() {this.style.backgroundColor=n;}
	if (obj.getAttribute("mylink")) obj.onclick=function() {document.location.href=this.getAttribute("mylink")};
}
*/

function initClick(obj) {
	obj.myvalue = obj.value;
	obj.onclick = function() {
		if (this.value==this.myvalue) this.value='';
		if (this.value!=this.myvalue&&!this.clicked) this.select(); this.clicked = 1;
	}
	obj.onblur = function() {if (this.value=='') this.value = this.myvalue; this.clicked = 0;}
	obj.onmouseover = function() {}
}

//---------------- //





//---------------- ROLLOVERS
/*
[OVERVIEW]
Simple rollovers.  Just add the 'rollover' attribute to your
img tag linking the over image. It handles the rest ... even
the preloads.

[CALL]
All that is required on the users end is to add an attribute
called 'rollover' in the img tag with the path for the rollover
graphic. This function needs to be called in the onload.
e.g. <img src="but_about.gif" rollover="but_about_.gif">

[WRITTEN]
David Tsuji
*/
/*
function setupRollovers() {
	for (i=0;(img=document.images[i]);i++) {
	if(img.getAttribute){if(img.getAttribute("rollover")) {
	img.o=new Image();img.n=new Image();
	img.o.src=img.getAttribute("rollover");img.n.src=img.src;
	img.onmouseover=function(){this.src=this.o.src;}
	img.onmouseout=function(){this.src=this.n.src;}} }	}
}
*/
//---------------- //


//---------------- HOME PAGE HIGHLIGHTING FOR IE USERS

function toggle_ambience(obj) {
	if (obj.style.filter) {
		obj.style.filter = '';
	} else {
		obj.style.filter = 'light';
		obj.filters.light.addAmbient(255, 216, 216, 95);
	}
}

//---------------- //


//---------------- POPUPS

function open_venue_photo() {
	window.open('photo/', 'venue_photo',
				'width=300,height=320,left=50,top=50,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no');
}

function open_location_map() {
	window.open('location_map/', 'location_map',
				'width=673,height=466,left=50,top=50,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no');
}

//---------------- //


//---------------- REMIND ME

function toggle_remind_me() {
	var remind_me = document.forms['remind_me'];
	if (remind_me.style.display == 'none') {
		remind_me.style.display = 'block';
		remind_me.elements.remind_your_name.focus();
	} else {
		remind_me.style.display = 'none';
	}
}

//---------------- //



