﻿	
	//图片渐变效果　开始
	nereidFadeObjects = new Object();
	nereidFadeTimers = new Object();
	function nereidFade(object, destOp, rate, delta){
		if (!document.all)
			return
		if (object != "[object]"){  
			setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
		return;
		}
		clearTimeout(nereidFadeTimers[object.sourceIndex]);
		diff = destOp-object.filters.alpha.opacity;
		direction = 1;
		if (object.filters.alpha.opacity > destOp){
			direction = -1;
		}
		delta=Math.min(direction*diff,delta);
		object.filters.alpha.opacity+=direction*delta;
		if (object.filters.alpha.opacity != destOp){
			nereidFadeObjects[object.sourceIndex]=object;
			nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
		}
	}
	//图片渐变效果　结束
	
	
	//图片不间断滚动效果　开始
	function Marquee()   
	{   
	this.ID = document.getElementById(arguments[0]);   
	this.Direction = arguments[1];   
	this.Step = arguments[2];   
	this.Width = arguments[3];   
	this.Height = arguments[4];   
	this.Timer = arguments[5];   
	this.WaitTime = arguments[6];   
	this.StopTime = arguments[7];   
	this.CTL = this.StartID = this.Stop = this.MouseOver = 0;   
	this.ID.style.overflowX = this.ID.style.overflowY = "hidden";   
	this.ID.noWrap = true;   
	this.ID.style.width = this.Width;   
	this.ID.style.height = this.Height;   
	this.ID.innerHTML += this.ID.innerHTML;   
	this.Start(this,this.Timer,this.WaitTime,this.StopTime);   
	}   
	  
	Marquee.prototype.Start = function(msobj,timer,waittime,stoptime)   
	{   
	     
	msobj.StartID = function(){msobj.Scroll()}   
	msobj.Continue = function()   
			{   
			if(msobj.MouseOver == 1)   
			{   
				setTimeout(msobj.Continue,waittime);   
			}   
			else  
			{  clearInterval(msobj.TimerID);   
				msobj.CTL = msobj.Stop = 0;   
				msobj.TimerID = setInterval(msobj.StartID,timer);   
			}   
			}   
	msobj.Pause = function()   
		{   
			msobj.Stop = 1;   
			clearInterval(msobj.TimerID);   
			setTimeout(msobj.Continue,waittime);   
		}   
	msobj.Begin = function()   
	{   
		msobj.TimerID = setInterval(msobj.StartID,timer);   
		msobj.ID.onmouseover = function()   
			{   
				msobj.MouseOver = 1;   
				clearInterval(msobj.TimerID);   
			}   
		msobj.ID.onmouseout = function()   
			{   
				msobj.MouseOver = 0;   
				if(msobj.Stop == 0)   
				{   
				clearInterval(msobj.TimerID);   
				msobj.TimerID = setInterval(msobj.StartID,timer);   
				}   
			}   
	}   
	setTimeout(msobj.Begin,stoptime);   
	}   
	  
	Marquee.prototype.Scroll = function()   
	{   
	switch(this.Direction)   
	{   
		case 0:   
		this.CTL += this.Step;   
		if(this.CTL >= this.Height && this.WaitTime > 0)   
		{   
			this.ID.scrollTop += this.Height + this.Step - this.CTL;   
			this.Pause();   
			return;   
		}   
		else  
		{      
			if(this.ID.scrollTop > this.ID.scrollHeight/2)   
			{   
			this.ID.scrollTop -= this.ID.scrollHeight/2;   
			}   
			this.ID.scrollTop += this.Step;   
		}   
		break;   
	  
		case 1:   
		this.CTL += this.Step;   
		if(this.CTL >= this.Height && this.WaitTime > 0)   
		{   
			this.ID.scrollTop -= this.Height + this.Step - this.CTL;   
			this.Pause();   
			return;   
		}   
		else  
		{   
			if(this.ID.scrollTop <= 0)   
			{   
			this.ID.scrollTop += this.ID.scrollHeight/2;   
			}   
			this.ID.scrollTop -= this.Step;   
		}   
		break;   
	  
		case 2:   
		this.CTL += this.Step;   
		if(this.CTL >= this.Width && this.WaitTime > 0)   
		{   
			this.ID.scrollLeft += this.Width + this.Step - this.CTL;   
			this.Pause();   
			return;   
		}   
		else  
		{   
			if(this.ID.scrollLeft > this.ID.scrollWidth/2)   
			{   
			this.ID.scrollLeft -= this.ID.scrollWidth/2;   
			}   
			this.ID.scrollLeft += this.Step;   
		}   
		break;   
	  
		case 3:   
		this.CTL += this.Step;   
		if(this.CTL >= this.Width && this.WaitTime > 0)   
		{   
			this.ID.scrollLeft -= this.Width + this.Step - this.CTL;   
			this.Pause();   
			return;   
		}   
		else  
		{   
			if(this.ID.scrollLeft <= 0)   
			{   
			this.ID.scrollLeft += this.ID.scrollWidth/2;   
			}   
			this.ID.scrollLeft -= this.Step;   
		}   
		break;   
	}   
} 
	//图片不间断滚动效果　结束
	
	//省份SELET　OPTION　列表　开始
	function getProvincOption(TheObj)
	{
		TheObj.options.add( new Option("深圳","深圳") );
		TheObj.options.add( new Option("北京","北京") );
		TheObj.options.add( new Option("天津","天津") );
		TheObj.options.add( new Option("上海","上海") );
		TheObj.options.add( new Option("重庆","重庆") );
		TheObj.options.add( new Option("河北省","河北省") );
		TheObj.options.add( new Option("河南省","河南省") );
		TheObj.options.add( new Option("黑龙江省","黑龙江省") );
		TheObj.options.add( new Option("吉林省","吉林省") );
		TheObj.options.add( new Option("辽宁省","辽宁省") );
		TheObj.options.add( new Option("山东省","山东省") );
		TheObj.options.add( new Option("内蒙古","内蒙古") );
		TheObj.options.add( new Option("江苏省","江苏省") );
		TheObj.options.add( new Option("安徽省","安徽省") );
		TheObj.options.add( new Option("山西省","山西省") );
		TheObj.options.add( new Option("陕西省","陕西省") );
		TheObj.options.add( new Option("甘肃省","甘肃省") );
		TheObj.options.add( new Option("浙江省","浙江省") );
		TheObj.options.add( new Option("江西省","江西省") );
		TheObj.options.add( new Option("湖北省","湖北省") );
		TheObj.options.add( new Option("湖南省","湖南省") );
		TheObj.options.add( new Option("贵州省","贵州省") );
		TheObj.options.add( new Option("四川省","四川省") );
		TheObj.options.add( new Option("新疆","新疆") );
		TheObj.options.add( new Option("宁夏","宁夏") );
		TheObj.options.add( new Option("青海省","青海省") );
		TheObj.options.add( new Option("西藏","西藏") );
		TheObj.options.add( new Option("广西","广西") );
		TheObj.options.add( new Option("广东省","广东省") );
		TheObj.options.add( new Option("福建省","福建省") );
		TheObj.options.add( new Option("台湾省","台湾省") );
		TheObj.options.add( new Option("香港","香港") );
		TheObj.options.add( new Option("澳门","澳门") );
		TheObj.options.add( new Option("美国","美国") );
		TheObj.options.add( new Option("加拿大","加拿大") );
		TheObj.options.add( new Option("澳大利亚","澳大利亚") );
		TheObj.options.add( new Option("欧洲","欧洲") );
		TheObj.options.add( new Option("其它国家","其它国家") );
	}
	//省份列表　结束
	
	//聚会类别　开始
	function getMeetTypeOption(TheObj)
	{
		TheObj.options.add( new Option("白领交友",0) );
		TheObj.options.add( new Option("户外活动",1) );
		TheObj.options.add( new Option("体育运动",2) );
		TheObj.options.add( new Option("旅游聚会",3) );
		TheObj.options.add( new Option("地区聚会或其它",4) );
	}
	//聚会类别　结束
	
	
	//取缩略图 开始
	function getZoomImg(path,zoomSize)
	{
		var zoomImg;
		path = path.toLowerCase();
		zoomImg = path.replace(".jpg","_"+zoomSize+".jpg");
		document.write('<img style="border: 1px solid #808080;FILTER:alpha(opacity=100)" src="'+ zoomImg +'" border="0">');
	}
	
	function getZoomImg190(path,zoomSize)
	{
		var zoomImg;
		path = path.toLowerCase();
		zoomImg = path.replace(".jpg","_"+zoomSize+".jpg");
		document.write('<img style="border: 1px solid #808080;FILTER:alpha(opacity=100)" src="'+ zoomImg +'" height=130 width=200 border="0">');
	}
	//取缩略图 结束
