var link2 = 0;
var link3 = 0;

function enlarge_image (product)
{
    
    if (product == "forth")
	pop_up = window.open ("enlarge/forth_enlarge.htm", "", "width = 700, height = 553");
    
    else if (product == "half")
	pop_up = window.open ("enlarge/half_enlarge.htm", "", "width = 700, height = 553");
    
    else if (product == "spring")
	pop_up = window.open ("enlarge/spring_enlarge.htm", "", "width = 700, height = 553");
    
    else if (product == "hinges")
	pop_up = window.open ("enlarge/hinges_enlarge.htm", "", "width = 700, height = 553");
    
    else if (product == "double2")
	pop_up = window.open ("enlarge/double2_enlarge.htm", "", "width = 700, height = 553");
    
    else if (product == "double1")
	pop_up = window.open ("enlarge/double1_enlarge.htm", "", "width = 700, height = 553");
    
    else if (product == "insulated")
	pop_up = window.open ("enlarge/insulated_enlarge.htm", "", "width = 700, height = 553");
    
    else if (product == "graph")
	pop_up = window.open ("enlarge/graph.htm", "", "width = 400, height = 400");
    
    else if (product == "video")
	pop_up = window.open ("video/video.htm", "", "width = 500, height = 500");
    
     else if (product == "video2")
	pop_up = window.open ("video/video2.htm", "", "width = 500, height = 500");

    else if (product == "options")
	pop_up = window.open ("options.htm", "", "width = 900, height = 500");
    
    else if (product == "T-Style")
	pop_up = window.open ("enlarge/r_enlarge.htm", 
			      "", "width = 700, height = 650");

    else if (product == "panel1")
	pop_up = window.open ("enlarge/r1_enlarge.htm", 
			      "", "width = 700, height = 650");
    
    else if (product == "panel2")
	pop_up = window.open ("enlarge/r2_enlarge.htm", 
			      "", "width = 700, height = 650");
 
   else if (product == "r_options")
	pop_up = window.open ("options/r_options.htm", "", "width = 950, height = 700");
    
    else if (product == "r1_options")
	pop_up = 
	    window.open ("options/r1_options.htm", "", "width = 950, height = 700");
    
    else if (product == "r2_options")
	pop_up = 
	    window.open ("options/r2_options.htm", "", "width = 950, height = 700");
    
    else if (product == "contact")
	pop_up = window.open ("form.htm", "", "width = 500, height = 600");
    pop_up.focus ();
}

function show_links (num)
{
    switch (num)
    {
    case 2:
	if (link3)
	{
	    $(".links3").slideToggle ("fast", function () 
				      {
					  link3 = 0;
					  $(".links" + num).slideToggle ("fast");
					  link2 = 1;
				      });
	    return;
	}
	link2 = !link2;
	break;
	
    case 3:
	if (link2)
	{
	    $(".links2").slideToggle ("fast", function () 
				      {
					  link2 = 0;
					  $(".links" + num).slideToggle ("fast");
					  link3 = 1;
				      });
	    return;
	}
	link3 = !link3;
	break;
    }	
    $(".links" + num).slideToggle ("fast");	
}



