Template:Team:NCTU Formosa/header

From 2012.igem.org

(Difference between revisions)
 
(91 intermediate revisions not shown)
Line 6: Line 6:
<meta name="Robots" content="all" />
<meta name="Robots" content="all" />
<meta name="keywords" content="iGEM, NCTU_Formosa, NCTU, Formosa" />
<meta name="keywords" content="iGEM, NCTU_Formosa, NCTU, Formosa" />
 +
<meta property="og:title" content="NCTU Formosa - 2012.igem.org" />
 +
<meta property="og:type" content="website" />
 +
<meta property="og:image" content="https://static.igem.org/mediawiki/2012/d/d1/NctuCapture.jpg" />
 +
<meta property="og:site_name" content="NCTU Formosa - 2012.igem.org"/>
 +
<meta property="og:description" content="The wiki site of 2012 NCTU_Formosa team." />
<style type="text/css">  
<style type="text/css">  
/* http://meyerweb.com/eric/tools/css/reset/ */
/* http://meyerweb.com/eric/tools/css/reset/ */
Line 66: Line 71:
}
}
body {
body {
-
background:url(https://static.igem.org/mediawiki/2012/0/0b/NctuformosaBg.jpg) fixed;
+
background:#666666 url(https://static.igem.org/mediawiki/2012/0/0b/NctuformosaBg.jpg) fixed;
color:#3c3c3c;
color:#3c3c3c;
font:14px Helvetica, Arial, Sans-serif;
font:14px Helvetica, Arial, Sans-serif;
overflow-x:hidden;
overflow-x:hidden;
 +
}
 +
body:before {
 +
          content: "";
 +
          position: fixed;
 +
          top: -10px;
 +
          left: 0;
 +
          width: 100%;
 +
          height: 10px;
 +
 +
          -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
 +
              -moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
 +
                        box-shadow: 0px 0px 10px rgba(0,0,0,.8);
 +
 +
          z-index: 100;
 +
}
 +
::selection {
 +
background:#fc0;
 +
color:#fff;
 +
}
 +
::-moz-selection {
 +
background:#fc0;
 +
color:#fff;
 +
}
 +
::-webkit-selection {
 +
background:#fc0;
 +
color:#fff;
 +
}
 +
@font-face {
 +
  font-family: 'Orienta';
 +
  font-style: normal;
 +
  font-weight: 400;
 +
  src: local('Orienta'), local('Orienta-Regular'), url(http://themes.googleusercontent.com/static/fonts/orienta/v1/nPJ0J30J_zQZtBhztPPbaA.woff) format('woff');
}
}
a {
a {
Line 93: Line 130:
}
}
#title {
#title {
-
width:483px;
+
width:100%;
height:50px;
height:50px;
-
text-indent:-9999px;
+
background:url(https://static.igem.org/mediawiki/2012/0/07/NctuTitle.png) transparent top left no-repeat;
-
background:url(https://static.igem.org/mediawiki/2012/b/b3/Title.png) transparent top left no-repeat;
+
margin-top: 5px;
margin-top: 5px;
margin-left: 3px;
margin-left: 3px;
 +
}
 +
#title span {
 +
text-indent:-9999px;
 +
}
 +
#tmenu {
 +
position: relative;
 +
left: 914px;
 +
width:98px;
 +
height:30px!important;
 +
padding:0;
 +
overflow:hidden;
 +
}
 +
#tmenu li a {
 +
display:block;
 +
width:100%;
 +
text-indent:-9999px;
 +
background:url(https://static.igem.org/mediawiki/2012/7/7c/Topmenu.png) transparent no-repeat 0 0;
 +
}
 +
#tmenu li, #tmenu li a {
 +
display:block;
 +
float: right;
 +
margin-bottom:3px;
 +
}
 +
#tmenu .m1, #tmenu .m1 a {
 +
display:block;
 +
list-style: none;
 +
width:54px;
 +
height:12px;
 +
}
 +
#tmenu .m1 a, #tmenu .m1 a:link {
 +
background-position:0 0;
 +
}
 +
#tmenu .m1 a:hover, #tmenu .m1 a:active {
 +
background-position:-98px 0px;
 +
}
 +
#tmenu .m2, #tmenu .m2 a {
 +
display:block;
 +
list-style: none;
 +
width:98px;
 +
height:12px;
 +
}
 +
#tmenu .m2 a, #tmenu .m2 a.link {
 +
background-position:0 -13px;
 +
}
 +
#tmenu .m2 a:hover, #tmenu .m2 a:active{
 +
background-position:-98px -13px;
}
}
#main-wrapper {
#main-wrapper {
Line 109: Line 191:
width: 100%;
width: 100%;
padding: 0px;
padding: 0px;
-
font:14px Helvetica, Arial, Sans-serif;
+
// font:14px Helvetica, Arial, Sans-serif;
-
 
+
font-size:14px;
-
#eee, 1px -1px 0px #eee;
+
font-family: 'Orienta', sans-serif;
-
font-weight:600;
+
font-weight:500;
}
}
ul {
ul {
-
line-height:1em;
+
line-height:normal;
}
}
-
h1 {
+
h1, h2 {
font:14px Helvetica, Arial, Sans-serif;
font:14px Helvetica, Arial, Sans-serif;
 +
padding-top:0px;
 +
padding-bottom:0px;
 +
border-bottom:0px;
}
}
#footer-wrapper {
#footer-wrapper {
Line 125: Line 210:
}
}
#footer-text {
#footer-text {
 +
width:100%;
margin-top: 10px;
margin-top: 10px;
margin-bottom: 20px;
margin-bottom: 20px;
text-align: right;
text-align: right;
font-size:9px;
font-size:9px;
-
color:#dddddd;
+
color:#333333;
}
}
-
#footer-text a {
+
.emph {
-
color:#dddddd;
+
font-weight:600;
 +
}
 +
#counter, #counter img {
 +
width:1px;
 +
height:1px;
 +
visibility: hidden;
 +
}
 +
.thumbnail {
 +
width:1px;
 +
height:1px;
 +
visibility: hidden;
 +
}
 +
#footer-text a, #footer-text a:hover, #footer-text a:visited {
 +
color:#333333;
text-decoration:underline;
text-decoration:underline;
}
}
#menu {
#menu {
-
width:305px;
+
width:100%;
height:117px!important;
height:117px!important;
padding:0;
padding:0;
Line 146: Line 245:
#menu li, #menu li a {
#menu li, #menu li a {
display:block;
display:block;
-
width:305px;
+
width:250px;
list-style: none;
list-style: none;
}
}
Line 152: Line 251:
width:100%;
width:100%;
text-indent:-9999px;
text-indent:-9999px;
-
background:url(https://static.igem.org/mediawiki/2012/9/99/Menu.png) transparent no-repeat 0 0;
+
background:url(https://static.igem.org/mediawiki/2012/9/9b/Nctumenu.png) transparent no-repeat 0 0;
 +
//-webkit-transition:all 1.0s ease-in-out;
 +
//-moz-transition:all 1.0s ease-in-out;
 +
//o-transition:all 1.0s ease-in-out;
 +
//transition:all 1.0s ease-in-out;
}
}
#menu .m1 {
#menu .m1 {
Line 217: Line 320:
background-position:-305px -100px;
background-position:-305px -100px;
}
}
-
.author {
+
#menu .m8 {
-
display:none;
+
height:18px;
}
}
-
/*
+
#menu .m8 a.link, #menu .m8 a.link:link {
-
---Calvin Hue
+
background-position:0 -117px;
-
*/
+
-
 
+
-
#cover-wrapper, #abstract-wrapper, #news-wrapper {
+
-
background:url(https://static.igem.org/mediawiki/2012/8/84/Px.png) transparent repeat;
+
-
-moz-box-shadow:4px 4px 8px 2px rgba(20%,20%,40%,0.5);
+
-
-webkit-box-shadow:4px 4px 8px 2px rgba(20%,20%,40%,0.5);
+
-
box-shadow:4px 4px 8px 2px rgba(20%,20%,40%,0.5);
+
-
margin-bottom: 15px;
+
-
border-radius: 3px;
+
-
-webkit-border-radius: 3px;
+
-
-moz-border-radius: 3px;
+
}
}
-
#cover-wrapper {
+
#menu .m8 a.link:hover, #menu .m8 a.link:active, #menu .m8 .current{
-
height: 340px;
+
background-position:-305px -117px;
}
}
-
#cover {
+
ul li {
-
padding-top:15px;
+
  position: relative;
}
}
-
#abstract-wrapper {
+
ul ul {
-
width: 49%;
+
  position: absolute;
-
min-height:250px;
+
  left: 100%;
-
float: left;
+
  list-style: none;
 +
  display: none;
}
}
-
#news-wrapper {
+
.ms {
-
width: 49%;
+
width:305px;
-
min-height:250px;
+
height:117px!important;
-
float: right;
+
padding:0;
 +
overflow:hidden;
 +
font:14px Helvetica, Arial, Sans-serif;
}
}
-
#abstract-title {
+
#m2s {
-
width: 307px;
+
top:-17px;
-
height: 30px!important;
+
-
background:url(https://static.igem.org/mediawiki/2012/3/31/Subtitle-abstract.png) transparent no-repeat;
+
}
}
-
#abstract-title span {
+
#m3s {
-
display: none;
+
top:-24px;
}
}
-
#abstract p, #news p {
+
#m6s {
-
margin:10px;
+
top:-85px;
}
}
-
#news-title {
+
.ms li, .ms li a {
-
width: 307px;
+
display:block;
-
height: 30px!important;
+
width:305px!important;
-
background:url(https://static.igem.org/mediawiki/2012/7/75/Subtitle-news.png) transparent no-repeat;
+
list-style: none;
}
}
-
#news-title span {
+
ul li:hover > ul {
-
display: none;
+
  display: block;
}
}
-
 
+
#m2s li a {
-
/* slider */
+
background:url(https://static.igem.org/mediawiki/2012/0/05/Submenu-project.png) transparent no-repeat 0 0;
-
/* http://www.menucool.com */
+
-
 
+
-
#sliderFrame {position:relative;width:970px;margin: 0 auto;} /*remove the
+
-
 
+
-
"margin:0 auto;" if you want to align the whole slider to the left side*/
+
-
       
+
-
#slider {
+
-
    width:970px;height:290px;/* Make it the same size as your images */
+
-
background:#fff url(loading.gif) no-repeat 50% 50%;
+
-
position:relative;
+
-
margin:0 auto;/*make the image slider center-aligned */
+
}
}
-
#slider img {
+
#m3s li a {
-
position:absolute;
+
background:url(https://static.igem.org/mediawiki/2012/c/c9/Submenu-team.png) transparent no-repeat 0 0;
-
border:none;
+
-
display:none;
+
}
}
-
 
+
#m6s li a {
-
/* the link style (if an image is wrapped in a link) */
+
background:url(https://static.igem.org/mediawiki/2012/e/ee/Submenu-human.png) transparent no-repeat 0 0;
-
#slider a.imgLink {
+
-
z-index:2;
+
-
display:none;position:absolute;
+
-
top:0px;left:0px;border:0;padding:0;margin:0;
+
-
width:100%;height:100%;
+
}
}
-
 
+
.ms li a {
-
/* Caption styles */
+
-
div.mc-caption-bg, div.mc-caption-bg2 {
+
-
position:absolute;
+
width:100%;
width:100%;
-
height:auto;
+
text-indent:-9999px;
-
padding:0;
+
-
left:0px; /*if the caption needs to be aligned from right, specify
+
-
 
+
-
by right instead of left. i.e. right:20px;*/
+
-
bottom:0px;/*if the caption needs to be aligned from top, specify
+
-
 
+
-
by top instead of bottom. i.e. top:150px;*/
+
-
z-index:3;
+
-
overflow:hidden;
+
-
font-size: 0;
+
}
}
-
div.mc-caption-bg {
+
.ms .ms1 {
-
background-color:black;
+
height:17px;
}
}
-
div.mc-caption {
+
.ms .ms1 a, .ms .ms1 a:link {
-
font: bold 14px/20px Arial;
+
background-position:0 0!important;
-
color:#EEE;
+
-
z-index:4;
+
-
padding:10px 0;/*Adding a padding-left or padding-right here will
+
-
 
+
-
make the caption area wider than its background. Sometimes you may need to
+
-
 
+
-
define its width again here to keep it the same width as its background
+
-
 
+
-
area (div.mc-caption-bg).*/
+
-
text-align:center;
+
}
}
-
div.mc-caption a {
+
.ms .ms1 a:hover, .ms .ms1 a:active{
-
color:#FB0;
+
background-position:-305px 0px!important;
}
}
-
div.mc-caption a:hover {
+
.ms .ms2 {
-
color:#DA0;
+
height:17px;
}
}
-
 
+
.ms .ms2 a, .ms .ms2 a:link {
-
 
+
background-position:0 -17px!important;
-
/* ------ built-in navigation bullets wrapper ------*/
+
-
div.navBulletsWrapper  {
+
-
top:300px; left:405px; /* Its position is relative to the #slider
+
-
 
+
-
*/
+
-
width:150px;
+
-
background:none;
+
-
padding-left:20px;
+
-
position:relative;
+
-
z-index:5;
+
-
cursor:pointer;
+
}
}
-
 
+
.ms .ms2 a:hover, .ms .ms2 a:active{
-
/* each bullet */
+
background-position:-305px -17px!important;
-
div.navBulletsWrapper div
+
-
{
+
-
    width:11px; height:11px;
+
-
    background:transparent url(bullet.png) no-repeat 0 0;
+
-
    float:left;overflow:hidden;vertical-align:middle;cursor:pointer;
+
-
    margin-right:11px;/* distance between each bullet*/
+
-
    _position:relative;/*IE6 hack*/
+
}
}
-
 
+
.ms .ms3 {
-
div.navBulletsWrapper div.active {background-position:0 -11px;}
+
height:17px;
-
 
+
}
-
 
+
.ms .ms3 a, .ms .ms3 a:link {
-
/* --------- Others ------- */
+
background-position:0 -34px!important;
-
#slider
+
}
-
{
+
.ms .ms3 a:hover, .ms .ms3 a:active{
-
transform: translate3d(0,0,0);
+
background-position:-305px -34px!important;
-
    -ms-transform:translate3d(0,0,0);
+
}
-
    -moz-transform:translate3d(0,0,0);
+
.ms .ms4 {
-
    -o-transform:translate3d(0,0,0);
+
height:17px;
 +
}
 +
.ms .ms4 a, .ms .ms4 a:link {
 +
background-position:0 -51px!important;
 +
}
 +
.ms .ms4 a:hover, .ms .ms4 a:active{
 +
background-position:-305px -51px!important;
 +
}
 +
.ms .ms5 {
 +
height:17px;
 +
}
 +
.ms .ms5 a, .ms .ms5 a:link {
 +
background-position:0 -68px!important;
 +
}
 +
.ms .ms5 a:hover, .ms .ms5 a:active{
 +
background-position:-305px -68px!important;
 +
}
 +
.ms .ms6 {
 +
height:17px;
 +
}
 +
.ms .ms6 a, .ms .ms6 a:link {
 +
background-position:0 -85px!important;
 +
}
 +
.ms .ms6 a:hover, .ms .ms6 a:active{
 +
background-position:-305px -85px!important;
 +
}
 +
.ms .ms7 {
 +
height:17px;
 +
}
 +
.ms .ms7 a, .ms .ms7 a:link {
 +
background-position:0 -102px!important;
 +
}
 +
.ms .ms7 a:hover, .ms .ms7 a:active{
 +
background-position:-305px -102px!important;
 +
}
 +
.ms .ms8 {
 +
height:17px;
 +
}
 +
.ms .ms8 a, .ms .ms8 a:link {
 +
background-position:0 -119px!important;
 +
}
 +
.ms .ms8 a:hover, .ms .ms8 a:active{
 +
background-position:-305px -119px!important;
 +
}
 +
.author {
 +
display:none;
}
}
#p-logo {
#p-logo {
Line 396: Line 475:
text-align: left;
text-align: left;
text-transform: capitalize;
text-transform: capitalize;
-
}
 
-
 
-
.left-menu:hover {
 
-
background-color: transparent;
 
-
}
 
-
 
-
.left-menu:hover a {
 
-
color: white;
 
-
text-decoration: none !important;
 
}
}
.left-menu li a:hover {
.left-menu li a:hover {
color: white;
color: white;
-
}
+
text-decoration:underline;
-
 
+
-
 
+
-
.right-menu li a {
+
-
background-color: transparent;
+
-
}
+
-
 
+
-
.right-menu li{
+
-
background-color: transparent;
+
}
}
Line 426: Line 488:
}
}
-
.right-menu:hover {
+
.right-menu:hover, .left-menu:hover {
background-color: transparent;
background-color: transparent;
}
}
Line 434: Line 496:
}
}
-
.right-menu li a {
+
.right-menu li a, .left-menu li a {
background-color: transparent;
background-color: transparent;
color: white;
color: white;
Line 443: Line 505:
color: white;
color: white;
text-decoration:underline;
text-decoration:underline;
 +
}
 +
.right-menu li a:visited {
 +
color: white;
}
}
Line 467: Line 532:
display: none;
display: none;
}
}
-
 
+
a, a:visited {
-
 
+
-
#footer {
+
-
margin: 0 auto;
+
-
width: 95%;
+
-
}
+
-
 
+
-
 
+
-
a {
+
color: white;
color: white;
text-decoration: none;
text-decoration: none;
Line 495: Line 552:
}
}
</style>
</style>
-
<script type="text/javascript">
+
<script src="https://2012.igem.org/Template:Team:NCTU_Formosa/js?action=raw"></script>
-
function browserdetect(){var b=navigator.userAgent.toLowerCase();this.isIE=b.indexOf("msie")>-1;if(this.isIE){this.ieVer=/msie\s(\d\.\d)/.exec(b)[1];this.quirksMode=!document.compatMode||document.compatMode.indexOf("BackCompat")>-1;this.get_style=function(f,h){if(!(h in f.currentStyle)){return""}var d=/^([\d.]+)(\w*)/.exec(f.currentStyle[h]);if(!d){return f.currentStyle[h]}if(d[1]==0){return"0"}if(d[2]&&d[2]!=="px"){var c=f.style.left;var g=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;f.style.left=d[1]+d[2];d[0]=f.style.pixelLeft;f.style.left=c;f.runtimeStyle.left=g}return d[0]};this.supportsCorners=false}else{this.ieVer=this.quirksMode=0;this.get_style=function(c,d){d=d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return document.defaultView.getComputedStyle(c,"").getPropertyValue(d)};this.isSafari=b.indexOf("safari")!=-1;this.isWebKit=b.indexOf("webkit")!=-1;this.isOp="opera" in window;if(this.isOp){this.supportsCorners=(this.isOp=window.opera.version())>=10.5}else{if(!this.isWebkit){if(!(this.isMoz=b.indexOf("firefox")!==-1)){for(var a=document.childNodes.length;--a>=0;){if("style" in document.childNodes[a]){this.isMoz="MozBorderRadius" in document.childNodes[a].style;break}}}}this.supportsCorners=this.isWebKit||this.isMoz}}}var curvyBrowser=new browserdetect;if(curvyBrowser.isIE){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}function curvyCnrSpec(a){this.selectorText=a;this.tlR=this.trR=this.blR=this.brR=0;this.tlu=this.tru=this.blu=this.bru="";this.antiAlias=true}curvyCnrSpec.prototype.setcorner=function(b,c,a,d){if(!b){this.tlR=this.trR=this.blR=this.brR=parseInt(a);this.tlu=this.tru=this.blu=this.bru=d}else{var f=b.charAt(0)+c.charAt(0);this[f+"R"]=parseInt(a);this[f+"u"]=d}};curvyCnrSpec.prototype.get=function(d){if(/^(t|b)(l|r)(R|u)$/.test(d)){return this[d]}if(/^(t|b)(l|r)Ru$/.test(d)){var c=d.charAt(0)+d.charAt(1);return this[c+"R"]+this[c+"u"]}if(/^(t|b)Ru?$/.test(d)){var b=d.charAt(0);b+=this[b+"lR"]>this[b+"rR"]?"l":"r";var a=this[b+"R"];if(d.length===3&&d.charAt(2)==="u"){a+=this[b="u"]}return a}throw new Error("Don't recognize property "+d)};curvyCnrSpec.prototype.radiusdiff=function(a){if(a!=="t"&&a!=="b"){throw new Error("Param must be 't' or 'b'")}return Math.abs(this[a+"lR"]-this[a+"rR"])};curvyCnrSpec.prototype.setfrom=function(a){this.tlu=this.tru=this.blu=this.bru="px";if("tl" in a){this.tlR=a.tl.radius}if("tr" in a){this.trR=a.tr.radius}if("bl" in a){this.blR=a.bl.radius}if("br" in a){this.brR=a.br.radius}if("antiAlias" in a){this.antiAlias=a.antiAlias}};curvyCnrSpec.prototype.cloneOn=function(f){var j=["tl","tr","bl","br"];var k=0;var d,g;for(d in j){if(!isNaN(d)){g=this[j[d]+"u"];if(g!==""&&g!=="px"){k=new curvyCnrSpec;break}}}if(!k){k=this}else{var c,b,h=curvyBrowser.get_style(f,"left");for(d in j){if(!isNaN(d)){c=j[d];g=this[c+"u"];b=this[c+"R"];if(g!=="px"){var a=f.style.left;f.style.left=b+g;b=f.style.pixelLeft;f.style.left=a}k[c+"R"]=b;k[c+"u"]="px"}}f.style.left=h}return k};curvyCnrSpec.prototype.radiusSum=function(a){if(a!=="t"&&a!=="b"){throw new Error("Param must be 't' or 'b'")}return this[a+"lR"]+this[a+"rR"]};curvyCnrSpec.prototype.radiusCount=function(a){var b=0;if(this[a+"lR"]){++b}if(this[a+"rR"]){++b}return b};curvyCnrSpec.prototype.cornerNames=function(){var a=[];if(this.tlR){a.push("tl")}if(this.trR){a.push("tr")}if(this.blR){a.push("bl")}if(this.brR){a.push("br")}return a};function operasheet(c){var a=document.styleSheets.item(c).ownerNode.text;a=a.replace(/\/\*(\n|\r|.)*?\*\//g,"");var d=new RegExp("^\\s*([\\w.#][-\\w.#, ]+)[\\n\\s]*\\{([^}]+border-((top|bottom)-(left|right)-)?radius[^}]*)\\}","mg");var h;this.rules=[];while((h=d.exec(a))!==null){var g=new RegExp("(..)border-((top|bottom)-(left|right)-)?radius:\\s*([\\d.]+)(in|em|px|ex|pt)","g");var f,b=new curvyCnrSpec(h[1]);while((f=g.exec(h[2]))!==null){if(f[1]!=="z-"){b.setcorner(f[3],f[4],f[5],f[6])}}this.rules.push(b)}}operasheet.contains_border_radius=function(a){return/border-((top|bottom)-(left|right)-)?radius/.test(document.styleSheets.item(a).ownerNode.text)};function curvyCorners(){var g,c,d,b,l;if(typeof arguments[0]!=="object"){throw curvyCorners.newError("First parameter of curvyCorners() must be an object.")}if(arguments[0] instanceof curvyCnrSpec){b=arguments[0];if(!b.selectorText&&typeof arguments[1]==="string"){b.selectorText=arguments[1]}}else{if(typeof arguments[1]!=="object"&&typeof arguments[1]!=="string"){throw curvyCorners.newError("Second parameter of curvyCorners() must be an object or a class name.")}c=arguments[1];if(typeof c!=="string"){c=""}if(c!==""&&c.charAt(0)!=="."&&"autoPad" in arguments[0]){c="."+c}b=new curvyCnrSpec(c);b.setfrom(arguments[0])}if(b.selectorText){l=0;var h=b.selectorText.replace(/\s+$/,"").split(/,\s*/);d=new Array;for(g=0;g<h.length;++g){if((c=h[g].lastIndexOf("#"))!==-1){h[g]=h[g].substr(c)}d=d.concat(curvyCorners.getElementsBySelector(h[g].split(/\s+/)))}}else{l=1;d=arguments}for(g=l,c=d.length;g<c;++g){var k=d[g];var a=false;if(!k.className){k.className="curvyIgnore"}else{a=k.className.indexOf("curvyIgnore")!==-1;if(!a){k.className+=" curvyIgnore"}}if(!a){if(k.className.indexOf("curvyRedraw")!==-1){if(typeof curvyCorners.redrawList==="undefined"){curvyCorners.redrawList=new Array}curvyCorners.redrawList.push({node:k,spec:b,copy:k.cloneNode(false)})}var f=new curvyObject(b,k);f.applyCorners()}}}curvyCorners.prototype.applyCornersToAll=function(){throw curvyCorners.newError("This function is now redundant. Just call curvyCorners(). See documentation.")};curvyCorners.redraw=function(){if(curvyBrowser.supportsCorners){return}if(!curvyCorners.redrawList){throw curvyCorners.newError("curvyCorners.redraw() has nothing to redraw.")}var h=curvyCorners.block_redraw;curvyCorners.block_redraw=true;for(var c in curvyCorners.redrawList){if(isNaN(c)){continue}var g=curvyCorners.redrawList[c];if(!g.node.clientWidth){continue}var d=g.copy.cloneNode(false);for(var f=g.node.firstChild;f!==null;f=f.nextSibling){if(f.className.indexOf("autoPadDiv")!==-1){break}}if(!f){curvyCorners.alert("Couldn't find autoPad DIV");break}g.node.parentNode.replaceChild(d,g.node);var a=f.getElementsByTagName("script");for(var b=a.length-1;b>=0;--b){a[b].parentNode.removeChild(a[b])}while(f.firstChild){d.appendChild(f.removeChild(f.firstChild))}g=new curvyObject(g.spec,g.node=d);g.applyCorners()}curvyCorners.block_redraw=h};curvyCorners.adjust=function(obj,prop,newval){if(!curvyBrowser.supportsCorners){if(!curvyCorners.redrawList){throw curvyCorners.newError("curvyCorners.adjust() has nothing to adjust.")}var i,j=curvyCorners.redrawList.length;for(i=0;i<j;++i){if(curvyCorners.redrawList[i].node===obj){break}}if(i===j){throw curvyCorners.newError("Object not redrawable")}obj=curvyCorners.redrawList[i].copy}if(prop.indexOf(".")===-1){obj[prop]=newval}else{eval("obj."+prop+"='"+newval+"'")}};curvyCorners.handleWinResize=function(){if(!curvyCorners.block_redraw){curvyCorners.redraw()}};curvyCorners.setWinResize=function(a){curvyCorners.block_redraw=!a};curvyCorners.newError=function(a){return new Error("curvyCorners Error:\n"+a)};curvyCorners.alert=function(a){if(typeof curvyCornersVerbose==="undefined"||curvyCornersVerbose){alert(a)}};function curvyObject(){var B;this.box=arguments[1];this.settings=arguments[0];this.topContainer=this.bottomContainer=this.shell=B=null;var p=this.box.clientWidth;if(("canHaveChildren" in this.box&&!this.box.canHaveChildren)||this.box.tagName==="TABLE"){throw new Error(this.errmsg("You cannot apply corners to "+this.box.tagName+" elements.","Error"))}if(!p&&curvyBrowser.isIE){this.box.style.zoom=1;p=this.box.clientWidth}if(!p&&curvyBrowser.get_style(this.box,"display")==="inline"){this.box.style.display="inline-block";curvyCorners.alert(this.errmsg("Converting inline element to inline-block","warning"));p=this.box.clientWidth}if(!p){if(!this.box.parentNode){throw this.newError("box has no parent!")}for(B=this.box;;B=B.parentNode){if(!B||B.tagName==="BODY"){this.applyCorners=function(){};curvyCorners.alert(this.errmsg("zero-width box with no accountable parent","warning"));return}if(curvyBrowser.get_style(B,"display")==="none"){break}}var u=B.style.display;B.style.display="block";p=this.box.clientWidth}if(!p){curvyCorners.alert(this.errmsg("zero-width box, cannot display","error"));this.applyCorners=function(){};return}if(arguments[0] instanceof curvyCnrSpec){this.spec=arguments[0].cloneOn(this.box)}else{this.spec=new curvyCnrSpec("");this.spec.setfrom(this.settings)}var J=curvyBrowser.get_style(this.box,"borderTopWidth");var o=curvyBrowser.get_style(this.box,"borderBottomWidth");var h=curvyBrowser.get_style(this.box,"borderLeftWidth");var c=curvyBrowser.get_style(this.box,"borderRightWidth");var n=curvyBrowser.get_style(this.box,"borderTopColor");var k=curvyBrowser.get_style(this.box,"borderBottomColor");var b=curvyBrowser.get_style(this.box,"borderLeftColor");var I=curvyBrowser.get_style(this.box,"borderRightColor");var d=curvyBrowser.get_style(this.box,"borderTopStyle");var m=curvyBrowser.get_style(this.box,"borderBottomStyle");var g=curvyBrowser.get_style(this.box,"borderLeftStyle");var a=curvyBrowser.get_style(this.box,"borderRightStyle");var i=curvyBrowser.get_style(this.box,"backgroundColor");var f=curvyBrowser.get_style(this.box,"backgroundImage");var F=curvyBrowser.get_style(this.box,"backgroundRepeat");var z,x;if(this.box.currentStyle&&this.box.currentStyle.backgroundPositionX){z=curvyBrowser.get_style(this.box,"backgroundPositionX");x=curvyBrowser.get_style(this.box,"backgroundPositionY")}else{z=curvyBrowser.get_style(this.box,"backgroundPosition");z=z.split(" ");x=z.length===2?z[1]:0;z=z[0]}var w=curvyBrowser.get_style(this.box,"position");var G=curvyBrowser.get_style(this.box,"paddingTop");var K=curvyBrowser.get_style(this.box,"paddingBottom");var y=curvyBrowser.get_style(this.box,"paddingLeft");var H=curvyBrowser.get_style(this.box,"paddingRight");var s=curvyBrowser.ieVer>7?curvyBrowser.get_style(this.box,"filter"):null;var l=this.spec.get("tR");var r=this.spec.get("bR");var D=function(L){if(typeof L==="number"){return L}if(typeof L!=="string"){throw new Error("unexpected styleToNPx type "+typeof L)}var t=/^[-\d.]([a-z]+)$/.exec(L);if(t&&t[1]!="px"){throw new Error("Unexpected unit "+t[1])}if(isNaN(L=parseInt(L))){L=0}return L};var A=function(t){return t<=0?"0":t+"px"};try{this.borderWidth=D(J);this.borderWidthB=D(o);this.borderWidthL=D(h);this.borderWidthR=D(c);this.boxColour=curvyObject.format_colour(i);this.topPadding=D(G);this.bottomPadding=D(K);this.leftPadding=D(y);this.rightPadding=D(H);this.boxWidth=p;this.boxHeight=this.box.clientHeight;this.borderColour=curvyObject.format_colour(n);this.borderColourB=curvyObject.format_colour(k);this.borderColourL=curvyObject.format_colour(b);this.borderColourR=curvyObject.format_colour(I);this.borderString=this.borderWidth+"px "+d+" "+this.borderColour;this.borderStringB=this.borderWidthB+"px "+m+" "+this.borderColourB;this.borderStringL=this.borderWidthL+"px "+g+" "+this.borderColourL;this.borderStringR=this.borderWidthR+"px "+a+" "+this.borderColourR;this.backgroundImage=((f!="none")?f:"");this.backgroundRepeat=F}catch(E){throw this.newError(E.message)}var j=this.boxHeight;var C=p;if(curvyBrowser.isOp){var v;z=D(z);x=D(x);if(z){v=C+this.borderWidthL+this.borderWidthR;if(z>v){z=v}z=(v/z*100)+"%"}if(x){v=j+this.borderWidth+this.borderWidthB;if(x>v){x=v}x=(v/x*100)+"%"}}if(curvyBrowser.quirksMode){}else{this.boxWidth-=this.leftPadding+this.rightPadding;this.boxHeight-=this.topPadding+this.bottomPadding}this.contentContainer=document.createElement("div");if(s){this.contentContainer.style.filter=s}while(this.box.firstChild){this.contentContainer.appendChild(this.box.removeChild(this.box.firstChild))}if(w!="absolute"){this.box.style.position="relative"}this.box.style.padding="0";this.box.style.border=this.box.style.backgroundImage="none";this.box.style.backgroundColor="transparent";this.box.style.width=(C+this.borderWidthL+this.borderWidthR)+"px";this.box.style.height=(j+this.borderWidth+this.borderWidthB)+"px";var q=document.createElement("div");q.style.position="absolute";if(s){q.style.filter=s}if(curvyBrowser.quirksMode){q.style.width=(C+this.borderWidthL+this.borderWidthR)+"px"}else{q.style.width=C+"px"}q.style.height=A(j+this.borderWidth+this.borderWidthB-l-r);q.style.padding="0";q.style.top=l+"px";q.style.left="0";if(this.borderWidthL){q.style.borderLeft=this.borderStringL}if(this.borderWidth&&!l){q.style.borderTop=this.borderString}if(this.borderWidthR){q.style.borderRight=this.borderStringR}if(this.borderWidthB&&!r){q.style.borderBottom=this.borderStringB}q.style.backgroundColor=i;q.style.backgroundImage=this.backgroundImage;q.style.backgroundRepeat=this.backgroundRepeat;q.style.direction="ltr";this.shell=this.box.appendChild(q);p=curvyBrowser.get_style(this.shell,"width");if(p===""||p==="auto"||p.indexOf("%")!==-1){throw this.newError("Shell width is "+p)}this.boxWidth=(p!==""&&p!="auto"&&p.indexOf("%")==-1)?parseInt(p):this.shell.clientWidth;this.applyCorners=function(){this.backgroundPosX=this.backgroundPosY=0;if(this.backgroundObject){var Z=function(ar,ap,aq){if(ar===0){return 0}if(ar==="right"||ar==="bottom"){return aq-ap}if(ar==="center"){return(aq-ap)/2}if(ar.indexOf("%")>0){return(aq-ap)*100/parseInt(ar)}return D(ar)};this.backgroundPosX=Z(z,this.backgroundObject.width,C);this.backgroundPosY=Z(x,this.backgroundObject.height,j)}else{if(this.backgroundImage){this.backgroundPosX=D(z);this.backgroundPosY=D(x)}}if(l){q=document.createElement("div");q.style.width=this.boxWidth+"px";q.style.fontSize="1px";q.style.overflow="hidden";q.style.position="absolute";q.style.paddingLeft=this.borderWidth+"px";q.style.paddingRight=this.borderWidth+"px";q.style.height=l+"px";q.style.top=-l+"px";q.style.left=-this.borderWidthL+"px";this.topContainer=this.shell.appendChild(q)}if(r){q=document.createElement("div");q.style.width=this.boxWidth+"px";q.style.fontSize="1px";q.style.overflow="hidden";q.style.position="absolute";q.style.paddingLeft=this.borderWidthB+"px";q.style.paddingRight=this.borderWidthB+"px";q.style.height=r+"px";q.style.bottom=-r+"px";q.style.left=-this.borderWidthL+"px";this.bottomContainer=this.shell.appendChild(q)}var ah=this.spec.cornerNames();for(var al in ah){if(!isNaN(al)){var ad=ah[al];var ae=this.spec[ad+"R"];var af,ai,O,ag;if(ad=="tr"||ad=="tl"){af=this.borderWidth;ai=this.borderColour;ag=this.borderWidth}else{af=this.borderWidthB;ai=this.borderColourB;ag=this.borderWidthB}O=ae-ag;var Y=document.createElement("div");Y.style.height=this.spec.get(ad+"Ru");Y.style.width=this.spec.get(ad+"Ru");Y.style.position="absolute";Y.style.fontSize="1px";Y.style.overflow="hidden";var W,V,T;var R=s?parseInt(/alpha\(opacity.(\d+)\)/.exec(s)[1]):100;for(W=0;W<ae;++W){var Q=(W+1>=O)?-1:Math.floor(Math.sqrt(Math.pow(O,2)-Math.pow(W+1,2)))-1;if(O!=ae){var N=(W>=O)?-1:Math.ceil(Math.sqrt(Math.pow(O,2)-Math.pow(W,2)));var L=(W+1>=ae)?-1:Math.floor(Math.sqrt(Math.pow(ae,2)-Math.pow((W+1),2)))-1}var t=(W>=ae)?-1:Math.ceil(Math.sqrt(Math.pow(ae,2)-Math.pow(W,2)));if(Q>-1){this.drawPixel(W,0,this.boxColour,R,(Q+1),Y,true,ae)}if(O!=ae){if(this.spec.antiAlias){for(V=Q+1;V<N;++V){if(this.backgroundImage!==""){var M=curvyObject.pixelFraction(W,V,O)*100;this.drawPixel(W,V,ai,R,1,Y,M>=30,ae)}else{if(this.boxColour!=="transparent"){var ac=curvyObject.BlendColour(this.boxColour,ai,curvyObject.pixelFraction(W,V,O));this.drawPixel(W,V,ac,R,1,Y,false,ae)}else{this.drawPixel(W,V,ai,R>>1,1,Y,false,ae)}}}if(L>=N){if(N==-1){N=0}this.drawPixel(W,N,ai,R,(L-N+1),Y,false,0)}T=ai;V=L}else{if(L>Q){this.drawPixel(W,(Q+1),ai,R,(L-Q),Y,false,0)}}}else{T=this.boxColour;V=Q}if(this.spec.antiAlias&&this.boxColour!=="transparent"){while(++V<t){this.drawPixel(W,V,T,(curvyObject.pixelFraction(W,V,ae)*R),1,Y,ag<=0,ae)}}}var ak;for(v=0,ak=Y.childNodes.length;v<ak;++v){var X=Y.childNodes[v];var aj=parseInt(X.style.top);var an=parseInt(X.style.left);var ao=parseInt(X.style.height);if(ad=="tl"||ad=="bl"){X.style.left=(ae-an-1)+"px"}if(ad=="tr"||ad=="tl"){X.style.top=(ae-ao-aj)+"px"}X.style.backgroundRepeat=this.backgroundRepeat;if(this.backgroundImage){switch(ad){case"tr":X.style.backgroundPosition=(this.backgroundPosX-this.borderWidthL+ae-C-an)+"px "+(this.backgroundPosY+ao+aj+this.borderWidth-ae)+"px";break;case"tl":X.style.backgroundPosition=(this.backgroundPosX-ae+an+1+this.borderWidthL)+"px "+(this.backgroundPosY-ae+ao+aj+this.borderWidth)+"px";break;case"bl":X.style.backgroundPosition=(this.backgroundPosX-ae+an+1+this.borderWidthL)+"px "+(this.backgroundPosY-j-this.borderWidth+(curvyBrowser.quirksMode?aj:-aj)+ae)+"px";break;case"br":if(curvyBrowser.quirksMode){X.style.backgroundPosition=(this.backgroundPosX-this.borderWidthL-C+ae-an)+"px "+(this.backgroundPosY-j-this.borderWidth+aj+ae)+"px"}else{X.style.backgroundPosition=(this.backgroundPosX-this.borderWidthL-C+ae-an)+"px "+(this.backgroundPosY-j-this.borderWidth+ae-aj)+"px"}}}}switch(ad){case"tl":Y.style.top=Y.style.left="0";this.topContainer.appendChild(Y);break;case"tr":Y.style.top=Y.style.right="0";this.topContainer.appendChild(Y);break;case"bl":Y.style.bottom=Y.style.left="0";this.bottomContainer.appendChild(Y);break;case"br":Y.style.bottom=Y.style.right="0";this.bottomContainer.appendChild(Y)}}}var aa={t:this.spec.radiusdiff("t"),b:this.spec.radiusdiff("b")};for(var U in aa){if(typeof U==="function"){continue}if(!this.spec.get(U+"R")){continue}if(aa[U]){var am=(this.spec[U+"lR"]<this.spec[U+"rR"])?U+"l":U+"r";var P=document.createElement("div");P.style.height=aa[U]+"px";P.style.width=this.spec.get(am+"Ru");P.style.position="absolute";P.style.fontSize="1px";P.style.overflow="hidden";P.style.backgroundColor=this.boxColour;if(s){P.style.filter=s}P.style.backgroundImage=this.backgroundImage;P.style.backgroundRepeat=this.backgroundRepeat;switch(am){case"tl":P.style.bottom=P.style.left="0";P.style.borderLeft=this.borderStringL;P.style.backgroundPosition=this.backgroundPosX+"px "+(this.borderWidth+this.backgroundPosY-this.spec.tlR)+"px";this.topContainer.appendChild(P);break;case"tr":P.style.bottom=P.style.right="0";P.style.borderRight=this.borderStringR;P.style.backgroundPosition=(this.backgroundPosX-this.boxWidth+this.spec.trR)+"px "+(this.borderWidth+this.backgroundPosY-this.spec.trR)+"px";this.topContainer.appendChild(P);break;case"bl":P.style.top=P.style.left="0";P.style.borderLeft=this.borderStringL;P.style.backgroundPosition=this.backgroundPosX+"px "+(this.backgroundPosY-this.borderWidth-this.boxHeight+aa[U]+this.spec.blR)+"px";this.bottomContainer.appendChild(P);break;case"br":P.style.top=P.style.right="0";P.style.borderRight=this.borderStringR;P.style.backgroundPosition=(this.borderWidthL+this.backgroundPosX-this.boxWidth+this.spec.brR)+"px "+(this.backgroundPosY-this.borderWidth-this.boxHeight+aa[U]+this.spec.brR)+"px";this.bottomContainer.appendChild(P)}}var S=document.createElement("div");if(s){S.style.filter=s}S.style.position="relative";S.style.fontSize="1px";S.style.overflow="hidden";S.style.width=this.fillerWidth(U);S.style.backgroundColor=this.boxColour;S.style.backgroundImage=this.backgroundImage;S.style.backgroundRepeat=this.backgroundRepeat;switch(U){case"t":if(this.topContainer){if(curvyBrowser.quirksMode){S.style.height=100+l+"px"}else{S.style.height=100+l-this.borderWidth+"px"}S.style.marginLeft=this.spec.tlR?(this.spec.tlR-this.borderWidthL)+"px":"0";S.style.borderTop=this.borderString;if(this.backgroundImage){var ab=this.spec.tlR?(this.borderWidthL+this.backgroundPosX-this.spec.tlR)+"px ":this.backgroundPosX+"px ";S.style.backgroundPosition=ab+this.backgroundPosY+"px";this.shell.style.backgroundPosition=this.backgroundPosX+"px "+(this.backgroundPosY-l+this.borderWidthL)+"px"}this.topContainer.appendChild(S)}break;case"b":if(this.bottomContainer){if(curvyBrowser.quirksMode){S.style.height=r+"px"}else{S.style.height=r-this.borderWidthB+"px"}S.style.marginLeft=this.spec.blR?(this.spec.blR-this.borderWidthL)+"px":"0";S.style.borderBottom=this.borderStringB;if(this.backgroundImage){var ab=this.spec.blR?(this.backgroundPosX+this.borderWidthL-this.spec.blR)+"px ":this.backgroundPosX+"px ";S.style.backgroundPosition=ab+(this.backgroundPosY-j-this.borderWidth+r)+"px"}this.bottomContainer.appendChild(S)}}}this.contentContainer.style.position="absolute";this.contentContainer.className="autoPadDiv";this.contentContainer.style.left=this.borderWidthL+"px";this.contentContainer.style.paddingTop=this.topPadding+"px";this.contentContainer.style.top=this.borderWidth+"px";this.contentContainer.style.paddingLeft=this.leftPadding+"px";this.contentContainer.style.paddingRight=this.rightPadding+"px";U=C;if(!curvyBrowser.quirksMode){U-=this.leftPadding+this.rightPadding}this.contentContainer.style.width=U+"px";this.contentContainer.style.textAlign=curvyBrowser.get_style(this.box,"textAlign");this.box.style.textAlign="left";this.box.appendChild(this.contentContainer);if(B){B.style.display=u}};if(this.backgroundImage){z=this.backgroundCheck(z);x=this.backgroundCheck(x);if(this.backgroundObject){this.backgroundObject.holdingElement=this;this.dispatch=this.applyCorners;this.applyCorners=function(){if(this.backgroundObject.complete){this.dispatch()}else{this.backgroundObject.onload=new Function("curvyObject.dispatch(this.holdingElement);")}}}}}curvyObject.prototype.backgroundCheck=function(b){if(b==="top"||b==="left"||parseInt(b)===0){return 0}if(!(/^[-\d.]+px$/.test(b))&&!this.backgroundObject){this.backgroundObject=new Image;var a=function(d){var c=/url\("?([^'"]+)"?\)/.exec(d);return(c?c[1]:d)};this.backgroundObject.src=a(this.backgroundImage)}return b};curvyObject.dispatch=function(a){if("dispatch" in a){a.dispatch()}else{throw a.newError("No dispatch function")}};curvyObject.prototype.drawPixel=function(k,h,a,g,i,j,c,f){var b=document.createElement("div");b.style.height=i+"px";b.style.width="1px";b.style.position="absolute";b.style.fontSize="1px";b.style.overflow="hidden";var d=this.spec.get("tR");b.style.backgroundColor=a;if(c&&this.backgroundImage!==""){b.style.backgroundImage=this.backgroundImage;b.style.backgroundPosition="-"+(this.boxWidth-(f-k)+this.borderWidth)+"px -"+((this.boxHeight+d+h)-this.borderWidth)+"px"}if(g!=100){curvyObject.setOpacity(b,g)}b.style.top=h+"px";b.style.left=k+"px";j.appendChild(b)};curvyObject.prototype.fillerWidth=function(b){var a,c;a=curvyBrowser.quirksMode?0:this.spec.radiusCount(b)*this.borderWidthL;if((c=this.boxWidth-this.spec.radiusSum(b)+a)<0){throw this.newError("Radius exceeds box width")}return c+"px"};curvyObject.prototype.errmsg=function(c,d){var b="\ntag: "+this.box.tagName;if(this.box.id){b+="\nid: "+this.box.id}if(this.box.className){b+="\nclass: "+this.box.className}var a;if((a=this.box.parentNode)===null){b+="\n(box has no parent)"}else{b+="\nParent tag: "+a.tagName;if(a.id){b+="\nParent ID: "+a.id}if(a.className){b+="\nParent class: "+a.className}}if(d===undefined){d="warning"}return"curvyObject "+d+":\n"+c+b};curvyObject.prototype.newError=function(a){return new Error(this.errmsg(a,"exception"))};curvyObject.IntToHex=function(b){var a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];return a[b>>>4]+""+a[b&15]};curvyObject.BlendColour=function(m,k,h){if(m==="transparent"||k==="transparent"){throw this.newError("Cannot blend with transparent")}if(m.charAt(0)!=="#"){m=curvyObject.format_colour(m)}if(k.charAt(0)!=="#"){k=curvyObject.format_colour(k)}var d=parseInt(m.substr(1,2),16);var l=parseInt(m.substr(3,2),16);var g=parseInt(m.substr(5,2),16);var c=parseInt(k.substr(1,2),16);var j=parseInt(k.substr(3,2),16);var f=parseInt(k.substr(5,2),16);if(h>1||h<0){h=1}var i=Math.round((d*h)+(c*(1-h)));if(i>255){i=255}if(i<0){i=0}var b=Math.round((l*h)+(j*(1-h)));if(b>255){b=255}if(b<0){b=0}var a=Math.round((g*h)+(f*(1-h)));if(a>255){a=255}if(a<0){a=0}return"#"+curvyObject.IntToHex(i)+curvyObject.IntToHex(b)+curvyObject.IntToHex(a)};curvyObject.pixelFraction=function(i,h,a){var k;var f=a*a;var b=new Array(2);var g=new Array(2);var j=0;var c="";var d=Math.sqrt(f-Math.pow(i,2));if(d>=h&&d<(h+1)){c="Left";b[j]=0;g[j]=d-h;++j}d=Math.sqrt(f-Math.pow(h+1,2));if(d>=i&&d<(i+1)){c+="Top";b[j]=d-i;g[j]=1;++j}d=Math.sqrt(f-Math.pow(i+1,2));if(d>=h&&d<(h+1)){c+="Right";b[j]=1;g[j]=d-h;++j}d=Math.sqrt(f-Math.pow(h,2));if(d>=i&&d<(i+1)){c+="Bottom";b[j]=d-i;g[j]=0}switch(c){case"LeftRight":k=Math.min(g[0],g[1])+((Math.max(g[0],g[1])-Math.min(g[0],g[1]))/2);break;case"TopRight":k=1-(((1-b[0])*(1-g[1]))/2);break;case"TopBottom":k=Math.min(b[0],b[1])+((Math.max(b[0],b[1])-Math.min(b[0],b[1]))/2);break;case"LeftBottom":k=g[0]*b[1]/2;break;default:k=1}return k};curvyObject.rgb2Array=function(a){var b=a.substring(4,a.indexOf(")"));return b.split(/,\s*/)};curvyObject.rgb2Hex=function(b){try{var c=curvyObject.rgb2Array(b);var h=parseInt(c[0]);var f=parseInt(c[1]);var a=parseInt(c[2]);var d="#"+curvyObject.IntToHex(h)+curvyObject.IntToHex(f)+curvyObject.IntToHex(a)}catch(g){var i="getMessage" in g?g.getMessage():g.message;throw new Error("Error ("+i+") converting RGB value to Hex in rgb2Hex")}return d};curvyObject.setOpacity=function(g,c){c=(c==100)?99.999:c;if(curvyBrowser.isSafari&&g.tagName!="IFRAME"){var b=curvyObject.rgb2Array(g.style.backgroundColor);var f=parseInt(b[0]);var d=parseInt(b[1]);var a=parseInt(b[2]);g.style.backgroundColor="rgba("+f+", "+d+", "+a+", "+c/100+")"}else{if(typeof g.style.opacity!=="undefined"){g.style.opacity=c/100}else{if(typeof g.style.MozOpacity!=="undefined"){g.style.MozOpacity=c/100}else{if(typeof g.style.filter!=="undefined"){g.style.filter="alpha(opacity="+c+")"}else{if(typeof g.style.KHTMLOpacity!=="undefined"){g.style.KHTMLOpacity=c/100}}}}}};curvyCorners.addEvent=function(d,c,b,a){if(d.addEventListener){d.addEventListener(c,b,a);return true}if(d.attachEvent){return d.attachEvent("on"+c,b)}d["on"+c]=b;return false};if(typeof addEvent==="undefined"){addEvent=curvyCorners.addEvent}curvyObject.getComputedColour=function(g){var h=document.createElement("DIV");h.style.backgroundColor=g;document.body.appendChild(h);if(window.getComputedStyle){var f=document.defaultView.getComputedStyle(h,null).getPropertyValue("background-color");h.parentNode.removeChild(h);if(f.substr(0,3)==="rgb"){f=curvyObject.rgb2Hex(f)}return f}else{var a=document.body.createTextRange();a.moveToElementText(h);a.execCommand("ForeColor",false,g);var b=a.queryCommandValue("ForeColor");var c="rgb("+(b&255)+", "+((b&65280)>>8)+", "+((b&16711680)>>16)+")";h.parentNode.removeChild(h);a=null;return curvyObject.rgb2Hex(c)}};curvyObject.format_colour=function(a){if(a!==""&&a!=="transparent"){if(a.substr(0,3)==="rgb"){a=curvyObject.rgb2Hex(a)}else{if(a.charAt(0)!=="#"){a=curvyObject.getComputedColour(a)}else{if(a.length===4){a="#"+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)+a.charAt(3)+a.charAt(3)}}}}return a};curvyCorners.getElementsByClass=function(j,g){var f=new Array;if(g===undefined){g=document}j=j.split(".");var a="*";if(j.length===1){a=j[0];j=false}else{if(j[0]){a=j[0]}j=j[1]}var d,c,b;if(a.charAt(0)==="#"){c=document.getElementById(a.substr(1));if(c){f.push(c)}}else{c=g.getElementsByTagName(a);b=c.length;if(j){var h=new RegExp("(^|\\s)"+j+"(\\s|$)");for(d=0;d<b;++d){if(h.test(c[d].className)){f.push(c[d])}}}else{for(d=0;d<b;++d){f.push(c[d])}}}return f};curvyCorners.getElementsBySelector=function(f,g){var b;var h=f[0];if(g===undefined){g=document}if(h.indexOf("#")===-1){b=curvyCorners.getElementsByClass(h,g)}else{var d=g.getElementById(h.substr(1));if(!d){return[]}b=[d]}if(f.length>1){var a=[];for(var c=b.length;--c>=0;){a=a.concat(curvyCorners.getElementsBySelector(f.slice(1),b[c]))}b=a}return b};if(curvyBrowser.supportsCorners){var curvyCornersNoAutoScan=true;curvyCorners.init=function(){}}else{curvyCorners.scanStyles=function(){function b(h){if(!parseInt(h)){return"px"}var i=/^[\d.]+(\w+)$/.exec(h);return i[1]}var f,d,c;if(curvyBrowser.isIE){function a(o){var j=o.style,h,i,m,l,n;if(curvyBrowser.ieVer>6){h=j["-moz-border-radius"]||0;i=j["-moz-border-radius-topright"]||0;m=j["-moz-border-radius-topleft"]||0;l=j["-moz-border-radius-bottomright"]||0;n=j["-moz-border-radius-bottomleft"]||0}else{h=j["moz-border-radius"]||0;i=j["moz-border-radius-topright"]||0;m=j["moz-border-radius-topleft"]||0;l=j["moz-border-radius-bottomright"]||0;n=j["moz-border-radius-bottomleft"]||0}if(h){var p=h.split("/");p=p[0].split(/\s+/);if(p[p.length-1]===""){p.pop()}switch(p.length){case 3:m=p[0];i=n=p[1];l=p[2];h=false;break;case 2:m=l=p[0];i=n=p[1];h=false;case 1:break;case 4:m=p[0];i=p[1];l=p[2];n=p[3];h=false;break;default:curvyCorners.alert("Illegal corners specification: "+h)}}if(h||m||i||l||n){var k=new curvyCnrSpec(o.selectorText);if(h){k.setcorner(null,null,parseInt(h),b(h))}else{if(i){k.setcorner("t","r",parseInt(i),b(i))}if(m){k.setcorner("t","l",parseInt(m),b(m))}if(n){k.setcorner("b","l",parseInt(n),b(n))}if(l){k.setcorner("b","r",parseInt(l),b(l))}}curvyCorners(k)}}for(f=0;f<document.styleSheets.length;++f){try{if(document.styleSheets[f].imports){for(d=0;d<document.styleSheets[f].imports.length;++d){for(c=0;c<document.styleSheets[f].imports[d].rules.length;++c){a(document.styleSheets[f].imports[d].rules[c])}}}for(d=0;d<document.styleSheets[f].rules.length;++d){a(document.styleSheets[f].rules[d])}}catch(g){if(typeof curvyCornersVerbose!=="undefined"&&curvyCornersVerbose){alert(g.message+" - ignored")}}}}else{if(curvyBrowser.isOp){for(f=0;f<document.styleSheets.length;++f){if(operasheet.contains_border_radius(f)){c=new operasheet(f);for(d in c.rules){if(!isNaN(d)){curvyCorners(c.rules[d])}}}}}else{curvyCorners.alert("Scanstyles does nothing in Webkit/Firefox/Opera")}}};curvyCorners.init=function(){if(arguments.callee.done){return}arguments.callee.done=true;if(curvyBrowser.isWebKit&&curvyCorners.init.timer){clearInterval(curvyCorners.init.timer);curvyCorners.init.timer=null}curvyCorners.scanStyles()}}if(typeof curvyCornersNoAutoScan==="undefined"||curvyCornersNoAutoScan===false){if(curvyBrowser.isOp){document.addEventListener("DOMContentLoaded",curvyCorners.init,false)}else{curvyCorners.addEvent(window,"load",curvyCorners.init,false)}};
+
-
addEvent(window, 'load', initCorners);
+
-
function initCorners() {
+
-
var setting = {
+
-
tl: { radius: 10 },
+
-
tr: { radius: 10 },
+
-
bl: { radius: 10 },
+
-
br: { radius: 10 },
+
-
antiAlias: true
+
-
}
+
-
curvyCorners(setting, "#main");
+
-
}
+
-
var sliderOptions=
+
-
{
+
-
sliderId: "slider",
+
-
effect: "series1",
+
-
effectRandom: false,
+
-
pauseTime: 2600,
+
-
transitionTime: 500,
+
-
slices: 12,
+
-
boxes: 8,
+
-
hoverPause: true,
+
-
autoAdvance: true,
+
-
captionOpacity: 0.3,
+
-
captionEffect: "fade",
+
-
thumbnailsWrapperId: "thumbs",
+
-
license: "free"
+
-
};
+
-
 
+
-
var imageSlider=new mcImgSlider(sliderOptions);
+
-
 
+
-
/* Menucool Javascript Image Slider v2012.8.31. Copyright www.menucool.com */
+
-
function mcImgSlider(e){var B=function(d){var a=d.childNodes,c=[];if(a)for(var b=0,e=a.length;b<e;b++)a[b].nodeType==1&&c.push(a[b]);return c},A=function(a,b){return a.getElementsByTagName(b)},P=function(a){for(var c,d,b=a.length;b;c=parseInt(Math.random()*b),d=a[--b],a[b]=a[c],a[c]=d);return a},t=function(a,b){if(a){a.o=b;if(I)a.style.filter="alpha(opacity="+b*100+")";else a.style.opacity=b}},O=function(a,c,b){if(a.addEventListener)a.addEventListener(c,b,false);else a.attachEvent&&a.attachEvent("on"+c,b)},Q=document,M=function(c,a,b){return b?c.substring(a,b):c.substring(a)},p=function(){this.d=[];this.b=null;this.c()};function G(){var c=50,a=navigator.userAgent,b;if((b=a.indexOf("MSIE "))!=-1)c=parseInt(a.substring(b+5,a.indexOf(".",b)));if(a.indexOf("Safari")!=-1&&a.indexOf("Chrome")==-1)c=300;return c}var I=G()<9;p.a={f:function(a){return-Math.cos(a*Math.PI)/2+.5},g:function(a){return a},h:function(b,a){return Math.pow(b,a*2)},j:function(b,a){return 1-Math.pow(1-b,a*2)}};p.prototype={k:{c:e.transitionTime,a:function(){},b:p.a.f,d:1},c:function(){for(var b=["webkit","moz","ms","o"],a=0;a<b.length&&!window.requestAnimationFrame;++a){window.requestAnimationFrame=window[b[a]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[b[a]+"CancelAnimationFrame"]||window[b[a]+"CancelRequestAnimationFrame"]}this.supportAnimationFrame=!!window.requestAnimationFrame},m:function(h,d,g,c){for(var b=[],i=g-d,j=g>d?1:-1,f=Math.ceil(60*c.c/1e3),a,e=1;e<=f;e++){a=d+c.b(e/f,c.d)*i;if(h!="opacity")a=Math.round(a);b.push(a)}b.index=0;return b},n:function(){this.b==null&&this.p()},p:function(){this.q();var a=this;this.b=this.supportAnimationFrame?window.requestAnimationFrame(function(){a.p()}):window.setInterval(function(){a.q()},15)},q:function(){var a=this.d.length;if(a){for(var c=0;c<a;c++)this.o(this.d[c]);while(a--){var b=this.d[a];if(b.d.index==b.d.length){b.c();this.d.splice(a,1)}}}else{if(this.supportAnimationFrame)window.cancelAnimationFrame(this.b);else window.clearInterval(this.b);this.b=null}},o:function(a){if(a.d.index<a.d.length){var c=a.b,b=a.d[a.d.index];if(a.b=="opacity"){if(I){c="filter";b="alpha(opacity="+Math.round(b*100)+")"}}else b+="px";a.a.style[c]=b;a.d.index++}},r:function(e,b,d,f,a){a=this.s(this.k,a);var c=this.m(b,d,f,a);this.d.push({a:e,b:b,d:c,c:a.a});this.n()},s:function(c,b){b=b||{};var a,d={};for(a in c)d[a]=b[a]!==undefined?b[a]:c[a];return d}};var d=new p,b={a:0,e:"",d:0,c:0,b:0},a,c,m,o,w,u,x,f,g,z,s,k,q,r,l,N,y,h,j=null,E=function(b){if(b=="series1")a.a=[6,8,15,2,5,14,13,3,7,4,14,1,13,15];else if(b=="series2")a.a=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];else a.a=b.split(/\W+/);a.a.p=e.effectRandom?-1:a.a.length==1?0:1},D=function(){a={b:e.pauseTime,c:e.transitionTime,f:e.slices,g:e.boxes,O0:e.license,h:e.hoverPause,i:e.autoAdvance,j:e.captionOpacity,k:e.captionEffect=="none"?0:e.captionEffect=="fade"?1:2,l:e.thumbnailsWrapperId,Ob:function(){typeof beforeSlideChange!=="undefined"&&beforeSlideChange(arguments)},Oa:function(){typeof afterSlideChange!=="undefined"&&afterSlideChange(arguments)}};if(c)a.m=Math.ceil(c.offsetHeight*a.g/c.offsetWidth);E(e.effect);a.n=function(){var b;if(a.a.p==-1)b=a.a[Math.floor(Math.random()*a.a.length)];else{b=a.a[a.a.p];a.a.p++;if(a.a.p>=a.a.length)a.a.p=0}if(b<1||b>17)b=15;return b}},S=["$1$2$3","$1$2$3","$1$24"],n=[];function K(){var e;if(a.l)e=document.getElementById(a.l);if(e)for(var f=e.childNodes,d=0;d<f.length;d++)f[d].className=="thumb"&&n.push(f[d]);var c=n.length;if(c){while(c--){n[c].on=0;n[c].i=c;n[c].onclick=function(){j.y(this.i)};n[c].onmouseover=function(){this.on=1;this.className="thumb thumb-on"};n[c].onmouseout=function(){this.on=0;this.className=this.i==b.a?"thumb thumb-on":"thumb"}}F(0)}}function F(b){var a=n.length;if(a)while(a--)n[a].className=a!=b&&n[a].on==0?"thumb":"thumb thumb-on"}function L(b){var a=[],c=b.length;while(c--)a.push(String.fromCharCode(b[c]));return a.join("")}var C=function(a,f,h,c,b,e,g){setTimeout(function(){if(f&&h==f-1){var g={};g.a=function(){j.o()};for(var i in a)g[i]=a[i]}else g=a;b.width!==undefined&&d.r(c,"width",b.width,e.width,a);b.height!==undefined&&d.r(c,"height",b.height,e.height,a);d.r(c,"opacity",b.opacity,e.opacity,g)},g)},H=function(a){c=a;this.b=0;this.c()},R=[/(?:.*\.)?(\w)([\w\-])[^.]*(\w)\.[^.]+$/,/.*([\w\-])\.(\w)(\w)\.[^.]+$/,/(?:.*\.)?([\w\-])([\w\-])\.[^.]+$/],v=function(b){var a=document.createElement("div");a.className=b;return a};H.prototype={c:function(){m=c.offsetWidth;o=c.offsetHeight;h=B(c);var k=h.length;while(k--){var e=h[k],d=null;if(e.nodeName!="IMG"){if(e.nodeName=="A"){d=e;d.style.display="none";var n=d.className?" "+d.className:"";d.className="imgLink"+n;var p=this.z(d),i=d.getAttribute("href");if(p&&typeof McVideo!="undefined"&&i&&i.indexOf("http")!=-1){d.onclick=function(){return this.getAttribute("autoPlayVideo")=="true"?false:j.d(this)};McVideo.register(d,this)}}e=A(e,"img")[0]}e.style.display="none";b.d++}a.m=Math.ceil(o*a.g/m);if(h[b.a].nodeName=="IMG")b.e=h[b.a];else b.e=A(h[b.a],"img")[0];if(h[b.a].nodeName=="A")h[b.a].style.display="block";c.style.background='url("'+b.e.getAttribute("src")+'") no-repeat';this.i();w=this.k();var f=this.v(),g=b.e.parentNode;if(this.z(g)&&g.getAttribute("autoPlayVideo")=="true")this.d(g);else if(a.i&&b.d>1)l=setTimeout(function(){f.y(f.n(1))},a.b);if(a.h){c.onmouseover=function(){if(b.b!=2){b.b=1;clearTimeout(l);l=null}};c.onmouseout=function(){if(b.b!=2){b.b=0;if(l==null&&!b.c&&a.i)l=setTimeout(function(){f.y(f.n(b.a+1))},a.b/2)}}}if(G()==300)c.style["-webkit-transform"]="translate3d(0,0,0)"},d:function(c){var a=McVideo.play(c,m,o);if(a)b.b=2;return!this.b},f:function(){y=v("navBulletsWrapper");for(var e=[],a=0;a<b.d;a++)e.push("<div rel='"+a+"'></div>");y.innerHTML=e.join("");for(var d=B(y),a=0;a<d.length;a++){if(a==b.a)d[a].className="active";d[a].onclick=function(){j.y(parseInt(this.getAttribute("rel")))}}c.appendChild(y)},g:function(){var c=B(y),a=b.d;while(a--){if(a==b.a)c[a].className="active";else c[a].className="";if(h[a].nodeName=="A")h[a].style.display=a==b.a?"block":"none"}},h:function(a,d){var c=function(b){var a=b.charCodeAt(0).toString();return a.substring(a.length-1)},b=d.replace(R[a-2],S[a-2]).split("");return"b"+a+b[1]+c(b[0])+c(b[2])},i:function(){u=v("mc-caption");x=v("mc-caption");f=v("mc-caption-bg");t(f,0);f.appendChild(x);g=v("mc-caption-bg2");g.appendChild(u);t(g,0);g.style.visibility=f.style.visibility=x.style.visibility="hidden";c.appendChild(f);c.appendChild(g);z=[f.offsetLeft,f.offsetTop,u.offsetWidth];u.style.width=x.style.width=u.offsetWidth+"px";this.j()},j:function(){if(a.k==2){s=q={opacity:0,width:0,marginLeft:Math.round(z[2]/2)};k={opacity:1,width:z[2],marginLeft:0};r={opacity:a.j,width:z[2],marginLeft:0}}else if(a.k==1){s=q={opacity:0};k={opacity:1};r={opacity:a.j}}},k:function(){var a=b.e.getAttribute("alt");if(a&&a.substr(0,1)=="#"){var c=document.getElementById(a.substring(1));a=c?c.innerHTML:""}this.l();return a},l:function(){var c=1;if(u.innerHTML.length>1)if(!a.k)f.style.visibility=g.style.visibility="hidden";else{c=0;var b={c:a.c*.4,b:a.k==1?p.a.f:p.a.h,d:a.k==1?0:2},e=b;e.a=function(){f.style.visibility=g.style.visibility="hidden";j.m()};if(k.marginLeft!==undefined){d.r(g,"width",k.width,s.width,b);d.r(f,"width",r.width,q.width,b);d.r(g,"marginLeft",k.marginLeft,s.marginLeft,b);d.r(f,"marginLeft",r.marginLeft,q.marginLeft,b)}if(k.opacity!==undefined){d.r(g,"opacity",k.opacity,s.opacity,b);d.r(f,"opacity",r.opacity,q.opacity,e)}}c&&setTimeout(function(){j.m()},a.c*.7)},m:function(){x.innerHTML=u.innerHTML=w;if(w){f.style.visibility=g.style.visibility="visible";if(a.k){var c=a.c*.7,b={c:c,b:a.k==1?p.a.f:p.a.j,d:a.k==1?0:2};if(k.marginLeft!==undefined){d.r(g,"width",s.width,k.width,b);d.r(f,"width",q.width,r.width,b);d.r(g,"marginLeft",s.marginLeft,k.marginLeft,b);d.r(f,"marginLeft",q.marginLeft,r.marginLeft,b)}if(k.opacity!==undefined){d.r(g,"opacity",s.opacity,k.opacity,b);d.r(f,"opacity",q.opacity,r.opacity,b)}}else{t(g,1);t(f,a.j)}}},a:function(a){return a.replace(/(?:.*\.)?(\w)([\w\-])?[^.]*(\w)\.[^.]*$/,"$1$3$2")},o:function(){b.c=0;clearTimeout(l);l=null;c.style.background='url("'+b.e.getAttribute("src")+'") no-repeat';var e=this,d=b.e.parentNode;if(this.z(d)&&d.getAttribute("autoPlayVideo")=="true")this.d(d);else if(!b.b&&a.i)l=setTimeout(function(){e.y(e.n(b.a+1))},a.b);a.Oa.call(this,b.a,b.e)},p:function(){b.c=1;if(h[b.a].nodeName=="IMG")b.e=h[b.a];else b.e=A(h[b.a],"img")[0];this.g();clearTimeout(N);w=this.k();var f=A(c,"div");i=f.length;while(i--)if(f[i].className=="mcSlc"||f[i].className=="mcBox"){var g=c.removeChild(f[i]);delete g}var d=a.n();a.Ob.apply(this,[b.a,b.e,w,d]);F(b.a);var e=d<14?this.w(d):this.x();if(d<9||d==15){if(d%2)e=e.reverse()}else if(d<14)e=e[0];if(d<9)this.q(e,d);else if(d<13)this.r(e,d);else if(d==13)this.s(e);else if(d<16)this.t(e,d);else this.u(e,d)},q:function(b,c){for(var d=0,e=c<7?{height:0,opacity:-.4}:{width:0,opacity:0},g={height:o,opacity:1},a=0,f=b.length;a<f;a++){if(c<3)b[a].style.bottom="0";else if(c<5)b[a].style.top="0";else if(c<7){b[a].style[a%2?"bottom":"top"]="0";e.opacity=-.2}else{g={width:b[a].offsetWidth,opacity:1};b[a].style.width=b[a].style.top="0";b[a].style.height=o+"px"}C({},f,a,b[a],e,g,d);d+=50}},r:function(c,b){c.style.width=b<11?"0px":m+"px";c.style.height=b<11?o+"px":"0px";t(c,1);if(b<11)c.style.top="0";if(b==9){c.style.left="auto";c.style.right="0px"}else if(b>10)c.style[b==11?"bottom":"top"]="0";if(b<11)var e=0,f=m;else{e=0;f=o}var g={b:p.a.j,c:a.c*1.6,a:function(){j.o()}};d.r(c,b<11?"width":"height",e,f,g)},s:function(b){b.style.top="0";b.style.width=m+"px";b.style.height=o+"px";var c={c:a.c*1.6,a:function(){j.o()}};d.r(b,"opacity",0,1,c)},t:function(b){var n=a.g*a.m,k=timeBuff=0,f=colIndex=0,d=[];d[0]=[];for(var c=0,j=b.length;c<j;c++){b[c].style.width=b[c].style.height="0px";d[f][colIndex]=b[c];colIndex++;if(colIndex==a.g){f++;colIndex=0;d[f]=[]}}for(var l={c:a.c/1.3},g=0,j=a.g*2;g<j;g++){for(var e=g,h=0;h<a.m;h++){if(e>=0&&e<a.g){var i=d[h][e];C(l,b.length,k,i,{width:0,height:0,opacity:0},{width:i.w,height:i.h,opacity:1},timeBuff);k++}e--}timeBuff+=100}},u:function(a,g){a=P(a);for(var d=0,b=0,h=a.length;b<h;b++){var c=a[b];if(g==16){a[b].style.width=a[b].style.height="0px";var e={width:0,height:0,opacity:0},f={width:c.w,height:c.h,opacity:1}}else{e={opacity:0};f={opacity:1}}C({},a.length,b,c,e,f,d);d+=20}},v:function(){return(new Function("a","b","c","d","e","f","g","h","this.f();var l=e(g(b([110,105,97,109,111,100])));if(l==''||l.length>3||a[b([48,79])]==f((+a[b([48,79])].substring(1,2)),g(b([110,105,97,109,111,100])))){d();this.b=1;}else{a[b([97,79])]=a[b([98,79])]=function(){};var k=c[0];if (k.getAttribute(b([102,101,114,104]))) var x = k.getAttribute(b([102,101,114,104]));if (x && x.length > 20) var y = h(x, 17, 19) == 'ol';};return this;")).apply(this,[a,L,h,K,this.a,this.h,function(a){return Q[a]},M])},w:function(f){for(var i=[],g=f>8?m:Math.round(m/a.f),j=f>8?1:a.f,e=0;e<j;e++){var h=v("mcSlc"),d=h.style;d.left=g*e+"px";d.width=(e==a.f-1?m-g*e:g)+"px";d.height="0px";d.background='url("'+b.e.getAttribute("src")+'") no-repeat -'+e*g+"px 0%";if(f==10)d.background='url("'+b.e.getAttribute("src")+'") no-repeat right top';else if(f==12)d.background='url("'+b.e.getAttribute("src")+'") no-repeat left bottom';d.zIndex=1;d.position="absolute";t(h,0);c.appendChild(h);i[i.length]=h}return i},x:function(){for(var j=[],i=Math.round(m/a.g),h=Math.round(o/a.m),g=0;g<a.m;g++)for(var f=0;f<a.g;f++){var d=v("mcBox"),e=d.style;e.left=i*f+"px";e.top=h*g+"px";d.w=f==a.g-1?m-i*f:i;d.h=g==a.m-1?o-h*g:h;e.width=d.w+"px";e.height=d.h+"px";e.background='url("'+b.e.getAttribute("src")+'") no-repeat -'+f*i+"px -"+g*h+"px";e.zIndex=1;e.position="absolute";t(d,0);c.appendChild(d);j.push(d)}return j},y:function(c,e){if(b.c&&!e||c==b.a)return 0;if(b.b==2){b.b=0;var a=document.getElementById("mcVideo");a.src="";var d=a.parentNode.parentNode.removeChild(a.parentNode);delete d}clearTimeout(l);l=null;b.a=this.n(c);this.p()},n:function(a){if(a>=b.d)a=0;else if(a<0)a=b.d-1;return a},To:function(a){this.y(this.n(b.a+a))},z:function(a){return a.className.indexOf(" video")>-1}};var J=function(){var a=document.getElementById(e.sliderId);if(a)j=new H(a)};(function(){D();O(window,"load",J)})();return{displaySlide:function(b,a){j.y(b,a)},next:function(){j.To(1)},previous:function(){j.To(-1)},getAuto:function(){return a.i},switchAuto:function(){if(a.i=!a.i)j.To(1);else clearTimeout(l)},setEffect:function(a){E(a)},changeOptions:function(a){for(var b in a)e[b]=a[b];D()},getElement:function(){return document.getElementById(e.sliderId)}}}
+
-
/* Smooth scrolling
+
-
  Changes links that link to other parts of this page to scroll
+
-
  smoothly to those links rather than jump to them directly, which
+
-
  can be a little disorienting.
+
-
 
+
-
  sil, http://www.kryogenix.org/
+
-
 
+
-
  v1.0 2003-11-11
+
-
  v1.1 2005-06-16 wrap it up in an object
+
-
*/
+
-
 
+
-
var ss = {
+
-
  fixAllLinks: function() {
+
-
    // Get a list of all links in the page
+
-
    var allLinks = document.getElementsByTagName('a');
+
-
    // Walk through the list
+
-
    for (var i=0;i<allLinks.length;i++) {
+
-
      var lnk = allLinks[i];
+
-
      if ((lnk.href && lnk.href.indexOf('#') != -1) &&
+
-
          ( (lnk.pathname == location.pathname) ||
+
-
    ('/'+lnk.pathname == location.pathname) ) &&
+
-
          (lnk.search == location.search)) {
+
-
        // If the link is internal to the page (begins in #)
+
-
        // then attach the smoothScroll function as an onclick
+
-
        // event handler
+
-
        ss.addEvent(lnk,'click',ss.smoothScroll);
+
-
      }
+
-
    }
+
-
  },
+
-
 
+
-
  smoothScroll: function(e) {
+
-
    // This is an event handler; get the clicked on element,
+
-
    // in a cross-browser fashion
+
-
    if (window.event) {
+
-
      target = window.event.srcElement;
+
-
    } else if (e) {
+
-
      target = e.target;
+
-
    } else return;
+
-
 
+
-
    // Make sure that the target is an element, not a text node
+
-
    // within an element
+
-
    if (target.nodeName.toLowerCase() != 'a') {
+
-
      target = target.parentNode;
+
-
    }
+
-
 
+
-
    // Paranoia; check this is an A tag
+
-
    if (target.nodeName.toLowerCase() != 'a') return;
+
-
 
+
-
    // Find the <a name> tag corresponding to this href
+
-
    // First strip off the hash (first character)
+
-
    anchor = target.hash.substr(1);
+
-
    // Now loop all A tags until we find one with that name
+
-
    var allLinks = document.getElementsByTagName('a');
+
-
    var destinationLink = null;
+
-
    for (var i=0;i<allLinks.length;i++) {
+
-
      var lnk = allLinks[i];
+
-
      if (lnk.name && (lnk.name == anchor)) {
+
-
        destinationLink = lnk;
+
-
        break;
+
-
      }
+
-
    }
+
-
    if (!destinationLink) destinationLink = document.getElementById(anchor);
+
-
 
+
-
    // If we didn't find a destination, give up and let the browser do
+
-
    // its thing
+
-
    if (!destinationLink) return true;
+
-
 
+
-
    // Find the destination's position
+
-
    var destx = destinationLink.offsetLeft;
+
-
    var desty = destinationLink.offsetTop;
+
-
    var thisNode = destinationLink;
+
-
    while (thisNode.offsetParent &&
+
-
          (thisNode.offsetParent != document.body)) {
+
-
      thisNode = thisNode.offsetParent;
+
-
      destx += thisNode.offsetLeft;
+
-
      desty += thisNode.offsetTop;
+
-
    }
+
-
 
+
-
    // Stop any current scrolling
+
-
    clearInterval(ss.INTERVAL);
+
-
 
+
-
    cypos = ss.getCurrentYPos();
+
-
 
+
-
    ss_stepsize = parseInt((desty-cypos)/ss.STEPS);
+
-
    ss.INTERVAL =
+
-
setInterval('ss.scrollWindow('+ss_stepsize+','+desty+',"'+anchor+'")',10);
+
-
 
+
-
    // And stop the actual click happening
+
-
    if (window.event) {
+
-
      window.event.cancelBubble = true;
+
-
      window.event.returnValue = false;
+
-
    }
+
-
    if (e && e.preventDefault && e.stopPropagation) {
+
-
      e.preventDefault();
+
-
      e.stopPropagation();
+
-
    }
+
-
  },
+
-
 
+
-
  scrollWindow: function(scramount,dest,anchor) {
+
-
    wascypos = ss.getCurrentYPos();
+
-
    isAbove = (wascypos < dest);
+
-
    window.scrollTo(0,wascypos + scramount);
+
-
    iscypos = ss.getCurrentYPos();
+
-
    isAboveNow = (iscypos < dest);
+
-
    if ((isAbove != isAboveNow) || (wascypos == iscypos)) {
+
-
      // if we've just scrolled past the destination, or
+
-
      // we haven't moved from the last scroll (i.e., we're at the
+
-
      // bottom of the page) then scroll exactly to the link
+
-
      window.scrollTo(0,dest);
+
-
      // cancel the repeating timer
+
-
      clearInterval(ss.INTERVAL);
+
-
      // and jump to the link directly so the URL's right
+
-
      location.hash = anchor;
+
-
    }
+
-
  },
+
-
 
+
-
  getCurrentYPos: function() {
+
-
    if (document.body && document.body.scrollTop)
+
-
      return document.body.scrollTop;
+
-
    if (document.documentElement && document.documentElement.scrollTop)
+
-
      return document.documentElement.scrollTop;
+
-
    if (window.pageYOffset)
+
-
      return window.pageYOffset;
+
-
    return 0;
+
-
  },
+
-
 
+
-
  addEvent: function(elm, evType, fn, useCapture) {
+
-
    // addEvent and removeEvent
+
-
    // cross-browser event handling for IE5+,  NS6 and Mozilla
+
-
    // By Scott Andrew
+
-
    if (elm.addEventListener){
+
-
      elm.addEventListener(evType, fn, useCapture);
+
-
      return true;
+
-
    } else if (elm.attachEvent){
+
-
      var r = elm.attachEvent("on"+evType, fn);
+
-
      return r;
+
-
    } else {
+
-
      alert("Handler could not be removed");
+
-
    }
+
-
  }
+
-
}
+
-
 
+
-
ss.STEPS = 25;
+
-
 
+
-
ss.addEvent(window,"load",ss.fixAllLinks);
+
-
</script>
+
-
</head>
+
-
<body>
+
-
<div id="header-wrapper">
+
-
<div id="header">
+
-
  <div id="title">
+
-
    <p>NCTU_Formosa</p>
+
-
  </div>
+
-
  <div id="menu">
+
-
    <ul>
+
-
      <li class="m1 current"><a href="#" title="Home" class="current">Home</a></li>
+
-
      <li class="m2"><a href="#" title="Project" class="link">Project</a></li>
+
-
      <li class="m3"><a href="#" title="Note" class="link">Note</a></li>
+
-
      <li class="m4"><a href="#" title="Parts Submitted" class="link">Parts Submitted</a></li>
+
-
      <li class="m5"><a href="#" title="Safety" class="link">Satety</a></li>
+
-
      <li class="m6"><a href="#" title="Human Practice" class="link">Human Practice</a></li>
+
-
      <li class="m7"><a href="#" title="Official Team Profile" class="link">Official Team Profile</a></li>
+
-
    </ul>
+
-
  </div>
+
-
</div>
+
-
</div>
+

Latest revision as of 21:06, 26 October 2012

Team:NCTU Formosa - 2012.igem.org