function buildForIE ()
{
  selectorsLastChild = '.flashbox li:last-child';
  jQuery(selectorsLastChild).addClass('last-child');

}

function orgs_silder(){
	jQuery('.orgs_list > li > .org_title').each(function(i){
		this.onclick=(jQuery.browser.msie)
		?
			function(){
				var duration = 500;
				if( this.parentNode.className == 'open_item' ) jQuery('.org_descript',this.parentNode).animate({height:'hide'},duration,function(){this.parentNode.className = '';});
				else{
					var open_items = jQuery('.orgs_list > li.open_item');
					if( open_items.length > 0 ) jQuery('.org_descript',open_items[0]).animate({height:'hide'},duration,function(){open_items[0].className = '';});
					jQuery('.org_descript',this.parentNode).css('display','block');
					var fullH = jQuery('.org_descript',this.parentNode)[0].offsetHeight;
					jQuery('.org_descript',this.parentNode).css('height','0');
					jQuery('.org_descript',this.parentNode).css('overflow','hidden');
					jQuery('.org_descript',this.parentNode).animate({height:fullH},duration);
					jQuery('.org_descript',this.parentNode).animate({height:'show'},duration,function(){this.parentNode.className='open_item';});
				}
			}
		:
			function(){
				var duration = 500;
				if( this.parentNode.className == 'open_item' )
					jQuery('.org_descript',this.parentNode).animate({height:'hide'},duration,function(){this.parentNode.className = '';});
				else{
					var open_items = jQuery('.orgs_list > li.open_item');
					if( open_items.length > 0 ) jQuery('.org_descript',open_items[0]).animate({height:'hide'},duration,function(){open_items[0].className = '';});
					jQuery('.org_descript',this.parentNode).animate({height:'show'},duration,function(){this.parentNode.className='open_item';});
				}
			};
	})
}

jQuery(document).ready(function()
{
  if(jQuery.browser.msie)
    buildForIE();
  
  orgs_silder();
  jQuery("tr:even:not(.tabhead,.tabfoot)").addClass("bluerow");
});

Cufon.replace('#main_menu a',{fontFamily:'GE Inspira'});
jQuery('#main_menu a').css('border-bottom','1px solid');
jQuery('#main_menu a').hover(function(){jQuery(this).css('border-bottom','0 solid')},function(){jQuery(this).css('border-bottom','1px solid')});
Cufon.replace('div.vacancy a',{fontFamily:'GE Inspira'});
jQuery('div.vacancy a').css('border-bottom','1px solid');
jQuery('div.vacancy a').hover(function(){jQuery(this).css('border-bottom','0 solid')},function(){jQuery(this).css('border-bottom','1px solid')});
Cufon.now();
