// NarniaPassport API
// (c) 2010-2012 Matthew Reynolds
// The following sourcecode may not be reproduced or modified in any way, and this copyright notice must stay intact at all times.
var np_loggedin = false;var NPL = '<div id="NPLoginModal" style="display: none;position:fixed;top:0;left:0;width:100%;height:100%;background:url(http://csdt5.narniapassport.com/img/transpBlack50.png);z-index:999999;">'
+ '<table width="100%" height="100%" style="position:relative;width:100%;height:100%;"><tr style="height: 100%" height="100%"><td style="height: 100%;vertical-align: middle;" height="100%" valign="middle">'
+ '<div style="background: url(http://csdt5.narniapassport.com/img/ex_u_login_modal.png) no-repeat;width:640px;height:290px;margin:0 auto;">'
+ '<div id="closeModalButton" style="margin-left:600px;padding-top:12px;width:26px;height:26px;"><a href="#" onclick="hideNPLogin();return false;" style="display:block;width:26px;height:26px;"></a></div>'
+ '<div id="NPLoginWindow" style="width: 385px; height: 150px; overflow: hidden; padding-top: 85px;margin-left: 190px; text-align: center;">'
+ '<iframe id="NPLoginFrame" src="http://csdt5.narniapassport.com/l?" style="385px;height:150px;border:none;overflow:hidden;">'
+ '</iframe></div></div></td></tr></table></div>'
$("body").append(NPL);
function showNPLogin(){
$("#NPLoginModal").fadeIn(200);
}
function hideNPLogin(){
$("#NPLoginModal").fadeOut(200);
}
function NP_API_EX_U(size,avatar){
if(size == null){ var size = 1; }
document.write('<input type="image" src="http://csdt5.narniapassport.com/img/login_button' + size + '.png" onclick="showNPLogin();return false;" style="height:22px;width:192px;" />');
}

