﻿var menuico = eval("[{\"name\":\"商务中心\",\"ico\":\"http://www.luyuan.cn/html/images/ico1.png\",\"other\":\"欢迎使用绿源商务中心！请选按照您的网络环境切换系统\",\"href\":[{\"name\":\"电信线路\",\"href\":\"http://122.226.37.242/\"},{\"name\":\"网通线路\",\"href\":\"http://60.12.144.195:8080\"}]},{\"name\":\"在线办公\",\"ico\":\"http://www.luyuan.cn/html/images/ico2.png\",\"other\":\"欢迎使用绿源OA系统！请选按照您的网络环境切换系统\",\"href\":[{\"name\":\"电信线路\",\"href\":\"http://122.226.37.242:82/\"},{\"name\":\"新版\",\"href\":\"http://122.226.37.244:88/\"}]},{\"name\":\"分销系统\",\"ico\":\"http://www.luyuan.cn/html/images/ico3.png\",\"other\":\"欢迎使用绿源分销系统！请选按照您的网络环境切换系统\",\"href\":[{\"name\":\"电信线路\",\"href\":\"http://drp.luyuan.cn//\"},{\"name\":\"网通线路\",\"href\":\"http://60.12.144.195\"}]},{\"name\":\"进销存\",\"ico\":\"http://www.luyuan.cn/html/images/ico4.png\",\"other\":\"欢迎使用绿源在线进销存系统！请选按照您的网络环境切换系统\",\"href\":[{\"name\":\"电信线路\",\"href\":\"http://jxc.luyuan.cn:8080/\"},{\"name\":\"网通线路\",\"href\":\"http://60.12.144.195:9090/\"}]}]");
var time;
function bntonclick(str){
	$(".zezhao").fadeTo("fast",0.7,function(){

clearTimeout(time);
	 var wx11 = (($(window).width()-249) / 2 );
     var wx12 = (($(window).height()-190) / 2 );
	var  nc;
	$(".ui_boxy").detach();
	jQuery.each( menuico, function(i, field){
		if (field.name == str){
			nc = "<div class=\"ui_boxy\" style=\"display: block; width: 380px; left: "+wx11+"px; top: "+wx12+"px; z-index: 300019; height: 249px; \">"
  +"<div style=\"position:relative; z-index:1; height:0px;\">"
    +"<div class=\"ui_boxyClose\" id=\"ui_boxyClose_1304642352626\" onclick=\"ck()\" ></div>"
  +"</div>"
  +"<div class=\"ui_boxyWrapper\" id=\"ui_boxyWrapper_1304642352626\">"
    +"<div id=\"login_window_content_area\" class=\"login_content_area\">"
      +"<div class=\"login_logo\"><img src=\""+field.ico+"\"  /><h2>"+field.name+"</h2></div>"
      +"<div class=\"login_window_wrap\">"+field.other
      +"</div><div class=\"butt\">"
	  jQuery.each( field.href, function(i, fields){
		 nc = nc + "<a href=\""+fields.href+"\">"+fields.name+"</a>"
		  })
      
    nc = nc+ "</div></div>"
  +"</div>"
+"</div>"
			}
		});
	 $(".batop_c").empty();
	 $("body").append(nc);
	 });
	}
function ck(){
	$(".zezhao").fadeOut("fast",function(){$(".ui_boxy").detach();})}
$(document).ready(function() {
	jQuery.each( menuico, function(i, field){
  	$(".f_left").append("<a href=\"javascript:bntonclick('"+field.name+"');\"><img src=\""+field.ico+"\" width=\"32\" height=\"32\" /><span>"+field.name+"</span></a>");
});

	$("#but_1 img").mousemove(function() {
		$("#but_1 img").css({"left": "-160px"});
		$("#but_2 img").css({"left": "0px"});
		$("#but_3 img").css({"left": "0px"});
		})
	$("#but_2 img").mousemove(function() {
		$("#but_2 img").css({"left": "-160px"});
		$("#but_1 img").css({"left": "0px"});
		$("#but_3 img").css({"left": "0px"});
		})
	$("#but_3 img").mousemove(function() {
		$("#but_3 img").css({"left": "-160px"});
		$("#but_2 img").css({"left": "0px"});
		$("#but_1 img").css({"left": "0px"});
		})
	$("#but_3 img,#but_2 img,#but_1 img").mouseout(function() {
		$("#but_2 img").css({"left": "0px"});
		$("#but_1 img").css({"left": "0px"});
		$("#but_3 img").css({"left": "0px"});
		})
		//$(".background").append("<a href=\"http://www.luyuan.cn/html/zhuanti/toupiao/index.html\"  target=\"_blank\"><img src=\"html/images/dds.jpg\" width=\"105\" height=\"235\" style=\" position: absolute; right:-110px; top:120px; \" border=\"0\" /></a>"+"<a href=\"http://www.luyuan.cn/html/zhuanti/toupiao/index.html\"  target=\"_blank\"><img src=\"/html/images/dds.jpg\" width=\"105\" height=\"235\" style=\" position: absolute; left:-110px; top:120px; \" border=\"0\" /></a>");
     setTimeout(function() {
		 $(".batop_c").html("<br /><br /><br /><br />　　　　视频载入中　<img src=\"/html/images/loading17.gif\" width=\"16\" height=\"16\" />");
		 time = setTimeout(function() {
        $(".batop_c").html("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\"  width=\"160\" height=\"120\" id=\"FlashID\" align=\"middle\" style=\"z-index: -999\" ><param name=\"allowScriptAccess\" value=\"Always\" /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"/html/swf/ggxs.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\" /><embed src=\"/html/swf/ggxs.swf\" quality=\"high\"  width=\"160\" height=\"120\" name=\"FlashID\" align=\"middle\" allowscriptaccess=\"Always\" allowfullscreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\" /></object>");
    }, 5000)}, 0)
});

