Get the url from active skin folder. This method tries to get the resourse set in the parameters, if doesn't find it, searh in the parent element.
<?php echo $this->getSkinUrl('images/sampleimage.jpg') ?>