function SetHome(obj,vrl){
        try{
                obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
        }
        catch(e){
                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',vrl);
                 }
        }
}

function openme(){

try{
document.getElementById('main_index').style.display='block';
document.getElementById('main_JAYQQ_COM').style.display='block';
document.frames.Userlogin.location="../login.htm"

	}
		catch(e){
		login();
	}
}

function open_me(){

try{
document.getElementById('main_index2').style.display='block';
document.getElementById('main_JAYQQ_COM2').style.display='block';
document.frames.Userreg.location="../reg.asp"
	}
		catch(e){
		reg();
	}
}

function open_video(){
try{
document.getElementById('main_index_video').style.display='block';
document.getElementById('main_JAYQQ_COM_video').style.display='block';
document.frames.video.location="../video.htm"

	}
		catch(e){
		jayqq_video();
	}
}
function open_news(){
try{
document.getElementById('main_index_news').style.display='block';
document.getElementById('main_JAYQQ_COM_news').style.display='block';
document.frames.news.location="../jaynews.htm"

	}
		catch(e){
		jayqq_news();
	}
}
function open_mini(){
try{
document.getElementById('main_index_mini').style.display='block';
document.getElementById('main_JAYQQ_COM_mini').style.display='block';
document.frames.mini.location="/news.htm"

	}
		catch(e){
		jayqq_mini();
	}
}
function closeme(){
document.getElementById('main_index').style.display='none';
document.getElementById('main_JAYQQ_COM').style.display='none';
document.frames.Userlogin.location="/jayqq-window/loading.htm";
}
function close_me(){
document.getElementById('main_index2').style.display='none';
document.getElementById('main_JAYQQ_COM2').style.display='none';
document.frames.Userreg.location="/jayqq-window/loading.htm";
}

function close_video(){
document.getElementById('main_index_video').style.display='none';
document.getElementById('main_JAYQQ_COM_video').style.display='none';
document.frames.video.location="/jayqq-window/loading.htm";

}
function close_news(){
document.getElementById('main_index_news').style.display='none';
document.getElementById('main_JAYQQ_COM_news').style.display='none';
}

function jayqq_news(){
	try{
document.getElementById("news").src="../jaynews.htm"
	}
	
	catch(e){
window.open('../jaynews.html')
		}
}

function close_mini(){
document.getElementById('main_index_mini').style.display='none';
document.getElementById('main_JAYQQ_COM_mini').style.display='none';
document.frames.mini.location="/jayqq-window/loading.htm";
}
function jayqq_mini(){
	try{
document.getElementById("mini").src="/news.htm"
	}
	
	catch(e){
window.open('/mini.htm')
		}
}

document.write('<div id="main_JAYQQ_COM_news">');
document.write('<table width="520" border="0" cellpadding="3" cellspacing="1" id="table_news" align="center">');
document.write('  <tr>');
document.write('    <td><font color="#FFFFFF"><b>JAYQQ.COM - JAY资讯</b></font></td>');
document.write('    <td align="right"><a onClick="close_news()" style="cursor:pointer"><img src="/images/dialogclose.gif" border=0></a></td>');
document.write(' </tr>');
document.write('  <tr align="center">');
document.write('<td colspan="2" width="100%" bgcolor="#FFFFFF" height="400">');
document.write('<iframe id="news" name="news" width="100%" style="margin:0" frameborder="0" height="100%" scrolling="yes" src="http://www.jayqq.com/jayqq-window/loading.htm"></iframe>')
document.write('</td>');
document.write('  </tr>');
document.write('</table>');
document.write('</div>');
document.write('<div id="main_index_news"> </div>');


document.write('<div id="main_JAYQQ_COM_mini">');
document.write('<table width="760" border="0" cellpadding="3" cellspacing="1" id="table_mini" align="center">');
document.write('  <tr>');
document.write('    <td><font color="#FFFFFF"><b>JAYQQ.COM - 迷你首页</b></font></td>');
document.write('    <td align="right"><a onClick="close_mini()" style="cursor:pointer"><img src="/images/dialogclose.gif" border=0></a></td>');
document.write(' </tr>');
document.write('  <tr align="center">');
document.write('<td colspan="2" width="100%" bgcolor="#FFFFFF" height="418">');
document.write('<iframe id="mini" name="mini" width="100%" style="margin:0" frameborder="0" height="100%" scrolling="no" src="http://www.jayqq.com/jayqq-window/loading.htm"></iframe>')
document.write('</td>');
document.write('  </tr>');
document.write('</table>');
document.write('</div>');
document.write('<div id="main_index_mini"> </div>');


function down_index(){
document.getElementById("google-search").src="/sousuo.asp"
document.getElementById("jay-news").src="/index3.asp"
document.getElementById("Login").src="../jayqqlogin.php"
}
function down_news(){
document.getElementById("google-search").src="/sousuo.asp"
document.getElementById("Login").src="../jayqqlogin.php"
}