//with Jquery
var J = jQuery.noConflict();
	function Send_Keyword()
	{
		document.getElementById('form1').submit();		
	}

J(document).ready(function(){
	 
						   
	var myimages=new Array()
	var imgchecker = screen.colorDepth;
	function preloadimages(){
		for (i=0;i<preloadimages.arguments.length;i++){
				myimages[i]=new Image()
				myimages[i].src=preloadimages.arguments[i]
			}
		}
		
	MM_preloadImages('');
	preloadimages('bg_header.jpg','bg_html.jpg','bt_go_search_b.gif');
	
	function GEBI(id){ return document.getElementById(id);}
	
	//--------------------------------------------------
	//  lighbox de locations
	//--------------------------------------------------
	
	J("a.browse").fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow': true,'frameWidth':530 , 'frameHeight':250  }); 
	//J("a#saved").fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow': true,'frameWidth':530 , 'frameHeight':230  }); 
	//J("a#request").fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow': true,'frameWidth':530 , 'frameHeight':230  }); 
	//J("a#locations").fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow': true,'frameWidth':530 , 'frameHeight':230  }); 
	J("a.imglocations").fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow': true,'frameWidth':530 , 'frameHeight':200  }); 

	//--------------------------------------------------
	//  OVER DE BOTONES A TRAVES DEL MENU DE NAVEGACION
	//--------------------------------------------------
	//ABOUT US
	/*$('img#about').mouseover(function(){
		this.src='images/bt_about_over.png';
		GEBI('incentive').src='images/bt_incentives.png';
		GEBI('production_resources').src='images/bt_production.png';
		GEBI('locations').src='images/bt_locations.png';
		GEBI('get_connected').src='images/bt_get.png';
		GEBI('for_locals').src='images/bt_for.png';
		GEBI('student_show').src='images/bt_student.png';
		});
	//INCENTIVES
	$('img#incentive').mouseover(function(){
		this.src='images/bt_incentives_over.png';								 
		GEBI('about').src='images/bt_about.png';
		GEBI('production_resources').src='images/bt_production.png';
		GEBI('locations').src='images/bt_locations.png';
		GEBI('get_connected').src='images/bt_get.png';
		GEBI('for_locals').src='images/bt_for.png';
		GEBI('student_show').src='images/bt_student.png';
		});
	//PRODUCTIONS RESOURCES
	$('img#production_resources').mouseover(function(){
		this.src='images/bt_production_over.png';								 
		GEBI('about').src='images/bt_about.png';
		GEBI('incentive').src='images/bt_incentives.png';
		GEBI('locations').src='images/bt_locations.png';
		GEBI('get_connected').src='images/bt_get.png';
		GEBI('for_locals').src='images/bt_for.png';
		GEBI('student_show').src='images/bt_student.png';
		});
	//LOCATIONS DATABASES
	$('img#locations').mouseover(function(){
		this.src='images/bt_locations_over.png';								 
		GEBI('about').src='images/bt_about.png';
		GEBI('incentive').src='images/bt_incentives.png';
		GEBI('production_resources').src='images/bt_production.png';
		GEBI('get_connected').src='images/bt_get.png';
		GEBI('for_locals').src='images/bt_for.png';
		GEBI('student_show').src='images/bt_student.png';
		});
	//GET CONNECTED
	$('img#get_connected').mouseover(function(){
		this.src='images/bt_get_over.png';								 
		GEBI('about').src='images/bt_about.png';
		GEBI('incentive').src='images/bt_incentives.png';
		GEBI('production_resources').src='images/bt_production.png';
		GEBI('locations').src='images/bt_locations.png';
		GEBI('for_locals').src='images/bt_for.png';
		GEBI('student_show').src='images/bt_student.png';
		});
	//FOR LOCALS
	$('img#for_locals').mouseover(function(){
		this.src='images/bt_for_over.png';								 
		GEBI('about').src='images/bt_about.png';
		GEBI('incentive').src='images/bt_incentives.png';
		GEBI('production_resources').src='images/bt_production.png';
		GEBI('locations').src='images/bt_locations.png';
		GEBI('get_connected').src='images/bt_get.png';
		GEBI('student_show').src='images/bt_student.png';
		});
	//STUDENT SHOWCASE OF FILMS
	$('img#student_show').mouseover(function(){
		this.src='images/bt_student_over.png';								 
		GEBI('about').src='images/bt_about.png';
		GEBI('incentive').src='images/bt_incentives.png';
		GEBI('production_resources').src='images/bt_production.png';
		GEBI('locations').src='images/bt_locations.png';
		GEBI('get_connected').src='images/bt_get.png';
		GEBI('for_locals').src='images/bt_for.png';
		});*/
	J('img#news_press').mouseover(function(){
		GEBI('news_press').src='images/hd_news_press_over.jpg';
		});
	J('img#news_press').mouseout(function(){
		GEBI('news_press').src='images/hd_news_press.jpg';
		});
	J('img#events').mouseover(function(){
		GEBI('events').src='images/hd_events_welcome_over.jpg';
		});
	J('img#events').mouseout(function(){
		GEBI('events').src='images/hd_events_welcome.jpg';
		});
	J('img#join_our_newsletter').mouseover(function(){
		GEBI('join_our_newsletter').src='images/bt_join_our_newsletter_over.gif';
		});
	J('img#join_our_newsletter').mouseout(function(){
		GEBI('join_our_newsletter').src='images/bt_join_our_newsletter.gif';
		});
	J('img#view_events_calendar').mouseover(function(){
		GEBI('view_events_calendar').src='images/bt_view_events_calendar_over.gif';
		});
	J('img#view_events_calendar').mouseout(function(){
		GEBI('view_events_calendar').src='images/bt_view_events_calendar.gif';
		});	
	J('img#press_releases').mouseover(function(){
		GEBI('press_releases').src='images/bt_press_releases_over.gif';
		});
	J('img#press_releases').mouseout(function(){
		GEBI('press_releases').src='images/bt_press_releases.gif';
		});	
	J('img#location_spotlight').mouseover(function(){
		GEBI('location_spotlight').src='images/hd_location_spotlight_over.jpg';
		});
	J('img#location_spotlight').mouseout(function(){
		GEBI('location_spotlight').src='images/hd_location_spotlight.jpg';
		});	
	J('img#welcome').mouseover(function(){
		GEBI('welcome').src='images/hd_welcome_over.jpg';
		});
	J('img#welcome').mouseout(function(){
		GEBI('welcome').src='images/hd_welcome.jpg';
		});		
	
	//---------------------------------------------
	// CLICK SOBRE BOTONES PARA LOS DESTINOS
	//---------------------------------------------
	//ABOUT
	

	
	J('img#about').mouseover(function(){
		//this.src='images/bt_about.png';
		GEBI('about').src='images/bt_about_act.png';
		});
	J('img#about').mouseout(function(){
		GEBI('about').src='images/bt_about.png';
		});
	J('img#about').click(function(){
		document.location="about_us.cfm?act=about_us";
		return false;
		});
	//INCENTIVES
	J('img#incentive').mouseover(function(){
		GEBI('incentive').src='images/bt_incentives_act.png';
		});
	J('img#incentive').mouseout(function(){
		GEBI('incentive').src='images/bt_incentives.png';
		});
	J('img#incentive').click(function(){
		document.location="incentives.cfm?act=incentive";
		return false;
		});
	//PRODUCTIONS RESOURCES
	J('img#production_resources').mouseover(function(){
		GEBI('production_resources').src='images/bt_production_act.png';
		});
	J('img#production_resources').mouseout(function(){
		GEBI('production_resources').src='images/bt_production.png';
		});
	J('img#production_resources').click(function(){
		document.location="production_resources.cfm?act=p_resource";
		return false;
		});	
	//LOCATIONS DATABASES
	J('img#locations').mouseover(function(){
		GEBI('locations').src='images/bt_locations_act.png';
		});
	J('img#locations').mouseout(function(){
		GEBI('locations').src='images/bt_locations.png';
		});
	J('img#locations').click(function(){
		document.location="locations_preview.cfm?act=locations";
		return false;
		});	
	//GET CONNECTED
	J('img#get_connected').mouseover(function(){
		GEBI('get_connected').src='images/bt_get_act.png';
		});
	J('img#get_connected').mouseout(function(){
		GEBI('get_connected').src='images/bt_get.png';
		});	
	J('img#get_connected').click(function(){
		document.location="get_connected.cfm?act=get_connect";
		return false;
		});	
	//FOR LOCALS
	J('img#for_locals').mouseover(function(){
		GEBI('for_locals').src='images/bt_for_act.png';
		});
	J('img#for_locals').mouseout(function(){
		GEBI('for_locals').src='images/bt_for.png';
		});		
	J('img#for_locals').click(function(){
  		document.location="for_locals.cfm?act=for_locals";
		return false;
		});	
	//STUDENT SHOWCASE OF FILMS
	J('img#student_show').mouseover(function(){
		GEBI('student_show').src='images/bt_student_act.png';
		});
	J('img#student_show').mouseout(function(){
		GEBI('student_show').src='images/bt_student.png';
		});		
	J('img#student_show').click(function(){
  		document.location="studentshowcaseoffilms";
		return false;
		});	


});


