


function Send2Cropper(imgPath)
        {
            // path to your config file
            var configUri = "http://www.faceinhole.com/cellpic/config.xml";
              var iCountry = "";
var sUrl = "http://www.moblin.com/CellPic/Default.aspx?config="+configUri+"&image="+ escape(imgPath) +"&country="+iCountry
            window.open(sUrl,"cellpic","menubar=0,width=571,height=410");
        }



function CreationDone(CreationId,Folder){


document.getElementById("CreateTitle").innerHTML = "O seu FACEinHOLE foi criado com sucesso&nbsp;&nbsp;&nbsp;&nbsp;<b><a href=\'#FiH\'>ver a sua criação</a></b>"
document.getElementById("CreateTitle").className = "texto"

document.getElementById("CreateInstructions").style.display = "none"
document.getElementById("CreateFlash").style.display = "none"
document.getElementById("Favorites").style.display = "none"
document.getElementById("PutBlog").style.display = "block"
document.getElementById("Printfection").style.display = "block"


document.getElementById("FolderName").value="http://s3.faceinhole.com/"+Folder;
document.getElementById("ImageName").value=CreationId;

document.getElementById("CreateContents").innerHTML = "<br><br><img src='/images/tit_send_friendsPT.gif' style='margin-bottom:10'><br>"+document.getElementById("Botao").innerHTML+"<a href=javascript:Send2Cropper('http://s3.faceinhole.com/"+Folder+"/"+CreationId+".jpg')><img src='/images/bot_SendToPhone.gif' border='0' style='margin-left:5'></a><br><br>Se preferir pode também usar o seguinte endereço:<br> <table border='0' cellpadding='8' cellspacing='0' class='lightshadow' width='100%' style='margin-top:10'> <tr> <td class='normaltext'><input name='SendFriends' class='normaltext' type='text' id='PutBlog2' onClick='this.select();' value='http://www.faceinhole.com/show.asp?id="+CreationId+"' size='80' readonly='readonly'></td> </tr> </table> <br><br><a name='FiH'></a><img src='/images/tit_your_facePT.gif' style='margin-bottom:5'><table border='0' cellpadding='0' cellspacing='0' class='textosmall'> <tr> <td align='center'><img src='http://s3.faceinhole.com/"+Folder+CreationId+".jpg' class='image'></td> </tr> <tr> <td align='center'><table border='0' cellpadding='0' cellspacing='0' class='textosmall'><tr> <td align='center'><table border='0' cellpadding='0' cellspacing='0' class='textosmall'> <tr> <td><img src='/images/icon_print.gif' vspace='4' width='14' height='13' hspace='4'></td> <td><strong><a href=javascript:frames['printframe'].focus();frames['printframe'].print();>imprimir</a></strong></td> <td width='10'>&nbsp;</td> <td><a href='/SendPostcard.asp?folder=http://s3.faceinhole.com/"+Folder+CreationId+".jpg' target='_blank'><img src='/images/icon_postcard.gif' vspace='4' width='15' height='11' hspace='4' border='0'></a></td> <td><strong><a href='/SendPostcard.asp?folder=http://s3.faceinhole.com/"+Folder+CreationId+".jpg' target='_blank'>postal</a> </strong></td> <td width='10'>&nbsp;</td> <td><a href=javascript:Send2Cropper('http://s3.faceinhole.com/"+Folder+CreationId+".jpg')><img src='/images/icon_cell.gif' vspace='4' width='13' height='13' hspace='4' border='0'></a></td> <td><strong><a href=javascript:Send2Cropper('http://s3.faceinhole.com/"+Folder+CreationId+".jpg');>enviar p/ telemóvel</a> </strong></td> </tr> </table></td></tr></table><iframe src='/Print.asp?folder=http://s3.faceinhole.com/"+Folder+"&fn="+CreationId+"' width=1 height=1 scrolling='no' frameborder='0' name='printframe' id='printframe'></iframe><br><br><br>";

document.getElementById("postContent").value='<a href="http://www.faceinhole.com" target="_blank"><img src="http://s3.faceinhole.com/'+Folder+CreationId+'.jpg" border=0></a><br><a href="http://www.faceinhole.com" target="_blank">Create your own FACEinHOLE</a>';

document.getElementById("divWildfirePost").style.display = "block";

AdjustTN(50,106,55,'http://www.printfection.com/images/root/gyRN72_small.jpeg');

if (pos=="v"){
//temppostcard=150*ScenarioWidth/ScenarioHeight
//document.getElementById("PostCardImg").innerHTML = "<img src='http://s3.faceinhole.com/"+Folder+"/"+CreationId+".jpg' height='150' width='"+temppostcard+"'>"
}
else if (pos=="h"){
//temppostcard=150*ScenarioHeight/ScenarioWidth
//document.getElementById("PostCardImg").innerHTML = "<img src='http://s3.faceinhole.com/"+Folder+"/"+CreationId+".jpg' width='150' height='"+temppostcard+"'>"

}else{
//document.getElementById("PostCardImg").innerHTML = "<img src='http://s3.faceinhole.com/"+Folder+"/"+CreationId+".jpg' width='150' height='150'>"
}

//linkpostcard="/pt/create-postcard/"+CreationId+"/"+ScenarioWidth+"/"+ScenarioHeight+"/"+Folder

//document.getElementById("PostCard").style.display = "block"

window.location="#";

}
