if(!Enthink)var Enthink={};Enthink.Cookie={setCookie:function(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+c*24*60*60*1E3);c="; expires="+d.toGMTString()}else c="";document.cookie=a+"="+b+c+"; path=/"},getCookie:function(a){a=a+"=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];d.charAt(0)==" ";)d=d.substring(1,d.length);if(d.indexOf(a)==0)return d.substring(a.length,d.length)}return null},deleteCookie:function(a){this.setCookie(a,"",-1)}};
Enthink.Overlay=function(a){Overlay=Enthink.Overlay;Overlay.count=Overlay.count?Overlay.count+1:Overlay.count=1;if(!Overlay.active)Overlay.active=0;this.init();this.id=a;this.itemID=Overlay.count;this.item=null};
Enthink.Overlay.prototype={getID:function(){return this.id},getCount:function(){return Overlay.count},setContent:function(a){this.hideObjects();this.createOverlay(a)},close:function(){this.showObjects()},showObjects:function(){var a=document.getElementsByTagName("object");for(e in a)if(a[e].style)a[e].style.visibility="visible";Overlay.iframeContentCover.style.display="none";Overlay.shadowContentCover.style.display="none";if(this.item)this.item.style.display="none"},hideObjects:function(){var a=document.getElementsByTagName("object");
for(e in a)if(a[e].style)a[e].style.visibility="hidden";Overlay.iframeContentCover.style.display="block";Overlay.shadowContentCover.style.display="block";if(this.item)this.item.style.display="block"},init:function(){if(!Overlay.iframeContentCover){var a=document.createElement("IFRAME");a.id="enthink_iframeContentCover";document.body.appendChild(a);Overlay.iframeContentCover=a}if(!Overlay.shadowContentCover){a=document.createElement("div");a.id="enthink_shadowContentCover";document.body.appendChild(a);
Overlay.shadowContentCover=a}},createIFrame:function(a){var b=document.createElement("IFRAME");a&&b.setAttribute("src",a);b.id="frame_External";b.setAttribute("style","position: absolute; top: 25px; width: 640px; height: 480px; border: none; background: #fff");return b},createOverlay:function(a){var b=document.createElement("div");b.setAttribute("style","position: absolute; top:0; left: 0; z-index: 105; width: 100%; height: 100%;");b.id="enthink-overlay-"+this.itemID;a=this.createIFrame(a);b.appendChild(a);
document.body.appendChild(b);this.item=b;this.hideObjects()},toString:function(a){var b="",c;for(c in this)b+=a&&typeof this[c]=="function"?c+" : [ Object function ]\n\n":c+" : ["+this[c]+"]\n\n";return b}};

