// JavaScript Document
//łśćłżź
var DebugQueryMode=false; //Show Alerts
//var IE=false;
/*
try{
	function alert(text_value){ 
		try{ text_value=text_value.replace(/\n/g,'<br />'); }catch(errs){}
		$JQ('#system_alert p .system_alert_text').html(text_value);
		$JQ('#system_alert').dialog('open');
	}	
}catch(err){ if(DebugQueryMode==true){  }}
*/
/* ================================================================================== */
/* =============================== jquery.ready [START] ============================= */
/* ================================================================================== */
/* =============================== #system_alert [START] ============================ */
try{							 
 	$JQ('#system_alert').dialog({
		autoOpen: false,
		bgiframe: true,
		resizable: false,
		closeOnEscape: true,
		//show: 'slide',
		hide: 'slide',
		//height:140,
		width:500,
		//minHeight:200,
		//stack:true,
		//height:200,
		modal: true,
		overlay: {
			backgroundColor: '#ff008a',
			opacity: 0.9
		},
		buttons: {
			Ok: function() {
				$JQ(this).dialog('close');
			}
		}
		
	});
}catch(err){ if(DebugQueryMode==true){ alert('#system_alert: '+err); }}
/* =============================== #system_alert [END] ============================== */
/* =============================== .slider [START] ================================== */
$JQ('.jhover').hover(
  function () {
	$JQ(this).animate({ opacity: 1 }, 400, "quartEaseOut" );
  }, 
  function () {
	$JQ(this).animate({ opacity: 0.7 }, 400, "quartEaseIn" );
  }
);
$JQ('.jhover').css('opacity','0.7');

function jLightboxHover(){
	try{ 
		elements=$JQ('a');
		for(i=0;i<elements.length;i++){
			rels=$JQ(elements).eq(i).attr('rel');
			rels=rels.toString();
			if(rels.slice(0,8)=='lightbox'){
					//alert('test:'+i);
					
				$JQ(elements).eq(i).hover(
				  function () {
					$JQ(this).animate({ opacity: 0.85 }, 200 );
				  }, 
				  function () {
					$JQ(this).animate({ opacity: 1 }, 200 );
				  }
				);
			}
		}
	}catch(err){ if(DebugQueryMode==true){ alert('jLightboxHover: ' +err); } }
}

/* =============================== .slider [END] ==================================== */
$JQ(document).ready(function(){
/*
	$JQ('#top_logo').animate({ opacity: 0 }, 600, "linear" );
	$JQ('#top_logo').hover( 
		function () { $JQ(this).animate({ opacity: 1 }, 600, "linear" ); }, 
  		function () { $JQ(this).animate({ opacity: 0 }, 600, "linear" ); }
	);
*/	
	
	
	$JQ('.jhoverimg').animate({ opacity: 0.5 }, 600, "linear" );
	$JQ('.jhoverimg').hover( 
		function () { $JQ(this).animate({ opacity: 1 }, 600, "linear" ); }, 
  		function () { $JQ(this).animate({ opacity: 0.5 }, 600, "linear" ); }
	);
	
});
/* ================================================================================== */
/* =============================== jquery.ready [END] =============================== */
/* ================================================================================== */
