﻿$(document).ready(function () {				
    $(".yourloc a").mouseover(function (event) {
        $(".yourloc a").css({ background: "", color: "#666" });
        $(this).css({ background: "#699", color: "#fff" });
		event.stopPropagation();
    });
    $(".yourloc a").mouseout(function (event) {
        $(this).css({ background: "", color: "#666" });
		event.stopPropagation();
    });
    $("p.yourloc").mouseout(function () {
        $(".yourloc a:eq(3)").css({ background: "#699", color: "#fff" });
    });
    $("#syscont table tbody tr:odd").addClass('oddtr');
    $("#syscont table tbody tr:even").addClass('eventr');
    $("#syscont table tbody tr td:odd").addClass('oddtd');
    $("#syscont table tbody tr td:even").addClass('eventd');
	$("#androida").mouseover(function(){
								   $(this).css("text-decoration",'underline');
								   });
	$("#neta").mouseover(function(){
								   $(this).css("text-decoration",'underline');
								   });
	$("#androida").mouseout(function(){
								   $(this).css("text-decoration",'none');
								   });
	$("#neta").mouseout(function(){
								   $(this).css("text-decoration",'none');
								   });
    $("#androida").bind("click", function () {
        if (document.getElementById("androidtable") == null) {
        //if ($('#javatable')[0].length > 0) {
			$("#neta").empty();
			$("#neta").html('查看.Net课程');
			$("#androida").empty();
			$("#androida").html('android手机软件开发课程');
			$("#iphonea").empty();
			$("#iphonea").html('查看iPhone手机软件开发课程');
			$(this).css({color:"#fff"});
			$(this).css("background-image",'url(../images/trainsys/pidx.jpg)');
			$(this).css("font-weight",'bold');
			$(this).css("border",'1px solid #069');
			$("#neta").css({color:"#333"});
			$("#neta").css("background-image",'');
			$("#neta").css("font-weight",'normal');
			$("#neta").css("border",'1px solid #999');
			$("#iphonea").css({color:"#333"});
			$("#iphonea").css("background-image",'');
			$("#iphonea").css("font-weight",'normal');
			$("#iphonea").css("border",'1px solid #999');
            $('#syscont').load("http://www.gemptc.com/androidcourse.html", function () {
                $('#syscont h3').addClass('javah3');
                $('#syscont table tbody tr:odd').addClass('javaoddtr');
                $('#syscont table tbody tr:even').addClass('javaeventr');
                $('#syscont table tbody tr td:odd').addClass('javaoddtd');
                $('#syscont table tbody tr td:even').addClass('eventd');
            });
        }
        else
		{
		}
    });
    $("#neta").bind("click", function () {
        if (document.getElementById("nettable") == null) {
        //if ($('#nettable')[0].length > 0) {
			$("#neta").empty();
			$("#neta").html('.Net实训课程');
			$("#androida").empty();
			$("#androida").html('查看android手机软件开发课程');
			$("#iphonea").empty();
			$("#iphonea").html('查看iPhone手机软件开发课程');
			$(this).css({color:"#fff"});
			$(this).css("background-image",'url(../images/trainsys/pidx.jpg)');
			$(this).css("font-weight",'bold');
			$(this).css("border",'1px solid #069');
			$("#androida").css({color:"#333"});
			$("#androida").css("background-image",'');
			$("#androida").css("font-weight",'normal');
			$("#androida").css("border",'1px solid #999');
			$("#iphonea").css({color:"#333"});
			$("#iphonea").css("background-image",'');
			$("#iphonea").css("font-weight",'normal');
			$("#iphonea").css("border",'1px solid #999');
            $("#syscont").load("http://www.gemptc.com/netcourse.html", function () {
                $("#syscont table tbody tr:odd").addClass('oddtr');
                $("#syscont table tbody tr:even").addClass('eventr');
                $("#syscont table tbody tr td:odd").addClass('oddtd');
                $("#syscont table tbody tr td:even").addClass('eventd');
            });
        }
        else
		{
		}
    });
    $("#iphonea").bind("click", function () {
        if (document.getElementById("iphonetable") == null) {
        //if ($('#nettable')[0].length > 0) {
			$("#neta").empty();
			$("#neta").html('查看.Net实训课程');
			$("#androida").empty();
			$("#androida").html('查看android手机软件开发课程');
			$("#iphonea").empty();
			$("#iphonea").html('iPhone手机软件开发课程');
			$(this).css({color:"#fff"});
			$(this).css("background-image",'url(../images/trainsys/pidx.jpg)');
			$(this).css("font-weight",'bold');
			$(this).css("border",'1px solid #069');
			$("#androida").css({color:"#333"});
			$("#androida").css("background-image",'');
			$("#androida").css("font-weight",'normal');
			$("#androida").css("border",'1px solid #999');
			$("#neta").css({color:"#333"});
			$("#neta").css("background-image",'');
			$("#neta").css("font-weight",'normal');
			$("#neta").css("border",'1px solid #999');
            $("#syscont").load("http://www.gemptc.com/iphonecourse.html", function () {
                $("#syscont table tbody tr:odd").addClass('oddtr');
                $("#syscont table tbody tr:even").addClass('eventr');
                $("#syscont table tbody tr td:odd").addClass('oddtd');
                $("#syscont table tbody tr td:even").addClass('eventd');
            });
        }
        else
		{
		}
    });
});
