/* style for template-a */
#main.template-a #content-1 {
	width: 280px;
	margin-right:60px;
}
#main.template-a #content-2 {
	width: 280px;
	margin-right:60px;
}
#main.template-a #content-3 {
	width: 280px;
	margin-right:0px;
}

/* style for template-b */
#main.template-b #content-1 {
	width: 450px;
	margin-right:60px;
}
#main.template-b #content-2 {
	width: 450px;
	margin-right:0px;
}

/* style for template-c */
#main.template-c #content-1 {
	width: 450px;
	margin-right:60px;
}
#main.template-c #content-2 {
	width: 450px;
	margin-right:0px;
}
#main.template-c .lower-panel {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}

/* style for template-d */
#main.template-d #content-1 {
	width: 450px;
	margin-right:60px;
}
#main.template-d #content-2 {
	width: 450px;
	margin-right:0px;
}
#main.template-d .lower-panel {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}

/* style for template-e */
#main.template-e #content-1 {
	width: 280px;
	margin-right:60px;
}
#main.template-e #content-2 {
	width: 280px;
	margin-right:60px;
}
#main.template-e #content-3 {
	width: 280px;
	margin-right:0px;
}
#main.template-e .lower-panel {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}

/* style for template-f */
#main.template-f #content-1 {
	width: 650px;
	margin-right:60px;
}
#main.template-f #content-2 {
	width: 250px;
	margin-right:0px;
}

/* style for template-g */
#main.template-g #content-1 {
	width: 650px;
	margin-right:60px;
}
#main.template-g #content-2 {
	width: 250px;
	margin-right:0px;
}
#main.template-g .lower-panel {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}

/* style for template-h */
#main.template-h #content-1 {
	width: 650px;
	margin-right:60px;
}
#main.template-h #content-2 {
	width: 250px;
	margin-right:0px;
}
#main.template-h .lower-panel {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}

/* style for template-i */
#main.template-i .content.upper {
	width: 650px;
	margin-right:60px;
	float:left;
}
#main.template-i .sidebar {
	width: 250px;
	margin-right:0px;
	float:left;
}

/* style for template-j */
#main.template-j .content.upper {
	width: 650px;
	margin-right:60px;
	float:left;
}
#main.template-j .sidebar {
	width: 250px;
	margin-right:0px;
	float:left;
}
#main.template-j .lower-panel {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}

/* style for template-k */
#main.template-k .content.upper {
	width: 650px;
	margin-right:60px;
	float:left;
}
#main.template-k .sidebar {
	width: 250px;
	margin-right:0px;
	float:left;
}
#main.template-k .lower-panel {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}

/* style for template-l */
#main.template-l .content.upper {
	width: 650px;
	margin-right:60px;
	float:left;
}
#main.template-l .sidebar {
	width: 250px;
	margin-right:0px;
	float:left;
}

/* style for template-m */
#main.template-m .lower-panel.three-panels {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-m .lower-panel.two-panels {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-m .portfolio-item-wrapper {
	width:280px;
	margin-right:60px;
	margin-bottom:60px;
	float:left;
}
#main.template-m .portfolio-item-wrapper.right-most {
	margin-right:0px;
}
#main.template-m h1.pagetitle {
	padding-left:60px;
	background:url(../images/portfolio.png) no-repeat 0px 4px;
}

/* style for template-n */
#main.template-n .lower-panel.three-panels {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-n .lower-panel.two-panels {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-n .portfolio-item-wrapper {
	width:280px;
	margin-right:60px;
	margin-bottom:60px;
	float:left;
}
#main.template-n .portfolio-item-wrapper.right-most {
	margin-right:0px;
}
#main.template-n h1.pagetitle {
	padding-left:60px;
	background:url(../images/portfolio.png) no-repeat 0px 4px;
}


/* style for template-o */
#main.template-o .lower-panel.three-panels {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-o .lower-panel.two-panels {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-o .portfolio-item-wrapper {
	width:450px;
	margin-right:60px;
	margin-bottom:40px;
	float:left;
}
#main.template-o .portfolio-item-wrapper.right-most {
	margin-right:0px;
}
#main.template-o h1.pagetitle {
	padding-left:60px;
	background:url(../images/portfolio.png) no-repeat 0px 4px;
}

/* style for template-p */
#main.template-p .lower-panel.three-panels {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-p .lower-panel.two-panels {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-p .portfolio-item-wrapper {
	width:450px;
	margin-right:60px;
	margin-bottom:40px;
	float:left;
	line-height:2.1em;
	font-size:1.2em;
}
#main.template-p .portfolio-item-wrapper.right-most {
	margin-right:0px;
}
#main.template-p h1.pagetitle {
	padding-left:60px;
	background:url(../images/portfolio.png) no-repeat 0px 4px;
}

/* style for template-q */
#main.template-q .lower-panel.three-panels {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-q .lower-panel.two-panels {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-q .portfolio-item-wrapper {
	width:100%;
	margin-bottom:40px;
	float:left;
	line-height:2.1em;
	font-size:1.2em;
}
#main.template-q h1.pagetitle {
	padding-left:60px;
	background:url(../images/portfolio.png) no-repeat 0px 4px;
}

/* style for template-r */
#main.template-r .lower-panel.three-panels {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-r .lower-panel.two-panels {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-r .portfolio-item-wrapper {
	width:450px;
	margin-right:60px;
	margin-bottom:40px;
	float:left;
	line-height:2.1em;
	font-size:1.2em;
}
#main.template-r .portfolio-item-wrapper.right-most {
	margin-right:0px;
}
#main.template-r h1.pagetitle {
	padding-left:60px;
	background:url(../images/portfolio.png) no-repeat 0px 4px;
}

/* style for template-s */
#main.template-s .content.upper {
	width: 650px;
	margin-right:60px;
	float:left;
}
#main.template-s .sidebar {
	width: 250px;
	margin-right:0px;
	float:left;
}
#main.template-s .lower-panel.three-panels {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-s .lower-panel.two-panels {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.template-s h1.pagetitle {
	padding-left:60px;
	background:url(../images/email.png) no-repeat 0px 4px;
}

/* style for template-t */


/* style for template-u */
#main.template-u .lower-panel {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}

/* style for template-v */
#main.template-v .lower-panel {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}

/* style for blog */
#main.blog .content.upper {
	width: 650px;
	margin-right:60px;
	float:left;
	overflow:hidden;
}
#main.blog .sidebar {
	width: 250px;
	margin-right:0px;
	float:left;
}
#main.blog .lower-panel.three-panels {
	width:298px;
	margin-right:30px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.blog .lower-panel.two-panels {
	width: 448px;
	margin-right:60px;
	border:1px solid;
	margin-bottom:40px;
	float:left;
}
#main.blog h1.pagetitle {
	padding-left:60px;
	margin-bottom:10px;
	background:url(../images/blog_large.png) no-repeat 0px 4px;
}
*:first-child+html #main.blog h1.pagetitle {
	line-height:40px;
	margin-bottom:0px;
}

/* style for page */
#main.page .content.upper {
	width: 650px;
	margin-right:60px;
	float:left;
}
#main.page .sidebar {
	width: 250px;
	margin-right:0px;
	float:left;
}