/**
 * @author Riley 2009.12
 *
**/
//英文版通用样式

var loginSrc = new Array("/en/login/perlogin.html","https://ebank.spdb.com.cn/per/en/basic/firstlogin.jsp");


$(function() {
	var heights = $("#content").height();
	$(".con_left").height(heights);
	
	/** 登录效果 **/
	var LI = $("#login > li").find("a"); 

	LI.mouseover( function() { 
	if (LI.is(":animated")) {LI.stop()};
		$(this).css("background-position","0 -48px")
		$(this).animate({ opacity: '1' }, 10); 
		$(this).parent().siblings("li").find("a").animate({ opacity: '0.3' }, 500); 
		 } ); 
	
	LI.mouseout( function() { 
		if (LI.is(":animated")) { LI.stop(); }; 
 		$(this).css("background-position","0 0");
		LI.animate({ opacity: '1' }, 10); 
		//LI.stop();
		 } ); 
	
	LI.each(function(i){
	
		$(this).click( function() { 
								
				window.open(loginSrc[i]);
				
			});
						  
		} ); 



//表格
$.fn.tables=  function(){		
		
		$("table").each(function(i){
			
			$(this).find("tr").each(function(j){
			
				
				if(j!=0){
	
					this.style.backgroundColor=['#f7fbfe','#f0faff'][j%2];
				}; 
			});
		});  

}

$("#foot").html("Shanghai Pudong Development Bank copyright 2006-2008 All rights Reserved.<br/>Address: No. 12, East Zhongshan Road, Shanghai Tel.: 86-21-61618888 Fax: 86-21-63232036 Customer Service Hotline: 95528")



});

function openwin(url,dheight,dwidth)
{
	if(url == "inrate.html"){
		window.open("/per2008/rate/inrate.html");
	}else if(url == "/inrate.html"){
		window.open("/per2008/rate/inrate.html");
	}else{
		window.open (url,"newwindow","height="+dheight+",left=0,top=0, width="+dwidth+", toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no");
	}
}
//页面调用弹出窗口，公共通用//
function openwindow(url)
{window.open (url,"newwindow1","left=0,top=0, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no");
}