var iBox=function(){var _pub={close_label:'Close',inherit_frames:false,fade_in_speed:150,fade_out_speed:25,attribute_name:'rel',tags_to_hide:['select','embed','object'],default_width:450,version_number:'2.2',build_number:'1612',is_opera:navigator.userAgent.indexOf('Opera/9')!=-1,is_ie:navigator.userAgent.indexOf("MSIE ")!=-1,is_ie6:false/*@cc_on||@_jscript_version<5.7@*/,is_firefox:navigator.appName=="Netscape"&&navigator.userAgent.indexOf("Gecko")!=-1&&navigator.userAgent.indexOf("Netscape")==-1,is_mac:navigator.userAgent.indexOf('Macintosh')!=-1,base_url:'',setPath:function(path){_pub.base_url=path},checkTags:function(container,tag_name){if(!container)var container=document.body;if(!tag_name)var tag_name='a';var els=container.getElementsByTagName(tag_name);for(var i=0;i
x
';head.insertBefore(htmDiv.childNodes[1],head.firstChild)};var _initialized=false;var initialize=function(){if(_initialized)return;_initialized=true;drawCSS();var els=document.getElementsByTagName('script');var src;for(var i=0,el=null;(el=els[i]);i++){if(!(src=el.getAttribute('src')))continue;src=src.split('?')[0];if(src.substr(src.length-8)=='/ibox.js'){_pub.setPath(src.substr(0,src.length-7));break}}create(document.body);_pub.checkTags(document.body,'a');_pub.http=_pub.createXMLHttpRequest();_pub.fireEvent('load')};_pub.addEvent(window,'keypress',function(e){if(e.keyCode==(window.event?27:e.DOM_VK_ESCAPE)){iBox.hide()}});_pub.addEvent(window,'resize',_pub.reposition);_pub.addEvent(window,'load',initialize);_pub.addEvent(window,'scroll',_pub.reposition);var iBoxPlugin_Container=function(){var was_error=false;var original_wrapper=null;return{match:function(url){return url.indexOf('#')!=-1},unload:function(){if(was_error)return;var elemSrc=_pub.html().firstChild;if(elemSrc){elemSrc.style.display='none';original_wrapper.appendChild(elemSrc)}},render:function(url,params){was_error=false;var elemSrcId=url.substr(url.indexOf("#")+1);var elemSrc=document.getElementById(elemSrcId);if(!elemSrc){was_error=true;_pub.html(document.createTextNode('There was an error loading the document.'),params)}else{original_wrapper=elemSrc.parentNode;elemSrc.style.display='block';_pub.html(elemSrc,params)}}}}();_pub.plugins.register(iBoxPlugin_Container,true);var iBoxPlugin_Image=function(){var image_types=/\.jpg|\.jpeg|\.png|\.gif/gi;return{match:function(url){return url.match(image_types)},render:function(url,params){var img=document.createElement('img');img.onclick=_pub.hide;img.className='ibox_image';img.style.cursor='pointer';img.onload=function(){_pub.html(img,{width:this.width,height:this.height,constrain:true});};img.onerror=function(){_pub.html(document.createTextNode('There was an error loading the document.'),params)};img.src=url}}}();_pub.plugins.register(iBoxPlugin_Image);var iBoxPlugin_immortalxx=function(){var immortalxx_url=/(?:http:\/\/)?(?:www\d*\.)?immortalxx\..*/;return{match:function(url){return url.match(immortalxx_url)},render:function(url,params){var _match=url.match(immortalxx_url);var domain=_match[1];var id=_match[2];var html='';_pub.html(html,params)}}}();_pub.plugins.register(iBoxPlugin_immortalxx);var iBoxPlugin_Document=function(){return{match:function(url){return true},render:function(url,params){_pub.http.open('get',url,true);_pub.http.onreadystatechange=function(){if(_pub.http.readyState==4){if(_pub.http.status==200||_pub.http.status==0){_pub.html(_pub.http.responseText,params)}else{_pub.html(document.createTextNode('There was an error loading the document.'),params)}}};_pub.http.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");try{_pub.http.send(null)}catch(ex){_pub.html(document.createTextNode('There was an error loading the document.'),params)}}}}();_pub.plugins.register(iBoxPlugin_Document,true);return _pub}();