﻿
	function func_h()
		{
			var xx;
			var xx2;
			xx=document.getElementById('all_right').offsetHeight;
			xx2=xx+"px";
			document.getElementById("mc").style.height=xx2;
		}


	 $(document).ready(function() {
	 
	   /*********  Make dosage tab colors *******/
   			if (($('.bg_prods').children().size())>1) {
   				
   				$('.bg_prods').children().slice(1).each(function (i) {
   				  	$(this).removeClass('prod1');
   				  	$(this).addClass('prod2');
   				  	var dosageNotSelected=$(this).attr('class').match(/dosage\S*/);
   				  	$('.tbl_prod tr.'+dosageNotSelected).css('display','none');
   				});
   				
   				
   				

   			}
   	   /*************************************/		

	   
	   });

	   
	   
   // Show only selected dosages  	   
    $('.bg_prods .prod2').live('click',function() {
		
   		$('.bg_prods').children().each(function(i) {
			$(this).removeClass('prod1');
			$(this).addClass('prod2');
		});		
		$(this).removeClass('prod2');
		$(this).addClass('prod1');
		$('.tbl_prod tr:not(:first)').css('display','none');
		var dosageSelected=$(this).attr('class').match(/dosage\S*/);
		$('.tbl_prod tr.'+dosageSelected).css('display','');
		
	});

	// ******************************************
	
	
	

	
		$(document).ready(function() {
		    
		  // ***************FAQ menu *********************
			
			$('.decs_pro ul li.question').mouseover(function() {

			  $(this).css('background',"url(images/faq_selected.gif)");
			  $(this).css('color',"white");
			});
			
			$('.decs_pro ul li.question').mouseout(function() {
			    if (($(this).parent().find('ul li').css('display'))=='none') {
				  $(this).css('background',"url(images/faq.gif)");
				  $(this).css('color',"#083B75");
				}
			});
			
			$('.decs_pro ul li.question').click(function() {
			  $(this).parent().children('li').children('ul').children('li').toggle();
			});
			
		
			
			$('.decs_pro ul li.question').css('background',"url(images/faq_selected.gif)");
			$('.decs_pro ul li.question').css('color',"white");
			
			$('.answer_more').click(function() {
			  $(this).next().css('display','block');
			  $(this).next().next().css('display','block');
			  $(this).css('display','none');
			});

			
			$('.answer_less').click(function() {
			  $(this).prev().css('display','none');
			  $(this).prev().prev().css('display','block');
			  $(this).css('display','none');
			});
			
		  // ************************************************	
	
		  // ****** Top menu mouseover *************************
		 
			$('#links').children().not('.sp_noline_last').mouseover(function() {
				  $(this).children('.top_menu_title').addClass('selected');
			});
			
			$('#links').children().not('.sp_noline_last').mouseout(function() {
				  if (!( $(this).find('.top_menu_title').hasClass('current')))
 				      $(this).find('.top_menu_title').removeClass('selected');
			});    
	    
		
		// *************************************************
		

		
		});
		
		function popup(link) {
		   from_left=(screen.width)?(screen.width-600)/2:100;
           from_top=(screen.height)?(screen.height-600)/2:100;
		   window.open(link,"window1","menubar=no,width=600,height=600,toolbar=no,resize=no,menubar=no,status=no,toolbar=no,top="+from_top+",left="+from_left);
		}
		

function hola(){
	if(document.getElementById("department").value=="Affiliates")
	{
		document.getElementById("hide1").style.display='none';
		document.getElementById("hide2").style.display='none';
		document.getElementById("hidetd").style.height='1px';
	}
	else
	{
		document.getElementById("hide1").style.display='block';
		document.getElementById("hide2").style.display='block';
		document.getElementById("hidetd").style.height='24px';		
	}
} 

  

  
