// JavaScript Document
jQuery().ready(function(){

	$('.new-window').attr('target','_blank');





/*
	$('dt a').mouseover(function(){
		var strBackgroundPosition = $(this).parent().css('backgroundPosition');
		if(strBackgroundPosition == '0px 0px') {
			$(this).parent().css({backgroundPosition:'0px -25px'});
		}else{
			$(this).parent().css({backgroundPosition:'0px 0px'});
		}
	}).mouseout(function(){
		var strBackgroundPosition = $(this).parent().css('backgroundPosition');
		if(strBackgroundPosition == '0px -25px') {
			$(this).parent().css({backgroundPosition:'0px 0px'});
		}else{
			$(this).parent().css({backgroundPosition:'0px -25px'});
		}		
	});
*/






	if($.browser.safari){
	
	
		$(".toggle").toggle(function(){
			$(this).parent().next().css("display","block");
		},function(){
			$(this).parent().next().css("display","none");
		});
		$(".toggle").click(function() {
			$(this).parent().toggleClass("active");
			return false;
		});
		

		
		$('.toggle-button').toggle(function(){
			$(this).next().css("display","block");
		},function(){
			$(this).next().css("display","none");
		});
		$('.toggle-button').click(function(){
			var strCurrentImage = $(this).attr("src");
			if(strCurrentImage == 'img/minus.gif') {
				$(this).attr({src:'img/plus.gif'});
			}else{
				$(this).attr({src:'img/minus.gif'});
			}
		});
		
		
		
		$(".toggle-link").toggle(function(){
			$(this).parent().next().css("display","block");
		},function(){
			$(this).parent().next().css("display","none");
		});
		$('.toggle-link').click(function(){
			var strCurrentImage = $(this).css("background-image");
			if(strCurrentImage == 'url(http://d3811039.pt37.pipeten.com/img/minus.gif)') {
				$(this).css({backgroundImage:'url(http://d3811039.pt37.pipeten.com/img/plus.gif)'});
			}else{
				$(this).css({backgroundImage:'url(http://d3811039.pt37.pipeten.com/img/minus.gif)'});
			}
		});

		


	}else{


	
		$(".toggle").click(function() {
			$(this).parent().toggleClass("active");
			$(this).parent().next().toggle(400);
		}).parent().next().hide();


		$('.toggle-button').click(function(){
			var strCurrentImage = $(this).attr("src");
			if(strCurrentImage == 'img/minus.gif') {
				$(this).attr({src:'img/plus.gif'});
			}else{
				$(this).attr({src:'img/minus.gif'});
			}
			$(this).next().toggle(400);
			return false;
		}).next().hide();
		
	
		$('.toggle-link').click(function(){
			var strCurrentImage = $(this).css("background-image");
			if(strCurrentImage == 'url(http://d3811039.pt37.pipeten.com/img/minus.gif)') {
				$(this).css({backgroundImage:'url(http://d3811039.pt37.pipeten.com/img/plus.gif)'});
			}else{
				$(this).css({backgroundImage:'url(http://d3811039.pt37.pipeten.com/img/minus.gif)'});
			}
			//alert($(this).next('+ .hidden-content'));
			$(this).parent().next().toggle(400);
			return false;
		}).next().hide();

	}	



});