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://download.skype.tom.com/Tom-SkypeSetup.exe";

	//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 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://skype.tom.com/images/5_01.gif" width=13></TD>                     '+

'    <TD background=http://skype.tom.com/images/5_03.gif>                                                             '+

'      <DIV align=center><STRONG>Online Support:</STRONG>                                                                   '+

'     <A class=greylink  href="skype:skypekefu22?call"  onclick="return skypeCheck();">skypekefu22</A><A           '+

'      href="callto://skypekefu22" onclick="return skypeCheck();"><IMG height=20                                    '+

'      src="http://mystatus.skype.com/smallclassic/skypekefu22" width=114 align=absMiddle border=0 alt="呼叫客服"></A>               '+

//'      src="http://skype.tom.com/image/online.png" width=114 align=absMiddle border=0 alt="呼叫客服"></A>               '+

'     <A class=greylink  href="skype:tomonline22?call"   onclick="return skypeCheck();">tomonline22</A><A           '+

'      href="callto://tomonline22" onclick="return skypeCheck();"><IMG height=20                                    '+

'      src="http://mystatus.skype.com/smallclassic/tomonline22" width=114 align=absMiddle                             '+

'      border=0 alt="呼叫客服"></A> <A class=greylink                                                                                '+

'      href="skype:tomskype22?call"   onclick="return skypeCheck();">tomskype22</A><A                               '+

'      href="callto://tomskype22" onclick="return skypeCheck();"><IMG height=20                                     '+

'      src="http://mystatus.skype.com/smallclassic/tomskype22" width=114 align=absMiddle                              '+

'      border=0 alt="呼叫客服"></A>																						 '+

*/

'<DIV style="padding-top:8px;text-align:center">　E-Mail: skype@bj.tom.com　[<A class=greylink                                                      '+

'      href="http://bbs.skype.tom.com/f_155.html" target=_blank>论坛</A>]  [<A class=greylink                                                                     '+

'      href="http://skype.tom.com/newhelp/index.html" target=_blank>帮助</A>]</DIV></DIV></TD>                                           '+

//'    <TD width=13><IMG height=61 alt="" src="http://skype.tom.com/images/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.tomgroup.com/gb/"                                                        '+

'      target=_blank>TOM集团</A>　　<A href="http://www.tom.com/about/about_news.htm"                                 '+

'      target=_blank>TOM在线</A>　　<A                                                                                '+

'      href="http://www.tom.com/about/about_adv_1.htm" target=_blank>广告服务</A>　　<A                               '+

'      href="http://www.tom.com/about/about_pri_1.htm" target=_blank>私隐政策</A>　　<A                               '+

'      href="http://www.tom.com/about/about_hr.htm" target=_blank>TOM招聘</A>　　<A                                   '+

'      href="http://www.tom.com/about/about_contact_1.htm"                                                            '+

'      target=_blank>联系我们</A>　　<A href="http://ir.tom.com/" target=_blank>About                                 '+

'      TOM Online</A><BR>Copyright &copy; 2009 雷霆万钧 版权所有<BR><a href="http://www.bj.cyberpolice.cn/index.htm"  target=_blank>网络110报警服务站</a></DIV></TD>                                      '+

'    <TD width=13>&nbsp;</TD></TR></TBODY></TABLE><BR></DIV>                                                          ';

document.write(str);