﻿//+---------------------------------------------------
//| 交换滑动门
//+---------------------------------------------------
function swapMenu(liName, tagName, tagCount, currentMenuId, currentClassName, alternatingClassName) {
	for (var i = 0; i <= tagCount; i++) {
		if (currentMenuId == i) {
			document.getElementById(tagName + currentMenuId).style.display = "block";
			document.getElementById(liName + currentMenuId).className = currentClassName;
		} else {
			document.getElementById(tagName + i).style.display = "none";
			document.getElementById(liName + i).className = alternatingClassName;
		}
	}
}
//+---------------------------------------------------
//| 简单的交换滑动门
//+---------------------------------------------------
function swapMenuSmip(tagName, tagCount, currentMenuId) {
	for (var i = 0; i <= tagCount; i++) {
		if (currentMenuId == i) {
			document.getElementById(tagName + currentMenuId).style.display = "block";
		} else {
			document.getElementById(tagName + i).style.display = "none";
		}
	}
}

function writelink() {
	document.write("<div class=\"imglink\"><a href=\"http://www.hyfcw.com\" target=\"_blank\"><img src=\"youqing/UpLoadImage/hyfcw.gif\" alt=\"衡阳房产网\" /></a></div>");
	document.write("<div class=\"imglink\"><a href=\"http://www.0734jz.com\" target=\"_blank\"><img src=\"youqing/UpLoadImage/tcjz.gif\" alt=\"天成家政\" /></a></div>");
	document.write("<div class=\"imglink\"><a href=\"http://hy.hnol.net\" target=\"_blank\"><img src=\"youqing/UpLoadImage/衡阳新闻网dzxw_026.gif\" alt=\"衡阳新闻网\" /></a></div>");
	document.write("<div class=\"imglink\"><a href=\"http://www.0734.com\" target=\"_blank\"><img src=\"youqing/UpLoadImage/衡阳网0734logo.jpg\" alt=\"衡阳网\" /></a></div>");
}

function writelink2() {
	document.write(" ");
}

function scrollit_r2l(seed) {
	var m1 = "打造衡阳县最专业的人才招聘网站 客服电话：0734-8213466";
	var m2 = "";
	var msg = m1 + m2;
	var out = " ";
	var c = 1;
	var speed = 120;
	if (seed > 100) {
		seed -= 2;
		var cmd = "scrollit_r2l(" + seed + ")";
		timerTwo = window.setTimeout(cmd, speed);
	}
	else if (seed <= 100 && seed > 0) {
		for (c = 0; c < seed; c++)
		{ out += " "; }
		out += msg; seed -= 2;
		var cmd = "scrollit_r2l(" + seed + ")";
		window.status = out;
		timerTwo = window.setTimeout(cmd, speed);
	}
	else if (seed <= 0) {
		if (-seed < msg.length) {
			out += msg.substring(-seed, msg.length);
			seed -= 2;
			var cmd = "scrollit_r2l(" + seed + ")";
			window.status = out;
			timerTwo = window.setTimeout(cmd, speed);
		}
		else {
			window.status = " ";
			timerTwo = window.setTimeout("scrollit_r2l(100)", speed);
		}
	}
}
