var lp_ua=navigator.userAgent.toLowerCase();function lp_isMozilla(){return(typeof document.implementation!='undefined')&&(typeof document.implementation.createDocument!='undefined')&&(typeof HTMLDocument!='undefined');};function lp_isIE(){return lp_ua.indexOf("msie")>0;};function lp_isFirefox(){return(lp_ua.indexOf("firefox")!= -1);};function lp_isSafari(){return(lp_ua.indexOf("Browser.isSafari")!= -1);};function lp_isOpera(){return(typeof window.opera!='undefined');};function lp_getAbsoluteLeft(o){var e=document.getElementById(o);var m;var I=e.offsetLeft;while(e.offsetParent!=null){m=e.offsetParent;I+=m.offsetLeft;e=m;}return I;};function lp_getAbsoluteTop(o){var e=document.getElementById(o);var m;var O=e.offsetTop;while(e.offsetParent!=null){m=e.offsetParent;O+=m.offsetTop;e=m;}return O;};function lp_trim(value){value=""+value;return value.replace(/^\s+|\s+$/,'');};function lp_getXmlHttpObject(){var l=null;if(window.ActiveXObject){l=new ActiveXObject("Msxml2.XMLHTTP");if(!l){l=new ActiveXObject("Microsoft.XMLHTTP");}}else if(window.XMLHttpRequest){l=new XMLHttpRequest();}return l;};var lp_gfd=new Array(10);function lp_fadein(id){var object=document.getElementById(id);if(object){lp_changeOpac(0,id);object.style.visibility="visible";var d=1;for(d=1;d<11;d++){lp_gfd[d-1]=setTimeout("lp_changeOpac("+(d*10)+",'"+id+"')",(d*60));d++;}}};function lp_abort_fadein(){var d=1;for(d=1;d<11;d++){clearTimeout(lp_gfd[d-1]);}};function lp_fadeout(id){var object=document.getElementById(id);if(object){var op=100;while(op>=0){setTimeout("lp_changeOpac("+op+",'"+id+"')",((100-op)*20));op=op-10;}setTimeout('document.getElementById(\''+id+'\').style.visibility = "visible";',2000);}};function lp_changeOpac(opacity,id){var object=document.getElementById(id).style;object.opacity=(opacity/100);object.MozOpacity=(opacity/100);object.KhtmlOpacity=(opacity/100);object.filter="alpha(opacity="+opacity+")";};function lp_checkEmail(G){return(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(G));};function LPMarquee(){var self=this;this.create=function(v,id,L,J,content,F,n,bgColor){var k="";if(F==null){F=25;}if(n==null){n=1;}this.H=id;this.r=content;this.A=Math.max(1,F-1);this.t=n;this.B=L;this.w=J;this.f=false;this.C=v;k+='<span id="temp'+this.H+'" style="position:absolute;top:-5000px;left:-5000px">'+this.r+'</span>';k+='<div style="position:relative;width:'+this.B+'px;height:'+this.w+'px;overflow:hidden">';k+='<div style="position:absolute;width:'+this.B+'px;height:'+this.w+'px;">';k+='<div id="'+this.H+'" style="position:absolute;left:0px;top:0px"></div>';k+='</div></div>';v.innerHTML=k;this.c=document.getElementById(this.H);this.c.onmouseover=this.mouseOverHandle;this.c.innerHTML=this.r;};this.stop=function(){clearTimeout(self.j);self.f=false;self.c.style.left=0;};this.start=function(){if(!self.f){return;}var D=document.getElementById("temp"+self.H);D.innerHTML=self.c.innerHTML;if(D.offsetWidth<=self.C.offsetWidth){return;}self.j=setTimeout(self.scrollmarquee,self.A);};this.setInnerContent=function(_content){if(this.c!=null){this.c.innerHTML=_content;}};this.setInnerAttribute=function(K,M){this.c.setAttribute(K,M);};this.getInnerContent=function(){return this.c.innerHTML;};this.scrollmarquee=function(){if(!self.f){return;}if(parseInt(self.c.style.left)>(self.c.offsetWidth*(-1))){self.c.style.left=parseInt(self.c.style.left)-self.t+"px";}else{self.stop();}self.j=setTimeout(self.scrollmarquee,self.A);};this.mouseOverHandle=function(){if(self.f){return;}clearTimeout(self.j);self.f=true;self.start();};}
function lp_set_cookie(name, value, expires, path, domain, secure){
	var today = new Date();
	today.setTime( today.getTime() );
	var expires_date = new Date( today.getTime() + ((expires!=null)?expires:0) );

	document.cookie = name + "=" +escape( value ) +
	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
	( ( path ) ? ";path=" + path : "" ) + 
	( ( domain ) ? ";domain=" + domain : "" ) +
	( ( secure ) ? ";secure" : "" );
}
function lp_get_cookie(name){
	var start = document.cookie.indexOf( name + "=" );
	var len = start + name.length + 1;
	if ( ( !start ) &&
		( name != document.cookie.substring( 0, name.length ) ) )
	{
		return null;
	}
	if ( start == -1 ) return null;
	var end = document.cookie.indexOf( ";", len );
	if ( end == -1 ) end = document.cookie.length;
	return unescape( document.cookie.substring( len, end ) );
}
function lp_del_cookie(name, path, domain){
	if ( lp_get_cookie( name ) ) 
	{
		document.cookie = name + "=" +	( ( path ) ? ";path=" + path : "") +( ( domain ) ? ";domain=" + domain : "" ) +	";expires=Thu, 01-Jan-1970 00:00:01 GMT";
	}
}