$(document).ready(function(){
	
	jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}
		
	
	// ad scroller

// gallery 
	$('#news_scroller').cycle({});
	
	// scrolling panes
	$(function() {
		$('#scroll_pane_news').jScrollPane({showArrows:false});
		$('#scroll_pane_console').jScrollPane({showArrows:false});
	});
		
	
	
	


//Stop IE flicker
(function(){

	/*Use Object Detection to detect IE6*/
	var  m = document.uniqueID /*IE*/
	&& document.compatMode  /*>=IE6*/
	&& !window.XMLHttpRequest /*<=IE6*/
	&& document.execCommand ;
	
	try{
		if(!!m){
			m("BackgroundImageCache", false, true) /* = IE6 only */ 
		}
		
	}catch(oh){};
})();

	});

