Page print for lightwindow

Hi,
I was pondering how to print (printing on white paper with printer) the
page opened in lightwindow . i was getting a list of foods on the page
and provides a mouse over link for each food to open a lightwindow with
total food details.
when lightwindow popup opens i was providing two links print and close
when clicked on print i was getting a print out with the lightwindow
page and also list of foods existing in background.

in view :

  • Recipe and Details
  • Print | Close
    foodname <%= food_recipe.food_name %>

    I used javascript:window.print(); but this is not the current one for
    getting only lightwindow data neglecting the rest in the background

    any solution ?

    thanks,
    sriā€¦