// JavaScript Document

        $(document).ready(function(){
								   
            	// $("#mja tr.ans_sub").hide();
				
				
				
				

                $("#mja tr.ans_m a.ans_oppna").click(function(){
															  
					$(this).removeClass("ans_oppna");
					oClass = $(this).attr("class");
					
                	$("#mja tr#" + oClass + " td span.tshow").toggle();
                	$("#mja tr#" + oClass + " td span.thide").toggle();
					
                	$("#mja tr." + oClass).toggle();
					
					$("#mja tr#" + oClass + " td:first").toggleClass("first");
					$("#mja tr#" + oClass + " td:last").toggleClass("last");	
					$("#mja tr#" + oClass + " td").toggleClass("ans_open");
									
					return false;	
                });
				
				
				
				

    			$("#mja a.ans_popup").hover(
      				function () {
						$(this).removeClass("ans_popup");
						pId = $(this).attr("class");
						$("div#" + pId).css("top", $(this).position().top - 14);
						$("div#" + pId).css("left", $(this).position().left + 95);
						$("div#" + pId).show();
      				}, 
      				function () {
						$("div#" + pId).hide();
        				//$(this).find("div:last").remove();
      				}
    			);	
				
				
				
				

    			$("#mja a.ans_popup").click(
      				function () {
                		$("#ans_form").toggle();
						return false;
      				});				










				/* Tooltip för inc_searchresult.cfm */

    			$("#sja a.sja_tt").hover(
      				function () {
						$(this).removeClass("sja_tt");
						pId = $(this).attr("class");
						$("div#" + pId).css("top", $(this).position().top - 14);
						$("div#" + pId).css("left", $(this).position().left + 95);
						$("div#" + pId).show();
      				}, 
      				function () {
						$("div#" + pId).hide();
        				//$(this).find("div:last").remove();
      				}
    			);	
				
				
				

    			$("#jobwaytv a#jwtvnext").click(
      				function () {
						oClass = $(this).attr("class");
						$('table.jwvideostbl').hide();
						$("#" + oClass).show();
						return false;
      				});	
				
				

    			$("#jobwaytv a#jwtvprev").click(
      				function () {
						oClass = $(this).attr("class");
						$('table.jwvideostbl').hide();
						$("#" + oClass).show();
						return false;
      				});		
				
				
				
        });
		
		
		
