﻿
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(imgs/qq_02.gif) repeat-y;'><img src='imgs/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(imgs/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='imgs/qq_05.gif'>&nbsp;<span class='STYLE1'>在线QQ</span></td>");
	document.writeln(" 									</tr>");
	document.writeln("									<tr>");
    document.writeln("										<td><img src='imgs/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'>");
document.writeln("<tr><td><a target=\"_blank\" href=\"http:\/\/wpa.qq.com\/msgrd?v=3&uin=78447084&site=qq&menu=yes\"><img border=\"0\" src=\"http:\/\/wpa.qq.com\/pa?p=2:78447084:41\" alt=\"点击这里给我发消息\" title=\"点击这里给我发消息\"><\/a><\/td><\/tr>");
document.writeln("<tr><td><a target=\"_blank\" href=\"http:\/\/wpa.qq.com\/msgrd?v=3&uin=412055686&site=qq&menu=yes\"><img border=\"0\" src=\"http:\/\/wpa.qq.com\/pa?p=2:412055686:41\" alt=\"点击这里给我发消息\" title=\"点击这里给我发消息\"><\/a><\/td><\/tr>");
    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='imgs/qq_05.gif'>&nbsp;融资理财热线</td>");
	document.writeln("									</tr>");
	document.writeln("									<tr>");
	document.writeln("    									<td><img src='imgs/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-65368359");
	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='imgs/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 ; 
} 
