/* 此Layout需搭配color.css互相作用 */

/* ----------【標準文字樣式】-------------- */
div, table {
	COLOR: #333333; /* 文字顏色 */
	font-size: 12px; /* 文字大小 */
}

/* ----------【山頭區塊】-------------- */
#header {
	height: 120px; /* 高度 */
	margin-bottom: 10px; /* 山頭的邊界 */
}

/* ----------【山頭】頂線-------------- */
#header_top {
	position: absolute; /* 絕對定位(以"山頭區塊"左上角為基準點) */
	height: 2px; /* 線條高度 */
	background: #114091; /* 線條背景顏色 */
}

/* ----------【城邦共用導覽列】-------------- */
#header_top, #header_common_left, #header_common_main, #header_common_main_bg, #header_common_line, #header_common_right{
	visibility: visible; /* 顯示與否設定 */
}

/* ----------【城邦共用導覽列連結】-------------- */
#header_common a {
	color: #FFFFFF;  /* 連結文字的顏色  */
	text-decoration: none; /* 滑鼠移到連結上時，不要底線 */
}

/* ----------【城邦共用導覽列下拉選單】-------------- */
.chapter {
	width: 100%; /* 寬度 */
	border: 1px solid #B3CCE6; /* 線框 */
	background-color: #EBF2F8; /* <SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var no = 8; // number of hearts
var speed = 20; // smaller number moves the hearts faster
var heart = "PICTURE NAME.gif";
var flag;
var ns4up = (document.layers) ? 1 : 0; // browser sniffer
var ie4up = (document.all) ? 1 : 0;

var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
amx = new Array();
amy = new Array();
stx = new Array();
sty = new Array();
flag = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-30)+10; // set position variables
yp[i] = Math.random()*doc_height;
amy[i] = 12+ Math.random()*20; // set amplitude variables
amx[i] = 10+ Math.random()*40;
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
flag[i] = (Math.random()>0.5)?1:0;
if (ns4up) { // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(heart+ "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(heart+ "\" border=\"0\"></layer>");
}
} else
if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(heart+ "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(heart+ "\" border=\"0\"></div>");
}
}
}

function snowNS() { // Netscape main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
if (yp[i] > doc_height-50) {
xp[i] = 10+ Math.random()*(doc_width-amx[i]-30);
yp[i] = 0;
flag[i]=(Math.random()<0.5)?1:0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
if (flag[i])
dx[i] += stx[i];
else
dx[i] -= stx[i];
if (Math.abs(dx[i]) > Math.PI) {
yp[i]+=Math.abs(amy[i]*dx[i]);
xp[i]+=amx[i]*dx[i];
dx[i]=0;
flag[i]=!flag[i];
}
document.layers["dot"+i].top = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i]));
document.layers["dot"+i].left = xp[i] + amx[i]*dx[i];

}
setTimeout("snowNS()", speed);
}

function snowIE() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
if (yp[i] > doc_height-50) {
xp[i] = 10+ Math.random()*(doc_width-amx[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
flag[i]=(Math.random()<0.5)?1:0;
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
if (flag[i])
dx[i] += stx[i];
else
dx[i] -= stx[i];
if (Math.abs(dx[i]) > Math.PI) {
yp[i]+=Math.abs(amy[i]*dx[i]);
xp[i]+=amx[i]*dx[i];
dx[i]=0;
flag[i]=!flag[i];
}

document.all["dot"+i].style.pixelTop = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i]));
document.all["dot"+i].style.pixelLeft = xp[i] + amx[i]*dx[i];
}
setTimeout("snowIE()", speed);
}

if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script> 

*/




}
.chapter-point {
	color: #4D4D4D; /* 文字顏色 */
}
.chapter-line {
	background-color: #D8E5F2; /* 分隔線顏色 */
}

/* ----------【城邦共用導覽列】下拉選單連結-------------- */
.chapter-text, a.chapter-text:link, a.chapter-text:hover, a.chapter-text:visited {
	color: #274D74; /* 連結文字的顏色 */
}

/* ----------【山頭】連結-------------- */
#header a:link, #header a:visited  {
	text-decoration: none;  /* 連結文字的樣式 */
}
#header a:hover {
	text-decoration: underline;  /* <SCRIPT LANGUAGE="JavaScript">
var images='PICTURE NAME.gif';
var amount=7;
var speed=1;
var RunTime = 0;
var cntr=0;
var xcntr=100;
var pulse=25;
var Xpos = 0;
var Ypos = 0;
var _y;
var temp;

/*當使用不同圖蛃?圖案繞著滑鼠的中心點會改變. 
調整以下兩個參數來校正中心點*/
var UpDown=-10;
var LeftRight=-5;

if (document.all){
document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">');
document.write('<div id="c" style="position:relative">');
for (n=0; n < amount; n++)
document.write('<img src="'+images+'" style="position:absolute;top:0px;left:0px;visibility:hidden">');
document.write('</div>');
document.write('</div>');

function FollowMouse(){
Xpos = document.body.scrollLeft+event.x+UpDown;
Ypos = document.body.scrollTop+event.y+LeftRight;
}
document.onmousemove = FollowMouse;
}

else if (document.layers){
window.captureEvents(Event.MOUSEMOVE);
function xFollowMouse(evnt){
Xpos = evnt.pageX+UpDown;
Ypos = evnt.pageY+LeftRight;
}
window.onMouseMove = xFollowMouse;
for (ns=0; ns < amount; ns++) 
document.write("<LAYER NAME='n"+ns+"' LEFT=0 TOP=0 VISIBILITY=HIDE><IMG SRC='"+images+"'></LAYER>");
}


function msi(){
if (document.layers){
for ( i = 0 ; i < ns ; i++ )
{
temp="n"+i
document.layers[0].visibility='show';
document.layers[0].top = Ypos+cntr*Math.cos((RunTime+i*4.5)/5);
document.layers[0].left =Xpos+cntr*Math.sin((RunTime+i*4.5)/5);
}
cntr+=1;
RunTime+=speed;
stp=setTimeout('msi()',10);
if (cntr>=100)
{
cntr=100;
speed=2.5;
for ( i = 0 ; i < ns ; i++ )
{
temp="n"+i
document.layers[temp].visibility='show';
document.layers[temp].top=Ypos+cntr*Math.cos((RunTime-100)*i/90);
document.layers[temp].left=Xpos+cntr*Math.sin((RunTime-100)*i/90);
}
}
if (RunTime>182)
{
speed=0.5;
for ( i = 0 ; i < ns ; i++ )
{
temp="n"+i
document.layers[temp].top=Ypos+xcntr*Math.cos(((RunTime-182)+i*4.5)/5);
document.layers[temp].left=Xpos+xcntr*Math.sin(((RunTime-182)+i*4.5)/5)*Math.cos((RunTime-182)/5);
}
}
}



else if (document.all){
for (i=0;i<ieDiv.all.c.all.length;i++)
{
ieDiv.all.c.all[0].style.visibility='visible';
ieDiv.all.c.all[0].style.top=Ypos+cntr*Math.cos((RunTime+i*4.5)/5);
ieDiv.all.c.all[0].style.left=Xpos+cntr*Math.sin((RunTime+i*4.5)/5);
} 
cntr+=1;
RunTime+=speed;
stp=setTimeout('msi()',10);
if (cntr>=100)
{
cntr=100;
speed=2.5;
for (i=0;i<ieDiv.all.c.all.length;i++)
{
ieDiv.all.c.all[i].style.visibility='visible';
ieDiv.all.c.all[i].style.top=Ypos+cntr*Math.cos((RunTime-100)*i/90);
ieDiv.all.c.all[i].style.left=Xpos+cntr*Math.sin((RunTime-100)*i/90);
}
}
if (RunTime>182)
{
speed=0.5;
for (i=0;i<ieDiv.all.c.all.length;i++)
{
ieDiv.all.c.all[i].style.top=Ypos+xcntr*Math.cos(((RunTime-182)+i*4.5)/5);
ieDiv.all.c.all[i].style.left=Xpos+xcntr*Math.sin(((RunTime-182)+i*4.5)/5)*Math.cos((RunTime-182)/5);
}
}
}
if (RunTime>210)
{
xcntr-=10;
}
if (document.layers)
_y=-window.innerWidth-90;
else if (document.all)
_y=-document.body.clientWidth-90;
if (xcntr <= _y)
{
RunTime=0;
speed=1;
cntr=0;
xcntr=100;
}
}
msi()
//-->
</script> */
}

/* ----------【山頭】網誌logo定位-------------- */
#header_logo {
	position: absolute; /* 絕對定位(以"山頭區塊"左上角為基準點) */
	left: 10px; /* x座標 */
	top: 39px; /* y座標 */
}

/* ----------【山頭】網誌名稱-------------- */
#header_name {
	position: absolute; /* 絕對定位(以"山頭區塊"左上角為基準點) */
	left: 10px; /* x座標 */
	top: 12px; /* y座標 */
	color: #000000; /* 文字顏色 */
	font-size: 18px; /* 文字大小 */
	font-weight: bold; /* 文字粗體 */
}

/* ----------【山頭】網誌名稱連結-------------- */
#header_name a {
	color: #000000;  /* 連結文字的顏色 */
}

/* ----------【山頭】網誌簡短網址與作家-------------- */
#header_url {
	position: absolute; /* 絕對定位(以"山頭區塊"左上角為基準點) */
	left: 40px; /* x座標 */
	top: 39px; /* y座標 */
}

/* ----------【山頭】網誌簡短網址與作家連結-------------- */
#header_url a:link, a:visited {
	color: #999999; /* 連結文字的顏色 */
}
#header_url a:hover {
	color: #666666; /* 滑鼠移到上面時的連結文字顏色 */
}


/* ----------【山頭】加入好友、推薦本網誌等...功能列-------------- */
#header_items {
	position: absolute; /* 絕對定位(以"山頭區塊"左上角為基準點) */
	left: 40px; /* x座標 */
	top: 56px; /* y座標 */
}

/* ----------【山頭】加入好友、推薦本網誌等...功能列連結-------------- */
#header_items a {
	color: #6698CC; /* 連結文字的顏色 */
}
#header_items a:hover {
	color: #336599; /* 滑鼠移到上面時的連結文字顏色 */
}

/* ----------【山頭】搜尋區塊-------------- */
#header_search {
	position: absolute; /* 絕對定位(以"山頭區塊"左上角為基準點) */
	left: 560px; /* x座標 */
	top: 50px; /* y座標 */
}
.inputbox { /* 文字輸入框 */
	BORDER-RIGHT: #808080 1px solid;
	BORDER-TOP: #808080 1px solid;
	BORDER-LEFT: #808080 1px solid;
	BORDER-BOTTOM: #808080 1px solid;
}


/* ----------【網誌橫式主選單】-------------- */
/* 網誌橫式主選單的頂線 */
#header_menus_line {
	position: absolute; /* 絕對定位(以"山頭區塊"左上角為基準點) */
	border-top: 1px solid #4180C0; /* 線的高度與顏色樣式 */
	left: 0px; /* x座標 */
	top: 80px; /* y座標 */
	width: 100%; /* 寬度 */
}
/* 網誌橫式主選單的定位 */
#header_menus {
	position: absolute; /* 絕對定位(以"山頭區塊"左上角為基準點) */
	left: 0px; /* x座標 */
	top: 80px; /* y座標 */
	margin-top: 10px; /* 與頂線的邊界間距 */
}
/* 網誌橫式主選單的區塊設定 */
#header_menus ul {
	list-style: none; /* 條列式樣式 */
	margin: 0px; /* 邊界的間距 */
	padding-left: 35px; /* 左側的內距 */
}
/* 網誌橫式主選單的項目設定 */
#header_menus li {
	display: inline; /* 橫式 */
	height: 30px; /* 高度 */
	padding-top: 3px; /* 上側的內距 */
	padding-right: 50px; /* 右側的內距(小圖示與選項文字的間距調適) */
}

/* ----------【網誌橫式主選單】小圖示（欲更換小圖示，請修改url為圖檔所在地的絕對連結）-------------- */
/* 本網誌首頁 */
#home {
	background: url(http://city.udn.com/community/img/user_all/menu_article_h.gif) no-repeat left top;
}
/* 文章創作 */
#article {
	background: url(http://city.udn.com/community/img/user_all/menu_article_h.gif) no-repeat left top;
}
/* 個人相簿 */
#photo {
	background: url(http://city.udn.com/community/img/user_all/menu_photo_h.gif) no-repeat left top;
}
/* 訪客簿 */
#gbook {
	background: url(http://city.udn.com/community/img/user_all/menu_guestbook_h.gif) no-repeat left top;
}
/* 作家簡介 */
#profile {
	background: url(http://city.udn.com/community/img/user_all/menu_detail_h.gif) no-repeat left top;
}
/* 管理中心 */
#manage {
	background: url(http://city.udn.com/community/img/user_all/menu_manage_h.gif) no-repeat left top;
}

/* ----------【網誌橫式主選單】連結-------------- */
#header_menus li a {
	color: #FFFFFF; /* 連結文字的顏色 */
	font-size: 13px; /* 連結文字的大小 */
	padding-left: 18px; /* 左測的內距 */
}
#header_menus a:hover {
	color: #FF7E00; /* 滑鼠移到上面時的連結文字顏色 */
}


/* --------------【直式導覽列】（如需更改浮動定位應與內容區塊配合）------------- */
/* 直式導覽列區塊 */
#sidebar {
	float: left; /* 靠左浮動定位 */
}
/* 直式導覽列大背景 */
.sidebar-bg {
	background-color: #8DB3D9; /* 背景色 */
}
/* 直式導覽列區塊背景 */
.sidebar-panel-bg {
	background-color: #EBF2F8; /* 背景色 */
}


/* -----------------【內容區】（如需更改浮動定位應與直式導覽列區塊配合）--------------------- */
/* 內容區塊 */
#content {
	float: left; /* 靠左浮動定位 */
}

/* 對比色大標題 */
#content .main-topic {
	color: #FFFFFF; /* 文字顏色 */
	font-weight: bold; /* 文字粗體 */
}
#content a.main-topic:link {
	color: #FF7E00; /* 連結文字的顏色 */
	text-decoration: none; /* 連結文字的樣式 */
	font-weight: bold; /* 連結文字粗體 */
}
#content a.main-topic:visited  {
	color: #FF7E00; /* 連結文字的顏色 */
	text-decoration: none; /* 連結文字的樣式 */
	font-weight: bold; /* 連結文字粗體 */
}
/* 深色大標題 */
#content .main-title {
	color: #274D74; /* 文字顏色 */
}
#content a.main-title:link, #content a.main-title:visited {
	text-decoration: none; /* 連結文字的樣式 */
}
#content a.main-title:hover {
	color: #FF7E00;  /* 滑鼠移到上面時的連結文字顏色 */
}
/* 附標、內文 */
#content .main-text {
	color: #4D4D4D; /* 文字顏色 */
}
#content a.main-text:link, #content a.main-text:visited {
	color: #666666; /* 連結文字的顏色 */
	text-decoration: none; /* 連結文字的樣式 */
}
#content a.main-text:hover {
	color: #333333;  /* 滑鼠移到上面時的連結文字顏色 */
}

/* --------------【訪客簿】------------- */
/* 回覆表頭區 */
.gbook-title {
	color:#274D74; /* 文字顏色 */
	background-color: #B3CCE6; /* 背景顏色 */
	padding: 10px 10px 0px; /* 內距 */
}
/* 回覆內容區 */
.gbook-content {
	color: #333333; /* 文字顏色 */
	background-color: #FFFFFF; /* 背景顏色 */
	padding: 5px 10px 5px; /* 內距 */
	margin: 10px; /* 間距 */
}
/* 回覆區塊背景 */
.gbook-bg {
	background-color: #B3CCE6; /* 背景顏色 */
}


































































































































































































































































































































































































































































