﻿// JavaScript Document
function ycfcwlogin() {
    $("#top_head_con").html("正在加载登录信息...");
    $.ajax({
        type: "GET",
        url: "islogin.aspx",
        data: "u=" + Math.random(),
        success: function (msg) {
            ycfcw_login(msg);
        }
    });
}
function ycfcw_login(msg) {
    $("#top_head_con").html(msg);
}

function qqonline() {
    $(".index_qq").html("正在加载客服信息...");
    $.ajax({
        type: "GET",
        url: "qqonline.aspx",
        data: "u=" + Math.random(),
        success: function(msg) {
            ajaxqq(msg);
        }
    });
}
function ajaxqq(msg) {
    $(".index_qq").html(msg);
}

function yhwhouse() {
    $("#contactArea").html("正在加载商丘楼盘...");
    $.ajax({
        type: "GET",
        url: "yhwhouse.aspx",
        data: "u=" + Math.random(),
        success: function (msg) {
            ajaxhouse(msg);
        }
    });
}
function ajaxhouse(msg) {
    $("#contactArea").html(msg);
}

function footpic() {
    $("#footpic").html("正在加载底部信息...");
    $.ajax({
        type: "GET",
        url: "footpic.aspx",
        data: "u=" + Math.random(),
        success: function (msg) {
            ajaxfootpic(msg);
        }
    });
}
function ajaxfootpic(msg) {
    $("#footpic").html(msg);
}

function ajaxl() {
	        $("#login_index").html("<div class='loading1'>正在加载...</div>");
	        $.ajax({
	            type: "GET",
	            url: "../isloginindex.aspx",
	            data: "u=" + Math.random(),
	            success: function (msg) {
	                ajaxlogin(msg);
	            }
	        });
	    };
	    function ajaxlogin(msg) {
	        $("#login_index").html(msg);
	    };

	    $(function () {
	        $(".main_piece1_left_main ul li").hover(
                function () {
                    $(this).addClass("li2");
                },
                function () {
                    $(this).removeClass("li2");
                }
            );
	        $(".main_piece1_left_main2 ul li").hover(
                function () {
                    $(this).addClass("li5");
                },
                function () {
                    $(this).removeClass("li5");
                }
            );
	        $(".main_piece1_left_main3 li").hover(
                function () {
                    $(this).addClass("li3");
                },
                function () {
                    $(this).removeClass("li3");
                }
            );
	        $(".main_piece1_left_main4 ul li").hover(
                function () {
                    $(this).addClass("li4");
                },
                function () {
                    $(this).removeClass("li4");
                }
            );
	    });


$(function () {
            $("#YHWbutton").click(function () {
                dialog("商丘房产网(www.sqfang.com) - 商丘楼盘", "id:popupContact", "760px", "auto", "id");
            });
        });

