XML Portfolio modification

Greetings,

I just found the xml portfolio example on this site. Very cool!
http://www.kirupa.com/web/xml/examples/portfolio.htm

I am wondering if there is a way to set styles or variables to control the images. For example; I want to call in a larger image 1 time and use the same image for the thumb and the “beauty shot.” In the case of the thumb, I need a way to scale the image to 25%.

Any ideas on how I could do this?

Thanks!
Airman