function dom_init() {

  $('a.lightbox').lightBox();
  $('.cycle').show(); 
  $('.jshide').show();
  $('#news ul').cycle({fx:'scrollUp',timeout:12000,next:'#newsup',prev:'#newsdown'});
  $('a#newsoc').click(function(){
		if($('#newshide').width() < 100)
  			$('#newshide').animate({width:"350px"});
  		else
  			$('#newshide').animate({width:"28px"});
  });
  if(fp==1) $('#newshide').animate({width:"350px"});
  $('#main .cycle').cycle({fx:'fade',timeout:4000,startingSlide:Math.floor(4*Math.random())});
  $('a.extern').attr('target','_blank');
  /*if(location.href.indexOf('#') >= 0){
	  	url = location.href.substr(location.href.indexOf('#')+1);
		if($('a[title='+url+']').length > 0){
			$('#loader').show();
			$("#modal").load($('a[title='+url+']').attr('href'),{ajax:1},fshow);
		}
  }*/
  //$('a.track').remote('#modal',fshow);
  //$.ajaxHistory.initialize();
}

function fshow(e,success,g){
	$('#loader').hide();
	$('#modal').fadeIn('slow', function() {if(this.style.removeAttribute)this.style.removeAttribute('filter');});
	$('a.extern').attr('target','_blank');
	$('a#clean_close,a.close').click(function(){
		$('#modal').fadeOut('slow', function() {if(this.style.removeAttribute)this.style.removeAttribute('filter');});
		$('#modalbg').fadeOut();
		window.location = "#";
		return false;
	});	
};

loadModal = function(e){
	if(ie6) return true;
	$('#modalbg').fadeIn();
	$('#loader').show();
	$("#modal").load($(e).attr('href'),{ajax:1},fshow);
	//window.location = '#detail';
	return false;
}
/**/
	
