﻿// RAE DRAHONOVSKY, rae-drahonovsky.de 2009 Basic JavaScript Document in combination with jQuery

// #####################################################
//  RAE DRAHONOVSKY, rae-drahonovsky.de  2010

// FileName:    jqmain.js
// Author:		Barbara Völk, voelk-online.de
// Version:     2010.06.16 
// #####################################################


 function expandCollapse() {
	for (var i=0; i<expandCollapse.arguments.length; i++) {
		var element = document.getElementById(expandCollapse.arguments[i]);
		element.style.display = (element.style.display == "none") ? "block" : "none";
	
	}
}



$(document).ready(function() {
						   

	
	jQuery.each(jQuery.browser, function(i, val) {
  if(i=="mozilla" && jQuery.browser.version.substr(0,3)=="1.9")
     //alert("Do stuff for firefox 3")
	 $('body').css('font-family', 'Times New Roman');
});
	
	 
	 var font = $('body').css('font-family');
	 //alert("body font: " + font);
	
//	 $('#outerWrap').css('display','none');
//	 $('#outerWrap').fadeIn("slow");	
	

	/* For Impressum: onMouseOver show descriptive text of button hovered; */
   $('#versicherer').css('display','none');
    $('#mehr').css('display','none');
	$('#weniger').css('display','none');
   
   $('.insurance').addClass('color');
  
   $('.insurance').hover(function() {
		$(this).addClass('underline').css('cursor', 'pointer');		
		$('#mehr').css('display','inline');
  }, function() {
	 $(this).removeClass('underline').css('cursor', 'default');
	 $('#mehr').css('display','none');
  });
   
    
/*  $('#versicherer').hover(function() {
		$(this).addClass('underline').css('cursor', 'pointer');		
		$('#weniger').css('display','inline');
  }, function() {
	 $(this).removeClass('underline').css('cursor', 'default');
	 $('#weniger').css('display','none');
  }); */
   
  
  $('.insurance').toggle(
      function () {
        $('#versicherer').slideDown('fast');
		$('#mehr').text('  << weniger');
      },
      function () {
		$('#mehr').text(' >> mehr ');
        $('#versicherer').slideUp('fast');
		
      }
    );
  
   $('#versicherer').click(function() {
    $('#versicherer').slideUp('fast');
  }); 
	
});

