﻿function bookmark(){
var title=document.title
var url=document.location.href
if (window.sidebar) window.sidebar.addPanel(title, url,"");
else if( window.opera && window.print ){
var mbm = document.createElement('a');
mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);
mbm.setAttribute('title',title);
mbm.click();}
else if( document.all ) window.external.AddFavorite( url, title);
}


<!--加入收藏结束-->
<!--设为首页-->

function setHomepage()
{
    if (document.all)
    {
        document.body.style.behavior='url(#default#homepage)';
        document.body.setHomePage('/');
    }
    else if (window.sidebar)
    {
        if(window.netscape)
        {
            try
            {
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
            }
            catch(e)
            {
                alert("此功能被您的浏览器所禁止，如果希望收藏本页，请在地址栏输入about:config,并将signed.applets.codebase_principal_support的值设为true");
            }
         }
         var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
         prefs.setCharPref('browser.startup.homepage','/');
     }
}

var sh;
marqueesWidth=915;
preLeft=0;
currentLeft=0;
stopscroll=false; 
function scrollLeft()
{

	if(stopscroll==true) return;
	preLeft=move.scrollLeft;
	move.scrollLeft+=2;
}
function scrollRight()
{
	if(stopscroll==true) return;
	preLeft=move.scrollLeft;
	move.scrollLeft-=2;
}

function Left()
{
	stopscroll = false;
	sh = setInterval("scrollLeft()",20);
}

function Right()
{
	stopscroll = false;
	sh = setInterval("scrollRight()",20);
}

function StopScroll()
{
	stopscroll = true;
	clearInterval( sh );
}

function init()
{
	with(move)
	{
		style.height=0;
		style.width=marqueesWidth;
		style.overflowX="hidden";
		style.overflowY="visible";
		style.align = "center";
	    noWrap=true;
	
	}
}
function qqMenu()
{
	document.writeln("	<div style='width:113px;right:10px;top:150px;position : absolute;VISIBILITY: visible; Z-INDEX: 100;' id='divqqMenu' >");
	
	document.writeln("		<table id='' width='113' border='0' cellpadding='0' cellspacing='0' >");
	document.writeln('			<tr>');
	document.writeln("				<td style='height:44px;background:url(img/qq_02.gif) repeat-y;'><img src='img/qq_01.gif' width='113' height='44' alt='' usemap='#Map' border='0'><\/td>");
	document.writeln("			</tr>");
	document.writeln("			<tr>");
	document.writeln("				<td style=' background:url(img/qq_02.gif) repeat-y;'>");
	
	document.writeln("					<table width='93' border='0' cellspacing='0' cellpadding='0' align='center' color='#cccccc'>");
  	document.writeln("						<tr>");
    document.writeln("							<td>");
	
	document.writeln("								<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
	document.writeln(" 									<tr>");
    document.writeln("										<td style='font-size:13px;color:#CCCCCC'><img src='img/qq_05.gif'>&nbsp;<span class='STYLE1'>在线QQ</span></td>");
	document.writeln(" 									</tr>");
	document.writeln("									<tr>");
    document.writeln("										<td><img src='img/qq_09.gif'></td>");
	document.writeln(" 									</tr>");
    document.writeln("									<tr>");
    document.writeln(" 										<td style='padding-top:6px;'>");
	
	document.writeln("											<table  border='0' cellspacing='4' cellpadding='0' align='center'>");
	var online=new Array();
	var qq=new Array(2);
	qq[0]=new Array("335608865","客服一部","河南鼎伟真诚为您服务");
	qq[1]=new Array("1335333698","客服二部","河南鼎伟真诚为您服务");
	var j=0;
	for (j = 0; j <2; j++) 
	{
		online[j]=1;
		if (online[j]>0)
		{
			document.write ("<tr><td><a title='"+qq[j][2]+"'  href=tencent://message/?uin="+qq[j][0]+"&Site=TGidc.Com&Menu=yes><img  src=http://wpa.qq.com/pa?p=1:"+qq[j][0]+":4 border=0  align=bottom></a></td><td><a title='"+qq[j][2]+"'  href=tencent://message/?uin="+qq[j][0]+"&Site=TGidc.Com&Menu=yes class='a1'>"+qq[j][1]+"</a></td></tr>")
		}
		else
		{
			document.write ("<a title='"+qq[j][2]+"' target=blank href=tencent://message/?uin="+qq[j][0]+"&Site=TGidc.Com&Menu=yes><img src=/qqimg/offline.gif border=0 height=20 width=20>&nbsp;"+qq[j][1]+"</a><br>")
		}
	}
    document.writeln(" 											</table>");
	document.writeln("										</td>");
	document.writeln(" 									</tr>");
	document.writeln("								</table>");
	
	document.writeln("								<table width='100%' border='0' cellspacing='0' cellpadding='0' style='margin-top:10px;'>");
	document.writeln(" 									<tr>");
	document.writeln("  									<td style='font-size:12px;color:#CCCCCC'><img src='img/qq_05.gif'>&nbsp;产品咨询热线</td>");
	document.writeln("									</tr>");
	document.writeln("									<tr>");
	document.writeln("    									<td><img src='img/qq_09.gif'></td>");
	document.writeln("  								</tr>");
	document.writeln("  								<tr>");
	document.writeln("    									<td style='padding-top:2px;'>");
	document.writeln("											<table  border='0' cellspacing='0' cellpadding='0' align='center'>");
	document.writeln("      										<tr>");
	document.writeln("        											<td style='font-size:11px;color:#CCCCCC'>");
	document.writeln("0371-60151861<br>13383813488");
	document.writeln("                                                  </td>");
	document.writeln("      										</tr>");
    document.writeln("    										</table>");
	document.writeln("										</td>");
	document.writeln("  								</tr>");
	document.writeln("								</table>");
	document.writeln("										</td>");
	document.writeln("  								</tr>");
	document.writeln("								</table>");
	document.writeln("							</td>");
	document.writeln("  					</tr>");
	document.writeln("					</table>");
		
	document.writeln("				</td>");
	document.writeln("			</tr>");
	document.writeln("			<tr>");
	document.writeln("				<td>");
	document.writeln("					<img src='img/qq_04.gif' width='113' height='39' alt=''></td>");
	document.writeln("			</tr>");
	document.writeln("		</table>");
	document.writeln("	</div>");
	document.writeln("<map name='Map'><area shape='circle' coords='101,11,8' href='javascript:void(0)' onclick=\"if(document.all.divqqMenu.style.display==\'none\'){ document.all.divqqMenu.style.display=\'\'} else {document.all.divqqMenu.style.display=\'none\'}\" title=\"点此关闭窗口\" style=\"cursor:hand\"></map>");
	//drag("divqqMenu",1);
	topright(); 
}
	
function topright() 
{ 
	window.setInterval("displaytopright()",20); 
} 

function displaytopright() 
{ 
	var theTop; 
	var theRight; 
	if (document.documentElement && document.documentElement.scrollTop) 
	{ 
		theRight = document.documentElement.scrollLeft; 
		theTop = document.documentElement.scrollTop; 
	} 
	else 
	{ 
		theRight = document.body.scrollLeft; 
		theTop = document.body.scrollTop; 
	}  
	document.all.divqqMenu.style.pixelTop = theTop + 150 ; 
} 
