var activex = ((navigator.userAgent.indexOf('Win')  != -1) && (navigator.userAgent.indexOf('MSIE') != -1) && (parseInt(navigator.appVersion) >= 4 ));
var CantDetect = ((navigator.userAgent.indexOf('Safari')  != -1) || (navigator.userAgent.indexOf('Opera')  != -1));
function oopsPopup() {
	var windowName = "oops";
	var URLtoOpen = "http://www.12yt.com/";
	//var popW = 540, popH = 305;
	//var scrollB = 'no';
	//w = screen.availWidth;
	//h = screen.availHeight;
	//var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	oopswindow = window.open(URLtoOpen, windowName);//,'width=' + popW + ',height=' + popH + ',scrollbars=' + scrollB + ',screenx=' +leftPos +',screeny=' +topPos +',top=' +topPos +',left=' +leftPos);
	return false;
}
if(typeof(detected) == "undefined" && activex) {
    document.write(
        ['<script language="VBscript">',
        'Function isSkypeInstalled()',
        'on error resume next',
        'Set oSkype = CreateObject("Skype.Detection")',
        'isSkypeInstalled = IsObject(oSkype)',
        'Set oSkype = nothing',
        'End Function',
        '</script>'].join("\n")
    );
}
function skypeCheck() {
    if(CantDetect) {
        return true;
    } else if(!activex) {
        var skypeMime = navigator.mimeTypes["application/x-skype"];
        detected = true;
        if(typeof(skypeMime) == "object") {
            return true;
        } else {
            return oopsPopup();
        }
    } else {
        if(isSkypeInstalled()) {
            detected = true;
            return true;
        }
    }
    
    detected = true;
    return oopsPopup();
}
var day = new Date(); 
var time = day.getHours();
var online1 = 'http://www.12yt.com/ml/sy.files/offline.gif';
var online2 = 'http://www.12yt.com/ml/sy.files/offline.gif';
if ((time>=9) && (time< 18))
{
  online1 = 'http://www.12yt.com/ml/sy.files/online.png';
}
if ((time>=9) && (time< 22))
{
  online2 = 'http://www.12yt.com/ml/sy.files/online.png';
}
var str = '<DIV align=center>																																																		'+
'<TABLE style="MARGIN-TOP: 3px" cellSpacing=0 cellPadding=0 width=778 border=0>                                       '+
'  <TBODY>                                                                                                            '+
'  <TR>                                                                                                               '+
'    <TD width=13><IMG height=61 alt="" src="http://www.12yt.com/ml/sy.files/5_01.gif" width=13></TD>                     '+
'    <TD background=http://www.12yt.com/ml/sy.files/5_03.gif>                                                             '+
'      <DIV align=center><STRONG>在线答疑:</STRONG>                                                                   '+
'     <a target=blank href=tencent://message/?uin=139891898&Site=倚天商务&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:139891898:5 alt="点击这里给我发消息"></a>               '+
'     <a target=blank href=tencent://message/?uin=139891898&Site=倚天商务&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:139891898:5 alt="点击这里给我发消息"></a><a target=blank href=tencent://message/?uin=139891898&Site=倚天商务&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:139891898:5 alt="点击这里给我发消息"></a><DIV style="padding-top:8px">　邮箱: yt_sw@163.com　[<A class=greylink                                                      '+
'      href="http://www.12yt.com/bbs/" target=_blank>论坛</A>]  [<A class=greylink                                                                     '+
'      href="http://www.12yt.com/jpwolf/zjlw/lwbk001.htm" target=_blank> 走进狼窝</A>]</DIV></DIV></TD>                                           '+
'    <TD width=13><IMG height=61 alt="" src="http://www.12yt.com/ml/sy.files/5_04.gif"                                                      '+
'  width=13></TD></TR></TBODY></TABLE>                                                                                '+
'<TABLE style="MARGIN-TOP: 3px" cellSpacing=0 cellPadding=0 width=778                                                 '+
'align=center border=0>                                                                                               '+
'  <TBODY>                                                                                                            '+
'  <TR>                                                                                                               '+
'    <TD width=13>&nbsp;</TD>                                                                                         '+
'    <TD>                                                                                                             '+
'      <DIV align=center><A href="http://www.12yt.com/"                                                        '+
'      target=_blank>倚天商务</A>　　<A href="http://www.12yt.com/1/"                                 '+
'      target=_blank>网站建设</A>　　<A                                                                                '+
'      href="http://www.12yt.com/ml/tcwscs.htm" target=_blank>网上超市</A>　　<A                               '+
'      href="http://www.12yt.com/2jlm/jiajiao/jj001.htm" target=_blank>家庭教育</A>　　<A                               '+
'      href="http://www.12yt.com/2jlm/jiajiao/jj002.htm" target=_blank>亲子教育</A>　　<A                                   '+
'      href="http://www.12yt.com/2jlm/yangsheng/ys003.htm"                                                            '+
'      target=_blank>智慧养生</A>　　<A href="http://www.12yt.com/2jlm/qinggan/qg001.htm" target=_blank>情感婚姻</A><BR>Copyright &copy; 2008 倚天商务 狼窝工作室<BR><a href="http://www.miibeian.gov.cn/"  target=_blank>陕ICP备07013312号</a></DIV></TD>                                      '+
'    <TD width=13>&nbsp;</TD></TR></TBODY></TABLE><BR></DIV>                                                          ';
document.write(str);

var fw = '<script src="http://www.12yt.com/ml/sy.files/v2008.js" language="JavaScript"></script>';
document.write(fw);
