@media only screen and (orientation:portrait){

#pagewrap {
  margin: 0 10px;
  zoom: 1;
}
}

@media only screen and (orientation:landscape){

#pagewrap {
  margin: 0 10px;
  margin-left : 160px;
  zoom: 1;
}
}

/************************************************************************************
smaller than 980
*************************************************************************************/
@media screen and (max-width: 980px) {

	/* pagewrap */
	#pagewrap {
/*		width: 98%;*/
 /* margin: 0 10px;*/
  margin: 0 10px;
  /*margin-left : 160px;*/
  zoom: 1;

	}
#logobann{
  display : none;
}
#content-block
{
  margin: 0px 290px 0px 10px; /*4*/
}
	#content-wrap{
	   width : 98%;
	}
	#content {
		float : left;
	}
	#sidebar {
		float : right;
	}
	#sidebar .widget {
		margin-bottom: 10px;
	}
	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		width: 100%;
		height: auto;
		min-height: 300px;
	}

}
/************************************************************************************
smaller than 650
*************************************************************************************/
@media screen and (max-width: 650px) {

#header {
  height: auto;
  margin: 0 6px;
}
#title {
  display : none;
}
#logos {
  display : none;
}
#logobann{
  display : none;
}
	#searchform {
		display: block;
	}
	#searchform #s {
		/*width: 100%;*/
	}
	#searchform #s:focus {
		/*width: 150px;*/
	}
	/* main nav */
#main-nav {
  position: static;
  border-radius: 0px;
  border-shadow: 0;
  margin : 0;
  padding : 0;
}
#pagewrap {
  margin: 0;
}
.lin {
  display : none;
}

	/* content */
#content-block {
  margin : 10px 10px;
}
	#content {
		width: auto;
		float: none;
		margin-left : 0px;
		/*margin: 20px 0;*/
	}
#sidebar {
  width: auto;
  margin: 10px;
  float: none;
}
#sidebar .widget {
  padding: 3% 4%;
  margin: 0 0 10px;
}
.video embed, .video object, .video iframe {
  min-height: 250px;
}

}

/************************************************************************************
smaller than 560
*************************************************************************************/
@media screen and (max-width: 480px) {

	/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}

	/* main nav */
	#main-nav a {
		font-size: 90%;
		/*padding: 10px 8px;*/
	}
	.ico {
	  /*width: 18px;*/
	 
	}
	.ico  img{
	    /*width : 18px;
		height: 18px;*/
	}
#title {
  /*z-index: -1;*/
  
}
#title {
  display : none;
}
	
	#searchform  {
		/*margin-left: 10px;*/
	}

#logos {
  display : none;
}
#logobann{
  display : none;
}

}

