﻿// JavaScript Document
var xmlHttp = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}
@end @*/
if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

function $(obj){return document.getElementById(obj)}
function keyonFocus(obj){if (obj.value=='关键字'){obj.value=''};}
function keyonblur(obj){if (obj.value==''){obj.value='关键字'};}
function g(o){return document.getElementById(o);}
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
if (i == Num)
{
thisObj.className = "active"; 
document.getElementById(tabObj+"_Content"+i).style.display = "block";
}else{
tabList[i].className = "normal"; 
document.getElementById(tabObj+"_Content"+i).style.display = "none";
}
} 
}

function get_radio(radio_name){
	var radio_arr=document.getElementsByTagName('input');
	for (radio_a=0;radio_a<radio_arr.length;radio_a++){
		if (radio_arr[radio_a].checked && radio_arr[radio_a].name==radio_name)return radio_arr[radio_a].value
	}
	return false;	
}


function split_price(obj1,obj2,price){
	var p1=new Array;
	p1=price.split('-');
	if (p1.length==2)
	{document.getElementById(obj1).value=p1[0];document.getElementById(obj2).value=p1[1];}
	else
	{document.getElementById(obj1).value='';document.getElementById(obj2).value='';}
}

//验证码
var last_v_id;
var validate=false;
function changecode(cid){
	var cache=new Date().getSeconds();
	document.getElementById('getcode_'+cid ).src='/getcode.asp?cache='+cache;
	validate=false;
}
function check_validate(v_id){
	last_v_id=v_id;
	validate=false;
	var validate_value=document.getElementById('validate_'+v_id).value;
	var validate_div=document.getElementById('validate_div_'+v_id);
	if (validate_value.length ==0 ){validate_div.innerHTML='';return false};
	if (validate_value.length !=5 ){validate_div.innerHTML='<img src="/imager/agen/html_no.gif" />';return false};
	validate_div.innerHTML='<img src="/imager/loadingAnimation.gif" width="75"/>'
	var url = "/check_validate.asp?validate=" + validate_value ;
	// Open a connection to the server
	xmlHttp.open("GET", url, true);
	// Setup a function for the server to run when it's done
	xmlHttp.onreadystatechange =update_validate;
	// Send the request
	xmlHttp.send(null);
}
function update_validate() {
  if (xmlHttp.readyState == 4) {
	var response = xmlHttp.responseText;
	if (response=='true'){validate=true;document.getElementById('validate_div_'+last_v_id).innerHTML='<img src="/imager/agen/html_ok.gif" />';}else{document.getElementById('validate_div_'+last_v_id).innerHTML='<img src="/imager/agen/html_no.gif" />';}
  }
}

function write_validate(wid){
document.write ('<input name="validate" tabindex="'+wid+'" type="text" class="textInput" id="validate_'+wid+'" maxlength="5" onKeyUp="check_validate('+wid+')"><span style="cursor:pointer" onClick="changecode('+wid+')"><img src="/getcode.asp" name="get_code" height="20" align="absmiddle" id="getcode_'+wid+'" style="margin:0px;">点击更换</span><span id="validate_div_'+wid+'"></span>')
}
//验证码end

function write_district(){
	document.write ('<select class="select" name="district" id="district"><option selected="selected" value="">区域</option><option value="0">不限</option>');
	for(var i=0;i<fMenu.length;i++){
		document.write ('<option value="'+fValue[i]+'">┬'+fMenu[i]+'◆</option>')
		for(var j=0;j<sMenu[i].length;j++){
			document.write ('<option value="'+sValue[i][j]+'">├'+sMenu[i][j]+'</option>')
			
		}
	}
	document.write ('</select>')
}

//二级联动地区
function write_er_district(){
	document.write ('<input name="district" id="district" type="hidden"/><SELECT name="city" id="city"></SELECT> <SELECT name="town" id="town"></SELECT>');
	var ofMenu = document.getElementById("city");
	var osMenu = document.getElementById("town");
	var district = document.getElementById("district");
	createcityOptions();
	createtownOptions(0);
	ofMenu.onchange = function() {createtownOptions(this.selectedIndex);district.value=this.value}
	osMenu.onchange = function() {if (this.value==''){district.value=ofMenu.value}else{district.value=this.value}}
}
function createcityOptions() {
	var district = document.getElementById("district");
	district.value=fValue[0]
	var ofMenu = document.getElementById("city");
	for(var i=0;i<fMenu.length;i++)ofMenu.options[i] = new Option(fMenu[i],fValue[i]);
}
function createtownOptions(j) {
	var osMenu = document.getElementById("town");
	with(osMenu) {
		length=0;
		osMenu.options[0] = new Option('选择片区','');
		for(var i=0;i<sMenu[j].length;i++)osMenu.options[i+1] = new Option(sMenu[j][i],sValue[j][i]);
	}
}


//二级联动地区完毕
function change_mode1(changetype){
    if (changetype!="1")
			{
			document.getElementById("min").options.length=0;
            document.getElementById("min").options[0] = new Option("最低价格","");
            document.getElementById("min").options[1] = new Option("30万","300000");
            document.getElementById("min").options[2] = new Option("50万","500000");
            document.getElementById("min").options[3] = new Option("80万","800000");
            document.getElementById("min").options[4] = new Option("100万","1000000");
            document.getElementById("min").options[5] = new Option("200万","2000000");
            document.getElementById("min").options[6] = new Option("300万","3000000");
            document.getElementById("min").options[7] = new Option("500万","5000000");
            document.getElementById("min").selectedIndex = 0;
			document.getElementById("max").options.length=0;
            document.getElementById("max").options[0] = new Option("最高价格","");
            document.getElementById("max").options[1] = new Option("50万","500000");
            document.getElementById("max").options[2] = new Option("80万","800000");
            document.getElementById("max").options[3] = new Option("100万","1000000");
            document.getElementById("max").options[4] = new Option("200万","2000000");
            document.getElementById("max").options[5] = new Option("300万","3000000");
            document.getElementById("max").options[6] = new Option("500万","5000000");
            document.getElementById("max").options[7] = new Option("800万","8000000");
            document.getElementById("max").selectedIndex = 0;
			}
			else
			{
			document.getElementById("min").options.length=0;
            document.getElementById("min").options[0] = new Option("最低价格","");
            document.getElementById("min").options[1] = new Option("300","300");
            document.getElementById("min").options[2] = new Option("500","500");
            document.getElementById("min").options[3] = new Option("800","800");
            document.getElementById("min").options[4] = new Option("1000","1000");
            document.getElementById("min").options[5] = new Option("2000","2000");
            document.getElementById("min").options[6] = new Option("3000","3000");
            document.getElementById("min").options[7] = new Option("5000","5000");
            document.getElementById("min").selectedIndex = 0;
			document.getElementById("max").options.length=0;
            document.getElementById("max").options[0] = new Option("最高价格","");
            document.getElementById("max").options[1] = new Option("500","500");
            document.getElementById("max").options[2] = new Option("800","800");
            document.getElementById("max").options[3] = new Option("1000","1000");
            document.getElementById("max").options[4] = new Option("2000","2000");
            document.getElementById("max").options[5] = new Option("3000","3000");
            document.getElementById("max").options[6] = new Option("5000","5000");
            document.getElementById("max").options[7] = new Option("8000","8000");
            document.getElementById("max").selectedIndex = 0;
			}

}


function change_mode2(changemode){
	if (changemode==lastmode){return false}
	lastmode=changemode;
	var objprice=document.getElementById('price');
	change_price('');
	var rent_txt=['价格范围','0-300','300-500','500-800','800-1000','1000-2000','2000-3000','2000-5000','5000以上']
	var rent_value=['','0-300','300-500','500-800','800-1000','1000-2000','2000-3000','2000-5000','5000-']
	var sell_txt=['价格范围','0-30万','30万-50万','50万-80万','80万-100万','100万-200万','200万-300万','300万-500万','500万-800万','800万以上']
	var sell_value=['','0-300000','300000-500000','500000-800000','800000-1000000','1000000-2000000','2000000-3000000','3000000-5000000','5000000-8000000','8000000-']
    if (changemode=='1')
			{
			objprice.options.length=0;
			for (a=0;a<rent_txt.length;a++){objprice.options[a] = new Option(rent_txt[a],rent_value[a]);}
            objprice.selectedIndex = 0;
			}
			else
			{
			objprice.options.length=0;
			for (a=0;a<sell_txt.length;a++){objprice.options[a] = new Option(sell_txt[a],sell_value[a]);}
            objprice.selectedIndex = 0;
			}

}
function change_price(change_value){
	var p1=new Array;
	p1=change_value.split('-');
	if (p1.length==2)
	{document.getElementById('min').value=p1[0];document.getElementById('max').value=p1[1];}
	else
	{document.getElementById('min').value='';document.getElementById('max').value='';}
}

/* 首页flash 显示*/
/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept == "undefined") var deconcept = new Object();
if(typeof deconcept.util == "undefined") deconcept.util = new Object();
if(typeof deconcept.SWFObjectUtil == "undefined") deconcept.SWFObjectUtil = new Object();
deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey) {
	if (!document.getElementById) { return; }
	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
	this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
	this.params = new Object();
	this.variables = new Object();
	this.attributes = new Array();
	if(swf) { this.setAttribute('swf', swf); }
	if(id) { this.setAttribute('id', id); }
	if(w) { this.setAttribute('width', w); }
	if(h) { this.setAttribute('height', h); }
	if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }
	this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
	if (!window.opera && document.all && this.installedVer.major > 7) {
		// only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
		deconcept.SWFObject.doPrepUnload = true;
	}
	if(c) { this.addParam('bgcolor', c); }
	var q = quality ? quality : 'high';
	this.addParam('quality', q);
	this.setAttribute('useExpressInstall', false);
	this.setAttribute('doExpressInstall', false);
	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
	this.setAttribute('xiRedirectUrl', xir);
	this.setAttribute('redirectUrl', '');
	if(redirectUrl) { this.setAttribute('redirectUrl', redirectUrl); }
}
deconcept.SWFObject.prototype = {
	useExpressInstall: function(path) {
		this.xiSWFPath = !path ? "expressinstall.swf" : path;
		this.setAttribute('useExpressInstall', true);
	},
	setAttribute: function(name, value){
		this.attributes[name] = value;
	},
	getAttribute: function(name){
		return this.attributes[name];
	},
	addParam: function(name, value){
		this.params[name] = value;
	},
	getParams: function(){
		return this.params;
	},
	addVariable: function(name, value){
		this.variables[name] = value;
	},
	getVariable: function(name){
		return this.variables[name];
	},
	getVariables: function(){
		return this.variables;
	},
	getVariablePairs: function(){
		var variablePairs = new Array();
		var key;
		var variables = this.getVariables();
		for(key in variables){
			variablePairs[variablePairs.length] = key +"="+ variables[key];
		}
		return variablePairs;
	},
	getSWFHTML: function() {
		var swfNode = "";
		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
			if (this.getAttribute("doExpressInstall")) {
				this.addVariable("MMplayerType", "PlugIn");
				this.setAttribute('swf', this.xiSWFPath);
			}
			swfNode = '<embed pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'"';
			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
			var params = this.getParams();
			 for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }
			var pairs = this.getVariablePairs().join("&");
			 if (pairs.length > 0){ swfNode += 'flashvars='+ pairs +'&realfull=1&moz=1"'; }
			swfNode += '/>';
		} else { // PC IE
			if (this.getAttribute("doExpressInstall")) {
				this.addVariable("MMplayerType", "ActiveX");
				this.setAttribute('swf', this.xiSWFPath);
			}
			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'">';
			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
			var params = this.getParams();
			for(var key in params) {
			 swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
			}
			var pairs = this.getVariablePairs().join("&");
			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
			swfNode += "</object>";
		}
		return swfNode;
	},
	write: function(elementId){
		if(this.getAttribute('useExpressInstall')) {
			// check to see if we need to do an express install
			var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
			if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
				this.setAttribute('doExpressInstall', true);
				this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
				document.title = document.title.slice(0, 47) + " - Flash Player Installation";
				this.addVariable("MMdoctitle", document.title);
			}
		}
		if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){
			
		}else{
			if(this.getAttribute('redirectUrl') != "") {
				document.location.replace(this.getAttribute('redirectUrl'));
			}
			
		}
		var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
		n.innerHTML = this.getSWFHTML();
		return true;
	}
}

/* ---- detection functions ---- */
deconcept.SWFObjectUtil.getPlayerVersion = function(){
	var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
		}
	}else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0){ // if Windows CE
		var axo = 1;
		var counter = 3;
		while(axo) {
			try {
				counter++;
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
//				document.write("player v: "+ counter);
				PlayerVersion = new deconcept.PlayerVersion([counter,0,0]);
			} catch (e) {
				axo = null;
			}
		}
	} else { // Win IE (non mobile)
		// do minor version lookup in IE, but avoid fp6 crashing issues
		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
		try{
			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		}catch(e){
			try {
				var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				PlayerVersion = new deconcept.PlayerVersion([6,0,21]);
				axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
			} catch(e) {
				if (PlayerVersion.major == 6) {
					return PlayerVersion;
				}
			}
			try {
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			} catch(e) {}
		}
		if (axo != null) {
			PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("document.getElementByIdversion").split(" ")[1].split(","));
		}
	}
	return PlayerVersion;
}
deconcept.PlayerVersion = function(arrVersion){
	this.major = arrVersion[0] != null ? parseInt(arrVersion[0]) : 0;
	this.minor = arrVersion[1] != null ? parseInt(arrVersion[1]) : 0;
	this.rev = arrVersion[2] != null ? parseInt(arrVersion[2]) : 0;
}
deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
	if(this.major < fv.major) return false;
	if(this.major > fv.major) return true;
	if(this.minor < fv.minor) return false;
	if(this.minor > fv.minor) return true;
	if(this.rev < fv.rev) return false;
	return true;
}
/* ---- get value of query string param ---- */
deconcept.util = {
	getRequestParameter: function(param) {
		var q = document.location.search || document.location.hash;
		if (param == null) { return q; }
		if(q) {
			var pairs = q.substring(1).split("&");
			for (var i=0; i < pairs.length; i++) {
				if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
					return pairs[i].substring((pairs[i].indexOf("=")+1));
				}
			}
		}
		return "";
	}
}
/* fix for video streaming bug */
deconcept.SWFObjectUtil.cleanupSWFs = function() {
	var objects = document.getElementsByTagName("OBJECT");
	for (var i = objects.length - 1; i >= 0; i--) {
		objects[i].style.display = 'none';
		for (var x in objects[i]) {
			if (typeof objects[i][x] == 'function') {
				objects[i][x] = function(){};
			}
		}
	}
}
// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
if (deconcept.SWFObject.doPrepUnload) {
	if (!deconcept.unloadSet) {
		deconcept.SWFObjectUtil.prepUnload = function() {
			__flash_unloadHandler = function(){};
			__flash_savedUnloadHandler = function(){};
			window.attachEvent("onunload", deconcept.SWFObjectUtil.cleanupSWFs);
		}
		window.attachEvent("onbeforeunload", deconcept.SWFObjectUtil.prepUnload);
		deconcept.unloadSet = true;
	}
}
/* add document.getElementById if needed (mobile IE < 5) */
if (!document.getElementById && document.all) { document.getElementById = function(id) { return document.all[id]; }}

/* add some aliases for ease of use/backwards compatibility */
var getQueryParamValue = deconcept.util.getRequestParameter;
var FlashObject = deconcept.SWFObject; // for legacy support
var SWFObject = deconcept.SWFObject;
/*  |xGv00|12f3bac2d2a43155a8555a3c07859656 */
/* 首页flash 结束*/


// JavaScript Document
function CheckEmail(c_email){ //验证email
 var pattern = /^([a-zA-Z0-9._-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/;
 flag = pattern.test(c_email);
 if(!flag){  return false; } else{ return true;}
}



function copyToClipboard(txt) {   
      if(window.clipboardData) {   
              window.clipboardData.clearData();   
              window.clipboardData.setData("Text", txt);
            alert("复制链接成功");   
      } else if(navigator.userAgent.indexOf("Opera") != -1) {   
           window.location = txt;   
      } else if (window.netscape) {   
           try {   
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");   



           } catch (e) {   
                alert("如果您正在使用FireFox！\n请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true'");   
           }   
           var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);   
           if (!clip)   
                return;   
           var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);   
           if (!trans)   
                return;   
           trans.addDataFlavor('text/unicode');   
           var str = new Object();   
           var len = new Object();   
           var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);   
           var copytext = txt;   
           str.data = copytext;   
           trans.setTransferData("text/unicode",str,copytext.length*2);   


           var clipid = Components.interfaces.nsIClipboard;   
           if (!clip)   
                return false;   
           clip.setData(trans,null,clipid.kGlobalClipboard);   
           alert("复制链接成功！")   
      }   
} 


function switch_select(select_obj,select_value){
select_obj=document.getElementById(select_obj);
for (var i = 0; i < select_obj.options.length; i++) {        
        if (select_obj.options[i].value == select_value) {        
            select_obj.options[i].selected = true;     
            break;        
        }        
    }     
}

function switch_radio(radio_name,radio_value){
var radio= document.getElementsByTagName("input");
for (var i = 0; i < radio.length; i++) {        
        if (radio[i].name == radio_name && radio[i].value==radio_value) {        
            radio[i].checked = true;     
            break;        
        }        
    }     
}

function switch_checkbox(checkbox_name,checkbox_value){
	for(i=1;i<=checkbox_value.length;i++){
		if (checkbox_value.substr(i-1,1)==1){document.getElementById(checkbox_name+i).checked=true;}
	}
}


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;}
}

//显示 request 信息
var i=0;
function show_request(request_title,request_content){
	document.getElementById('Msg').style.display='block';
	document.getElementById('Msg').style.top=(document.documentElement.clientHeight)/2-80+document.documentElement.scrollTop+'px';
	document.getElementById('MsgHead').innerHTML='<a href="javascript:void(0)" title="关闭" onclick="document.getElementById(\'Msg\').style.display=\'none\'">X</a>'+request_title;
	document.getElementById('MessageText').innerHTML=request_content;
	i=0;
	setTimeout('show_daoji()',500);
	}

function show_daoji(){
if (i>5)
{document.getElementById('Msg').style.display='none';i=0;}
else
{i=i+1;setTimeout('show_daoji()',500);}
}
//显示 request 信息 end


function write_hotpic(){
	var pic_width=320; //图片宽度
	var pic_height=240; //图片高度
	var button_pos=4; //按扭位置 1左 2右 3上 4下
	var stop_time=5000; //图片停留时间(1000为1秒钟)
	var show_text=0; //是否显示文字标签 1显示 0不显示
	var txtcolor="000000"; //文字色
	var bgcolor="DDDDDD"; //背景色
	var imag=new Array();
	var link=new Array();
	var text=new Array();
	imag[1]="/imager/index_show/001.jpg";
	link[1]="";
	text[1]="在线聊天";
	imag[2]="/imager/index_show/002.jpg";
	link[2]="/coupon.asp";
	text[2]="优惠券";
	//可编辑内容结束
	var swf_height=show_text==1?pic_height+20:pic_height;
	var pics="", links="", texts="";
	for(var i=1; i<imag.length; i++){
		pics=pics+("|"+imag[i]);
		links=links+("|"+link[i]);
		texts=texts+("|"+text[i]);
	}
	pics=pics.substring(1);
	links=links.substring(1);
	texts=texts.substring(1);
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');
	document.write('<param name="movie" value="flash/focus.swf">');
	document.write('<param name="quality" value="high"><param name="wmode" value="opaque">');
	document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'">');
	document.write('<embed src="flash/focus.swf" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'" quality="high" width="'+ pic_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
function write_services_mail()
{	str = "services's Mail";
    str = str.replace("services's","services");
    str = str.replace(" Mail","/173hello.com");
    str = str.replace("/","&#64;");
	document.write (str)
}
