  <library>
   <include href="bswindow.lzx" />

   <font name="EstiloText" src="resource/EstiloText.otf"/>
    <attribute name="revista_news" value="" type="string"/>
	<attribute name="pais_news" value="white" type="string"/>
	<attribute name="tipo_news" value="" type="string"/>
	<attribute name="id_news" value="" type="string"/>
	
	<method name="gerarImagem">
        var a="clipping/"+parent.id_news+".jpg";
		return a;
	</method>
	<method name="gerarURL">
       <![CDATA[
		
		
		var img="lib/clipping/"+parent.id_news+".pdf";
		Debug.write(img);
		 img="javascript:var a = window.open('"+img+"', '','height=900,width=600')";
		Debug.write(img);
		//lz.Browser. loadURL(img, '_blank');
		lz.Browser. loadURL(img);
		]]>
	</method>
	
	   <class name="bsimagem" >
		<view width="120" height="170">
			<view width="120" height="170">
				<image x="0" y="0"  height="100%" width="100%" resource="parent.gerarImagem()" stretches="both"  onclick="parent.gerarURL()" />
			</view>
        </view>    	  


  </class>
</library>