//
var nav = new Object();

nav.Home = new Object();
nav.Home.init = new Image();
nav.Home.init.src = 'images/global/1b.gif';
nav.Home.over = new Image();
nav.Home.over.src = 'images/global/1bh.gif';

nav.Facts = new Object();
nav.Facts.init = new Image();
nav.Facts.init.src = 'images/global/2b.gif';
nav.Facts.over = new Image();
nav.Facts.over.src = 'images/global/2bh.gif';

nav.Photos = new Object();
nav.Photos.init = new Image();
nav.Photos.init.src = 'images/global/3b.gif';
nav.Photos.over = new Image();
nav.Photos.over.src = 'images/global/3bh.gif';

nav.Location = new Object();
nav.Location.init = new Image();
nav.Location.init.src = 'images/global/4b.gif';
nav.Location.over = new Image();
nav.Location.over.src = 'images/global/4bh.gif';

nav.Registration = new Object();
nav.Registration.init = new Image();
nav.Registration.init.src = 'images/global/5b.gif';
nav.Registration.over = new Image();
nav.Registration.over.src = 'images/global/5bh.gif';

nav.Exhibitors = new Object();
nav.Exhibitors.init = new Image();
nav.Exhibitors.init.src = 'images/global/6b.gif';
nav.Exhibitors.over = new Image();
nav.Exhibitors.over.src = 'images/global/6bh.gif';

nav.Build = new Object();
nav.Build.init = new Image();
nav.Build.init.src = 'images/global/7b.gif';
nav.Build.over = new Image();
nav.Build.over.src = 'images/global/7bh.gif';

nav.Sponsors = new Object();
nav.Sponsors.init = new Image();
nav.Sponsors.init.src = 'images/global/8b.gif';
nav.Sponsors.over = new Image();
nav.Sponsors.over.src = 'images/global/8bh.gif';

nav.Newsletter = new Object();
nav.Newsletter.init = new Image();
nav.Newsletter.init.src = 'images/global/9b.gif';
nav.Newsletter.over = new Image();
nav.Newsletter.over.src = 'images/global/9bh.gif';

nav.Contact = new Object();
nav.Contact.init = new Image();
nav.Contact.init.src = 'images/global/10b.gif';
nav.Contact.over = new Image();
nav.Contact.over.src = 'images/global/10bh.gif';

function swap_image( image_name, rollover_state ) {
	if ( document.images ) {
		document.images[image_name].src = nav[image_name][rollover_state].src;
	}
}
//

//
function set_frame_contents( eid ) {
	window.ExhibitorLogos.location.href = 'exhibitor_logos.php?id=' + eid; 
	window.ExhibitorDetail.location.href = 'exhibitor_detail.php?id=' + eid; 
	//window.ExhibitorDescription.location.href = 'exhibitor_description.php?id=' + eid; 
}
//

//
function gallery_popup( image_url, window_name ) {
	window.open( image_url, window_name, 'width=301,height=301,left=270,top=120' );
}
//

//
function lounge_popup( image_filename ) {
	window.open( 'html/lounge/lounge_popup.php?file=' + image_filename, 'loungepop', 'width=520,height=600,left=90,top=12' );
}

function validate_lounge_reservation( f ) {
	var e = f.hotel;
	var v = e.value;
	var a = 'Please enter your hotel name.';
	if ( !v || v.replace( /\s/g, '' ) == '' ) {
		alert( a );
		e.focus();
		return false;
	}
	
	var e = f.name;
	var v = e.value;
	var a = 'Please enter the name under which your reservation was made.';
	if ( !v || v.replace( /\s/g, '' ) == '' ) {
		alert( a );
		e.focus();
		return false;
	}
	
	var e = f.conf_code;
	var v = e.value;
	var a = 'Please enter your confirmation code.';
	if ( !v || v.replace( /\s/g, '' ) == '' ) {
		alert( a );
		e.focus();
		return false;
	}
	
	var e = f.nights;
	var v = e.value;
	var a = 'Please enter the number of nights you will be staying.';
	if ( !v || v.replace( /\s/g, '' ) == '' ) {
		alert( a );
		e.focus();
		return false;
	}
}
//

function validate_contract( f ) {
	var e = f.brand;
	var v = e.value;
	var a = 'Please enter your brand name.';
	if ( !v || v.replace( /\s/g, '' ) == '' ) {
		alert( a );
		e.focus();
		return false;
	}
	
	var e = f.contact_name;
	var v = e.value;
	var a = 'Please enter the contact name.';
	if ( !v || v.replace( /\s/g, '' ) == '' ) {
		alert( a );
		e.focus();
		return false;
	}
	
	var e = f.email;
	var v = e.value;
	var a = 'Please enter your email address.';
	if ( !v || v.replace( /\s/g, '' ) == '' ) {
		alert( a );
		e.focus();
		return false;
	}
	
}

//
function clipping_popup( article_url, window_name, window_width, window_height ) {
	window.open( article_url, window_name, 'width=' + window_width + ',height=' + window_height + ',left=90,top=12,scrollbars=yes,resizable' );
}
//

//
function select_show( e, n1 ) {
	var working_id = e.options[e.options.selectedIndex].value;
	window.location.href = 'index.html?n1=' + n1 + '&working_id=' + working_id;
}
//

//
function lounge_select_show( e ) {
	var working_id = e.options[e.options.selectedIndex].value;
	if ( working_id != 0 ) {
		window.location.href = 'lounge_show_description.php?working_id=' + working_id;
	}
}
//

//

