$(document).ready(function(){

	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click
	$("h4.trigger").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$("h4.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow");
	});



	//  rekviziti mouseover zebra
	$('.block div').mouseover(function() {
		$(this).addClass("blockOver");
	});

	$('.block div').mouseout(function() {
		$(this).removeClass("blockOver");
	});


	//  table mouseover zebra
	$('tr.table-tr').mouseover(function() {
		$(this).addClass("blockOver");
	});

	$('tr.table-tr').mouseout(function() {
		$(this).removeClass("blockOver");
	});



});

function promoChange(num) {
	for(i = 1; i <= 6; i++){
		if(i == num) {
			$('#overlay'+i).css('display' , 'block');	
			$('#promo'+i).css('display' , 'block');
			$('#promob'+i).css('display' , 'block');

		}
		else {
			$('#overlay'+i).css('display' , 'none');	
			$('#promo'+i).css('display' , 'none');
			$('#promob'+i).css('display' , 'none');

		}
	}
};





/*	$('a.promo_lnk').click(function() {
		i = 2;
		$('#overlay'+i).css('display' , 'none');
		$('#promo'+i).css('display' , 'none');
*/
//		img = 'promo1.jpg';
		//$(this).removeClass("promo_lnk");
		//alert($('#overlay2').css('display'));
//		if ( $('#overlay2').css('display') == 'block' ) {
//		$('#promo'+i).css('background', 'url(themes/mcmbroker/images/'+img+') no-repeat');
//		};
/*	});*/

/*
	$('.promo_lnk').click(function() {
		$('.promo_lnk').each(function(i){
			$('#overlay'+i).css('display' , 'block');	
			$('#promo'+i).css('display' , 'block');
		});
	});
*/



/*
$(document).ready(function() { 
for (var j=1; j<7; j++){
$("#link"+j).mouseover(function () {
for (var i=1; i < 7; i++){

$("#link"+i).removeClass("orangeArrow");
$("#link"+i).addClass("greenArrow");
$("#toggle"+i).css("display","none");
} 
$("#link"+j).removeClass("greenArrow");
$("#link"+j).addClass("orangeArrow");
$("#toggle"+j).css("display","block");
});
}
});
*/


/*
jQuery(document).ready(function(){
    $('.link').mouseover(function(){
        $('.link').each(function(i){
            $(this).removeClass("orangeArrow").addClass("greenArrow");
            $("#toggle"+i).css("display","none");
        })
    })
});
*/

/*
function anichange (objName) {
  if ( $(objName).css('display') == 'none' ) {
    $(objName).animate({height: 'show'}, 300);
  } else {
    $(objName).animate({height: 'hide'}, 300);
  }
}
*/