// JavaScript Setcode fundaments for performance
//Laid Jose Antenor Gomez Jaramillo - Not Remove Copyright - solved for dean.edwards
/*if(document.addEventListener){
	document.addEventListener('DOMContentLoaded',domready,false);
		}
function domready(){
	}
*/

//with Jquery
$(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]
			}
		}

	  $("a#fancys").fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow': true,'frameWidth':640 , 'frameHeight':527  }); 
	  $("p#GalleryImages a").fancybox({'zoomSpeedIn':  0, 'zoomSpeedOut': 0, 'overlayShow': true , 'frameWidth':835 , 'frameHeight':660 });	  
	  $("p.Gallerys a").fancybox({'zoomSpeedIn':  0, 'zoomSpeedOut': 0, 'overlayShow': true , 'frameWidth':835 , 'frameHeight':660 });	  
	  $("div#clicker").css({position:'absolute', background: 'url(images/blank.gif) repeat', width:'400px', height:'130px' , left: '310px',  top: '-268px',  cursor:'pointer'});			

	MM_preloadImages('');
	preloadimages('');
	
function GEBI(id){ return document.getElementById(id);}

//ACTIVACION DEL DROPDOWN	mix
	$('img#mix').mouseover(function(){
		this.src='images/bt_mix_over.gif'; 
		GEBI('drop_mix').style.visibility='visible';				
		});
	$('img#mix').mouseout(function(){
		this.src='images/bt_mix.gif'; 
		GEBI('drop_mix').style.visibility='';
		});
	//EVENTOS ROLLOVER DROPDOWNS drop_mix
	$('div#drop_mix').mouseover(function(){ 
			GEBI('mix').src='images/bt_mix_over.gif'; 
			GEBI('drop_mix').style.visibility='visible'; 
		});
	$('div#drop_mix').mouseout(function(){ 
			GEBI('mix').src='images/bt_mix.gif'; 
			GEBI('drop_mix').style.visibility='hidden'; 
		});	
	
//ACTIVACION DEL DROPDOWN	life
	
	$('img#life').mouseover(function(){
		this.src='images/bt_life_over.gif'; 
		GEBI('drop_life').style.visibility='visible';				
		});
	$('img#life').mouseout(function(){
		this.src='images/bt_life.gif'; 
		GEBI('drop_life').style.visibility='';		
		});	
		//EVENTOS ROLLOVER DROPDOWNS drop_life
	$('div#drop_life').mouseover(function(){ 
			GEBI('life').src='images/bt_life_over.gif'; 
			GEBI('drop_life').style.visibility='visible'; 
		});
	$('div#drop_life').mouseout(function(){ 
			GEBI('life').src='images/bt_life.gif'; 
			GEBI('drop_life').style.visibility='hidden'; 
		});			
//ACTIVACION DEL DROPDOWN	scene
	
	$('img#scene').mouseover(function(){
		this.src='images/bt_scene_over.gif'; 
		GEBI('drop_scene').style.visibility='visible';				
		});
	$('img#scene').mouseout(function(){
		this.src='images/bt_scene.gif'; 
		GEBI('drop_scene').style.visibility='';		
		});	
		//EVENTOS ROLLOVER DROPDOWNS drop_scene
	$('div#drop_scene').mouseover(function(){ 
			GEBI('scene').src='images/bt_scene_over.gif'; 
			GEBI('drop_scene').style.visibility='visible'; 
		});
	$('div#drop_scene').mouseout(function(){ 
			GEBI('scene').src='images/bt_scene.gif'; 
			GEBI('drop_scene').style.visibility='hidden'; 
		});			
//ACTIVACION DEL DROPDOWN	play
	
	$('img#play').mouseover(function(){
		this.src='images/bt_play_over.gif'; 
		GEBI('drop_play').style.visibility='visible';				
		});
	$('img#play').mouseout(function(){
		this.src='images/bt_play.gif'; 
		GEBI('drop_play').style.visibility='';		
		});	
		//EVENTOS ROLLOVER DROPDOWNS drop_play
	$('div#drop_play').mouseover(function(){ 
			GEBI('play').src='images/bt_play_over.gif'; 
			GEBI('drop_play').style.visibility='visible'; 
		});
	$('div#drop_play').mouseout(function(){ 
			GEBI('play').src='images/bt_play.gif'; 
			GEBI('drop_play').style.visibility='hidden'; 
		});	

//ACTIVACION DEL DROPDOWN	discover
	
	$('img#discover').mouseover(function(){
		this.src='images/bt_discover_over.gif'; 
		GEBI('drop_discover').style.visibility='visible';				
		});
	$('img#discover').mouseout(function(){
		this.src='images/bt_discover.gif'; 
		GEBI('drop_discover').style.visibility='';		
		});	
		//EVENTOS ROLLOVER DROPDOWNS drop_discover
	$('div#drop_discover').mouseover(function(){ 
			GEBI('discover').src='images/bt_discover_over.gif'; 
			GEBI('drop_discover').style.visibility='visible'; 
		});
	$('div#drop_discover').mouseout(function(){ 
			GEBI('discover').src='images/bt_discover.gif'; 
			GEBI('drop_discover').style.visibility='hidden'; 
		});
		

	$('img#find_orzel').mouseover(function(){
		GEBI('find_orzel').src='images/btn_find_orzel_over.png';
		});
	$('img#find_orzel').mouseout(function(){
		GEBI('find_orzel').src='images/btn_find_orzel.png';
		});
	$('img#sell_orzel').mouseover(function(){
		GEBI('sell_orzel').src='images/btn_sell_orzel_over.png';
		});
	$('img#sell_orzel').mouseout(function(){
		GEBI('sell_orzel').src='images/btn_sell_orzel.png';
		});
	
});

