
if(jquery == 1) {
	
	$(document).ready(function () {

 		$("a").bind("click",function() {
	    	$("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");
	    });

		
		$('a.act').bind("mouseover", function(e){
			
			id = this.id;
			rel = $(this).attr("rel");
			url = $(this).attr("href");
			show = $(this).attr("show");
			
			if(show == 1) {
				pic = $("#pic_"+id).html();
				$("#act_"+rel).fadeOut("fast", function () {
					$("#act_"+rel).html('<a href="'+url+'">'+pic+'</a>').fadeIn("fast");
				});
			}

			
		});
		
		$(".vacItem a ").click(function() {
		
			id = $(this).attr("rel");
				
			$(".vacInfo").each(function(){
				if ( $(this).hasClass("selected") ) {
					$(this).effect("fold",{},200);
					$(this).removeClass("selected");
				}
				
			});
			
			$("#vac_"+id).effect("fold",{ mode: 'show' },500);
			$("#vac_"+id).removeClass("selected");
			$("#vac_"+id).addClass("selected");
	
		});
		
		$('img.reflect').reflect();

	
		
		$('#mainNav a').bind("mouseover", function(e){
			id = this.id;
			
			$('#mainNav a').each(function(){
				$(this).removeClass("navActive");
			});
			
			$(".subnav").each(function() {
				$(this).hide();
			});
			
			//alert(id);
			$("#"+id).addClass("navActive");
			$("#parent_"+id).show();
			
		});
		
		
			
		
	   
	});
	
	
}

 function equalHeight(group) {
	var tallest = 0;
	$(group).each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	$(group).height(tallest); 

}

function ArrayToGet(array,suffix) {
	var pars;
	for( var i = 0, n = array.length;  i < n;  ++i ) {
        el = array[i];
        pars += "&"+suffix+"_"+i+"="+el;
    }
    
    return pars;
}
