$(function(){ 
    $('#theselect').superselect(); 
    var b = $('#before').height();
    var a = $('#after').height();
    if(a < b){
        $('#after').height(b);
    }else{
        $('#before').height(a);
    }
});
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



$(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto();
});
  
  
  
$(function(){

	$('#lClm').css({display:'none'});
	$('#lClm').css({display:'block',opacity:'0'});
	$('#lClm').animate({opacity:'0'},500).animate({opacity:'1'},500);

	$('body#index').css({display:'none'});
	$('body#index').css({display:'block',opacity:'0'});
	$('body#index').animate({opacity:'0'},400).animate({opacity:'1'},500);


});




jQuery(function($) {
var nav    = $('#fixBox'),
    offset = nav.offset();

$(window).scroll(function () {
  if($(window).scrollTop() > offset.top - 20) {
    nav.addClass('fixed');
  } else {
    nav.removeClass('fixed');
  }
});
});




$(document).ready(
	function(){
	  $(".hoverfade a").hover(function(){
		 $(this).fadeTo("normal", 0.7);
	  },function(){
		 $(this).fadeTo("normal", 1.0);
	});
});



$(function(){
	jQuery('img.bgmaximage').maxImage({
		isBackground: true,
		overflow: 'auto',
		verticalAlign:'top'
 	});
});


$(function(){
	var options = {
	newsList: "#news",
	startDelay: 10,
	placeHolder1: " _"
	}
	$().newsTicker(options);
});


$(function () {
	$('#lstBanner li').hide();
	$('#lstBanner li').each(function (i) {
	$(this).delay(i * 430).fadeIn(1000);
	});
});
