var marqueewidth="700px";var marqueespeed=4;var pauseit=0;var content = '';marqueecontent ='<nobr>' + marqueecontent + '</nobr>';marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1)var copyspeed=marqueespeedvar pausespeed=(pauseit==0)? copyspeed: 0var iedom=document.all||document.getElementByIdif(iedom) {	content += '<span id="temp" style="font-size:10pt;font-weight:bold;visibility:hidden;position:absolute;top:-10 0px;left:-9000px">'+marqueecontent+'</span>'}var actualwidth=''var cross_marquee, ns_marqueefunction populate(){	marqueewidth=(document.documentElement.clientWidth)+'px';	if (iedom) {		cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee		cross_marquee.style.left=parseInt(marqueewidth)+8+ "px"		cross_marquee.innerHTML=marqueecontent		actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth	} else if (document.layers) {		ns_marquee=document.ns_marquee.document.ns_marquee2		ns_marquee.left=parseInt(marqueewidth)+8		ns_marquee.document.write(marqueecontent)		ns_marquee.document.close()		actualwidth=ns_marquee.document.width	}	lefttime=setInterval("scrollmarquee()",50)}window.onload=populatefunction scrollmarquee(){if (iedom){if (parseInt(cross_marquee.style.left)>(actualwidth*( -1)+8))cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"elsecross_marquee.style.left=parseInt(marqueewidth)+8+ "px"}else if (document.layers){if (ns_marquee.left>(actualwidth*(-1)+8))ns_marquee.left-=copyspeedelsens_marquee.left=parseInt(marqueewidth)+8}}if (iedom||document.layers){with (document){if (iedom){content += '<div class="run-line">'content += '<div class="fon" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">'content += '<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>'content += '</div></div>'}else if (document.layers){content += '<ilayer  name="ns_marquee">'content += '<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>'content += '</ilayer>'}}}function popupInfoWindow(url) {	screen_width = screen.width;	screen_height = screen.height;	widthm = (screen_width-400)/2;	heightm = (screen_height-350)/2;	window.open(url,"infowindow", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=350,left="+widthm+",top="+heightm);}function addBookmark(title,url) {if (window.sidebar) {window.sidebar.addPanel(title, url,"");} else if( document.all ) {window.external.AddFavorite( url, title);} else if( window.opera && window.print ) {return true;}}modalWin = "";function xShowModalDialog( sURL, vArguments, sFeatures ){if (sURL==null||sURL==''){alert ("Invalid URL input.");return false;}if (vArguments==null||vArguments==''){vArguments='';}if (sFeatures==null||sFeatures==''){sFeatures=dFeatures;}if (window.navigator.appVersion.indexOf("MSIE")!=-1){window.showModalDialog ( sURL, vArguments, sFeatures );return false;}sFeatures = sFeatures.replace(/ /gi,'');aFeatures = sFeatures.split(";");sWinFeat = "directories=0,menubar=0,titlebar=0,toolbar=0,";for ( x in aFeatures ){aTmp = aFeatures[x].split(":");sKey = aTmp[0].toLowerCase();sVal = aTmp[1];switch (sKey){case "dialogheight":sWinFeat += "height="+sVal+",";pHeight = sVal;break;case "dialogwidth":sWinFeat += "width="+sVal+",";pWidth = sVal;break;case "dialogtop":sWinFeat += "screenY="+sVal+",";break;case "dialogleft":sWinFeat += "screenX="+sVal+",";break;case "resizable":sWinFeat += "resizable="+sVal+",";break;case "status":sWinFeat += "status="+sVal+",";break;case "center":if ( sVal.toLowerCase() == "yes" ){sWinFeat += "screenY="+((screen.availHeight-pHeight)/2)+",";sWinFeat += "screenX="+((screen.availWidth-pWidth)/2)+",";}break;}}modalWin=window.open(String(sURL),"",sWinFeat);if (vArguments!=null&&vArguments!=''){modalWin.dialogArguments=vArguments;}}function checkFocus() {	if (navigator.product == "Gecko") {		if (modalWin!=null && !modalWin.closed)	{			self.blur();			modalWin.focus();		}	}}var xajaxRequestUri="/get_error.php";var xajaxDebug=false;var xajaxStatusMessages=false;var xajaxWaitCursor=true;var xajaxDefinedGet=0;var xajaxDefinedPost=1;if (navigator.appName.indexOf("Microsoft") >= 0) {	ltop=(screen.availHeight-270)/2;	lleft=(screen.availWidth-440)/2;    dFeatures = "dialogHeight: 270px; dialogWidth: 440px; dialogTop: "+ltop+"px; dialogLeft: "+lleft+"px; edge: Raised; center: Yes; resizable: No; status: Yes;";//default features}else{	ltop=(screen.availHeight-200)/2;	lleft=(screen.availWidth-440)/2;    dFeatures = "dialogHeight: 200px; dialogWidth: 440px; dialogTop: "+ltop+"px; dialogLeft: "+lleft+"px; edge: Raised; center: Yes; resizable: No; status: Yes;";//default features}document.onkeydown = function (eventt) {	if (navigator.appName.indexOf("Microsoft") >= 0) {		eventt = window.event;	}	var obj = eventt.keyCode;	if (obj == 13) {		if (navigator.appName.indexOf("Microsoft") >= 0) {			var sel = window.document.selection.createRange().text;		}else {			var sel = window.getSelection();		}		if (sel != '') {			document.getElementById('sbm_text1').value = sel;			xShowModalDialog("/templates/dialog_modal.html",sel+"#####"+document.getElementById('sbm_page1').value,dFeatures);			return false;		}	}}function changeCity(city) {	var url = city.form.action.replace('http://','').split('/');	var switch_to_sub = Boolean(city.value.indexOf('.') != -1);	url[0] = switch_to_sub ? city.value : _ROOT_HOST_MAIN;	if (url.length > 1) {		if (location.host == _ROOT_HOST_MAIN) {			url[1] = !switch_to_sub ? city.value : '';		} else if (location.host != _ROOT_HOST_MAIN) {		    if (!switch_to_sub) {		    	var uri = url.slice(1);				url = new Array(url[0], city.value);				if (uri)					url = url.concat(uri);			}		}	}    //alert('http://' + url.join('/'));	document.location = 'http://' + url.join('/');	//city.form.submit();}