Valor Blogger Template


SUBMITTED BY: Guest

DATE: Dec. 19, 2013, 10:07 a.m.

FORMAT: Text only

SIZE: 191.4 kB

HITS: 1010

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE html>
  3. <html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
  4. <head>
  5. <b:include data='blog' name='all-head-content'/>
  6. <b:if cond='data:blog.pageType == "index"'>
  7. <title><data:blog.pageTitle/></title>
  8. <b:else/>
  9. <title><data:blog.pageName/> ~ <data:blog.title/></title>
  10. </b:if>
  11. <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800,300' rel='stylesheet' type='text/css'/>
  12. <!--[if lt IE 9]>
  13. <script type='text/javascript'>
  14. //<![CDATA[
  15. // html5shiv MIT @rem remysharp.com/html5-enabling-script
  16. // iepp v1.6.2 MIT @jon_neal iecss.com/print-protector
  17. /*@cc_on(function(a,b){function r(a){var b=-1;while(++b<f)a.createElement(e[b])}if(!(!window.attachEvent||!b.createStyleSheet||!function(){var a=document.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}())){a.iepp=a.iepp||{};var c=a.iepp,d=c.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",e=d.split("|"),f=e.length,g=new RegExp("(^|\\s)("+d+")","gi"),h=new RegExp("<(/*)("+d+")","gi"),i=/^\s*[\{\}]\s*$/,j=new RegExp("(^|[^\\n]*?\\s)("+d+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),k=b.createDocumentFragment(),l=b.documentElement,m=l.firstChild,n=b.createElement("body"),o=b.createElement("style"),p=/print|all/,q;c.getCSS=function(a,b){if(a+""===undefined)return"";var d=-1,e=a.length,f,g=[];while(++d<e){f=a[d];if(f.disabled)continue;b=f.media||b,p.test(b)&&g.push(c.getCSS(f.imports,b),f.cssText),b="all"}return g.join("")},c.parseCSS=function(a){var b=[],c;while((c=j.exec(a))!=null)b.push(((i.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(g,"$1.iepp_$2")+c[4]);return b.join("\n")},c.writeHTML=function(){var a=-1;q=q||b.body;while(++a<f){var c=b.getElementsByTagName(e[a]),d=c.length,g=-1;while(++g<d)c[g].className.indexOf("iepp_")<0&&(c[g].className+=" iepp_"+e[a])}k.appendChild(q),l.appendChild(n),n.className=q.className,n.id=q.id,n.innerHTML=q.innerHTML.replace(h,"<$1font")},c._beforePrint=function(){o.styleSheet.cssText=c.parseCSS(c.getCSS(b.styleSheets,"all")),c.writeHTML()},c.restoreHTML=function(){n.innerHTML="",l.removeChild(n),l.appendChild(q)},c._afterPrint=function(){c.restoreHTML(),o.styleSheet.cssText=""},r(b),r(k);if(c.disablePP)return;m.insertBefore(o,m.firstChild),o.media="print",o.className="iepp-printshim",a.attachEvent("onbeforeprint",c._beforePrint),a.attachEvent("onafterprint",c._afterPrint)}})(this,document)@*/
  18. //]]>
  19. </script>
  20. <![endif]-->
  21. <b:skin><![CDATA[/*
  22. -----------------------------------------------
  23. Template Name : Valor
  24. Author : NewBloggerThemes.com
  25. Author URL : http://newbloggerthemes.com/
  26. Theme URL : http://newbloggerthemes.com/valor-blogger-template/
  27. Created Date : Tuesday, October 4, 2012
  28. License : This template is free for both personal and commercial use, But to satisfy the 'attribution' clause of the license, you are required to keep the footer links intact which provides due credit to its authors.For more information about this license, please use this link :http://creativecommons.org/licenses/by/3.0/
  29. ----------------------------------------------- */
  30. body#layout ul{list-style-type:none;list-style:none}
  31. body#layout ul li{list-style-type:none;list-style:none}
  32. body#layout #content {width:600px;}
  33. body#layout #nbtfeature {display:none;}
  34. body#layout #videoslide {display:none;}
  35. /* Variable definitions
  36. ====================
  37. */
  38. /* Use this with templates/template-twocol.html */
  39. html, body, div, span, applet, object, iframe,
  40. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  41. a, abbr, acronym, address, big, cite, code,
  42. del, dfn, em, font, ins, kbd, q, s, samp,
  43. small, strike, strong, sub, sup, tt, var,
  44. dl, dt, dd, ol, ul, li,
  45. fieldset, form, label, legend,
  46. table, caption, tbody, tfoot, thead, tr, th, td {
  47. border: 0;
  48. font-style: inherit;
  49. font-weight: inherit;
  50. margin: 0;
  51. outline: 0;
  52. padding: 0;
  53. vertical-align: baseline;
  54. }
  55. :focus {
  56. /* remember to define focus styles! */
  57. outline: 0;
  58. }
  59. ol, ul {
  60. list-style: none;
  61. }
  62. table {
  63. /* tables still need 'cellspacing="0"' in the markup */
  64. border-collapse: separate;
  65. border-spacing: 0;
  66. }
  67. caption, th, td {
  68. font-weight: normal;
  69. text-align: left;
  70. }
  71. blockquote:before, blockquote:after,
  72. q:before, q:after {
  73. content: "";
  74. }
  75. blockquote, q {
  76. quotes: "" "";
  77. }
  78. a img {
  79. border: 0;
  80. }
  81. article, aside, details, figcaption, figure,
  82. footer, header, hgroup, menu, nav, section {
  83. display: block;
  84. }
  85. /* BASIC */
  86. body {
  87. font-family: Open Sans,Arial,Century gothic, sans-serif;
  88. color: #555;
  89. font-size: 13px;
  90. font-weight: 300;
  91. background-image: url(http://1.bp.blogspot.com/-fW8OquHNB4c/UQhGc8K08EI/AAAAAAAABAo/xAtgZ7OQIJM/s000/background.jpg);
  92. background-repeat: repeat-x;
  93. background-position: top center;
  94. background-attachment: fixed;
  95. background-color: #eee;
  96. }
  97. img {
  98. border: 0;
  99. margin: 0;
  100. }
  101. a {
  102. color: #3C95D5;
  103. text-decoration: none;
  104. outline: none;
  105. }
  106. a:hover {
  107. color: #000;
  108. text-decoration: none;
  109. }
  110. blockquote {
  111. color: #59666f;
  112. font-style: italic;
  113. font-family: Georgia;
  114. padding: 10px;
  115. }
  116. .clear {
  117. clear: both;
  118. }
  119. table {
  120. border-collapse: collapse;
  121. border-spacing: 0;
  122. border: 1px solid #fff;
  123. margin: 10px 0;
  124. }
  125. table td,table th {
  126. text-align: left;
  127. border: 1px solid #fff;
  128. padding: .4em .8em;
  129. }
  130. table th {
  131. background: #ddd;
  132. color: #999;
  133. text-transform: uppercase;
  134. font-weight: 400;
  135. border: 1px solid #fff;
  136. }
  137. table td {
  138. border: 1px solid #fff;
  139. background: #eee;
  140. color: #555;
  141. }
  142. table tr.even td {
  143. background: #eee;
  144. border: none;
  145. }
  146. table tr:hover td {
  147. background: #FFF9DF;
  148. }
  149. img.aligncenter {
  150. display: block;
  151. margin-left: auto;
  152. margin-right: auto;
  153. margin-bottom: 10px;
  154. background: #eee;
  155. padding: 5px;
  156. }
  157. img.alignnone {
  158. display: inline;
  159. background: #eee;
  160. margin: 0 0 10px;
  161. padding: 5px;
  162. }
  163. img.alignright {
  164. display: inline;
  165. background: #eee;
  166. margin: 5px 0 10px 10px;
  167. padding: 5px;
  168. }
  169. img.alignleft {
  170. display: inline;
  171. background: #eee;
  172. margin: 5px 15px 10px 0;
  173. padding: 5px;
  174. }
  175. .aligncenter {
  176. display: block;
  177. margin-left: auto;
  178. margin-right: auto;
  179. margin-bottom: 10px;
  180. }
  181. .alignright {
  182. float: right;
  183. margin: 0 0 10px 10px;
  184. }
  185. .alignleft {
  186. float: left;
  187. margin: 10px 15px 10px 0;
  188. }
  189. .wp-caption {
  190. text-align: center;
  191. background: #eee;
  192. margin: 10px;
  193. padding: 4px 0 5px;
  194. }
  195. .wp-caption img {
  196. border: 0;
  197. margin: 0 0 5px;
  198. padding: 0;
  199. }
  200. .wp-caption p.wp-caption-text {
  201. font-size: 11px;
  202. font-weight: 400;
  203. line-height: 12px;
  204. color: #444;
  205. margin: 0;
  206. padding: 0;
  207. }
  208. .clearfix:after {
  209. content: ".";
  210. display: block;
  211. clear: both;
  212. visibility: hidden;
  213. line-height: 0;
  214. height: 0;
  215. }
  216. .clearfix {
  217. display: inline-block;
  218. }
  219. html[xmlns] .clearfix {
  220. display: block;
  221. }
  222. * html .clearfix {
  223. height: 1%;
  224. }
  225. h1,
  226. h2,
  227. h3,
  228. h4,
  229. h5,
  230. h6 {
  231. font-weight: 700;
  232. padding: 0;
  233. }
  234. /* #Forms
  235. ================================================== */
  236. form {
  237. margin-bottom: 20px;
  238. }
  239. fieldset {
  240. margin-bottom: 20px;
  241. }
  242. input[type="text"],
  243. input[type="password"],
  244. input[type="email"],
  245. textarea,
  246. select {
  247. border: 1px solid #ccc;
  248. padding: 6px 4px;
  249. outline: none;
  250. -moz-border-radius: 2px;
  251. -webkit-border-radius: 2px;
  252. border-radius: 2px;
  253. font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  254. color: #777;
  255. margin: 0;
  256. width: 210px;
  257. max-width: 100%;
  258. display: block;
  259. margin-bottom: 20px;
  260. background: #fff;
  261. }
  262. select {
  263. padding: 0;
  264. }
  265. textarea {
  266. min-height: 60px;
  267. }
  268. label,
  269. legend {
  270. display: block;
  271. font-weight: bold;
  272. font-size: 13px;
  273. }
  274. select {
  275. width: 220px;
  276. }
  277. input[type="checkbox"] {
  278. display: inline;
  279. }
  280. label span,
  281. legend span {
  282. font-weight: normal;
  283. font-size: 13px;
  284. color: #444;
  285. }
  286. /* OUTER */
  287. #wrapper {
  288. margin: 50px auto;
  289. background: #fff;
  290. width: 1000px;
  291. }
  292. #casing {
  293. padding: 0px 0px 25px 0px;
  294. }
  295. /*Header*/
  296. #masthead {
  297. height: 160px;
  298. }
  299. #top {
  300. height: 100px;
  301. width: 1000px;
  302. }
  303. .blogname {
  304. width: 600px;
  305. float: left;
  306. margin: 20px 0px 0px 25px;
  307. }
  308. .blogname h1 {
  309. font-weight: 800;
  310. font-size: 30px;
  311. text-transform: uppercase;
  312. }
  313. .blogname h1 a, .blogname h1 a:visited {
  314. color: #000;
  315. }
  316. .blogname h2 {
  317. font-size: 14px;
  318. color: #333333;
  319. }
  320. /* TOP-MENU */
  321. #botmenu {
  322. height: 60px;
  323. width: 1000px;
  324. margin: 0px auto;
  325. float: left;
  326. background: url(http://3.bp.blogspot.com/-5UChsQh382s/UQhGdXy8_EI/AAAAAAAABAw/Pdm66BVYg2w/s000/menu.png) repeat-x;
  327. }
  328. #subnav {
  329. clear: both;
  330. color: #fff;
  331. font-size: 14px;
  332. text-transform: uppercase;
  333. margin: 0 auto;
  334. overflow: hidden;
  335. width: 1000px;
  336. }
  337. #subnav ul {
  338. float: left;
  339. width: 970px;
  340. padding: 0px 15px;
  341. }
  342. #subnav li {
  343. float: left;
  344. list-style-type: none;
  345. font-weight: 700;
  346. }
  347. #subnav li a {
  348. color: #e7e7e7;
  349. display: block;
  350. padding: 25px 10px 15px 10px;
  351. position: relative;
  352. text-decoration: none;
  353. }
  354. #subnav li a:hover,
  355. #subnav li a:active,
  356. #subnav .current-menu-item a {
  357. background: url(http://1.bp.blogspot.com/-QjzO7_THles/UQhGdozMimI/AAAAAAAABA4/0f97og2MbQY/s000/menua.png) repeat-x;
  358. color: #fff;
  359. }
  360. #subnav li a .sf-sub-indicator {
  361. display: block;
  362. overflow: hidden;
  363. position: absolute;
  364. text-indent: -9999px;
  365. }
  366. #subnav li li a,
  367. #subnav li li a:link,
  368. #subnav li li a:visited {
  369. background-color: #383e40;
  370. border-top-width: 0;
  371. color: #e7e7e7;
  372. font-size: 13px;
  373. padding: 10px 10px;
  374. position: relative;
  375. text-transform: none;
  376. width: 140px;
  377. font-weight: 400;
  378. }
  379. #subnav li li a:hover,
  380. #subnav li li a:active {
  381. color: #fff;
  382. background: #262A2B;
  383. }
  384. #subnav li ul {
  385. height: auto;
  386. padding: 0px 0px;
  387. left: -9999px;
  388. margin: 0 0 0 1px;
  389. position: absolute;
  390. width: 160px;
  391. z-index: 9999;
  392. }
  393. #subnav li ul a {
  394. width: 160px;
  395. }
  396. #subnav li ul ul {
  397. margin: -38px 0 0 160px;
  398. }
  399. #subnav li:hover>ul,
  400. #subnav li.sfHover ul {
  401. left: auto;
  402. }
  403. /* SEARCH FORM */
  404. #search {
  405. width: 270px;
  406. padding: 0px;
  407. margin: 35px 25px 0px 0px;
  408. display: inline-block;
  409. float: right;
  410. background: #f8f8f8;
  411. border: 1px solid #e7e7e7;
  412. }
  413. #search form {
  414. margin: 0px 0px 0px 0px;
  415. padding: 0;
  416. }
  417. #search fieldset {
  418. margin: 0;
  419. padding: 0;
  420. border: none;
  421. }
  422. #search p {
  423. margin: 0;
  424. font-size: 85%;
  425. }
  426. #s {
  427. width: 200px;
  428. background: #f8f8f8;
  429. margin: 0px 0px 0px 0px;
  430. padding: 5px 5px;
  431. height: 20px;
  432. border: none;
  433. color: #555;
  434. float: left;
  435. display: inline;
  436. }
  437. #searchsubmit {
  438. background: #2C3436;
  439. border: none;
  440. color: #fff;
  441. display: block;
  442. width: 60px;
  443. height: 30px;
  444. line-height: 30px;
  445. float: right;
  446. cursor: pointer;
  447. margin: 0px 0px 0px 0px;
  448. }
  449. /*Carousel */
  450. #videoslide {
  451. background: #1c2122;
  452. width: 1000px;
  453. position: relative;
  454. border-top: 5px solid #000;
  455. height:348px;
  456. overflow:hidden;
  457. }
  458. .caroselhead {
  459. background: url(http://2.bp.blogspot.com/-jE_oWXntT7U/UQhGehGBGvI/AAAAAAAABBA/M4HJBugCbmM/s000/caros.png) top repeat-x;
  460. height: 43px;
  461. }
  462. .caroselhead h2 {
  463. float: left;
  464. font-weight: 400;
  465. text-transform: uppercase;
  466. color: #fff;
  467. padding-top: 8px;
  468. margin-left: 25px;
  469. }
  470. .prev {
  471. position: absolute;
  472. top: 10px;
  473. right: 50px;
  474. width: 19px;
  475. height: 19px;
  476. background: url(http://3.bp.blogspot.com/-9S2IgU18M4Q/UQhGe1AsThI/AAAAAAAABBI/YnU1V3YcK6k/s000/left.png);
  477. }
  478. .next {
  479. position: absolute;
  480. top: 10px;
  481. right: 25px;
  482. width: 19px;
  483. height: 19px;
  484. background: url(http://4.bp.blogspot.com/-mh0cOgPed2A/UQhGfeozblI/AAAAAAAABBQ/4vV1vLrzHaY/s000/right.png);
  485. }
  486. .timer {
  487. background-color: #F64118;
  488. height: 1px;
  489. width: 0px;
  490. }
  491. li.panel {
  492. float: left;
  493. width: 170px;
  494. background: #eee;
  495. margin-left: 25px;
  496. margin-top: 25px;
  497. margin-bottom: 25px;
  498. list-style: none;
  499. }
  500. img.v-image {
  501. margin: 10px 10px 0px 10px;
  502. }
  503. .panel h3 {
  504. text-align: center;
  505. text-transform: uppercase;
  506. color: #000;
  507. font-size: 14px;
  508. margin: 10px 0px;
  509. font-weight: 700;
  510. }
  511. .panel h3 a,.panel h3 a:visited {
  512. color: #000;
  513. }
  514. /*home left*/
  515. #home-content {
  516. width: 560px;
  517. margin: 25px 0px 0px 25px;
  518. float: left;
  519. }
  520. h2.sectionhead {
  521. font-weight: 400;
  522. text-transform: uppercase;
  523. color: #555;
  524. border-bottom: 1px solid #bbb;
  525. padding-bottom: 10px;
  526. margin-bottom: 10px;
  527. }
  528. .story {
  529. margin-bottom: 25px;
  530. }
  531. span.categ {
  532. font-size: 10px;
  533. text-transform: uppercase;
  534. }
  535. span.categ a, span.categ a:visited {
  536. color: #3C95D5;
  537. }
  538. .story h2 {
  539. font-weight: 700;
  540. text-transform: uppercase;
  541. font-size: 14px;
  542. padding: 0px 0px 10px 0px;
  543. }
  544. .story h2 a, .story h2 a:visited {
  545. color: #000;
  546. }
  547. img.s-image {
  548. float: left;
  549. margin: 5px 20px 0px 0px;
  550. }
  551. a.rmore {
  552. padding: 3px 8px;
  553. background: #333;
  554. color: #fff;
  555. -webkit-border-radius: 3px;
  556. -moz-border-radius: 3px;
  557. border-radius: 3px;
  558. float:right;
  559. margin-right:10px;
  560. margin-top:5px;
  561. }
  562. /*Home right*/
  563. #homeright {
  564. width: 365px;
  565. float: right;
  566. margin-right: 25px;
  567. margin-top: 25px;
  568. }
  569. .latest-review {
  570. margin-bottom: 20px;
  571. }
  572. .reviewbox {
  573. margin-bottom: 10px;
  574. padding-bottom: 10px;
  575. border-bottom: 1px dotted #ddd;
  576. }
  577. .reviewbox h2 {
  578. font-weight: 700;
  579. text-transform: uppercase;
  580. font-size: 14px;
  581. padding: 0px 0px 10px 0px;
  582. }
  583. .reviewbox h2 a, .reviewbox h2 a:visited {
  584. color: #000;
  585. }
  586. p.rate {
  587. font-weight: 400;
  588. text-transform: uppercase;
  589. font-size: 12px;
  590. margin-bottom: 0px;
  591. }
  592. p.orate {
  593. font-weight: 700;
  594. text-transform: uppercase;
  595. font-size: 14px;
  596. margin-bottom: 0px;
  597. color: #E21212;
  598. }
  599. /*Article*/
  600. #left {
  601. float: left;
  602. margin-left: 25px;
  603. margin-top: 25px;
  604. width: 640px;
  605. word-wrap:break-word;
  606. overflow:hidden;
  607. }
  608. .post {
  609. margin-bottom: 20px;
  610. }
  611. .bposttitle {
  612. padding-bottom: 20px;
  613. }
  614. .bposttitle h2, .bposttitle h2 a, .bposttitle h2 a:visited {
  615. font-weight: 700;
  616. color: #000;
  617. font-size: 24px;
  618. margin-bottom:5px;
  619. }
  620. .entry,.bentry {
  621. line-height: 24px;
  622. }
  623. .entry p {
  624. margin-bottom: 10px;
  625. }
  626. .entry h1,
  627. .entry h2,
  628. .entry h3,
  629. .entry h4,
  630. .entry h5,
  631. .entry h6 {
  632. margin: 0 0 20px 0;
  633. }
  634. .entry ul, .entry ol {
  635. margin: .4em 0 1em;
  636. line-height: 150%;
  637. }
  638. .entry ul li, .entry ol li {
  639. list-style-position: outside;
  640. margin-left: 1.6em;
  641. }
  642. .entry ol li {
  643. list-style: decimal;
  644. }
  645. .entry ul li {
  646. list-style: disc;
  647. }
  648. img.postim {
  649. margin-bottom: 20px;
  650. }
  651. img.vs-image {
  652. float: left;
  653. margin: 5px 20px 20px 0px;
  654. }
  655. /*Review*/
  656. .ratebar {
  657. height: 30px;
  658. width: 660px;
  659. background: #eee;
  660. margin: 10px 0px 0px 0px;
  661. }
  662. span.ratehead {
  663. display: block;
  664. width: 100px;
  665. background: #222;
  666. color: #fff;
  667. text-transform: uppercase;
  668. font-weight: 700;
  669. padding: 0px 10px;
  670. line-height: 30px;
  671. float: left;
  672. font-size: 18px;
  673. }
  674. span.ratevalue {
  675. display: block;
  676. width: 40px;
  677. background: #000;
  678. color: #fff;
  679. text-transform: uppercase;
  680. font-weight: 700;
  681. line-height: 30px;
  682. text-align: center;
  683. float: left;
  684. font-size: 18px;
  685. }
  686. span.rbar {
  687. background: #5ED341;
  688. display: block;
  689. float: left;
  690. height: 30px;
  691. }
  692. .rate-1 {
  693. width: 50px
  694. }
  695. .rate-2 {
  696. width: 100px
  697. }
  698. .rate-3 {
  699. width: 150px
  700. }
  701. .rate-4 {
  702. width: 200px
  703. }
  704. .rate-5 {
  705. width: 250px
  706. }
  707. .rate-6 {
  708. width: 300px
  709. }
  710. .rate-7 {
  711. width: 350px
  712. }
  713. .rate-8 {
  714. width: 400px
  715. }
  716. .rate-9 {
  717. width: 450px
  718. }
  719. .rate-10 {
  720. width: 500px
  721. }
  722. /*Sidebar*/
  723. #right {
  724. float: right;
  725. margin-right: 25px;
  726. margin-top: 25px;
  727. width: 280px;
  728. word-wrap:break-word;
  729. overflow:hidden;
  730. }
  731. .sidebar {
  732. color: #666666;
  733. line-height: 20px;
  734. }
  735. .sidebar a {
  736. text-decoration: none;
  737. color: #666666;
  738. }
  739. .sidebar a: hover {
  740. text-decoration: none;
  741. color: #000000;
  742. }
  743. .sidebar .widget {
  744. margin: 0 0 25px 0;
  745. }
  746. .sidebar .widget h2 {
  747. color: #000000;
  748. margin-bottom: 10px;
  749. text-transform: uppercase;
  750. padding: 0 0 0 0;
  751. font-size: 14px;
  752. font-weight: 700;
  753. }
  754. .sidebar .widget-content {
  755. margin: 0;
  756. }
  757. .sidebar ul {
  758. list-style-type: none;
  759. list-style: none;
  760. margin: 0;
  761. padding: 0;
  762. }
  763. .sidebar ul li {
  764. border-bottom: 1px solid #F4F4F4;
  765. padding: 7px 0;
  766. margin: 0px;
  767. }
  768. /*Footer*/
  769. #bottom {
  770. background: #1C2122;
  771. width: 1000px;
  772. }
  773. #bottom ul {
  774. margin: 0px;
  775. padding: 0px;
  776. }
  777. .botwid {
  778. float: left;
  779. width: 280px;
  780. margin: 28px 0px 25px 25px;
  781. list-style: none;
  782. }
  783. .botwid .widget h2 {
  784. padding: 0px 0px 15px 0px;
  785. color: #fff;
  786. font-size: 14px;
  787. font-weight: 700;
  788. text-transform: uppercase;
  789. }
  790. .botwid ul {
  791. list-style-type: none;
  792. margin: 0px;
  793. padding: 0px 0px 0px 0px;
  794. }
  795. .botwid li {
  796. list-style-type: none;
  797. margin: 0;
  798. padding: 0;
  799. }
  800. .botwid ul ul {
  801. list-style-type: none;
  802. margin: 0;
  803. padding: 0px 0px 0px 0px;
  804. background-repeat: no-repeat;
  805. }
  806. .botwid ul ul ul {
  807. list-style-type: none;
  808. margin: 0;
  809. padding: 0;
  810. border: 0;
  811. }
  812. .botwid ul ul ul ul {
  813. list-style-type: none;
  814. margin: 0;
  815. padding: 0;
  816. border: 0;
  817. }
  818. .botwid ul li {
  819. padding: 7px 0px 7px 0px;
  820. border-bottom: 1px dotted #444;
  821. }
  822. .botwid ul li a:link, .botwid ul li a:visited {
  823. color: #888;
  824. }
  825. .botwid ul li a:hover {
  826. color: #fff;
  827. }
  828. .botwid .textwidget {
  829. padding: 7px 0px;
  830. margin: 0;
  831. line-height: 160%;
  832. color: #888;
  833. }
  834. #footer {
  835. background: #111;
  836. padding: 25px 0px;
  837. text-align: center;
  838. }
  839. .fcred,.fcred a, .fcred a:visited {
  840. color: #eee;
  841. }
  842. /* Browser Resets */
  843. #nbtfeature {
  844. width:1000px;
  845. height:500px;
  846. overflow:hidden;
  847. }
  848. .flex-container a:active,
  849. .flexslider a:active,
  850. .flex-container a:focus,
  851. .flexslider a:focus {outline: none;}
  852. .slides,
  853. .flex-control-nav,
  854. .flex-direction-nav {margin: 0; padding: 0; list-style: none;}
  855. /* FlexSlider Necessary Styles
  856. *********************************/
  857. .flexslider {margin: 0; padding: 0;}
  858. .flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
  859. .flexslider .slides img {max-width: 100%; display: block;}
  860. .flex-pauseplay span {text-transform: capitalize;}
  861. /* Clearfix for the .slides element */
  862. .slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
  863. html[xmlns] .slides {display: block;}
  864. * html .slides {height: 1%;}
  865. /* No JavaScript Fallback */
  866. /* If you are not using another script, such as Modernizr, make sure you
  867. * include js that eliminates this class on page load */
  868. .no-js .slides > li:first-child {display: block;}
  869. /* FlexSlider Default Theme
  870. *********************************/
  871. .flexslider {background: #fff; position: relative; -webkit-border-radius: 5px; -moz-border-radius: 5px; -o-border-radius: 5px; border-radius: 5px; zoom: 1;}
  872. .flexslider .slides {zoom: 1;}
  873. .flexslider .slides > li {position: relative;}
  874. /* Suggested container for "Slide" animation setups. Can replace this with your own, if you wish */
  875. .flex-container {zoom: 1; position: relative;}
  876. /* Caption style */
  877. /* IE rgba() hack */
  878. .flex-caption {background:url(http://4.bp.blogspot.com/-HIk92t1GNCA/UQhGf1S-3fI/AAAAAAAABBU/iNJ0ur-T20Y/s000/trans.png);}
  879. .flex-caption {width: 950px; padding: 2% 25px; margin: 0; position: absolute; left: 0; bottom: 0; background: rgba(f,f,f,.3); color: #000; font-size: 14px; line-height: 22px;}
  880. .flex-caption h3{ text-transform:uppercase; font-weight:700; color:#000; margin-bottom:5px;}
  881. /* Direction Nav */
  882. .flex-direction-nav { height: 0; }
  883. .flex-direction-nav li a {width: 32px; height: 32px; margin: -16px 0 0; display: block; background: url(http://1.bp.blogspot.com/-Nj2T2OYJQOE/UQhGgvxXRUI/AAAAAAAABBg/BH2pkzGyjxY/s000/bg_direction_nav.png) no-repeat; position: absolute; top: 50%; cursor: pointer; text-indent: -999em;}
  884. .flex-direction-nav li .next {background-position: -32px 0; right: 20px;}
  885. .flex-direction-nav li .prev {left: 20px;}
  886. .flex-direction-nav li .disabled {opacity: .3; filter:alpha(opacity=30); cursor: default;}
  887. /* Control Nav */
  888. .flex-control-nav {width: 100%; position: absolute; bottom: -30px; text-align: center;}
  889. .flex-control-nav li {margin: 0 0 0 5px; display: inline-block; zoom: 1; *display: inline;}
  890. .flex-control-nav li:first-child {margin: 0;}
  891. .flex-control-nav li a {width: 13px; height: 13px; display: block; background: url(theme/bg_control_nav.png) no-repeat; cursor: pointer; text-indent: -999em;}
  892. .flex-control-nav li a:hover {background-position: 0 -13px;}
  893. .flex-control-nav li a.active {background-position: 0 -26px; cursor: default;}
  894. h2.date-header {
  895. margin: 1.5em 0 .5em;
  896. display: none;
  897. }
  898. .main .widget {
  899. margin: 0 0 5px;
  900. padding: 0 0 2px;
  901. }
  902. .main .Blog {
  903. border-bottom-width: 0;
  904. }
  905. #header .description {
  906. color:#ffffff;
  907. font-size:14px;
  908. text-shadow:0px 1px 0px #000000;
  909. }
  910. /* Comments----------------------------------------------- */
  911. #comments {
  912. padding:10px;
  913. }
  914. #comment-name-url {
  915. width: 365px;
  916. float: left;
  917. }
  918. #comment-date {
  919. width: 365px;
  920. float: left;
  921. margin-top: 5px;
  922. font-size: 10px;
  923. }
  924. #comment-header {
  925. float: left;
  926. padding: 5px 0 40px 10px;
  927. margin: 5px 0 15px 0;
  928. position: relative;
  929. background-color: #ffffff;
  930. border: 1px dashed #eeeeee;
  931. }
  932. .avatar-image-container {
  933. background: url(http: //4.bp.blogspot.com/_4HKUHirY_2U/TLlJUqSaolI/AAAAAAAAEq4/qpgAHAOe9x0/s1600/comment-avatar.jpg);
  934. width: 32px;
  935. height: 32px;
  936. float: right;
  937. margin: 5px 10px 5px 5px;
  938. border: 1px solid #dddddd;
  939. }
  940. .avatar-image-container img {
  941. width: 32px;
  942. height: 32px;
  943. }
  944. a.comments-autor-name {
  945. color: #000000;
  946. font: normal bold 14px Arial, Tahoma, Verdana;
  947. }
  948. a.says {
  949. color: #000000;
  950. font: normal 14px Arial, Tahoma, Verdana;
  951. }
  952. .says a:hover {
  953. text-decoration: none;
  954. }
  955. .deleted-comment {
  956. font-style: italic;
  957. color: gray;
  958. }
  959. #blog-pager-newer-link {
  960. float: left;
  961. }
  962. #blog-pager-older-link {
  963. float: right;
  964. }
  965. #blog-pager {
  966. text-align: center;
  967. }
  968. .feed-links {
  969. clear: both;
  970. }
  971. /* Profile ----------------------------------------------- */
  972. .profile-img {
  973. float: left;
  974. margin-top: 0;
  975. margin-right: 5px;
  976. margin-bottom: 5px;
  977. margin-left: 0;
  978. padding: 4px;
  979. border: 1px solid #eeeeee;
  980. }
  981. .profile-data {
  982. margin: 0;
  983. text-transform: uppercase;
  984. letter-spacing: .1em;
  985. color: #000000;
  986. font-weight: bold;
  987. line-height: 1.6em;
  988. }
  989. .profile-datablock {
  990. margin: .5em 0 .5em;
  991. }
  992. .profile-textblock {
  993. margin: 0.5em 0;
  994. line-height: 1.6em;
  995. }
  996. .avatar-image-container {
  997. background: url(http://4.bp.blogspot.com/-oEHFQC4ML6E/UQhGhA3j8TI/AAAAAAAABBo/FJug3ZNPqLA/s000/comment-avatar.jpg);
  998. width: 32px;
  999. height: 32px;
  1000. float: right;
  1001. margin: 5px 10px 5px 5px;
  1002. border: 1px solid #dddddd;
  1003. }
  1004. .avatar-image-container img {
  1005. width: 32px;
  1006. height: 32px;
  1007. }
  1008. .profile-link {
  1009. text-transform: uppercase;
  1010. letter-spacing: .1em;
  1011. }
  1012. .comment-form {
  1013. max-width: 600px;
  1014. }
  1015. #navbar-iframe {
  1016. height: 0;
  1017. visibility: hidden;
  1018. display: none;
  1019. }
  1020. .cover {
  1021. float: left;
  1022. width: 100%;
  1023. }
  1024. .PopularPosts .widget-content ul li {
  1025. padding:6px 0px;
  1026. }
  1027. .reaction-buttons table{
  1028. border:none;
  1029. margin-bottom:5px;
  1030. }
  1031. .reaction-buttons table, .reaction-buttons td{
  1032. border:none;
  1033. }
  1034. ]]></b:skin>
  1035. <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' type='text/javascript'/>
  1036. <script type='text/javascript'>
  1037. //<![CDATA[
  1038. jQuery(document).ready(function() {
  1039. /* Banner class */
  1040. jQuery('.squarebanner ul li:nth-child(even)').addClass('rbanner');
  1041. jQuery('ul.siderevs li:last,ul.sidetops li:last').css('border', 'none');
  1042. /* Navigation */
  1043. jQuery('#subnav ul.sfmenu').superfish({
  1044. delay: 500, // 0.1 second delay on mouseout
  1045. animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation
  1046. dropShadows: true // disable drop shadows
  1047. });
  1048. jQuery('.flexslider').flexslider({
  1049. controlNav: false,
  1050. directionNav:true,
  1051. animation: "fade", //String: Select your animation type, "fade" or "slide"
  1052. slideshow: true //Boolean: Animate slider automatically
  1053. });
  1054. // Carousel
  1055. jQuery('#carousel').carouFredSel({
  1056. prev: '#prev2',
  1057. next: '#next2',
  1058. auto: {
  1059. pauseOnHover: 'resume',
  1060. onPauseStart: function( percentage, duration ) {
  1061. jQuery(this).trigger( 'configuration', ['width', function( value ) {
  1062. jQuery('#timer1').stop().animate({
  1063. width: value
  1064. }, {
  1065. duration: duration,
  1066. easing: 'linear'
  1067. });
  1068. }]);
  1069. },
  1070. onPauseEnd: function( percentage, duration ) {
  1071. jQuery('#timer1').stop().width( 0 );
  1072. },
  1073. onPausePause: function( percentage, duration ) {
  1074. jQuery('#timer1').stop();
  1075. }
  1076. }
  1077. });
  1078. });
  1079. //]]>
  1080. </script>
  1081. <script type='text/javascript'>
  1082. //<![CDATA[
  1083. /*
  1084. * Superfish v1.4.8 - jQuery menu widget
  1085. * Copyright (c) 2008 Joel Birch
  1086. *
  1087. * Dual licensed under the MIT and GPL licenses:
  1088. * http://www.opensource.org/licenses/mit-license.php
  1089. * http://www.gnu.org/licenses/gpl.html
  1090. *
  1091. * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
  1092. */
  1093. (function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$(['<span class="',c.arrowClass,'"> &#xbb;</span>'].join("")),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl();},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(["li.",o.hoverClass].join("")).length<1){over.call(o.$path);}},o.delay);},getMenu=function($menu){var menu=$menu.parents(["ul.",c.menuClass,":first"].join(""))[0];sf.op=sf.o[menu.serial];return menu;},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone());};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$("li."+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(" ")).filter("li:has(ul)").removeClass(o.pathClass);});sf.o[s]=sf.op=o;$("li:has(ul)",this)[($.fn.hoverIntent&&!o.disableHI)?"hoverIntent":"hover"](over,out).each(function(){if(o.autoArrows){addArrow($(">a:first-child",this));}}).not("."+c.bcClass).hideSuperfishUl();var $a=$("a",this);$a.each(function(i){var $li=$a.eq(i).parents("li");$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});});o.onInit.call(this);}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7)){menuClasses.push(c.shadowClass);}$(this).addClass(menuClasses.join(" "));});};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined){this.toggleClass(sf.c.shadowClass+"-off");}};sf.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};sf.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:"";o.retainPath=false;var $ul=$(["li.",o.hoverClass].join(""),this).add(this).not(not).removeClass(o.hoverClass).find(">ul").hide().css("visibility","hidden");o.onHide.call($ul);return this;},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+"-off",$ul=this.addClass(o.hoverClass).find(">ul:hidden").css("visibility","visible");sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul);});return this;}});})(jQuery);
  1094. //]]>
  1095. </script>
  1096. <script type='text/javascript'>
  1097. //<![CDATA[
  1098. /*
  1099. * jQuery FlexSlider v1.8
  1100. * http://www.woothemes.com/flexslider/
  1101. *
  1102. * Copyright 2012 WooThemes
  1103. * Free to use under the MIT license.
  1104. * http://www.opensource.org/licenses/mit-license.php
  1105. *
  1106. * Contributing Author: Tyler Smith
  1107. */
  1108. (function(a){a.flexslider=function(c,b){var d=a(c);a.data(c,"flexslider",d);d.init=function(){d.vars=a.extend({},a.flexslider.defaults,b);a.data(c,"flexsliderInit",true);d.container=a(".slides",d).first();d.slides=a(".slides:first > li",d);d.count=d.slides.length;d.animating=false;d.currentSlide=d.vars.slideToStart;d.animatingTo=d.currentSlide;d.atEnd=(d.currentSlide==0)?true:false;d.eventType=("ontouchstart" in document.documentElement)?"touchstart":"click";d.cloneCount=0;d.cloneOffset=0;d.manualPause=false;d.vertical=(d.vars.slideDirection=="vertical");d.prop=(d.vertical)?"top":"marginLeft";d.args={};d.transitions="webkitTransition" in document.body.style;if(d.transitions){d.prop="-webkit-transform"}if(d.vars.controlsContainer!=""){d.controlsContainer=a(d.vars.controlsContainer).eq(a(".slides").index(d.container));d.containerExists=d.controlsContainer.length>0}if(d.vars.manualControls!=""){d.manualControls=a(d.vars.manualControls,((d.containerExists)?d.controlsContainer:d));d.manualExists=d.manualControls.length>0}if(d.vars.randomize){d.slides.sort(function(){return(Math.round(Math.random())-0.5)});d.container.empty().append(d.slides)}if(d.vars.animation.toLowerCase()=="slide"){if(d.transitions){d.setTransition(0)}d.css({overflow:"hidden"});if(d.vars.animationLoop){d.cloneCount=2;d.cloneOffset=1;d.container.append(d.slides.filter(":first").clone().addClass("clone")).prepend(d.slides.filter(":last").clone().addClass("clone"))}d.newSlides=a(".slides:first > li",d);var m=(-1*(d.currentSlide+d.cloneOffset));if(d.vertical){d.newSlides.css({display:"block",width:"100%","float":"left"});d.container.height((d.count+d.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){d.css({position:"relative"}).height(d.slides.filter(":first").height());d.args[d.prop]=(d.transitions)?"translate3d(0,"+m*d.height()+"px,0)":m*d.height()+"px";d.container.css(d.args)},100)}else{d.args[d.prop]=(d.transitions)?"translate3d("+m*d.width()+"px,0,0)":m*d.width()+"px";d.container.width((d.count+d.cloneCount)*200+"%").css(d.args);setTimeout(function(){d.newSlides.width(d.width()).css({"float":"left",display:"block"})},100)}}else{d.transitions=false;d.slides.css({width:"100%","float":"left",marginRight:"-100%"}).eq(d.currentSlide).fadeIn(d.vars.animationDuration)}if(d.vars.controlNav){if(d.manualExists){d.controlNav=d.manualControls}else{var e=a('<ol class="flex-control-nav"></ol>');var s=1;for(var t=0;t<d.count;t++){e.append("<li><a>"+s+"</a></li>");s++}if(d.containerExists){a(d.controlsContainer).append(e);d.controlNav=a(".flex-control-nav li a",d.controlsContainer)}else{d.append(e);d.controlNav=a(".flex-control-nav li a",d)}}d.controlNav.eq(d.currentSlide).addClass("active");d.controlNav.bind(d.eventType,function(i){i.preventDefault();if(!a(this).hasClass("active")){(d.controlNav.index(a(this))>d.currentSlide)?d.direction="next":d.direction="prev";d.flexAnimate(d.controlNav.index(a(this)),d.vars.pauseOnAction)}})}if(d.vars.directionNav){var v=a('<ul class="flex-direction-nav"><li><a class="prev" href="#">'+d.vars.prevText+'</a></li><li><a class="next" href="#">'+d.vars.nextText+"</a></li></ul>");if(d.containerExists){a(d.controlsContainer).append(v);d.directionNav=a(".flex-direction-nav li a",d.controlsContainer)}else{d.append(v);d.directionNav=a(".flex-direction-nav li a",d)}if(!d.vars.animationLoop){if(d.currentSlide==0){d.directionNav.filter(".prev").addClass("disabled")}else{if(d.currentSlide==d.count-1){d.directionNav.filter(".next").addClass("disabled")}}}d.directionNav.bind(d.eventType,function(i){i.preventDefault();var j=(a(this).hasClass("next"))?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction)}})}if(d.vars.keyboardNav&&a("ul.slides").length==1){function h(i){if(d.animating){return}else{if(i.keyCode!=39&&i.keyCode!=37){return}else{if(i.keyCode==39){var j=d.getTarget("next")}else{if(i.keyCode==37){var j=d.getTarget("prev")}}if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction)}}}}a(document).bind("keyup",h)}if(d.vars.mousewheel){d.mousewheelEvent=(/Firefox/i.test(navigator.userAgent))?"DOMMouseScroll":"mousewheel";d.bind(d.mousewheelEvent,function(y){y.preventDefault();y=y?y:window.event;var i=y.detail?y.detail*-1:y.originalEvent.wheelDelta/40,j=(i<0)?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction)}})}if(d.vars.slideshow){if(d.vars.pauseOnHover&&d.vars.slideshow){d.hover(function(){d.pause()},function(){if(!d.manualPause){d.resume()}})}d.animatedSlides=setInterval(d.animateSlides,d.vars.slideshowSpeed)}if(d.vars.pausePlay){var q=a('<div class="flex-pauseplay"><span></span></div>');if(d.containerExists){d.controlsContainer.append(q);d.pausePlay=a(".flex-pauseplay span",d.controlsContainer)}else{d.append(q);d.pausePlay=a(".flex-pauseplay span",d)}var n=(d.vars.slideshow)?"pause":"play";d.pausePlay.addClass(n).text((n=="pause")?d.vars.pauseText:d.vars.playText);d.pausePlay.bind(d.eventType,function(i){i.preventDefault();if(a(this).hasClass("pause")){d.pause();d.manualPause=true}else{d.resume();d.manualPause=false}})}if("ontouchstart" in document.documentElement){var w,u,l,r,o,x,p=false;d.each(function(){if("ontouchstart" in document.documentElement){this.addEventListener("touchstart",g,false)}});function g(i){if(d.animating){i.preventDefault()}else{if(i.touches.length==1){d.pause();r=(d.vertical)?d.height():d.width();x=Number(new Date());l=(d.vertical)?(d.currentSlide+d.cloneOffset)*d.height():(d.currentSlide+d.cloneOffset)*d.width();w=(d.vertical)?i.touches[0].pageY:i.touches[0].pageX;u=(d.vertical)?i.touches[0].pageX:i.touches[0].pageY;d.setTransition(0);this.addEventListener("touchmove",k,false);this.addEventListener("touchend",f,false)}}}function k(i){o=(d.vertical)?w-i.touches[0].pageY:w-i.touches[0].pageX;p=(d.vertical)?(Math.abs(o)<Math.abs(i.touches[0].pageX-u)):(Math.abs(o)<Math.abs(i.touches[0].pageY-u));if(!p){i.preventDefault();if(d.vars.animation=="slide"&&d.transitions){if(!d.vars.animationLoop){o=o/((d.currentSlide==0&&o<0||d.currentSlide==d.count-1&&o>0)?(Math.abs(o)/r+2):1)}d.args[d.prop]=(d.vertical)?"translate3d(0,"+(-l-o)+"px,0)":"translate3d("+(-l-o)+"px,0,0)";d.container.css(d.args)}}}function f(j){d.animating=false;if(d.animatingTo==d.currentSlide&&!p&&!(o==null)){var i=(o>0)?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(i)&&Number(new Date())-x<550&&Math.abs(o)>20||Math.abs(o)>r/2){d.flexAnimate(i,d.vars.pauseOnAction)}else{d.flexAnimate(d.currentSlide,d.vars.pauseOnAction)}}this.removeEventListener("touchmove",k,false);this.removeEventListener("touchend",f,false);w=null;u=null;o=null;l=null}}if(d.vars.animation.toLowerCase()=="slide"){a(window).resize(function(){if(!d.animating&&d.is(":visible")){if(d.vertical){d.height(d.slides.filter(":first").height());d.args[d.prop]=(-1*(d.currentSlide+d.cloneOffset))*d.slides.filter(":first").height()+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)"}d.container.css(d.args)}else{d.newSlides.width(d.width());d.args[d.prop]=(-1*(d.currentSlide+d.cloneOffset))*d.width()+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)"}d.container.css(d.args)}}})}d.vars.start(d)};d.flexAnimate=function(g,f){if(!d.animating&&d.is(":visible")){d.animating=true;d.animatingTo=g;d.vars.before(d);if(f){d.pause()}if(d.vars.controlNav){d.controlNav.removeClass("active").eq(g).addClass("active")}d.atEnd=(g==0||g==d.count-1)?true:false;if(!d.vars.animationLoop&&d.vars.directionNav){if(g==0){d.directionNav.removeClass("disabled").filter(".prev").addClass("disabled")}else{if(g==d.count-1){d.directionNav.removeClass("disabled").filter(".next").addClass("disabled")}else{d.directionNav.removeClass("disabled")}}}if(!d.vars.animationLoop&&g==d.count-1){d.pause();d.vars.end(d)}if(d.vars.animation.toLowerCase()=="slide"){var e=(d.vertical)?d.slides.filter(":first").height():d.slides.filter(":first").width();if(d.currentSlide==0&&g==d.count-1&&d.vars.animationLoop&&d.direction!="next"){d.slideString="0px"}else{if(d.currentSlide==d.count-1&&g==0&&d.vars.animationLoop&&d.direction!="prev"){d.slideString=(-1*(d.count+1))*e+"px"}else{d.slideString=(-1*(g+d.cloneOffset))*e+"px"}}d.args[d.prop]=d.slideString;if(d.transitions){d.setTransition(d.vars.animationDuration);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.slideString+",0)":"translate3d("+d.slideString+",0,0)";d.container.css(d.args).one("webkitTransitionEnd transitionend",function(){d.wrapup(e)})}else{d.container.animate(d.args,d.vars.animationDuration,function(){d.wrapup(e)})}}else{d.slides.eq(d.currentSlide).fadeOut(d.vars.animationDuration);d.slides.eq(g).fadeIn(d.vars.animationDuration,function(){d.wrapup()})}}};d.wrapup=function(e){if(d.vars.animation=="slide"){if(d.currentSlide==0&&d.animatingTo==d.count-1&&d.vars.animationLoop){d.args[d.prop]=(-1*d.count)*e+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)"}d.container.css(d.args)}else{if(d.currentSlide==d.count-1&&d.animatingTo==0&&d.vars.animationLoop){d.args[d.prop]=-1*e+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)"}d.container.css(d.args)}}}d.animating=false;d.currentSlide=d.animatingTo;d.vars.after(d)};d.animateSlides=function(){if(!d.animating){d.flexAnimate(d.getTarget("next"))}};d.pause=function(){clearInterval(d.animatedSlides);if(d.vars.pausePlay){d.pausePlay.removeClass("pause").addClass("play").text(d.vars.playText)}};d.resume=function(){d.animatedSlides=setInterval(d.animateSlides,d.vars.slideshowSpeed);if(d.vars.pausePlay){d.pausePlay.removeClass("play").addClass("pause").text(d.vars.pauseText)}};d.canAdvance=function(e){if(!d.vars.animationLoop&&d.atEnd){if(d.currentSlide==0&&e==d.count-1&&d.direction!="next"){return false}else{if(d.currentSlide==d.count-1&&e==0&&d.direction=="next"){return false}else{return true}}}else{return true}};d.getTarget=function(e){d.direction=e;if(e=="next"){return(d.currentSlide==d.count-1)?0:d.currentSlide+1}else{return(d.currentSlide==0)?d.count-1:d.currentSlide-1}};d.setTransition=function(e){d.container.css({"-webkit-transition-duration":(e/1000)+"s"})};d.init()};a.flexslider.defaults={animation:"fade",slideDirection:"horizontal",slideshow:true,slideshowSpeed:7000,animationDuration:600,directionNav:true,controlNav:true,keyboardNav:true,mousewheel:false,prevText:"Previous",nextText:"Next",pausePlay:false,pauseText:"Pause",playText:"Play",randomize:false,slideToStart:0,animationLoop:true,pauseOnAction:true,pauseOnHover:false,controlsContainer:"",manualControls:"",start:function(){},before:function(){},after:function(){},end:function(){}};a.fn.flexslider=function(b){return this.each(function(){if(a(this).find(".slides li").length==1){a(this).find(".slides li").fadeIn(400)}else{if(a(this).data("flexsliderInit")!=true){new a.flexslider(this,b)}}})}})(jQuery);
  1109. //]]>
  1110. </script>
  1111. <script type='text/javascript'>
  1112. //<![CDATA[
  1113. /*
  1114. * jQuery carouFredSel 5.5.0
  1115. * Demo's and documentation:
  1116. * caroufredsel.frebsite.nl
  1117. *
  1118. * Copyright (c) 2012 Fred Heusschen
  1119. * www.frebsite.nl
  1120. *
  1121. * Dual licensed under the MIT and GPL licenses.
  1122. * http://en.wikipedia.org/wiki/MIT_License
  1123. * http://en.wikipedia.org/wiki/GNU_General_Public_License
  1124. */
  1125. (function($) {
  1126. // LOCAL
  1127. if ($.fn.carouFredSel) return;
  1128. $.fn.carouFredSel = function(options, configs) {
  1129. if (this.length == 0) {
  1130. debug(true, 'No element found for "'+this.selector+'".');
  1131. return this;
  1132. }
  1133. if (this.length > 1) {
  1134. return this.each(function() {
  1135. $(this).carouFredSel(options, configs);
  1136. });
  1137. }
  1138. var $cfs = this,
  1139. $tt0 = this[0];
  1140. if ($cfs.data('cfs_isCarousel')) {
  1141. var starting_position = $cfs.triggerHandler('_cfs_currentPosition');
  1142. $cfs.trigger('_cfs_destroy', true);
  1143. } else {
  1144. var starting_position = false;
  1145. }
  1146. $cfs._cfs_init = function(o, setOrig, start) {
  1147. o = go_getObject($tt0, o);
  1148. // DEPRECATED
  1149. if (o.debug) {
  1150. conf.debug = o.debug;
  1151. debug(conf, 'The "debug" option should be moved to the second configuration-object.');
  1152. }
  1153. // /DEPRECATED
  1154. var obs = ['items', 'scroll', 'auto', 'prev', 'next', 'pagination'];
  1155. for (var a = 0, l = obs.length; a < l; a++) {
  1156. o[obs[a]] = go_getObject($tt0, o[obs[a]]);
  1157. }
  1158. if (typeof o.scroll == 'number') {
  1159. if (o.scroll <= 50) o.scroll = { 'items' : o.scroll };
  1160. else o.scroll = { 'duration' : o.scroll };
  1161. } else {
  1162. if (typeof o.scroll == 'string') o.scroll = { 'easing' : o.scroll };
  1163. }
  1164. if (typeof o.items == 'number') o.items = { 'visible' : o.items };
  1165. else if ( o.items == 'variable') o.items = { 'visible' : o.items,
  1166. 'width' : o.items,
  1167. 'height' : o.items };
  1168. if (typeof o.items != 'object') o.items = {};
  1169. if (setOrig) opts_orig = $.extend(true, {}, $.fn.carouFredSel.defaults, o);
  1170. opts = $.extend(true, {}, $.fn.carouFredSel.defaults, o);
  1171. if (typeof opts.items.visibleConf != 'object') opts.items.visibleConf = {};
  1172. if (opts.items.start == 0 && typeof start == 'number') {
  1173. opts.items.start = start;
  1174. }
  1175. crsl.upDateOnWindowResize = (opts.responsive);
  1176. crsl.direction = (opts.direction == 'up' || opts.direction == 'left') ? 'next' : 'prev';
  1177. var dims = [
  1178. ['width' , 'innerWidth' , 'outerWidth' , 'height' , 'innerHeight' , 'outerHeight' , 'left', 'top' , 'marginRight' , 0, 1, 2, 3],
  1179. ['height' , 'innerHeight' , 'outerHeight' , 'width' , 'innerWidth' , 'outerWidth' , 'top' , 'left', 'marginBottom', 3, 2, 1, 0]
  1180. ];
  1181. var dn = dims[0].length,
  1182. dx = (opts.direction == 'right' || opts.direction == 'left') ? 0 : 1;
  1183. opts.d = {};
  1184. for (var d = 0; d < dn; d++) {
  1185. opts.d[dims[0][d]] = dims[dx][d];
  1186. }
  1187. var all_itm = $cfs.children();
  1188. // check visible items
  1189. switch (typeof opts.items.visible) {
  1190. // min and max visible items
  1191. case 'object':
  1192. opts.items.visibleConf.min = opts.items.visible.min;
  1193. opts.items.visibleConf.max = opts.items.visible.max;
  1194. opts.items.visible = false;
  1195. break;
  1196. case 'string':
  1197. // variable visible items
  1198. if (opts.items.visible == 'variable') {
  1199. opts.items.visibleConf.variable = true;
  1200. // adjust string visible items
  1201. } else {
  1202. opts.items.visibleConf.adjust = opts.items.visible;
  1203. }
  1204. opts.items.visible = false;
  1205. break;
  1206. // function visible items
  1207. case 'function':
  1208. opts.items.visibleConf.adjust = opts.items.visible;
  1209. opts.items.visible = false;
  1210. break;
  1211. }
  1212. // set items filter
  1213. if (typeof opts.items.filter == 'undefined') {
  1214. opts.items.filter = (all_itm.filter(':hidden').length > 0) ? ':visible' : '*';
  1215. }
  1216. // primary size set to auto -> measure largest size and set it
  1217. if (opts[opts.d['width']] == 'auto') {
  1218. opts[opts.d['width']] = ms_getTrueLargestSize(all_itm, opts, 'outerWidth');
  1219. }
  1220. // primary size percentage
  1221. if (ms_isPercentage(opts[opts.d['width']]) && !opts.responsive) {
  1222. opts[opts.d['width']] = ms_getPercentage(ms_getTrueInnerSize($wrp.parent(), opts, 'innerWidth'), opts[opts.d['width']]);
  1223. crsl.upDateOnWindowResize = true;
  1224. }
  1225. // secondary size set to auto -> measure largest size and set it
  1226. if (opts[opts.d['height']] == 'auto') {
  1227. opts[opts.d['height']] = ms_getTrueLargestSize(all_itm, opts, 'outerHeight');
  1228. }
  1229. // primary item-size not set
  1230. if (!opts.items[opts.d['width']]) {
  1231. // responsive carousel -> set to largest
  1232. if (opts.responsive) {
  1233. debug(true, 'Set a '+opts.d['width']+' for the items!');
  1234. opts.items[opts.d['width']] = ms_getTrueLargestSize(all_itm, opts, 'outerWidth');
  1235. // non-responsive -> measure it or set to "variable"
  1236. } else {
  1237. opts.items[opts.d['width']] = (ms_hasVariableSizes(all_itm, opts, 'outerWidth'))
  1238. ? 'variable'
  1239. : all_itm[opts.d['outerWidth']](true);
  1240. }
  1241. }
  1242. // secondary item-size not set -> measure it or set to "variable"
  1243. if (!opts.items[opts.d['height']]) {
  1244. opts.items[opts.d['height']] = (ms_hasVariableSizes(all_itm, opts, 'outerHeight'))
  1245. ? 'variable'
  1246. : all_itm[opts.d['outerHeight']](true);
  1247. }
  1248. // secondary size not set -> set to secondary item-size
  1249. if (!opts[opts.d['height']]) {
  1250. opts[opts.d['height']] = opts.items[opts.d['height']];
  1251. }
  1252. // visible-items not set
  1253. if (!opts.items.visible && !opts.responsive) {
  1254. // primary item-size variable -> set visible items variable
  1255. if (opts.items[opts.d['width']] == 'variable') {
  1256. opts.items.visibleConf.variable = true;
  1257. }
  1258. if (!opts.items.visibleConf.variable) {
  1259. // primary size is number -> calculate visible-items
  1260. if (typeof opts[opts.d['width']] == 'number') {
  1261. opts.items.visible = Math.floor(opts[opts.d['width']] / opts.items[opts.d['width']]);
  1262. } else {
  1263. // measure and calculate primary size and visible-items
  1264. var maxS = ms_getTrueInnerSize($wrp.parent(), opts, 'innerWidth');
  1265. opts.items.visible = Math.floor(maxS / opts.items[opts.d['width']]);
  1266. opts[opts.d['width']] = opts.items.visible * opts.items[opts.d['width']];
  1267. if (!opts.items.visibleConf.adjust) opts.align = false;
  1268. }
  1269. if (opts.items.visible == 'Infinity' || opts.items.visible < 1) {
  1270. debug(true, 'Not a valid number of visible items: Set to "variable".');
  1271. opts.items.visibleConf.variable = true;
  1272. }
  1273. }
  1274. }
  1275. // primary size not set -> calculate it or set to "variable"
  1276. if (!opts[opts.d['width']]) {
  1277. opts[opts.d['width']] = 'variable';
  1278. if (!opts.responsive && opts.items.filter == '*' && !opts.items.visibleConf.variable && opts.items[opts.d['width']] != 'variable') {
  1279. opts[opts.d['width']] = opts.items.visible * opts.items[opts.d['width']];
  1280. opts.align = false;
  1281. }
  1282. }
  1283. // variable primary item-sizes with variabe visible-items
  1284. if (opts.items.visibleConf.variable) {
  1285. opts.maxDimention = (opts[opts.d['width']] == 'variable')
  1286. ? ms_getTrueInnerSize($wrp.parent(), opts, 'innerWidth')
  1287. : opts[opts.d['width']];
  1288. if (opts.align === false) {
  1289. opts[opts.d['width']] = 'variable';
  1290. }
  1291. opts.items.visible = gn_getVisibleItemsNext(all_itm, opts, 0);
  1292. // set visible items by filter
  1293. } else if (opts.items.filter != '*') {
  1294. opts.items.visibleConf.org = opts.items.visible;
  1295. opts.items.visible = gn_getVisibleItemsNextFilter(all_itm, opts, 0);
  1296. }
  1297. // align not set -> set to center if primary size is number
  1298. if (typeof opts.align == 'undefined') {
  1299. opts.align = (opts[opts.d['width']] == 'variable')
  1300. ? false
  1301. : 'center';
  1302. }
  1303. opts.items.visible = cf_getItemsAdjust(opts.items.visible, opts, opts.items.visibleConf.adjust, $tt0);
  1304. opts.items.visibleConf.old = opts.items.visible;
  1305. opts.usePadding = false;
  1306. if (opts.responsive) {
  1307. if (!opts.items.visibleConf.min) opts.items.visibleConf.min = opts.items.visible;
  1308. if (!opts.items.visibleConf.max) opts.items.visibleConf.max = opts.items.visible;
  1309. opts.align = false;
  1310. opts.padding = [0, 0, 0, 0];
  1311. var isVisible = $wrp.is(':visible');
  1312. if (isVisible) $wrp.hide();
  1313. var fullS = ms_getPercentage(ms_getTrueInnerSize($wrp.parent(), opts, 'innerWidth'), opts[opts.d['width']]);
  1314. if (typeof opts[opts.d['width']] == 'number' && fullS < opts[opts.d['width']]) {
  1315. fullS = opts[opts.d['width']];
  1316. }
  1317. if (isVisible) $wrp.show();
  1318. var visb = cf_getItemAdjustMinMax(Math.ceil(fullS / opts.items[opts.d['width']]), opts.items.visibleConf);
  1319. if (visb > all_itm.length) {
  1320. visb = all_itm.length;
  1321. }
  1322. var newS = Math.floor(fullS/visb),
  1323. seco = opts[opts.d['height']],
  1324. secp = ms_isPercentage(seco);
  1325. all_itm.each(function() {
  1326. var $t = $(this),
  1327. nw = newS - ms_getPaddingBorderMargin($t, opts, 'Width');
  1328. $t[opts.d['width']](nw);
  1329. if (secp) {
  1330. $t[opts.d['height']](ms_getPercentage(nw, seco));
  1331. }
  1332. });
  1333. opts.items.visible = visb;
  1334. opts.items[opts.d['width']] = newS;
  1335. opts[opts.d['width']] = visb * newS;
  1336. } else {
  1337. opts.padding = cf_getPadding(opts.padding);
  1338. if (opts.align == 'top') opts.align = 'left';
  1339. if (opts.align == 'bottom') opts.align = 'right';
  1340. switch (opts.align) {
  1341. // align: center, left or right
  1342. case 'center':
  1343. case 'left':
  1344. case 'right':
  1345. if (opts[opts.d['width']] != 'variable') {
  1346. var p = cf_getAlignPadding(gi_getCurrentItems(all_itm, opts), opts);
  1347. opts.usePadding = true;
  1348. opts.padding[opts.d[1]] = p[1];
  1349. opts.padding[opts.d[3]] = p[0];
  1350. }
  1351. break;
  1352. // padding
  1353. default:
  1354. opts.align = false;
  1355. opts.usePadding = (
  1356. opts.padding[0] == 0 &&
  1357. opts.padding[1] == 0 &&
  1358. opts.padding[2] == 0 &&
  1359. opts.padding[3] == 0
  1360. ) ? false : true;
  1361. break;
  1362. }
  1363. }
  1364. if (typeof opts.cookie == 'boolean' && opts.cookie) opts.cookie = 'caroufredsel_cookie_'+$cfs.attr('id');
  1365. if (typeof opts.items.minimum != 'number') opts.items.minimum = opts.items.visible;
  1366. if (typeof opts.scroll.duration != 'number') opts.scroll.duration = 500;
  1367. if (typeof opts.scroll.items == 'undefined') opts.scroll.items = (opts.items.visibleConf.variable || opts.items.filter != '*') ? 'visible' : opts.items.visible;
  1368. opts.auto = go_getNaviObject($tt0, opts.auto, 'auto');
  1369. opts.prev = go_getNaviObject($tt0, opts.prev);
  1370. opts.next = go_getNaviObject($tt0, opts.next);
  1371. opts.pagination = go_getNaviObject($tt0, opts.pagination, 'pagination');
  1372. opts.auto = $.extend(true, {}, opts.scroll, opts.auto);
  1373. opts.prev = $.extend(true, {}, opts.scroll, opts.prev);
  1374. opts.next = $.extend(true, {}, opts.scroll, opts.next);
  1375. opts.pagination = $.extend(true, {}, opts.scroll, opts.pagination);
  1376. if (typeof opts.pagination.keys != 'boolean') opts.pagination.keys = false;
  1377. if (typeof opts.pagination.anchorBuilder != 'function'
  1378. && opts.pagination.anchorBuilder !== false) opts.pagination.anchorBuilder = $.fn.carouFredSel.pageAnchorBuilder;
  1379. if (typeof opts.auto.play != 'boolean') opts.auto.play = true;
  1380. if (typeof opts.auto.delay != 'number') opts.auto.delay = 0;
  1381. if (typeof opts.auto.pauseOnEvent == 'undefined') opts.auto.pauseOnEvent = true;
  1382. if (typeof opts.auto.pauseOnResize != 'boolean') opts.auto.pauseOnResize = true;
  1383. if (typeof opts.auto.pauseDuration != 'number') opts.auto.pauseDuration = (opts.auto.duration < 10) ? 2500 : opts.auto.duration * 5;
  1384. if (opts.synchronise) {
  1385. opts.synchronise = cf_getSynchArr(opts.synchronise);
  1386. }
  1387. if (conf.debug) {
  1388. debug(conf, 'Carousel width: '+opts.width);
  1389. debug(conf, 'Carousel height: '+opts.height);
  1390. if (opts.maxDimention) debug(conf, 'Available '+opts.d['width']+': '+opts.maxDimention);
  1391. debug(conf, 'Item widths: '+opts.items.width);
  1392. debug(conf, 'Item heights: '+opts.items.height);
  1393. debug(conf, 'Number of items visible: '+opts.items.visible);
  1394. if (opts.auto.play) debug(conf, 'Number of items scrolled automatically: '+opts.auto.items);
  1395. if (opts.prev.button) debug(conf, 'Number of items scrolled backward: '+opts.prev.items);
  1396. if (opts.next.button) debug(conf, 'Number of items scrolled forward: '+opts.next.items);
  1397. }
  1398. }; // /init
  1399. $cfs._cfs_build = function() {
  1400. $cfs.data('cfs_isCarousel', true);
  1401. var orgCSS = {
  1402. 'textAlign' : $cfs.css('textAlign'),
  1403. 'float' : $cfs.css('float'),
  1404. 'position' : $cfs.css('position'),
  1405. 'top' : $cfs.css('top'),
  1406. 'right' : $cfs.css('right'),
  1407. 'bottom' : $cfs.css('bottom'),
  1408. 'left' : $cfs.css('left'),
  1409. 'width' : $cfs.css('width'),
  1410. 'height' : $cfs.css('height'),
  1411. 'marginTop' : $cfs.css('marginTop'),
  1412. 'marginRight' : $cfs.css('marginRight'),
  1413. 'marginBottom' : $cfs.css('marginBottom'),
  1414. 'marginLeft' : $cfs.css('marginLeft')
  1415. };
  1416. switch (orgCSS.position) {
  1417. case 'absolute':
  1418. var newPosition = 'absolute';
  1419. break;
  1420. case 'fixed':
  1421. var newPosition = 'fixed';
  1422. break;
  1423. default:
  1424. var newPosition = 'relative';
  1425. }
  1426. $wrp.css(orgCSS).css({
  1427. 'overflow' : 'hidden',
  1428. 'position' : newPosition
  1429. });
  1430. $cfs.data('cfs_origCss', orgCSS).css({
  1431. 'textAlign' : 'left',
  1432. 'float' : 'none',
  1433. 'position' : 'absolute',
  1434. 'top' : 0,
  1435. 'left' : 0,
  1436. 'marginTop' : 0,
  1437. 'marginRight' : 0,
  1438. 'marginBottom' : 0,
  1439. 'marginLeft' : 0
  1440. });
  1441. if (opts.usePadding) {
  1442. $cfs.children().each(function() {
  1443. var m = parseInt($(this).css(opts.d['marginRight']));
  1444. if (isNaN(m)) m = 0;
  1445. $(this).data('cfs_origCssMargin', m);
  1446. });
  1447. }
  1448. }; // /build
  1449. $cfs._cfs_bind_events = function() {
  1450. $cfs._cfs_unbind_events();
  1451. // stop event
  1452. $cfs.bind(cf_e('stop', conf), function(e, imm) {
  1453. e.stopPropagation();
  1454. // button
  1455. if (!crsl.isStopped) {
  1456. if (opts.auto.button) {
  1457. opts.auto.button.addClass(cf_c('stopped', conf));
  1458. }
  1459. }
  1460. // set stopped
  1461. crsl.isStopped = true;
  1462. if (opts.auto.play) {
  1463. opts.auto.play = false;
  1464. $cfs.trigger(cf_e('pause', conf), imm);
  1465. }
  1466. return true;
  1467. });
  1468. // finish event
  1469. $cfs.bind(cf_e('finish', conf), function(e) {
  1470. e.stopPropagation();
  1471. if (crsl.isScrolling) {
  1472. sc_stopScroll(scrl);
  1473. }
  1474. return true;
  1475. });
  1476. // pause event
  1477. $cfs.bind(cf_e('pause', conf), function(e, imm, res) {
  1478. e.stopPropagation();
  1479. tmrs = sc_clearTimers(tmrs);
  1480. // immediately pause
  1481. if (imm && crsl.isScrolling) {
  1482. scrl.isStopped = true;
  1483. var nst = getTime() - scrl.startTime;
  1484. scrl.duration -= nst;
  1485. if (scrl.pre) scrl.pre.duration -= nst;
  1486. if (scrl.post) scrl.post.duration -= nst;
  1487. sc_stopScroll(scrl, false);
  1488. }
  1489. // update remaining pause-time
  1490. if (!crsl.isPaused && !crsl.isScrolling) {
  1491. if (res) tmrs.timePassed += getTime() - tmrs.startTime;
  1492. }
  1493. // button
  1494. if (!crsl.isPaused) {
  1495. if (opts.auto.button) {
  1496. opts.auto.button.addClass(cf_c('paused', conf));
  1497. }
  1498. }
  1499. // set paused
  1500. crsl.isPaused = true;
  1501. // pause pause callback
  1502. if (opts.auto.onPausePause) {
  1503. var dur1 = opts.auto.pauseDuration - tmrs.timePassed,
  1504. perc = 100 - Math.ceil( dur1 * 100 / opts.auto.pauseDuration );
  1505. opts.auto.onPausePause.call($tt0, perc, dur1);
  1506. }
  1507. return true;
  1508. });
  1509. // play event
  1510. $cfs.bind(cf_e('play', conf), function(e, dir, del, res) {
  1511. e.stopPropagation();
  1512. tmrs = sc_clearTimers(tmrs);
  1513. // sort params
  1514. var v = [dir, del, res],
  1515. t = ['string', 'number', 'boolean'],
  1516. a = cf_sortParams(v, t);
  1517. var dir = a[0],
  1518. del = a[1],
  1519. res = a[2];
  1520. if (dir != 'prev' && dir != 'next') dir = crsl.direction;
  1521. if (typeof del != 'number') del = 0;
  1522. if (typeof res != 'boolean') res = false;
  1523. // stopped?
  1524. if (res) {
  1525. crsl.isStopped = false;
  1526. opts.auto.play = true;
  1527. }
  1528. if (!opts.auto.play) {
  1529. e.stopImmediatePropagation();
  1530. return debug(conf, 'Carousel stopped: Not scrolling.');
  1531. }
  1532. // button
  1533. if (crsl.isPaused) {
  1534. if (opts.auto.button) {
  1535. opts.auto.button.removeClass(cf_c('stopped', conf));
  1536. opts.auto.button.removeClass(cf_c('paused', conf));
  1537. }
  1538. }
  1539. // set playing
  1540. crsl.isPaused = false;
  1541. tmrs.startTime = getTime();
  1542. // timeout the scrolling
  1543. var dur1 = opts.auto.pauseDuration + del;
  1544. dur2 = dur1 - tmrs.timePassed;
  1545. perc = 100 - Math.ceil(dur2 * 100 / dur1);
  1546. tmrs.auto = setTimeout(function() {
  1547. if (opts.auto.onPauseEnd) {
  1548. opts.auto.onPauseEnd.call($tt0, perc, dur2);
  1549. }
  1550. if (crsl.isScrolling) {
  1551. $cfs.trigger(cf_e('play', conf), dir);
  1552. } else {
  1553. $cfs.trigger(cf_e(dir, conf), opts.auto);
  1554. }
  1555. }, dur2);
  1556. // pause start callback
  1557. if (opts.auto.onPauseStart) {
  1558. opts.auto.onPauseStart.call($tt0, perc, dur2);
  1559. }
  1560. return true;
  1561. });
  1562. // resume event
  1563. $cfs.bind(cf_e('resume', conf), function(e) {
  1564. e.stopPropagation();
  1565. if (scrl.isStopped) {
  1566. scrl.isStopped = false;
  1567. crsl.isPaused = false;
  1568. crsl.isScrolling = true;
  1569. scrl.startTime = getTime();
  1570. sc_startScroll(scrl);
  1571. } else {
  1572. $cfs.trigger(cf_e('play', conf));
  1573. }
  1574. return true;
  1575. });
  1576. // prev + next events
  1577. $cfs.bind(cf_e('prev', conf)+' '+cf_e('next', conf), function(e, obj, num, clb) {
  1578. e.stopPropagation();
  1579. // stopped or hidden carousel, don't scroll, don't queue
  1580. if (crsl.isStopped || $cfs.is(':hidden')) {
  1581. e.stopImmediatePropagation();
  1582. return debug(conf, 'Carousel stopped or hidden: Not scrolling.');
  1583. }
  1584. // not enough items
  1585. if (opts.items.minimum >= itms.total) {
  1586. e.stopImmediatePropagation();
  1587. return debug(conf, 'Not enough items ('+itms.total+', '+opts.items.minimum+' needed): Not scrolling.');
  1588. }
  1589. // get config
  1590. var v = [obj, num, clb],
  1591. t = ['object', 'number/string', 'function'],
  1592. a = cf_sortParams(v, t);
  1593. var obj = a[0],
  1594. num = a[1],
  1595. clb = a[2];
  1596. var eType = e.type.substr(conf.events.prefix.length);
  1597. if (typeof obj != 'object' || obj == null) obj = opts[eType];
  1598. if (typeof clb == 'function') obj.onAfter = clb;
  1599. if (typeof num != 'number') {
  1600. if (opts.items.filter != '*') {
  1601. num = 'visible';
  1602. } else {
  1603. var arr = [num, obj.items, opts[eType].items];
  1604. for (var a = 0, l = arr.length; a < l; a++) {
  1605. if (typeof arr[a] == 'number' || arr[a] == 'page' || arr[a] == 'visible') {
  1606. num = arr[a];
  1607. break;
  1608. }
  1609. }
  1610. }
  1611. switch(num) {
  1612. case 'page':
  1613. e.stopImmediatePropagation();
  1614. return $cfs.triggerHandler(eType+'Page', [obj, clb]);
  1615. break;
  1616. case 'visible':
  1617. if (!opts.items.visibleConf.variable && opts.items.filter == '*') {
  1618. num = opts.items.visible;
  1619. }
  1620. break;
  1621. }
  1622. }
  1623. // resume animation, add current to queue
  1624. if (scrl.isStopped) {
  1625. $cfs.trigger(cf_e('resume', conf));
  1626. $cfs.trigger(cf_e('queue', conf), [eType, [obj, num, clb]]);
  1627. e.stopImmediatePropagation();
  1628. return debug(conf, 'Carousel resumed scrolling.');
  1629. }
  1630. // queue if scrolling
  1631. if (obj.duration > 0) {
  1632. if (crsl.isScrolling) {
  1633. if (obj.queue) $cfs.trigger(cf_e('queue', conf), [eType, [obj, num, clb]]);
  1634. e.stopImmediatePropagation();
  1635. return debug(conf, 'Carousel currently scrolling.');
  1636. }
  1637. }
  1638. // test conditions callback
  1639. if (obj.conditions && !obj.conditions.call($tt0)) {
  1640. e.stopImmediatePropagation();
  1641. return debug(conf, 'Callback "conditions" returned false.');
  1642. }
  1643. tmrs.timePassed = 0;
  1644. $cfs.trigger('_cfs_slide_'+eType, [obj, num]);
  1645. // synchronise
  1646. if (opts.synchronise) {
  1647. var s = opts.synchronise,
  1648. c = [obj, num];
  1649. for (var j = 0, l = s.length; j < l; j++) {
  1650. var d = eType;
  1651. if (!s[j][1]) c[0] = s[j][0].triggerHandler('_cfs_configuration', eType);
  1652. if (!s[j][2]) d = (d == 'prev') ? 'next' : 'prev';
  1653. c[1] = num + s[j][3];
  1654. s[j][0].trigger('_cfs_slide_'+d, c);
  1655. }
  1656. }
  1657. return true;
  1658. });
  1659. // prev event, accessible from outside
  1660. $cfs.bind(cf_e('_cfs_slide_prev', conf, false), function(e, sO, nI) {
  1661. e.stopPropagation();
  1662. var a_itm = $cfs.children();
  1663. // non-circular at start, scroll to end
  1664. if (!opts.circular) {
  1665. if (itms.first == 0) {
  1666. if (opts.infinite) {
  1667. $cfs.trigger(cf_e('next', conf), itms.total-1);
  1668. }
  1669. return e.stopImmediatePropagation();
  1670. }
  1671. }
  1672. if (opts.usePadding) sz_resetMargin(a_itm, opts);
  1673. // find number of items to scroll
  1674. if (typeof nI != 'number') {
  1675. if (opts.items.visibleConf.variable) {
  1676. nI = gn_getVisibleItemsPrev(a_itm, opts, itms.total-1);
  1677. } else if (opts.items.filter != '*') {
  1678. var xI = (typeof sO.items == 'number') ? sO.items : gn_getVisibleOrg($cfs, opts);
  1679. nI = gn_getScrollItemsPrevFilter(a_itm, opts, itms.total-1, xI);
  1680. } else {
  1681. nI = opts.items.visible;
  1682. }
  1683. nI = cf_getAdjust(nI, opts, sO.items, $tt0);
  1684. }
  1685. // prevent non-circular from scrolling to far
  1686. if (!opts.circular) {
  1687. if (itms.total - nI < itms.first) {
  1688. nI = itms.total - itms.first;
  1689. }
  1690. }
  1691. // set new number of visible items
  1692. opts.items.visibleConf.old = opts.items.visible;
  1693. if (opts.items.visibleConf.variable) {
  1694. var vI = gn_getVisibleItemsNext(a_itm, opts, itms.total-nI);
  1695. if (opts.items.visible+nI <= vI && nI < itms.total) {
  1696. nI++;
  1697. vI = gn_getVisibleItemsNext(a_itm, opts, itms.total-nI);
  1698. }
  1699. opts.items.visible = cf_getItemsAdjust(vI, opts, opts.items.visibleConf.adjust, $tt0);
  1700. } else if (opts.items.filter != '*') {
  1701. var vI = gn_getVisibleItemsNextFilter(a_itm, opts, itms.total-nI);
  1702. opts.items.visible = cf_getItemsAdjust(vI, opts, opts.items.visibleConf.adjust, $tt0);
  1703. }
  1704. if (opts.usePadding) sz_resetMargin(a_itm, opts, true);
  1705. // scroll 0, don't scroll
  1706. if (nI == 0) {
  1707. e.stopImmediatePropagation();
  1708. return debug(conf, '0 items to scroll: Not scrolling.');
  1709. }
  1710. debug(conf, 'Scrolling '+nI+' items backward.');
  1711. // save new config
  1712. itms.first += nI;
  1713. while (itms.first >= itms.total) {
  1714. itms.first -= itms.total;
  1715. }
  1716. // non-circular callback
  1717. if (!opts.circular) {
  1718. if (itms.first == 0 && sO.onEnd) sO.onEnd.call($tt0);
  1719. if (!opts.infinite) nv_enableNavi(opts, itms.first, conf);
  1720. }
  1721. // rearrange items
  1722. $cfs.children().slice(itms.total-nI, itms.total).prependTo($cfs);
  1723. if (itms.total < opts.items.visible + nI) {
  1724. $cfs.children().slice(0, (opts.items.visible+nI)-itms.total).clone(true).appendTo($cfs);
  1725. }
  1726. // the needed items
  1727. var a_itm = $cfs.children(),
  1728. c_old = gi_getOldItemsPrev(a_itm, opts, nI),
  1729. c_new = gi_getNewItemsPrev(a_itm, opts),
  1730. l_cur = a_itm.eq(nI-1),
  1731. l_old = c_old.last(),
  1732. l_new = c_new.last();
  1733. if (opts.usePadding) sz_resetMargin(a_itm, opts);
  1734. if (opts.align) {
  1735. var p = cf_getAlignPadding(c_new, opts),
  1736. pL = p[0],
  1737. pR = p[1];
  1738. } else {
  1739. var pL = 0,
  1740. pR = 0;
  1741. }
  1742. var oL = (pL < 0) ? opts.padding[opts.d[3]] : 0;
  1743. // hide items for fx directscroll
  1744. if (sO.fx == 'directscroll' && opts.items.visible < nI) {
  1745. var hiddenitems = a_itm.slice(opts.items.visibleConf.old, nI),
  1746. orgW = opts.items[opts.d['width']];
  1747. hiddenitems.each(function() {
  1748. var hi = $(this);
  1749. hi.data('isHidden', hi.is(':hidden')).hide();
  1750. });
  1751. opts.items[opts.d['width']] = 'variable';
  1752. } else {
  1753. var hiddenitems = false;
  1754. }
  1755. // save new sizes
  1756. var i_siz = ms_getTotalSize(a_itm.slice(0, nI), opts, 'width'),
  1757. w_siz = cf_mapWrapperSizes(ms_getSizes(c_new, opts, true), opts, !opts.usePadding);
  1758. if (hiddenitems) opts.items[opts.d['width']] = orgW;
  1759. if (opts.usePadding) {
  1760. sz_resetMargin(a_itm, opts, true);
  1761. if (pR >= 0) {
  1762. sz_resetMargin(l_old, opts, opts.padding[opts.d[1]]);
  1763. }
  1764. sz_resetMargin(l_cur, opts, opts.padding[opts.d[3]]);
  1765. }
  1766. if (opts.align) {
  1767. opts.padding[opts.d[1]] = pR;
  1768. opts.padding[opts.d[3]] = pL;
  1769. }
  1770. // animation configuration
  1771. var a_cfs = {},
  1772. a_dur = sO.duration;
  1773. if (sO.fx == 'none') a_dur = 0;
  1774. else if (a_dur == 'auto') a_dur = opts.scroll.duration / opts.scroll.items * nI;
  1775. else if (a_dur <= 0) a_dur = 0;
  1776. else if (a_dur < 10) a_dur = i_siz / a_dur;
  1777. scrl = sc_setScroll(a_dur, sO.easing);
  1778. // animate wrapper
  1779. if (opts[opts.d['width']] == 'variable' || opts[opts.d['height']] == 'variable') {
  1780. scrl.anims.push([$wrp, w_siz]);
  1781. }
  1782. // animate items
  1783. if (opts.usePadding) {
  1784. var new_m = opts.padding[opts.d[3]];
  1785. if (l_new.not(l_cur).length) {
  1786. var a_cur = {};
  1787. a_cur[opts.d['marginRight']] = l_cur.data('cfs_origCssMargin');
  1788. if (pL < 0) l_cur.css(a_cur);
  1789. else scrl.anims.push([l_cur, a_cur]);
  1790. }
  1791. if (l_new.not(l_old).length) {
  1792. var a_old = {};
  1793. a_old[opts.d['marginRight']] = l_old.data('cfs_origCssMargin');
  1794. scrl.anims.push([l_old, a_old]);
  1795. }
  1796. if (pR >= 0) {
  1797. var a_new = {};
  1798. a_new[opts.d['marginRight']] = l_new.data('cfs_origCssMargin') + opts.padding[opts.d[1]];
  1799. scrl.anims.push([l_new, a_new]);
  1800. }
  1801. } else {
  1802. var new_m = 0;
  1803. }
  1804. // animate carousel
  1805. a_cfs[opts.d['left']] = new_m;
  1806. // onBefore callback
  1807. var args = [c_old, c_new, w_siz, a_dur];
  1808. if (sO.onBefore) sO.onBefore.apply($tt0, args);
  1809. clbk.onBefore = sc_callCallbacks(clbk.onBefore, $tt0, args);
  1810. // ALTERNATIVE EFFECTS
  1811. // extra animation arrays
  1812. switch(sO.fx) {
  1813. case 'fade':
  1814. case 'crossfade':
  1815. case 'cover':
  1816. case 'uncover':
  1817. scrl.pre = sc_setScroll(scrl.duration, scrl.easing);
  1818. scrl.post = sc_setScroll(scrl.duration, scrl.easing);
  1819. scrl.duration = 0;
  1820. break;
  1821. }
  1822. // create copy
  1823. switch(sO.fx) {
  1824. case 'crossfade':
  1825. case 'cover':
  1826. case 'uncover':
  1827. var $cf2 = $cfs.clone().appendTo($wrp);
  1828. break;
  1829. }
  1830. switch(sO.fx) {
  1831. case 'uncover':
  1832. $cf2.children().slice(0, nI).remove();
  1833. case 'crossfade':
  1834. case 'cover':
  1835. $cf2.children().slice(opts.items.visible).remove();
  1836. break;
  1837. }
  1838. // animations
  1839. switch(sO.fx) {
  1840. case 'fade':
  1841. scrl.pre.anims.push([$cfs, { 'opacity': 0 }]);
  1842. break;
  1843. case 'crossfade':
  1844. $cf2.css({ 'opacity': 0 });
  1845. scrl.pre.anims.push([$cfs, { 'width': '+=0' }, function() { $cf2.remove(); }]);
  1846. scrl.post.anims.push([$cf2, { 'opacity': 1 }]);
  1847. break;
  1848. case 'cover':
  1849. scrl = fx_cover(scrl, $cfs, $cf2, opts, true);
  1850. break;
  1851. case 'uncover':
  1852. scrl = fx_uncover(scrl, $cfs, $cf2, opts, true, nI);
  1853. break;
  1854. }
  1855. // /ALTERNATIVE EFFECTS
  1856. // complete callback
  1857. var a_complete = function() {
  1858. var overFill = opts.items.visible+nI-itms.total;
  1859. if (overFill > 0) {
  1860. $cfs.children().slice(itms.total).remove();
  1861. c_old = $cfs.children().slice(itms.total-(nI-overFill)).get().concat( $cfs.children().slice(0, overFill).get() );
  1862. }
  1863. if (hiddenitems) {
  1864. hiddenitems.each(function() {
  1865. var hi = $(this);
  1866. if (!hi.data('isHidden')) hi.show();
  1867. });
  1868. }
  1869. if (opts.usePadding) {
  1870. var l_itm = $cfs.children().eq(opts.items.visible+nI-1);
  1871. l_itm.css(opts.d['marginRight'], l_itm.data('cfs_origCssMargin'));
  1872. }
  1873. scrl.anims = [];
  1874. if (scrl.pre) scrl.pre = sc_setScroll(scrl.orgDuration, scrl.easing);
  1875. var fn = function() {
  1876. switch(sO.fx) {
  1877. case 'fade':
  1878. case 'crossfade':
  1879. $cfs.css('filter', '');
  1880. break;
  1881. }
  1882. scrl.post = sc_setScroll(0, null);
  1883. crsl.isScrolling = false;
  1884. var args = [c_old, c_new, w_siz];
  1885. if (sO.onAfter) sO.onAfter.apply($tt0, args);
  1886. clbk.onAfter = sc_callCallbacks(clbk.onAfter, $tt0, args);
  1887. if (queu.length) {
  1888. $cfs.trigger(cf_e(queu[0][0], conf), queu[0][1]);
  1889. queu.shift();
  1890. }
  1891. if (!crsl.isPaused) $cfs.trigger(cf_e('play', conf));
  1892. };
  1893. switch(sO.fx) {
  1894. case 'fade':
  1895. scrl.pre.anims.push([$cfs, { 'opacity': 1 }, fn]);
  1896. sc_startScroll(scrl.pre);
  1897. break;
  1898. case 'uncover':
  1899. scrl.pre.anims.push([$cfs, { 'width': '+=0' }, fn]);
  1900. sc_startScroll(scrl.pre);
  1901. break;
  1902. default:
  1903. fn();
  1904. break;
  1905. }
  1906. };
  1907. scrl.anims.push([$cfs, a_cfs, a_complete]);
  1908. crsl.isScrolling = true;
  1909. $cfs.css(opts.d['left'], -(i_siz-oL));
  1910. tmrs = sc_clearTimers(tmrs);
  1911. sc_startScroll(scrl);
  1912. cf_setCookie(opts.cookie, $cfs.triggerHandler(cf_e('currentPosition', conf)));
  1913. $cfs.trigger(cf_e('updatePageStatus', conf), [false, w_siz]);
  1914. return true;
  1915. });
  1916. // next event, accessible from outside
  1917. $cfs.bind(cf_e('_cfs_slide_next', conf, false), function(e, sO, nI) {
  1918. e.stopPropagation();
  1919. var a_itm = $cfs.children();
  1920. // non-circular at end, scroll to start
  1921. if (!opts.circular) {
  1922. if (itms.first == opts.items.visible) {
  1923. if (opts.infinite) {
  1924. $cfs.trigger(cf_e('prev', conf), itms.total-1);
  1925. }
  1926. return e.stopImmediatePropagation();
  1927. }
  1928. }
  1929. if (opts.usePadding) sz_resetMargin(a_itm, opts);
  1930. // find number of items to scroll
  1931. if (typeof nI != 'number') {
  1932. if (opts.items.filter != '*') {
  1933. var xI = (typeof sO.items == 'number') ? sO.items : gn_getVisibleOrg($cfs, opts);
  1934. nI = gn_getScrollItemsNextFilter(a_itm, opts, 0, xI);
  1935. } else {
  1936. nI = opts.items.visible;
  1937. }
  1938. nI = cf_getAdjust(nI, opts, sO.items, $tt0);
  1939. }
  1940. var lastItemNr = (itms.first == 0) ? itms.total : itms.first;
  1941. // prevent non-circular from scrolling to far
  1942. if (!opts.circular) {
  1943. if (opts.items.visibleConf.variable) {
  1944. var vI = gn_getVisibleItemsNext(a_itm, opts, nI),
  1945. xI = gn_getVisibleItemsPrev(a_itm, opts, lastItemNr-1);
  1946. } else {
  1947. var vI = opts.items.visible,
  1948. xI = opts.items.visible;
  1949. }
  1950. if (nI + vI > lastItemNr) {
  1951. nI = lastItemNr - xI;
  1952. }
  1953. }
  1954. // set new number of visible items
  1955. opts.items.visibleConf.old = opts.items.visible;
  1956. if (opts.items.visibleConf.variable) {
  1957. var vI = gn_getVisibleItemsNextTestCircular(a_itm, opts, nI, lastItemNr);
  1958. while (opts.items.visible-nI >= vI && nI < itms.total) {
  1959. nI++;
  1960. vI = gn_getVisibleItemsNextTestCircular(a_itm, opts, nI, lastItemNr);
  1961. }
  1962. opts.items.visible = cf_getItemsAdjust(vI, opts, opts.items.visibleConf.adjust, $tt0);
  1963. } else if (opts.items.filter != '*') {
  1964. var vI = gn_getVisibleItemsNextFilter(a_itm, opts, nI);
  1965. opts.items.visible = cf_getItemsAdjust(vI, opts, opts.items.visibleConf.adjust, $tt0);
  1966. }
  1967. if (opts.usePadding) sz_resetMargin(a_itm, opts, true);
  1968. // scroll 0, don't scroll
  1969. if (nI == 0) {
  1970. e.stopImmediatePropagation();
  1971. return debug(conf, '0 items to scroll: Not scrolling.');
  1972. }
  1973. debug(conf, 'Scrolling '+nI+' items forward.');
  1974. // save new config
  1975. itms.first -= nI;
  1976. while (itms.first < 0) {
  1977. itms.first += itms.total;
  1978. }
  1979. // non-circular callback
  1980. if (!opts.circular) {
  1981. if (itms.first == opts.items.visible && sO.onEnd) sO.onEnd.call($tt0);
  1982. if (!opts.infinite) nv_enableNavi(opts, itms.first, conf);
  1983. }
  1984. // rearrange items
  1985. if (itms.total < opts.items.visible+nI) {
  1986. $cfs.children().slice(0, (opts.items.visible+nI)-itms.total).clone(true).appendTo($cfs);
  1987. }
  1988. // the needed items
  1989. var a_itm = $cfs.children(),
  1990. c_old = gi_getOldItemsNext(a_itm, opts),
  1991. c_new = gi_getNewItemsNext(a_itm, opts, nI),
  1992. l_cur = a_itm.eq(nI-1),
  1993. l_old = c_old.last(),
  1994. l_new = c_new.last();
  1995. if (opts.usePadding) sz_resetMargin(a_itm, opts);
  1996. if (opts.align) {
  1997. var p = cf_getAlignPadding(c_new, opts),
  1998. pL = p[0],
  1999. pR = p[1];
  2000. } else {
  2001. var pL = 0,
  2002. pR = 0;
  2003. }
  2004. // hide items for fx directscroll
  2005. if (sO.fx == 'directscroll' && opts.items.visibleConf.old < nI) {
  2006. var hiddenitems = a_itm.slice(opts.items.visibleConf.old, nI),
  2007. orgW = opts.items[opts.d['width']];
  2008. hiddenitems.each(function() {
  2009. var hi = $(this);
  2010. hi.data('isHidden', hi.is(':hidden')).hide();
  2011. });
  2012. opts.items[opts.d['width']] = 'variable';
  2013. } else {
  2014. var hiddenitems = false;
  2015. }
  2016. // save new sizes
  2017. var i_siz = ms_getTotalSize(a_itm.slice(0, nI), opts, 'width'),
  2018. w_siz = cf_mapWrapperSizes(ms_getSizes(c_new, opts, true), opts, !opts.usePadding);
  2019. if (hiddenitems) opts.items[opts.d['width']] = orgW;
  2020. if (opts.align) {
  2021. if (opts.padding[opts.d[1]] < 0) {
  2022. opts.padding[opts.d[1]] = 0;
  2023. }
  2024. }
  2025. if (opts.usePadding) {
  2026. sz_resetMargin(a_itm, opts, true);
  2027. sz_resetMargin(l_old, opts, opts.padding[opts.d[1]]);
  2028. }
  2029. if (opts.align) {
  2030. opts.padding[opts.d[1]] = pR;
  2031. opts.padding[opts.d[3]] = pL;
  2032. }
  2033. // animation configuration
  2034. var a_cfs = {},
  2035. a_dur = sO.duration;
  2036. if (sO.fx == 'none') a_dur = 0;
  2037. else if (a_dur == 'auto') a_dur = opts.scroll.duration / opts.scroll.items * nI;
  2038. else if (a_dur <= 0) a_dur = 0;
  2039. else if (a_dur < 10) a_dur = i_siz / a_dur;
  2040. scrl = sc_setScroll(a_dur, sO.easing);
  2041. // animate wrapper
  2042. if (opts[opts.d['width']] == 'variable' || opts[opts.d['height']] == 'variable') {
  2043. scrl.anims.push([$wrp, w_siz]);
  2044. }
  2045. // animate items
  2046. if (opts.usePadding) {
  2047. var l_new_m = l_new.data('cfs_origCssMargin');
  2048. if (pR >= 0) {
  2049. l_new_m += opts.padding[opts.d[1]];
  2050. }
  2051. l_new.css(opts.d['marginRight'], l_new_m);
  2052. if (l_cur.not(l_old).length) {
  2053. var a_old = {};
  2054. a_old[opts.d['marginRight']] = l_old.data('cfs_origCssMargin');
  2055. scrl.anims.push([l_old, a_old]);
  2056. }
  2057. var c_new_m = l_cur.data('cfs_origCssMargin');
  2058. if (pL >= 0) {
  2059. c_new_m += opts.padding[opts.d[3]];
  2060. }
  2061. var a_cur = {};
  2062. a_cur[opts.d['marginRight']] = c_new_m;
  2063. scrl.anims.push([l_cur, a_cur]);
  2064. }
  2065. // animate carousel
  2066. a_cfs[opts.d['left']] = -i_siz;
  2067. if (pL < 0) {
  2068. a_cfs[opts.d['left']] += pL;
  2069. }
  2070. // onBefore callback
  2071. var args = [c_old, c_new, w_siz, a_dur];
  2072. if (sO.onBefore) sO.onBefore.apply($tt0, args);
  2073. clbk.onBefore = sc_callCallbacks(clbk.onBefore, $tt0, args);
  2074. // ALTERNATIVE EFFECTS
  2075. // extra animation arrays
  2076. switch(sO.fx) {
  2077. case 'fade':
  2078. case 'crossfade':
  2079. case 'cover':
  2080. case 'uncover':
  2081. scrl.pre = sc_setScroll(scrl.duration, scrl.easing);
  2082. scrl.post = sc_setScroll(scrl.duration, scrl.easing);
  2083. scrl.duration = 0;
  2084. break;
  2085. }
  2086. // create copy
  2087. switch(sO.fx) {
  2088. case 'crossfade':
  2089. case 'cover':
  2090. case 'uncover':
  2091. var $cf2 = $cfs.clone().appendTo($wrp);
  2092. break;
  2093. }
  2094. switch(sO.fx) {
  2095. case 'uncover':
  2096. $cf2.children().slice(opts.items.visibleConf.old).remove();
  2097. break;
  2098. case 'crossfade':
  2099. case 'cover':
  2100. $cf2.children().slice(0, nI).remove();
  2101. $cf2.children().slice(opts.items.visible).remove();
  2102. break;
  2103. }
  2104. // animations
  2105. switch(sO.fx) {
  2106. case 'fade':
  2107. scrl.pre.anims.push([$cfs, { 'opacity': 0 }]);
  2108. break;
  2109. case 'crossfade':
  2110. $cf2.css({ 'opacity': 0 });
  2111. scrl.pre.anims.push([$cfs, { 'width': '+=0' }, function() { $cf2.remove(); }]);
  2112. scrl.post.anims.push([$cf2, { 'opacity': 1 }]);
  2113. break;
  2114. case 'cover':
  2115. scrl = fx_cover(scrl, $cfs, $cf2, opts, false);
  2116. break;
  2117. case 'uncover':
  2118. scrl = fx_uncover(scrl, $cfs, $cf2, opts, false, nI);
  2119. break;
  2120. }
  2121. // /ALTERNATIVE EFFECTS
  2122. // complete callback
  2123. var a_complete = function() {
  2124. var overFill = opts.items.visible+nI-itms.total,
  2125. new_m = (opts.usePadding) ? opts.padding[opts.d[3]] : 0;
  2126. $cfs.css(opts.d['left'], new_m);
  2127. if (overFill > 0) {
  2128. $cfs.children().slice(itms.total).remove();
  2129. }
  2130. var l_itm = $cfs.children().slice(0, nI).appendTo($cfs).last();
  2131. if (overFill > 0) {
  2132. c_new = gi_getCurrentItems(a_itm, opts);
  2133. }
  2134. if (hiddenitems) {
  2135. hiddenitems.each(function() {
  2136. var hi = $(this);
  2137. if (!hi.data('isHidden')) hi.show();
  2138. });
  2139. }
  2140. if (opts.usePadding) {
  2141. if (itms.total < opts.items.visible+nI) {
  2142. var l_cur = $cfs.children().eq(opts.items.visible-1);
  2143. l_cur.css(opts.d['marginRight'], l_cur.data('cfs_origCssMargin') + opts.padding[opts.d[3]]);
  2144. }
  2145. l_itm.css(opts.d['marginRight'], l_itm.data('cfs_origCssMargin'));
  2146. }
  2147. scrl.anims = [];
  2148. if (scrl.pre) scrl.pre = sc_setScroll(scrl.orgDuration, scrl.easing);
  2149. var fn = function() {
  2150. switch(sO.fx) {
  2151. case 'fade':
  2152. case 'crossfade':
  2153. $cfs.css('filter', '');
  2154. break;
  2155. }
  2156. scrl.post = sc_setScroll(0, null);
  2157. crsl.isScrolling = false;
  2158. var args = [c_old, c_new, w_siz];
  2159. if (sO.onAfter) sO.onAfter.apply($tt0, args);
  2160. clbk.onAfter = sc_callCallbacks(clbk.onAfter, $tt0, args);
  2161. if (queu.length) {
  2162. $cfs.trigger(cf_e(queu[0][0], conf), queu[0][1]);
  2163. queu.shift();
  2164. }
  2165. if (!crsl.isPaused) $cfs.trigger(cf_e('play', conf));
  2166. };
  2167. switch(sO.fx) {
  2168. case 'fade':
  2169. scrl.pre.anims.push([$cfs, { 'opacity': 1 }, fn]);
  2170. sc_startScroll(scrl.pre);
  2171. break;
  2172. case 'uncover':
  2173. scrl.pre.anims.push([$cfs, { 'width': '+=0' }, fn]);
  2174. sc_startScroll(scrl.pre);
  2175. break;
  2176. default:
  2177. fn();
  2178. break;
  2179. }
  2180. };
  2181. scrl.anims.push([$cfs, a_cfs, a_complete]);
  2182. crsl.isScrolling = true;
  2183. tmrs = sc_clearTimers(tmrs);
  2184. sc_startScroll(scrl);
  2185. cf_setCookie(opts.cookie, $cfs.triggerHandler(cf_e('currentPosition', conf)));
  2186. $cfs.trigger(cf_e('updatePageStatus', conf), [false, w_siz]);
  2187. return true;
  2188. });
  2189. // slideTo event
  2190. $cfs.bind(cf_e('slideTo', conf), function(e, num, dev, org, obj, dir, clb) {
  2191. e.stopPropagation();
  2192. var v = [num, dev, org, obj, dir, clb],
  2193. t = ['string/number/object', 'number', 'boolean', 'object', 'string', 'function'],
  2194. a = cf_sortParams(v, t);
  2195. var obj = a[3],
  2196. dir = a[4],
  2197. clb = a[5];
  2198. num = gn_getItemIndex(a[0], a[1], a[2], itms, $cfs);
  2199. if (num == 0) return;
  2200. if (typeof obj != 'object') obj = false;
  2201. if (crsl.isScrolling) {
  2202. if (typeof obj != 'object' || obj.duration > 0) return false;
  2203. }
  2204. if (dir != 'prev' && dir != 'next') {
  2205. if (opts.circular) {
  2206. if (num <= itms.total / 2) dir = 'next';
  2207. else dir = 'prev';
  2208. } else {
  2209. if (itms.first == 0 ||
  2210. itms.first > num) dir = 'next';
  2211. else dir = 'prev';
  2212. }
  2213. }
  2214. if (dir == 'prev') num = itms.total-num;
  2215. $cfs.trigger(cf_e(dir, conf), [obj, num, clb]);
  2216. return true;
  2217. });
  2218. // prevPage event
  2219. $cfs.bind(cf_e('prevPage', conf), function(e, obj, clb) {
  2220. e.stopPropagation();
  2221. var cur = $cfs.triggerHandler(cf_e('currentPage', conf));
  2222. return $cfs.triggerHandler(cf_e('slideToPage', conf), [cur-1, obj, 'prev', clb]);
  2223. });
  2224. // nextPage event
  2225. $cfs.bind(cf_e('nextPage', conf), function(e, obj, clb) {
  2226. e.stopPropagation();
  2227. var cur = $cfs.triggerHandler(cf_e('currentPage', conf));
  2228. return $cfs.triggerHandler(cf_e('slideToPage', conf), [cur+1, obj, 'next', clb]);
  2229. });
  2230. // slideToPage event
  2231. $cfs.bind(cf_e('slideToPage', conf), function(e, pag, obj, dir, clb) {
  2232. e.stopPropagation();
  2233. if (typeof pag != 'number') pag = $cfs.triggerHandler(cf_e('currentPage', conf));
  2234. var ipp = opts.pagination.items || opts.items.visible,
  2235. max = Math.floor(itms.total / ipp)-1;
  2236. if (pag < 0) pag = max;
  2237. if (pag > max) pag = 0;
  2238. return $cfs.triggerHandler(cf_e('slideTo', conf), [pag*ipp, 0, true, obj, dir, clb]);
  2239. });
  2240. // jumpToStart event
  2241. $cfs.bind(cf_e('jumpToStart', conf), function(e, s) {
  2242. e.stopPropagation();
  2243. if (s) s = gn_getItemIndex(s, 0, true, itms, $cfs);
  2244. else s = 0;
  2245. s += itms.first;
  2246. if (s != 0) {
  2247. while (s > itms.total) s -= itms.total;
  2248. $cfs.prepend($cfs.children().slice(s, itms.total));
  2249. }
  2250. return true;
  2251. });
  2252. // synchronise event
  2253. $cfs.bind(cf_e('synchronise', conf), function(e, s) {
  2254. e.stopPropagation();
  2255. if (s) s = cf_getSynchArr(s);
  2256. else if (opts.synchronise) s = opts.synchronise;
  2257. else return debug(conf, 'No carousel to synchronise.');
  2258. var n = $cfs.triggerHandler(cf_e('currentPosition', conf)),
  2259. x = true;
  2260. for (var j = 0, l = s.length; j < l; j++) {
  2261. if (!s[j][0].triggerHandler(cf_e('slideTo', conf), [n, s[j][3], true])) {
  2262. x = false;
  2263. }
  2264. }
  2265. return x;
  2266. });
  2267. // queue event
  2268. $cfs.bind(cf_e('queue', conf), function(e, dir, opt) {
  2269. e.stopPropagation();
  2270. if (typeof dir == 'function') {
  2271. dir.call($tt0, queu);
  2272. } else if (is_array(dir)) {
  2273. queu = dir;
  2274. } else if (typeof dir != 'undefined') {
  2275. queu.push([dir, opt]);
  2276. }
  2277. return queu;
  2278. });
  2279. // insertItem event
  2280. $cfs.bind(cf_e('insertItem', conf), function(e, itm, num, org, dev) {
  2281. e.stopPropagation();
  2282. var v = [itm, num, org, dev],
  2283. t = ['string/object', 'string/number/object', 'boolean', 'number'],
  2284. a = cf_sortParams(v, t);
  2285. var itm = a[0],
  2286. num = a[1],
  2287. org = a[2],
  2288. dev = a[3];
  2289. if (typeof itm == 'object' &&
  2290. typeof itm.jquery == 'undefined') itm = $(itm);
  2291. if (typeof itm == 'string') itm = $(itm);
  2292. if (typeof itm != 'object' ||
  2293. typeof itm.jquery == 'undefined' ||
  2294. itm.length == 0) return debug(conf, 'Not a valid object.');
  2295. if (typeof num == 'undefined') num = 'end';
  2296. if (opts.usePadding) {
  2297. itm.each(function() {
  2298. var m = parseInt($(this).css(opts.d['marginRight']));
  2299. if (isNaN(m)) m = 0;
  2300. $(this).data('cfs_origCssMargin', m);
  2301. });
  2302. }
  2303. var orgNum = num,
  2304. before = 'before';
  2305. if (num == 'end') {
  2306. if (org) {
  2307. if (itms.first == 0) {
  2308. num = itms.total-1;
  2309. before = 'after';
  2310. } else {
  2311. num = itms.first;
  2312. itms.first += itm.length
  2313. }
  2314. if (num < 0) num = 0;
  2315. } else {
  2316. num = itms.total-1;
  2317. before = 'after';
  2318. }
  2319. } else {
  2320. num = gn_getItemIndex(num, dev, org, itms, $cfs);
  2321. }
  2322. if (orgNum != 'end' && !org) {
  2323. if (num < itms.first) itms.first += itm.length;
  2324. }
  2325. if (itms.first >= itms.total) itms.first -= itms.total;
  2326. var $cit = $cfs.children().eq(num);
  2327. if ($cit.length) {
  2328. $cit[before](itm);
  2329. } else {
  2330. $cfs.append(itm);
  2331. }
  2332. itms.total = $cfs.children().length;
  2333. var sz = $cfs.triggerHandler('updateSizes');
  2334. nv_showNavi(opts, itms.total, conf);
  2335. nv_enableNavi(opts, itms.first, conf);
  2336. $cfs.trigger(cf_e('linkAnchors', conf));
  2337. $cfs.trigger(cf_e('updatePageStatus', conf), [true, sz]);
  2338. return true;
  2339. });
  2340. // removeItem event
  2341. $cfs.bind(cf_e('removeItem', conf), function(e, num, org, dev) {
  2342. e.stopPropagation();
  2343. var v = [num, org, dev],
  2344. t = ['string/number/object', 'boolean', 'number'],
  2345. a = cf_sortParams(v, t);
  2346. var num = a[0],
  2347. org = a[1],
  2348. dev = a[2];
  2349. if (typeof num == 'undefined' || num == 'end') {
  2350. $cfs.children().last().remove();
  2351. } else {
  2352. num = gn_getItemIndex(num, dev, org, itms, $cfs);
  2353. var $cit = $cfs.children().eq(num);
  2354. if ($cit.length){
  2355. if (num < itms.first) itms.first -= $cit.length;
  2356. $cit.remove();
  2357. }
  2358. }
  2359. itms.total = $cfs.children().length;
  2360. var sz = $cfs.triggerHandler('updateSizes');
  2361. nv_showNavi(opts, itms.total, conf);
  2362. nv_enableNavi(opts, itms.first, conf);
  2363. $cfs.trigger(cf_e('updatePageStatus', conf), [true, sz]);
  2364. return true;
  2365. });
  2366. // onBefore and onAfter event
  2367. $cfs.bind(cf_e('onBefore', conf)+' '+cf_e('onAfter', conf), function(e, fn) {
  2368. e.stopPropagation();
  2369. var eType = e.type.substr(conf.events.prefix.length);
  2370. if (is_array(fn)) clbk[eType] = fn;
  2371. if (typeof fn == 'function') clbk[eType].push(fn);
  2372. return clbk[eType];
  2373. });
  2374. // currentPosition event, accessible from outside
  2375. $cfs.bind(cf_e('_cfs_currentPosition', conf, false), function(e, fn) {
  2376. e.stopPropagation();
  2377. return $cfs.triggerHandler(cf_e('currentPosition', conf), fn);
  2378. });
  2379. $cfs.bind(cf_e('currentPosition', conf), function(e, fn) {
  2380. e.stopPropagation();
  2381. if (itms.first == 0) var val = 0;
  2382. else var val = itms.total - itms.first;
  2383. if (typeof fn == 'function') fn.call($tt0, val);
  2384. return val;
  2385. });
  2386. // currentPage event
  2387. $cfs.bind(cf_e('currentPage', conf), function(e, fn) {
  2388. e.stopPropagation();
  2389. var ipp = opts.pagination.items || opts.items.visible;
  2390. var max = Math.ceil(itms.total/ipp-1);
  2391. if (itms.first == 0) var nr = 0;
  2392. else if (itms.first < itms.total % ipp) var nr = 0;
  2393. else if (itms.first == ipp && !opts.circular) var nr = max;
  2394. else var nr = Math.round((itms.total-itms.first)/ipp);
  2395. if (nr < 0) nr = 0;
  2396. if (nr > max) nr = max;
  2397. if (typeof fn == 'function') fn.call($tt0, nr);
  2398. return nr;
  2399. });
  2400. // currentVisible event
  2401. $cfs.bind(cf_e('currentVisible', conf), function(e, fn) {
  2402. e.stopPropagation();
  2403. $i = gi_getCurrentItems($cfs.children(), opts);
  2404. if (typeof fn == 'function') fn.call($tt0, $i);
  2405. return $i;
  2406. });
  2407. // slice event
  2408. $cfs.bind(cf_e('slice', conf), function(e, f, l, fn) {
  2409. e.stopPropagation();
  2410. var v = [f, l, fn],
  2411. t = ['number', 'number', 'function'],
  2412. a = cf_sortParams(v, t);
  2413. f = (typeof a[0] == 'number') ? a[0] : 0,
  2414. l = (typeof a[1] == 'number') ? a[1] : itms.total,
  2415. fn = a[2];
  2416. f += itms.first;
  2417. l += itms.first;
  2418. while (f > itms.total) { f -= itms.total }
  2419. while (l > itms.total) { l -= itms.total }
  2420. while (f < 0) { f += itms.total }
  2421. while (l < 0) { l += itms.total }
  2422. var $iA = $cfs.children();
  2423. if (l > f) {
  2424. var $i = $iA.slice(f, l);
  2425. } else {
  2426. var $i = $iA.slice(f, itms.total).get().concat( $iA.slice(0, l).get() );
  2427. }
  2428. if (typeof fn == 'function') fn.call($tt0, $i);
  2429. return $i;
  2430. });
  2431. // isPaused, isStopped and isScrolling events
  2432. $cfs.bind(cf_e('isPaused', conf)+' '+cf_e('isStopped', conf)+' '+cf_e('isScrolling', conf), function(e, fn) {
  2433. e.stopPropagation();
  2434. var eType = e.type.substr(conf.events.prefix.length);
  2435. if (typeof fn == 'function') fn.call($tt0, crsl[eType]);
  2436. return crsl[eType];
  2437. });
  2438. // configuration event, accessible from outside
  2439. $cfs.bind(cf_e('_cfs_configuration', conf, false), function(e, a, b, c) {
  2440. e.stopPropagation();
  2441. return $cfs.triggerHandler(cf_e('configuration', conf), [a, b, c]);
  2442. });
  2443. $cfs.bind(cf_e('configuration', conf), function(e, a, b, c) {
  2444. e.stopPropagation();
  2445. var reInit = false;
  2446. // return entire configuration-object
  2447. if (typeof a == 'function') {
  2448. a.call($tt0, opts);
  2449. // set multiple options via object
  2450. } else if (typeof a == 'object') {
  2451. opts_orig = $.extend(true, {}, opts_orig, a);
  2452. if (b !== false) reInit = true;
  2453. else opts = $.extend(true, {}, opts, a);
  2454. } else if (typeof a != 'undefined') {
  2455. // callback function for specific option
  2456. if (typeof b == 'function') {
  2457. var val = eval('opts.'+a);
  2458. if (typeof val == 'undefined') val = '';
  2459. b.call($tt0, val);
  2460. // set individual option
  2461. } else if (typeof b != 'undefined') {
  2462. if (typeof c !== 'boolean') c = true;
  2463. eval('opts_orig.'+a+' = b');
  2464. if (c !== false) reInit = true;
  2465. else eval('opts.'+a+' = b');
  2466. // return value for specific option
  2467. } else {
  2468. return eval('opts.'+a);
  2469. }
  2470. }
  2471. if (reInit) {
  2472. sz_resetMargin($cfs.children(), opts);
  2473. $cfs._cfs_init(opts_orig);
  2474. $cfs._cfs_bind_buttons();
  2475. var siz = sz_setSizes($cfs, opts, false);
  2476. $cfs.trigger(cf_e('updatePageStatus', conf), [true, siz]);
  2477. }
  2478. return opts;
  2479. });
  2480. // linkAnchors event
  2481. $cfs.bind(cf_e('linkAnchors', conf), function(e, $con, sel) {
  2482. e.stopPropagation();
  2483. if (typeof $con == 'undefined' || $con.length == 0) $con = $('body');
  2484. else if (typeof $con == 'string') $con = $($con);
  2485. if (typeof $con != 'object') return debug(conf, 'Not a valid object.');
  2486. if (typeof sel != 'string' || sel.length == 0) sel = 'a.caroufredsel';
  2487. $con.find(sel).each(function() {
  2488. var h = this.hash || '';
  2489. if (h.length > 0 && $cfs.children().index($(h)) != -1) {
  2490. $(this).unbind('click').click(function(e) {
  2491. e.preventDefault();
  2492. $cfs.trigger(cf_e('slideTo', conf), h);
  2493. });
  2494. }
  2495. });
  2496. return true;
  2497. });
  2498. // updatePageStatus event
  2499. $cfs.bind(cf_e('updatePageStatus', conf), function(e, build, sizes) {
  2500. e.stopPropagation();
  2501. if (!opts.pagination.container) return;
  2502. if (build) {
  2503. var ipp = opts.pagination.items || opts.items.visible,
  2504. l = Math.ceil(itms.total/ipp);
  2505. if (opts.pagination.anchorBuilder) {
  2506. opts.pagination.container.children().remove();
  2507. opts.pagination.container.each(function() {
  2508. for (var a = 0; a < l; a++) {
  2509. var i = $cfs.children().eq( gn_getItemIndex(a*ipp, 0, true, itms, $cfs) );
  2510. $(this).append(opts.pagination.anchorBuilder(a+1, i));
  2511. }
  2512. });
  2513. }
  2514. opts.pagination.container.each(function() {
  2515. $(this).children().unbind(opts.pagination.event).each(function(a) {
  2516. $(this).bind(opts.pagination.event, function(e) {
  2517. e.preventDefault();
  2518. $cfs.trigger(cf_e('slideTo', conf), [a*ipp, 0, true, opts.pagination]);
  2519. });
  2520. });
  2521. });
  2522. }
  2523. opts.pagination.container.each(function() {
  2524. $(this).children().removeClass(cf_c('selected', conf)).eq($cfs.triggerHandler(cf_e('currentPage', conf))).addClass(cf_c('selected', conf));
  2525. });
  2526. return true;
  2527. });
  2528. // updateSizes event
  2529. $cfs.bind(cf_e('updateSizes', conf), function(e) {
  2530. var a_itm = $cfs.children(),
  2531. vI = opts.items.visible;
  2532. if (opts.items.visibleConf.variable) vI = gn_getVisibleItemsNext(a_itm, opts, 0);
  2533. else if (opts.items.filter != '*') vI = gn_getVisibleItemsNextFilter(a_itm, opts, 0);
  2534. if (!opts.circular && itms.first != 0 && vI > itms.first) {
  2535. if (opts.items.visibleConf.variable) {
  2536. var nI = gn_getVisibleItemsPrev(a_itm, opts, itms.first) - itms.first;
  2537. } else if (opts.items.filter != '*') {
  2538. var nI = gn_getVisibleItemsPrevFilter(a_itm, opts, itms.first) - itms.first;
  2539. } else {
  2540. nI = opts.items.visible - itms.first;
  2541. }
  2542. debug(conf, 'Preventing non-circular: sliding '+nI+' items backward.');
  2543. $cfs.trigger('prev', nI);
  2544. }
  2545. opts.items.visible = cf_getItemsAdjust(vI, opts, opts.items.visibleConf.adjust, $tt0);
  2546. return sz_setSizes($cfs, opts);
  2547. });
  2548. // destroy event, accessible from outside
  2549. $cfs.bind(cf_e('_cfs_destroy', conf, false), function(e, orgOrder) {
  2550. e.stopPropagation();
  2551. $cfs.trigger(cf_e('destroy', conf), orgOrder);
  2552. return true;
  2553. });
  2554. $cfs.bind(cf_e('destroy', conf), function(e, orgOrder) {
  2555. e.stopPropagation();
  2556. tmrs = sc_clearTimers(tmrs);
  2557. $cfs.data('cfs_isCarousel', false);
  2558. $cfs.trigger(cf_e('finish', conf));
  2559. if (orgOrder) {
  2560. $cfs.trigger(cf_e('jumpToStart', conf));
  2561. }
  2562. if (opts.usePadding) {
  2563. sz_resetMargin($cfs.children(), opts);
  2564. }
  2565. $cfs.css($cfs.data('cfs_origCss'));
  2566. $cfs._cfs_unbind_events();
  2567. $cfs._cfs_unbind_buttons();
  2568. $wrp.replaceWith($cfs);
  2569. return true;
  2570. });
  2571. }; // /bind_events
  2572. $cfs._cfs_unbind_events = function() {
  2573. $cfs.unbind(cf_e('', conf));
  2574. $cfs.unbind(cf_e('', conf, false));
  2575. }; // /unbind_events
  2576. $cfs._cfs_bind_buttons = function() {
  2577. $cfs._cfs_unbind_buttons();
  2578. nv_showNavi(opts, itms.total, conf);
  2579. nv_enableNavi(opts, itms.first, conf);
  2580. if (opts.auto.pauseOnHover) {
  2581. var pC = bt_pauseOnHoverConfig(opts.auto.pauseOnHover);
  2582. $wrp.bind(cf_e('mouseenter', conf, false), function() { $cfs.trigger(cf_e('pause', conf), pC); })
  2583. .bind(cf_e('mouseleave', conf, false), function() { $cfs.trigger(cf_e('resume', conf)); });
  2584. }
  2585. if (opts.auto.button) {
  2586. opts.auto.button.bind(cf_e(opts.auto.event, conf, false), function(e) {
  2587. e.preventDefault();
  2588. var ev = false,
  2589. pC = null;
  2590. if (crsl.isPaused) {
  2591. ev = 'play';
  2592. } else if (opts.auto.pauseOnEvent) {
  2593. ev = 'pause';
  2594. pC = bt_pauseOnHoverConfig(opts.auto.pauseOnEvent);
  2595. }
  2596. if (ev) {
  2597. $cfs.trigger(cf_e(ev, conf), pC);
  2598. }
  2599. });
  2600. }
  2601. if (opts.prev.button) {
  2602. opts.prev.button.bind(cf_e(opts.prev.event, conf, false), function(e) {
  2603. e.preventDefault();
  2604. $cfs.trigger(cf_e('prev', conf));
  2605. });
  2606. if (opts.prev.pauseOnHover) {
  2607. var pC = bt_pauseOnHoverConfig(opts.prev.pauseOnHover);
  2608. opts.prev.button.bind(cf_e('mouseenter', conf, false), function() { $cfs.trigger(cf_e('pause', conf), pC); })
  2609. .bind(cf_e('mouseleave', conf, false), function() { $cfs.trigger(cf_e('resume', conf)); });
  2610. }
  2611. }
  2612. if (opts.next.button) {
  2613. opts.next.button.bind(cf_e(opts.next.event, conf, false), function(e) {
  2614. e.preventDefault();
  2615. $cfs.trigger(cf_e('next', conf));
  2616. });
  2617. if (opts.next.pauseOnHover) {
  2618. var pC = bt_pauseOnHoverConfig(opts.next.pauseOnHover);
  2619. opts.next.button.bind(cf_e('mouseenter', conf, false), function() { $cfs.trigger(cf_e('pause', conf), pC); })
  2620. .bind(cf_e('mouseleave', conf, false), function() { $cfs.trigger(cf_e('resume', conf)); });
  2621. }
  2622. }
  2623. if ($.fn.mousewheel) {
  2624. if (opts.prev.mousewheel) {
  2625. if (!crsl.mousewheelPrev) {
  2626. crsl.mousewheelPrev = true;
  2627. $wrp.mousewheel(function(e, delta) {
  2628. if (delta > 0) {
  2629. e.preventDefault();
  2630. var num = bt_mousesheelNumber(opts.prev.mousewheel);
  2631. $cfs.trigger(cf_e('prev', conf), num);
  2632. }
  2633. });
  2634. }
  2635. }
  2636. if (opts.next.mousewheel) {
  2637. if (!crsl.mousewheelNext) {
  2638. crsl.mousewheelNext = true;
  2639. $wrp.mousewheel(function(e, delta) {
  2640. if (delta < 0) {
  2641. e.preventDefault();
  2642. var num = bt_mousesheelNumber(opts.next.mousewheel);
  2643. $cfs.trigger(cf_e('next', conf), num);
  2644. }
  2645. });
  2646. }
  2647. }
  2648. }
  2649. if ($.fn.touchwipe) {
  2650. var wP = (opts.prev.wipe) ? function() { $cfs.trigger(cf_e('prev', conf)) } : null,
  2651. wN = (opts.next.wipe) ? function() { $cfs.trigger(cf_e('next', conf)) } : null;
  2652. if (wN || wN) {
  2653. if (!crsl.touchwipe) {
  2654. crsl.touchwipe = true;
  2655. var twOps = {
  2656. 'min_move_x': 30,
  2657. 'min_move_y': 30,
  2658. 'preventDefaultEvents': true
  2659. };
  2660. switch (opts.direction) {
  2661. case 'up':
  2662. case 'down':
  2663. twOps.wipeUp = wN;
  2664. twOps.wipeDown = wP;
  2665. break;
  2666. default:
  2667. twOps.wipeLeft = wN;
  2668. twOps.wipeRight = wP;
  2669. }
  2670. $wrp.touchwipe(twOps);
  2671. }
  2672. }
  2673. }
  2674. if (opts.pagination.container) {
  2675. if (opts.pagination.pauseOnHover) {
  2676. var pC = bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);
  2677. opts.pagination.container.bind(cf_e('mouseenter', conf, false), function() { $cfs.trigger(cf_e('pause', conf), pC); })
  2678. .bind(cf_e('mouseleave', conf, false), function() { $cfs.trigger(cf_e('resume', conf)); });
  2679. }
  2680. }
  2681. if (opts.prev.key || opts.next.key) {
  2682. $(document).bind(cf_e('keyup', conf, false, true, true), function(e) {
  2683. var k = e.keyCode;
  2684. if (k == opts.next.key) {
  2685. e.preventDefault();
  2686. $cfs.trigger(cf_e('next', conf));
  2687. }
  2688. if (k == opts.prev.key) {
  2689. e.preventDefault();
  2690. $cfs.trigger(cf_e('prev', conf));
  2691. }
  2692. });
  2693. }
  2694. if (opts.pagination.keys) {
  2695. $(document).bind(cf_e('keyup', conf, false, true, true), function(e) {
  2696. var k = e.keyCode;
  2697. if (k >= 49 && k < 58) {
  2698. k = (k-49) * opts.items.visible;
  2699. if (k <= itms.total) {
  2700. e.preventDefault();
  2701. $cfs.trigger(cf_e('slideTo', conf), [k, 0, true, opts.pagination]);
  2702. }
  2703. }
  2704. });
  2705. }
  2706. if (opts.auto.play) {
  2707. $cfs.trigger(cf_e('play', conf), opts.auto.delay);
  2708. }
  2709. if (crsl.upDateOnWindowResize) {
  2710. $(window).bind(cf_e('resize', conf, false, true, true), function(e) {
  2711. $cfs.trigger(cf_e('finish', conf));
  2712. if (opts.auto.pauseOnResize && !crsl.isPaused) {
  2713. $cfs.trigger(cf_e('play', conf));
  2714. }
  2715. sz_resetMargin($cfs.children(), opts);
  2716. $cfs._cfs_init(opts_orig);
  2717. var siz = sz_setSizes($cfs, opts, false);
  2718. $cfs.trigger(cf_e('updatePageStatus', conf), [true, siz]);
  2719. });
  2720. }
  2721. }; // /bind_buttons
  2722. $cfs._cfs_unbind_buttons = function() {
  2723. var ns1 = cf_e('', conf),
  2724. ns2 = cf_e('', conf, false);
  2725. ns3 = cf_e('', conf, false, true, true);
  2726. $(document).unbind(ns3);
  2727. $(window).unbind(ns3);
  2728. $wrp.unbind(ns2);
  2729. if (opts.auto.button) opts.auto.button.unbind(ns2);
  2730. if (opts.prev.button) opts.prev.button.unbind(ns2);
  2731. if (opts.next.button) opts.next.button.unbind(ns2);
  2732. if (opts.pagination.container) {
  2733. opts.pagination.container.unbind(ns2);
  2734. if (opts.pagination.anchorBuilder) {
  2735. opts.pagination.container.children().remove();
  2736. }
  2737. }
  2738. nv_showNavi(opts, 'hide', conf);
  2739. nv_enableNavi(opts, 'removeClass', conf);
  2740. }; // /unbind_buttons
  2741. // START
  2742. var crsl = {
  2743. 'direction' : 'next',
  2744. 'isPaused' : true,
  2745. 'isScrolling' : false,
  2746. 'isStopped' : false,
  2747. 'mousewheelNext': false,
  2748. 'mousewheelPrev': false,
  2749. 'touchwipe' : false
  2750. },
  2751. itms = {
  2752. 'total' : $cfs.children().length,
  2753. 'first' : 0
  2754. },
  2755. tmrs = {
  2756. 'timer' : null,
  2757. 'auto' : null,
  2758. 'queue' : null,
  2759. 'startTime' : getTime(),
  2760. 'timePassed' : 0
  2761. },
  2762. scrl = {
  2763. 'isStopped' : false,
  2764. 'duration' : 0,
  2765. 'startTime' : 0,
  2766. 'easing' : '',
  2767. 'anims' : []
  2768. },
  2769. clbk = {
  2770. 'onBefore' : [],
  2771. 'onAfter' : []
  2772. },
  2773. queu = [],
  2774. conf = $.extend(true, {}, $.fn.carouFredSel.configs, configs),
  2775. opts = {},
  2776. opts_orig = options,
  2777. $wrp = $cfs.wrap('<'+conf.wrapper.element+' class="'+conf.wrapper.classname+'" />').parent();
  2778. conf.selector = $cfs.selector;
  2779. conf.serialNumber = $.fn.carouFredSel.serialNumber++;
  2780. // create carousel
  2781. $cfs._cfs_init(opts_orig, true, starting_position);
  2782. $cfs._cfs_build();
  2783. $cfs._cfs_bind_events();
  2784. $cfs._cfs_bind_buttons();
  2785. // find item to start
  2786. if (is_array(opts.items.start)) {
  2787. var start_arr = opts.items.start;
  2788. } else {
  2789. var start_arr = [];
  2790. if (opts.items.start != 0) {
  2791. start_arr.push(opts.items.start);
  2792. }
  2793. }
  2794. if (opts.cookie) {
  2795. start_arr.unshift(cf_readCookie(opts.cookie));
  2796. }
  2797. if (start_arr.length > 0) {
  2798. for (var a = 0, l = start_arr.length; a < l; a++) {
  2799. var s = start_arr[a];
  2800. if (s == 0) {
  2801. continue;
  2802. }
  2803. if (s === true) {
  2804. s = window.location.hash;
  2805. if (s.length < 1) {
  2806. continue;
  2807. }
  2808. } else if (s === 'random') {
  2809. s = Math.floor(Math.random()*itms.total);
  2810. }
  2811. if ($cfs.triggerHandler(cf_e('slideTo', conf), [s, 0, true, { fx: 'none' }])) {
  2812. break;
  2813. }
  2814. }
  2815. }
  2816. var siz = sz_setSizes($cfs, opts, false),
  2817. itm = gi_getCurrentItems($cfs.children(), opts);
  2818. if (opts.onCreate) {
  2819. opts.onCreate.call($tt0, itm, siz);
  2820. }
  2821. $cfs.trigger(cf_e('updatePageStatus', conf), [true, siz]);
  2822. $cfs.trigger(cf_e('linkAnchors', conf));
  2823. return $cfs;
  2824. };
  2825. // GLOBAL PUBLIC
  2826. $.fn.carouFredSel.serialNumber = 1;
  2827. $.fn.carouFredSel.defaults = {
  2828. 'synchronise' : false,
  2829. 'infinite' : true,
  2830. 'circular' : true,
  2831. 'responsive' : false,
  2832. 'direction' : 'left',
  2833. 'items' : {
  2834. 'start' : 0
  2835. },
  2836. 'scroll' : {
  2837. 'easing' : 'swing',
  2838. 'duration' : 500,
  2839. 'pauseOnHover' : false,
  2840. 'mousewheel' : false,
  2841. 'wipe' : false,
  2842. 'event' : 'click',
  2843. 'queue' : false
  2844. }
  2845. };
  2846. $.fn.carouFredSel.configs = {
  2847. 'debug' : false,
  2848. 'events' : {
  2849. 'prefix' : '',
  2850. 'namespace' : 'cfs'
  2851. },
  2852. 'wrapper' : {
  2853. 'element' : 'div',
  2854. 'classname' : 'caroufredsel_wrapper'
  2855. },
  2856. 'classnames' : {}
  2857. };
  2858. $.fn.carouFredSel.pageAnchorBuilder = function(nr, itm) {
  2859. return '<a href="#"><span>'+nr+'</span></a>';
  2860. };
  2861. // GLOBAL PRIVATE
  2862. // scrolling functions
  2863. function sc_setScroll(d, e) {
  2864. return {
  2865. anims : [],
  2866. duration : d,
  2867. orgDuration : d,
  2868. easing : e,
  2869. startTime : getTime()
  2870. };
  2871. }
  2872. function sc_startScroll(s) {
  2873. if (typeof s.pre == 'object') {
  2874. sc_startScroll(s.pre);
  2875. }
  2876. for (var a = 0, l = s.anims.length; a < l; a++) {
  2877. var b = s.anims[a];
  2878. if (!b) continue;
  2879. if (b[3]) b[0].stop();
  2880. b[0].animate(b[1], {
  2881. complete: b[2],
  2882. duration: s.duration,
  2883. easing: s.easing
  2884. });
  2885. }
  2886. if (typeof s.post == 'object') {
  2887. sc_startScroll(s.post);
  2888. }
  2889. }
  2890. function sc_stopScroll(s, finish) {
  2891. if (typeof finish != 'boolean') finish = true;
  2892. if (typeof s.pre == 'object') {
  2893. sc_stopScroll(s.pre, finish);
  2894. }
  2895. for (var a = 0, l = s.anims.length; a < l; a++) {
  2896. var b = s.anims[a];
  2897. b[0].stop(true);
  2898. if (finish) {
  2899. b[0].css(b[1]);
  2900. if (typeof b[2] == 'function') b[2]();
  2901. }
  2902. }
  2903. if (typeof s.post == 'object') {
  2904. sc_stopScroll(s.post, finish);
  2905. }
  2906. }
  2907. function sc_clearTimers(t) {
  2908. if (t.auto) clearTimeout(t.auto);
  2909. return t;
  2910. }
  2911. function sc_callCallbacks(cbs, t, args) {
  2912. if (cbs.length) {
  2913. for (var a = 0, l = cbs.length; a < l; a++) {
  2914. cbs[a].apply(t, args);
  2915. }
  2916. }
  2917. return [];
  2918. }
  2919. // fx functions
  2920. function fx_fade(sO, c, x, d, f) {
  2921. var o = {
  2922. 'duration' : d,
  2923. 'easing' : sO.easing
  2924. };
  2925. if (typeof f == 'function') o.complete = f;
  2926. c.animate({
  2927. opacity: x
  2928. }, o);
  2929. }
  2930. function fx_cover(sc, c1, c2, o, prev) {
  2931. var old_w = ms_getSizes(gi_getOldItemsNext(c1.children(), o), o, true)[0],
  2932. new_w = ms_getSizes(c2.children(), o, true)[0],
  2933. cur_l = (prev) ? -new_w : old_w,
  2934. css_o = {},
  2935. ani_o = {};
  2936. css_o[o.d['width']] = new_w;
  2937. css_o[o.d['left']] = cur_l;
  2938. ani_o[o.d['left']] = 0;
  2939. sc.pre.anims.push([c1, { 'opacity': 1 }]);
  2940. sc.post.anims.push([c2, ani_o, function() { $(this).remove(); }]);
  2941. c2.css(css_o);
  2942. return sc;
  2943. }
  2944. function fx_uncover(sc, c1, c2, o, prev, n) {
  2945. var new_w = ms_getSizes(gi_getNewItemsNext(c1.children(), o, n), o, true)[0],
  2946. old_w = ms_getSizes(c2.children(), o, true)[0],
  2947. cur_l = (prev) ? -old_w : new_w,
  2948. css_o = {},
  2949. ani_o = {};
  2950. css_o[o.d['width']] = old_w;
  2951. css_o[o.d['left']] = 0;
  2952. ani_o[o.d['left']] = cur_l;
  2953. sc.post.anims.push([c2, ani_o, function() { $(this).remove(); }]);
  2954. c2.css(css_o);
  2955. return sc;
  2956. }
  2957. // navigation functions
  2958. function nv_showNavi(o, t, c) {
  2959. if (t == 'show' || t == 'hide') {
  2960. var f = t;
  2961. } else if (o.items.minimum >= t) {
  2962. debug(c, 'Not enough items: hiding navigation ('+t+' items, '+o.items.minimum+' needed).');
  2963. var f = 'hide';
  2964. } else {
  2965. var f = 'show';
  2966. }
  2967. var s = (f == 'show') ? 'removeClass' : 'addClass',
  2968. h = cf_c('hidden', c);
  2969. if (o.auto.button) o.auto.button[f]()[s](h);
  2970. if (o.prev.button) o.prev.button[f]()[s](h);
  2971. if (o.next.button) o.next.button[f]()[s](h);
  2972. if (o.pagination.container) o.pagination.container[f]()[s](h);
  2973. }
  2974. function nv_enableNavi(o, f, c) {
  2975. if (o.circular || o.infinite) return;
  2976. var fx = (f == 'removeClass' || f == 'addClass') ? f : false,
  2977. di = cf_c('disabled', c);
  2978. if (o.auto.button && fx) {
  2979. o.auto.button[fx](di);
  2980. }
  2981. if (o.prev.button) {
  2982. var fn = fx || (f == 0) ? 'addClass' : 'removeClass';
  2983. o.prev.button[fn](di);
  2984. }
  2985. if (o.next.button) {
  2986. var fn = fx || (f == o.items.visible) ? 'addClass' : 'removeClass';
  2987. o.next.button[fn](di);
  2988. }
  2989. }
  2990. // get object functions
  2991. function go_getObject($tt, obj) {
  2992. if (typeof obj == 'function') obj = obj.call($tt);
  2993. if (typeof obj == 'undefined') obj = {};
  2994. return obj;
  2995. }
  2996. function go_getNaviObject($tt, obj, type) {
  2997. if (typeof type != 'string') type = '';
  2998. obj = go_getObject($tt, obj);
  2999. if (typeof obj == 'string') {
  3000. var temp = cf_getKeyCode(obj);
  3001. if (temp == -1) obj = $(obj);
  3002. else obj = temp;
  3003. }
  3004. // pagination
  3005. if (type == 'pagination') {
  3006. if (typeof obj == 'boolean') obj = { 'keys': obj };
  3007. if (typeof obj.jquery != 'undefined') obj = { 'container': obj };
  3008. if (typeof obj.container == 'function') obj.container = obj.container.call($tt);
  3009. if (typeof obj.container == 'string') obj.container = $(obj.container);
  3010. if (typeof obj.items != 'number') obj.items = false;
  3011. // auto
  3012. } else if (type == 'auto') {
  3013. if (typeof obj.jquery != 'undefined') obj = { 'button': obj };
  3014. if (typeof obj == 'boolean') obj = { 'play': obj };
  3015. if (typeof obj == 'number') obj = { 'pauseDuration': obj };
  3016. if (typeof obj.button == 'function') obj.button = obj.button.call($tt);
  3017. if (typeof obj.button == 'string') obj.button = $(obj.button);
  3018. // prev + next
  3019. } else {
  3020. if (typeof obj.jquery != 'undefined') obj = { 'button': obj };
  3021. if (typeof obj == 'number') obj = { 'key': obj };
  3022. if (typeof obj.button == 'function') obj.button = obj.button.call($tt);
  3023. if (typeof obj.button == 'string') obj.button = $(obj.button);
  3024. if (typeof obj.key == 'string') obj.key = cf_getKeyCode(obj.key);
  3025. }
  3026. return obj;
  3027. }
  3028. // get number functions
  3029. function gn_getItemIndex(num, dev, org, items, $cfs) {
  3030. if (typeof num == 'string') {
  3031. if (isNaN(num)) num = $(num);
  3032. else num = parseInt(num);
  3033. }
  3034. if (typeof num == 'object') {
  3035. if (typeof num.jquery == 'undefined') num = $(num);
  3036. num = $cfs.children().index(num);
  3037. if (num == -1) num = 0;
  3038. if (typeof org != 'boolean') org = false;
  3039. } else {
  3040. if (typeof org != 'boolean') org = true;
  3041. }
  3042. if (isNaN(num)) num = 0;
  3043. else num = parseInt(num);
  3044. if (isNaN(dev)) dev = 0;
  3045. else dev = parseInt(dev);
  3046. if (org) {
  3047. num += items.first;
  3048. }
  3049. num += dev;
  3050. if (items.total > 0) {
  3051. while (num >= items.total) { num -= items.total; }
  3052. while (num < 0) { num += items.total; }
  3053. }
  3054. return num;
  3055. }
  3056. // items prev
  3057. function gn_getVisibleItemsPrev(i, o, s) {
  3058. var t = 0,
  3059. x = 0;
  3060. for (var a = s; a >= 0; a--) {
  3061. var j = i.eq(a);
  3062. t += (j.is(':visible')) ? j[o.d['outerWidth']](true) : 0;
  3063. if (t > o.maxDimention) return x;
  3064. if (a == 0) a = i.length;
  3065. x++;
  3066. }
  3067. }
  3068. function gn_getVisibleItemsPrevFilter(i, o, s) {
  3069. return gn_getItemsPrevFilter(i, o.items.filter, o.items.visibleConf.org, s);
  3070. }
  3071. function gn_getScrollItemsPrevFilter(i, o, s, m) {
  3072. return gn_getItemsPrevFilter(i, o.items.filter, m, s);
  3073. }
  3074. function gn_getItemsPrevFilter(i, f, m, s) {
  3075. var t = 0,
  3076. x = 0;
  3077. for (var a = s, l = i.length-1; a >= 0; a--) {
  3078. x++;
  3079. if (x == l) return x;
  3080. var j = i.eq(a);
  3081. if (j.is(f)) {
  3082. t++;
  3083. if (t == m) return x;
  3084. }
  3085. if (a == 0) a = i.length;
  3086. }
  3087. }
  3088. function gn_getVisibleOrg($c, o) {
  3089. return o.items.visibleConf.org || $c.children().slice(0, o.items.visible).filter(o.items.filter).length;
  3090. }
  3091. // items next
  3092. function gn_getVisibleItemsNext(i, o, s) {
  3093. var t = 0,
  3094. x = 0;
  3095. for (var a = s, l = i.length-1; a <= l; a++) {
  3096. var j = i.eq(a);
  3097. t += (j.is(':visible')) ? j[o.d['outerWidth']](true) : 0;
  3098. if (t > o.maxDimention) return x;
  3099. x++;
  3100. if (x == l) return x;
  3101. if (a == l) a = -1;
  3102. }
  3103. }
  3104. function gn_getVisibleItemsNextTestCircular(i, o, s, l) {
  3105. var v = gn_getVisibleItemsNext(i, o, s);
  3106. if (!o.circular) {
  3107. if (s + v > l) v = l - s;
  3108. }
  3109. return v;
  3110. }
  3111. function gn_getVisibleItemsNextFilter(i, o, s) {
  3112. return gn_getItemsNextFilter(i, o.items.filter, o.items.visibleConf.org, s, o.circular);
  3113. }
  3114. function gn_getScrollItemsNextFilter(i, o, s, m) {
  3115. return gn_getItemsNextFilter(i, o.items.filter, m+1, s, o.circular) - 1;
  3116. }
  3117. function gn_getItemsNextFilter(i, f, m, s, c) {
  3118. var t = 0,
  3119. x = 0;
  3120. for (var a = s, l = i.length-1; a <= l; a++) {
  3121. x++;
  3122. if (x == l) return x;
  3123. var j = i.eq(a);
  3124. if (j.is(f)) {
  3125. t++;
  3126. if (t == m) return x;
  3127. }
  3128. if (a == l) a = -1;
  3129. }
  3130. }
  3131. // get items functions
  3132. function gi_getCurrentItems(i, o) {
  3133. return i.slice(0, o.items.visible);
  3134. }
  3135. function gi_getOldItemsPrev(i, o, n) {
  3136. return i.slice(n, o.items.visibleConf.old+n);
  3137. }
  3138. function gi_getNewItemsPrev(i, o) {
  3139. return i.slice(0, o.items.visible);
  3140. }
  3141. function gi_getOldItemsNext(i, o) {
  3142. return i.slice(0, o.items.visibleConf.old);
  3143. }
  3144. function gi_getNewItemsNext(i, o, n) {
  3145. return i.slice(n, o.items.visible+n);
  3146. }
  3147. // sizes functions
  3148. function sz_resetMargin(i, o, m) {
  3149. var x = (typeof m == 'boolean') ? m : false;
  3150. if (typeof m != 'number') m = 0;
  3151. i.each(function() {
  3152. var j = $(this);
  3153. var t = parseInt(j.css(o.d['marginRight']));
  3154. if (isNaN(t)) t = 0;
  3155. j.data('cfs_tempCssMargin', t);
  3156. j.css(o.d['marginRight'], ((x) ? j.data('cfs_tempCssMargin') : m + j.data('cfs_origCssMargin')));
  3157. });
  3158. }
  3159. function sz_setSizes($c, o, p) {
  3160. var $w = $c.parent(),
  3161. $i = $c.children(),
  3162. $v = gi_getCurrentItems($i, o),
  3163. sz = cf_mapWrapperSizes(ms_getSizes($v, o, true), o, p);
  3164. $w.css(sz);
  3165. if (o.usePadding) {
  3166. var p = o.padding,
  3167. r = p[o.d[1]];
  3168. if (o.align) {
  3169. if (r < 0) r = 0;
  3170. }
  3171. var $l = $v.last();
  3172. $l.css(o.d['marginRight'], $l.data('cfs_origCssMargin') + r);
  3173. $c.css(o.d['top'], p[o.d[0]]);
  3174. $c.css(o.d['left'], p[o.d[3]]);
  3175. }
  3176. $c.css(o.d['width'], sz[o.d['width']]+(ms_getTotalSize($i, o, 'width')*2));
  3177. $c.css(o.d['height'], ms_getLargestSize($i, o, 'height'));
  3178. return sz;
  3179. }
  3180. // measuring functions
  3181. function ms_getSizes(i, o, wrapper) {
  3182. var s1 = ms_getTotalSize(i, o, 'width', wrapper),
  3183. s2 = ms_getLargestSize(i, o, 'height', wrapper);
  3184. return [s1, s2];
  3185. }
  3186. function ms_getLargestSize(i, o, dim, wrapper) {
  3187. if (typeof wrapper != 'boolean') wrapper = false;
  3188. if (typeof o[o.d[dim]] == 'number' && wrapper) return o[o.d[dim]];
  3189. if (typeof o.items[o.d[dim]] == 'number') return o.items[o.d[dim]];
  3190. var di2 = (dim.toLowerCase().indexOf('width') > -1) ? 'outerWidth' : 'outerHeight';
  3191. return ms_getTrueLargestSize(i, o, di2);
  3192. }
  3193. function ms_getTrueLargestSize(i, o, dim) {
  3194. var s = 0;
  3195. for (var a = 0, l = i.length; a < l; a++) {
  3196. var j = i.eq(a);
  3197. var m = (j.is(':visible')) ? j[o.d[dim]](true) : 0;
  3198. if (s < m) s = m;
  3199. }
  3200. return s;
  3201. }
  3202. function ms_getTrueInnerSize($el, o, dim) {
  3203. if (!$el.is(':visible')) return 0;
  3204. var siz = $el[o.d[dim]](),
  3205. arr = (o.d[dim].toLowerCase().indexOf('width') > -1) ? ['paddingLeft', 'paddingRight'] : ['paddingTop', 'paddingBottom'];
  3206. for (var a = 0, l = arr.length; a < l; a++) {
  3207. var m = parseInt($el.css(arr[a]));
  3208. siz -= (isNaN(m)) ? 0 : m;
  3209. }
  3210. return siz;
  3211. }
  3212. function ms_getTotalSize(i, o, dim, wrapper) {
  3213. if (typeof wrapper != 'boolean') wrapper = false;
  3214. if (typeof o[o.d[dim]] == 'number' && wrapper) return o[o.d[dim]];
  3215. if (typeof o.items[o.d[dim]] == 'number') return o.items[o.d[dim]] * i.length;
  3216. var d = (dim.toLowerCase().indexOf('width') > -1) ? 'outerWidth' : 'outerHeight',
  3217. s = 0;
  3218. for (var a = 0, l = i.length; a < l; a++) {
  3219. var j = i.eq(a);
  3220. s += (j.is(':visible')) ? j[o.d[d]](true) : 0;
  3221. }
  3222. return s;
  3223. }
  3224. function ms_hasVariableSizes(i, o, dim) {
  3225. var s = false,
  3226. v = false;
  3227. for (var a = 0, l = i.length; a < l; a++) {
  3228. var j = i.eq(a);
  3229. var c = (j.is(':visible')) ? j[o.d[dim]](true) : 0;
  3230. if (s === false) s = c;
  3231. else if (s != c) v = true;
  3232. if (s == 0) v = true;
  3233. }
  3234. return v;
  3235. }
  3236. function ms_getPaddingBorderMargin(i, o, d) {
  3237. return i[o.d['outer'+d]](true) - ms_getTrueInnerSize(i, o, 'inner'+d);
  3238. }
  3239. function ms_isPercentage(x) {
  3240. return (typeof x == 'string' && x.substr(-1) == '%');
  3241. }
  3242. function ms_getPercentage(s, o) {
  3243. if (ms_isPercentage(o)) {
  3244. o = o.substring(0, o.length-1);
  3245. if (isNaN(o)) return s;
  3246. s *= o/100;
  3247. }
  3248. return s;
  3249. }
  3250. // config functions
  3251. function cf_e(n, c, pf, ns, rd) {
  3252. if (typeof pf != 'boolean') pf = true;
  3253. if (typeof ns != 'boolean') ns = true;
  3254. if (typeof rd != 'boolean') rd = false;
  3255. if (pf) n = c.events.prefix + n;
  3256. if (ns) n = n +'.'+ c.events.namespace;
  3257. if (ns && rd) n += c.serialNumber;
  3258. return n;
  3259. }
  3260. function cf_c(n, c) {
  3261. return (typeof c.classnames[n] == 'string') ? c.classnames[n] : n;
  3262. }
  3263. function cf_mapWrapperSizes(ws, o, p) {
  3264. if (typeof p != 'boolean') p = true;
  3265. var pad = (o.usePadding && p) ? o.padding : [0, 0, 0, 0];
  3266. var wra = {};
  3267. wra[o.d['width']] = ws[0] + pad[1] + pad[3];
  3268. wra[o.d['height']] = ws[1] + pad[0] + pad[2];
  3269. return wra;
  3270. }
  3271. function cf_sortParams(vals, typs) {
  3272. var arr = [];
  3273. for (var a = 0, l1 = vals.length; a < l1; a++) {
  3274. for (var b = 0, l2 = typs.length; b < l2; b++) {
  3275. if (typs[b].indexOf(typeof vals[a]) > -1 && typeof arr[b] == 'undefined') {
  3276. arr[b] = vals[a];
  3277. break;
  3278. }
  3279. }
  3280. }
  3281. return arr;
  3282. }
  3283. function cf_getPadding(p) {
  3284. if (typeof p == 'undefined') return [0, 0, 0, 0];
  3285. if (typeof p == 'number') return [p, p, p, p];
  3286. else if (typeof p == 'string') p = p.split('px').join('').split('em').join('').split(' ');
  3287. if (!is_array(p)) {
  3288. return [0, 0, 0, 0];
  3289. }
  3290. for (var i = 0; i < 4; i++) {
  3291. p[i] = parseInt(p[i]);
  3292. }
  3293. switch (p.length) {
  3294. case 0: return [0, 0, 0, 0];
  3295. case 1: return [p[0], p[0], p[0], p[0]];
  3296. case 2: return [p[0], p[1], p[0], p[1]];
  3297. case 3: return [p[0], p[1], p[2], p[1]];
  3298. default: return [p[0], p[1], p[2], p[3]];
  3299. }
  3300. }
  3301. function cf_getAlignPadding(itm, o) {
  3302. var x = (typeof o[o.d['width']] == 'number') ? Math.ceil(o[o.d['width']] - ms_getTotalSize(itm, o, 'width')) : 0;
  3303. switch (o.align) {
  3304. case 'left': return [0, x];
  3305. case 'right': return [x, 0];
  3306. case 'center':
  3307. default:
  3308. return [Math.ceil(x/2), Math.floor(x/2)];
  3309. }
  3310. }
  3311. function cf_getAdjust(x, o, a, $t) {
  3312. var v = x;
  3313. if (typeof a == 'function') {
  3314. v = a.call($t, v);
  3315. } else if (typeof a == 'string') {
  3316. var p = a.split('+'),
  3317. m = a.split('-');
  3318. if (m.length > p.length) {
  3319. var neg = true,
  3320. sta = m[0],
  3321. adj = m[1];
  3322. } else {
  3323. var neg = false,
  3324. sta = p[0],
  3325. adj = p[1];
  3326. }
  3327. switch(sta) {
  3328. case 'even':
  3329. v = (x % 2 == 1) ? x-1 : x;
  3330. break;
  3331. case 'odd':
  3332. v = (x % 2 == 0) ? x-1 : x;
  3333. break;
  3334. default:
  3335. v = x;
  3336. break;
  3337. }
  3338. adj = parseInt(adj);
  3339. if (!isNaN(adj)) {
  3340. if (neg) adj = -adj;
  3341. v += adj;
  3342. }
  3343. }
  3344. if (typeof v != 'number') v = 1;
  3345. if (v < 1) v = 1;
  3346. return v;
  3347. }
  3348. function cf_getItemsAdjust(x, o, a, $t) {
  3349. return cf_getItemAdjustMinMax(cf_getAdjust(x, o, a, $t), o.items.visibleConf);
  3350. }
  3351. function cf_getItemAdjustMinMax(v, i) {
  3352. if (typeof i.min == 'number' && v < i.min) v = i.min;
  3353. if (typeof i.max == 'number' && v > i.max) v = i.max;
  3354. if (v < 1) v = 1;
  3355. return v;
  3356. }
  3357. function cf_getSynchArr(s) {
  3358. if (!is_array(s)) s = [[s]];
  3359. if (!is_array(s[0])) s = [s];
  3360. for (var j = 0, l = s.length; j < l; j++) {
  3361. if (typeof s[j][0] == 'string') s[j][0] = $(s[j][0]);
  3362. if (typeof s[j][1] != 'boolean') s[j][1] = true;
  3363. if (typeof s[j][2] != 'boolean') s[j][2] = true;
  3364. if (typeof s[j][3] != 'number') s[j][3] = 0;
  3365. }
  3366. return s;
  3367. }
  3368. function cf_getKeyCode(k) {
  3369. if (k == 'right') return 39;
  3370. if (k == 'left') return 37;
  3371. if (k == 'up') return 38;
  3372. if (k == 'down') return 40;
  3373. return -1;
  3374. }
  3375. function cf_setCookie(n, v) {
  3376. if (n) document.cookie = n+'='+v+'; path=/';
  3377. }
  3378. function cf_readCookie(n) {
  3379. n += '=';
  3380. var ca = document.cookie.split(';');
  3381. for (var a = 0, l = ca.length; a < l; a++) {
  3382. var c = ca[a];
  3383. while (c.charAt(0) == ' ') {
  3384. c = c.substring(1, c.length);
  3385. }
  3386. if (c.indexOf(n) == 0) {
  3387. return c.substring(n.length, c.length);
  3388. }
  3389. }
  3390. return 0;
  3391. }
  3392. // buttons functions
  3393. function bt_pauseOnHoverConfig(p) {
  3394. if (p && typeof p == 'string') {
  3395. var i = (p.indexOf('immediate') > -1) ? true : false,
  3396. r = (p.indexOf('resume') > -1) ? true : false;
  3397. } else {
  3398. var i = r = false;
  3399. }
  3400. return [i, r];
  3401. }
  3402. function bt_mousesheelNumber(mw) {
  3403. return (typeof mw == 'number') ? mw : null
  3404. }
  3405. // helper functions
  3406. function is_array(a) {
  3407. return typeof(a) == 'object' && (a instanceof Array);
  3408. }
  3409. function getTime() {
  3410. return new Date().getTime();
  3411. }
  3412. function debug(d, m) {
  3413. if (typeof d == 'object') {
  3414. var s = ' ('+d.selector+')';
  3415. d = d.debug;
  3416. } else {
  3417. var s = '';
  3418. }
  3419. if (!d) return false;
  3420. if (typeof m == 'string') m = 'carouFredSel'+s+': ' + m;
  3421. else m = ['carouFredSel'+s+':', m];
  3422. if (window.console && window.console.log) window.console.log(m);
  3423. return false;
  3424. }
  3425. // CAROUFREDSEL ALL LOWERCASE
  3426. $.fn.caroufredsel = function(o, c) {
  3427. return this.carouFredSel(o, c);
  3428. };
  3429. // EASING FUNCTIONS
  3430. $.extend($.easing, {
  3431. 'quadratic' : function(t) {
  3432. var t2 = t * t;
  3433. return t * (-t2 * t + 4 * t2 - 6 * t + 4);
  3434. },
  3435. 'cubic' : function(t) {
  3436. return t * (4 * t * t - 9 * t + 6);
  3437. },
  3438. 'elastic' : function(t) {
  3439. var t2 = t * t;
  3440. return t * (33 * t2 * t2 - 106 * t2 * t + 126 * t2 - 67 * t + 15);
  3441. }
  3442. });
  3443. })(jQuery);
  3444. //]]>
  3445. </script>
  3446. <script type='text/javascript'>
  3447. //<![CDATA[
  3448. function showrecentcomments(json){for(var i=0;i<a_rc;i++){var b_rc=json.feed.entry[i];var c_rc;if(i==json.feed.entry.length)break;for(var k=0;k<b_rc.link.length;k++){if(b_rc.link[k].rel=='alternate'){c_rc=b_rc.link[k].href;break;}}c_rc=c_rc.replace("#","#comment-");var d_rc=c_rc.split("#");d_rc=d_rc[0];var e_rc=d_rc.split("/");e_rc=e_rc[5];e_rc=e_rc.split(".html");e_rc=e_rc[0];var f_rc=e_rc.replace(/-/g," ");f_rc=f_rc.link(d_rc);var g_rc=b_rc.published.$t;var h_rc=g_rc.substring(0,4);var i_rc=g_rc.substring(5,7);var j_rc=g_rc.substring(8,10);var k_rc=new Array();k_rc[1]="Jan";k_rc[2]="Feb";k_rc[3]="Mar";k_rc[4]="Apr";k_rc[5]="May";k_rc[6]="Jun";k_rc[7]="Jul";k_rc[8]="Aug";k_rc[9]="Sep";k_rc[10]="Oct";k_rc[11]="Nov";k_rc[12]="Dec";if("content" in b_rc){var l_rc=b_rc.content.$t;}else if("summary" in b_rc){var l_rc=b_rc.summary.$t;}else var l_rc="";var re=/<\S[^>]*>/g;l_rc=l_rc.replace(re,"");if(m_rc==true)document.write('On '+k_rc[parseInt(i_rc,10)]+' '+j_rc+' ');document.write('<a href="'+c_rc+'">'+b_rc.author[0].name.$t+'</a> commented');if(n_rc==true)document.write(' on '+f_rc);document.write(': ');if(l_rc.length<o_rc){document.write('<i>&#8220;');document.write(l_rc);document.write('&#8221;</i><br/><br/>');}else{document.write('<i>&#8220;');l_rc=l_rc.substring(0,o_rc);var p_rc=l_rc.lastIndexOf(" ");l_rc=l_rc.substring(0,p_rc);document.write(l_rc+'&hellip;&#8221;</i>');document.write('<br/><br/>');}}}
  3449. function rp(json){document.write('<ul>');for(var i=0;i<numposts;i++){document.write('<li>');var entry=json.feed.entry[i];var posttitle=entry.title.$t;var posturl;if(i==json.feed.entry.length)break;for(var k=0;k<entry.link.length;k++){if(entry.link[k].rel=='alternate'){posturl=entry.link[k].href;break}}posttitle=posttitle.link(posturl);var readmorelink="(more)";readmorelink=readmorelink.link(posturl);var postdate=entry.published.$t;var cdyear=postdate.substring(0,4);var cdmonth=postdate.substring(5,7);var cdday=postdate.substring(8,10);var monthnames=new Array();monthnames[1]="Jan";monthnames[2]="Feb";monthnames[3]="Mar";monthnames[4]="Apr";monthnames[5]="May";monthnames[6]="Jun";monthnames[7]="Jul";monthnames[8]="Aug";monthnames[9]="Sep";monthnames[10]="Oct";monthnames[11]="Nov";monthnames[12]="Dec";if("content"in entry){var postcontent=entry.content.$t}else if("summary"in entry){var postcontent=entry.summary.$t}else var postcontent="";var re=/<\S[^>]*>/g;postcontent=postcontent.replace(re,"");document.write(posttitle);if(showpostdate==true)document.write(' - '+monthnames[parseInt(cdmonth,10)]+' '+cdday);if(showpostsummary==true){if(postcontent.length<numchars){document.write(postcontent)}else{postcontent=postcontent.substring(0,numchars);var quoteEnd=postcontent.lastIndexOf(" ");postcontent=postcontent.substring(0,quoteEnd);document.write(postcontent+'...'+readmorelink)}}document.write('</li>')}document.write('</ul>')}
  3450. //]]>
  3451. </script>
  3452. <script type='text/javascript'>
  3453. summary_noimg = 550;
  3454. summary_img = 450;
  3455. img_thumb_height = 200;
  3456. img_thumb_width = 200;
  3457. </script>
  3458. <script type='text/javascript'>
  3459. //<![CDATA[
  3460. function removeHtmlTag(strx,chop){
  3461. if(strx.indexOf("<")!=-1)
  3462. {
  3463. var s = strx.split("<");
  3464. for(var i=0;i<s.length;i++){
  3465. if(s[i].indexOf(">")!=-1){
  3466. s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
  3467. }
  3468. }
  3469. strx = s.join("");
  3470. }
  3471. chop = (chop < strx.length-1) ? chop : strx.length-2;
  3472. while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;
  3473. strx = strx.substring(0,chop-1);
  3474. return strx+'...';
  3475. }
  3476. function createSummaryAndThumb(pID){
  3477. var div = document.getElementById(pID);
  3478. var imgtag = "";
  3479. var img = div.getElementsByTagName("img");
  3480. var summ = summary_noimg;
  3481. if(img.length>=1) {
  3482. imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
  3483. summ = summary_img;
  3484. }
  3485. var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,summ) + '</div>';
  3486. div.innerHTML = summary;
  3487. }
  3488. //]]>
  3489. </script>
  3490. </head>
  3491. <body>
  3492. <div id='wrapper'><!-- wrapper begin -->
  3493. <div id='masthead'><!-- masthead begin -->
  3494. <div class='clearfix' id='top'>
  3495. <div class='blogname'>
  3496. <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
  3497. <b:widget id='Header1' locked='true' title=' Valor (Header)' type='Header'>
  3498. <b:includable id='title'>
  3499. <a expr:href='data:blog.homepageUrl'><data:title/></a>
  3500. </b:includable>
  3501. <b:includable id='description'>
  3502. <div class='descriptionwrapper'>
  3503. <h2><data:description/></h2>
  3504. </div>
  3505. </b:includable>
  3506. <b:includable id='main'>
  3507. <b:if cond='data:useImage'>
  3508. <b:if cond='data:imagePlacement == "REPLACE"'>
  3509. <!--Show just the image, no text-->
  3510. <div id='header-inner'>
  3511. <a expr:href='data:blog.homepageUrl' style='display: block'>
  3512. <img expr:alt='data:title' expr:height='data:height' expr:id='data:widget.instanceId + "_headerimg"' expr:src='data:sourceUrl' expr:width='data:width' style='display: block;padding-left:0px;padding-top:0px;'/>
  3513. </a>
  3514. </div>
  3515. <b:else/>
  3516. <!--
  3517. Show image as background to text. You can't really calculate the width
  3518. reliably in JS because margins are not taken into account by any of
  3519. clientWidth, offsetWidth or scrollWidth, so we don't force a minimum
  3520. width if the user is using shrink to fit.
  3521. This results in a margin-width's worth of pixels being cropped. If the
  3522. user is not using shrink to fit then we expand the header.
  3523. -->
  3524. <div expr:style='"background-image: url(\"" + data:sourceUrl + "\"); " + "background-position: " + data:backgroundPositionStyleStr + "; " + data:widthStyleStr + "min-height: " + data:height + "px;" + "_height: " + data:height + "px;" + "background-repeat: no-repeat; "' id='header-inner'>
  3525. <div class='titlewrapper' style='background: transparent'>
  3526. <h1 class='logo' style='background: transparent; border-width: 0px'>
  3527. <b:include name='title'/>
  3528. </h1>
  3529. </div>
  3530. <b:include name='description'/>
  3531. </div>
  3532. </b:if>
  3533. <b:else/>
  3534. <!--No header image -->
  3535. <div id='header-inner'>
  3536. <div class='titlewrapper'>
  3537. <h1 class='logo'>
  3538. <b:include name='title'/>
  3539. </h1>
  3540. </div>
  3541. <b:include name='description'/>
  3542. </div>
  3543. </b:if>
  3544. </b:includable>
  3545. </b:widget>
  3546. </b:section>
  3547. </div>
  3548. <div id='search'>
  3549. <form expr:action='data:blog.homepageUrl + "search/"' id='searchform' method='get'>
  3550. <div>
  3551. <input id='s' name='q' type='text' value=''/>
  3552. <input id='searchsubmit' type='submit' value='Search'/>
  3553. </div>
  3554. </form>
  3555. </div>
  3556. <div class='clear'/>
  3557. </div>
  3558. <div id='botmenu'>
  3559. <div class='menu-valormenu-container' id='subnav'>
  3560. <b:section class='nbttopmenu' id='nbttopmenu' showaddelement='no'>
  3561. <b:widget id='PageList8' locked='false' title='Pages - Menu' type='PageList'>
  3562. <b:includable id='main'>
  3563. <b:if cond='data:title'><!--<h2><data:title/></h2>--></b:if>
  3564. <div class='widget-content'>
  3565. <ul class='sfmenu' id='menu-valormenu'>
  3566. <b:loop values='data:links' var='link'>
  3567. <b:if cond='data:link.isCurrentPage'>
  3568. <li id='currentpage'><a expr:href='data:link.href'><data:link.title/></a></li>
  3569. <b:else/>
  3570. <li><a expr:href='data:link.href'><data:link.title/></a></li>
  3571. </b:if>
  3572. </b:loop>
  3573. </ul>
  3574. <b:include name='quickedit'/>
  3575. </div>
  3576. </b:includable>
  3577. </b:widget>
  3578. <b:widget id='LinkList1' locked='true' title='Edit This Menu' type='LinkList'>
  3579. <b:includable id='main'>
  3580. <div class='widget-content'>
  3581. <ul class='sfmenu' id='menu-valormenu'>
  3582. <b:loop values='data:links' var='link'>
  3583. <li><a expr:href='data:link.target'><data:link.name/></a></li>
  3584. </b:loop>
  3585. </ul>
  3586. <b:include name='quickedit'/>
  3587. </div>
  3588. </b:includable>
  3589. </b:widget>
  3590. </b:section>
  3591. </div>
  3592. </div>
  3593. </div><!--end masthead-->
  3594. <div id='casing'>
  3595. <b:if cond='data:blog.url == data:blog.homepageUrl'>
  3596. <div id='nbtfeature'>
  3597. <div class='flexslider'>
  3598. <ul class='slides'>
  3599. <li>
  3600. <a href='ENTER-SLIDE-1-URL-HERE'><img class='f-image' height='500' src='http://2.bp.blogspot.com/-prQK0px0pfI/UQhGhpxGmuI/AAAAAAAABBw/a-6KBm0EdDc/s000/slide1-1000x500.jpg' width='1000'/></a>
  3601. <div class='flex-caption'>
  3602. <h3> Introducing: Agent 47 &#8211; Hitman</h3>
  3603. <p><p>Nulla condimentum pulvinar turpis, ac dapibus purus consequat a. Maecenas condimentum lorem id tellus scelerisque sagittis. Aenean odio massa, tristique quis posuere non, porta a [...]</p></p>
  3604. </div>
  3605. </li>
  3606. <li>
  3607. <a href='ENTER-SLIDE-2-URL-HERE'><img class='f-image' height='500' src='http://1.bp.blogspot.com/-tFhBtYds6Cw/UQhGiZJCNnI/AAAAAAAABB4/G45AyT4N7jU/s000/slide2-1000x500.jpg' width='1000'/></a>
  3608. <div class='flex-caption'>
  3609. <h3> Starcraft II: Heart of the Swarm hands-on at MLG event</h3>
  3610. <p><p>In suscipit vestibulum sem, nec consectetur enim consequat nec. Donec elit turpis; dignissim pharetra porttitor in, fringilla sed tortor. Vivamus scelerisque blandit velit sit amet [...]</p></p>
  3611. </div>
  3612. </li>
  3613. <li>
  3614. <a href='ENTER-SLIDE-3-URL-HERE'><img class='f-image' height='500' src='http://1.bp.blogspot.com/-4duFeaWBOfI/UQhGi3AQxzI/AAAAAAAABCA/DtriFzbAKXs/s000/slide3-1000x500.jpg' width='1000'/></a>
  3615. <div class='flex-caption'>
  3616. <h3> Crysis dev backtracks on blocking used games comment</h3>
  3617. <p><p>Suspendisse tellus nunc, iaculis vulputate placerat sit amet, lacinia sed mi. Nulla quam nisl, eleifend nec iaculis eu, sollicitudin sed lectus. Vivamus sodales tempor massa [...]</p></p>
  3618. </div>
  3619. </li>
  3620. <li>
  3621. <a href='ENTER-SLIDE-4-URL-HERE'><img class='f-image' height='500' src='http://2.bp.blogspot.com/-pbm0QGbCYzY/UQhGjgkeqVI/AAAAAAAABCI/U2PNiMPS6rs/s000/slide4-1000x500.jpg' width='1000'/></a>
  3622. <div class='flex-caption'>
  3623. <h3> Diablo III auction house fees, Global Play revealed</h3>
  3624. <p><p>Aenean tristique varius egestas. Nulla urna enim, facilisis nec pretium in, euismod at dui! Donec ac neque eu eros facilisis malesuada. Class aptent taciti sociosqu [...]</p></p>
  3625. </div>
  3626. </li>
  3627. </ul>
  3628. </div>
  3629. </div>
  3630. </b:if>
  3631. <!-- end feature -->
  3632. <b:if cond='data:blog.url == data:blog.homepageUrl'>
  3633. <div id='videoslide'>
  3634. <div class='caroselhead'>
  3635. <h2>Game Videos</h2>
  3636. <a class='prev' href='#' id='prev2'/>
  3637. <a class='next' href='#' id='next2'/>
  3638. </div>
  3639. <div class='timer' id='timer1'/>
  3640. <ul id='carousel'>
  3641. <li class='panel'>
  3642. <a href='ENTER-PANEL-1-URL-HERE'><img class='v-image' height='200' src='http://3.bp.blogspot.com/-ugE7knnTvP0/UQhGkKpw-8I/AAAAAAAABCQ/76gJp0LdLjA/s000/panel1-150x200.jpg' width='150'/></a>
  3643. <h3><a href='ENTER-PANEL-1-URL-HERE'>Arkham city</a></h3>
  3644. </li>
  3645. <li class='panel'>
  3646. <a href='ENTER-PANEL-2-URL-HERE'><img class='v-image' height='200' src='http://1.bp.blogspot.com/-8_4_jlG7Ams/UQhGkw82BPI/AAAAAAAABCY/nncntsowfzY/s000/panel2-150x200.jpg' width='150'/></a>
  3647. <h3><a href='ENTER-PANEL-2-URL-HERE'>Bioshock</a></h3>
  3648. </li>
  3649. <li class='panel'>
  3650. <a href='ENTER-PANEL-3-URL-HERE'><img class='v-image' height='200' src='http://1.bp.blogspot.com/-4JiZPf3-BwQ/UQhGlZzearI/AAAAAAAABCg/y05k2An_KPA/s000/panel3-150x200.jpg' width='150'/></a>
  3651. <h3><a href='ENTER-PANEL-3-URL-HERE'>Crysis</a></h3>
  3652. </li>
  3653. <li class='panel'>
  3654. <a href='ENTER-PANEL-4-URL-HERE'><img class='v-image' height='200' src='http://4.bp.blogspot.com/-4OmawhHNknc/UQhGmKQMKUI/AAAAAAAABCo/3QC-cIHAz94/s000/panel4-150x200.jpg' width='150'/></a>
  3655. <h3><a href='ENTER-PANEL-4-URL-HERE'>Resistance</a></h3>
  3656. </li>
  3657. <li class='panel'>
  3658. <a href='ENTER-PANEL-5-URL-HERE'><img class='v-image' height='200' src='http://1.bp.blogspot.com/-WHqPhHb4ZdY/UQhGmvb2U0I/AAAAAAAABCw/0WvTiKYdFGw/s000/panel5-150x200.jpg' width='150'/></a>
  3659. <h3><a href='ENTER-PANEL-5-URL-HERE'>Fallout 3</a></h3>
  3660. </li>
  3661. <li class='panel'>
  3662. <a href='ENTER-PANEL-6-URL-HERE'><img class='v-image' height='200' src='http://1.bp.blogspot.com/-uucTIS6O_yQ/UQhGnCvNm1I/AAAAAAAABC4/FDeTQEF91Mg/s000/panel6-150x200.jpg' width='150'/></a>
  3663. <h3><a href='ENTER-PANEL-6-URL-HERE'>Killzone 2</a></h3>
  3664. </li>
  3665. <li class='panel'>
  3666. <a href='ENTER-PANEL-7-URL-HERE'><img class='v-image' height='200' src='http://2.bp.blogspot.com/-5j9a8SuTD1I/UQhGok27q5I/AAAAAAAABDA/euJIK2MK8DY/s000/panel7-150x200.jpg' width='150'/></a>
  3667. <h3><a href='ENTER-PANEL-7-URL-HERE'>Oblivion</a></h3>
  3668. </li>
  3669. <li class='panel'>
  3670. <a href='ENTER-PANEL-8-URL-HERE'><img class='v-image' height='200' src='http://4.bp.blogspot.com/-p-9obshQz_c/UQhGpQHWDYI/AAAAAAAABDI/sup1Xt0C7M0/s000/panel8-150x200.jpg' width='150'/></a>
  3671. <h3><a href='ENTER-PANEL-8-URL-HERE'>Alone in Dark</a></h3>
  3672. </li>
  3673. </ul>
  3674. </div>
  3675. </b:if>
  3676. <!-- end videoslide -->
  3677. <div id='left'>
  3678. <b:section class='mainblog' id='mainblog' showaddelement='no'>
  3679. <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>
  3680. <b:includable id='nextprev'>
  3681. <div class='blog-pager' id='blog-pager'>
  3682. <b:if cond='data:newerPageUrl'>
  3683. <span id='blog-pager-newer-link'>
  3684. <a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + "_blog-pager-newer-link"' expr:title='data:newerPageTitle'><data:newerPageTitle/></a>
  3685. </span>
  3686. </b:if>
  3687. <b:if cond='data:olderPageUrl'>
  3688. <span id='blog-pager-older-link'>
  3689. <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>
  3690. </span>
  3691. </b:if>
  3692. <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
  3693. <b:if cond='data:mobileLinkUrl'>
  3694. <div class='blog-mobile-link'>
  3695. <a expr:href='data:mobileLinkUrl'><data:mobileLinkMsg/></a>
  3696. </div>
  3697. </b:if>
  3698. </div>
  3699. <div class='clear'/>
  3700. </b:includable>
  3701. <b:includable id='shareButtons' var='post'>
  3702. <b:if cond='data:top.showEmailButton'><a class='goog-inline-block share-button sb-email' expr:href='data:post.sharePostUrl + "&target=email"' expr:title='data:top.emailThisMsg' target='_blank'><span class='share-button-link-text'><data:top.emailThisMsg/></span></a></b:if><b:if cond='data:top.showBlogThisButton'><a class='goog-inline-block share-button sb-blog' expr:href='data:post.sharePostUrl + "&target=blog"' expr:onclick='"window.open(this.href, \"_blank\", \"height=270,width=475\"); return false;"' expr:title='data:top.blogThisMsg' target='_blank'><span class='share-button-link-text'><data:top.blogThisMsg/></span></a></b:if><b:if cond='data:top.showTwitterButton'><a class='goog-inline-block share-button sb-twitter' expr:href='data:post.sharePostUrl + "&target=twitter"' expr:title='data:top.shareToTwitterMsg' target='_blank'><span class='share-button-link-text'><data:top.shareToTwitterMsg/></span></a></b:if><b:if cond='data:top.showFacebookButton'><a class='goog-inline-block share-button sb-facebook' expr:href='data:post.sharePostUrl + "&target=facebook"' expr:onclick='"window.open(this.href, \"_blank\", \"height=430,width=640\"); return false;"' expr:title='data:top.shareToFacebookMsg' target='_blank'><span class='share-button-link-text'><data:top.shareToFacebookMsg/></span></a></b:if><b:if cond='data:top.showOrkutButton'><a class='goog-inline-block share-button sb-orkut' expr:href='data:post.sharePostUrl + "&target=orkut"' expr:title='data:top.shareToOrkutMsg' target='_blank'><span class='share-button-link-text'><data:top.shareToOrkutMsg/></span></a></b:if><b:if cond='data:top.showDummy'><div class='goog-inline-block dummy-container'><data:post.dummyTag/></div></b:if>
  3703. </b:includable>
  3704. <b:includable id='backlinks' var='post'>
  3705. <a name='links'/><h4><data:post.backlinksLabel/></h4>
  3706. <b:if cond='data:post.numBacklinks != 0'>
  3707. <dl class='comments-block' id='comments-block'>
  3708. <b:loop values='data:post.backlinks' var='backlink'>
  3709. <div class='collapsed-backlink backlink-control'>
  3710. <dt class='comment-title'>
  3711. <span class='backlink-toggle-zippy'>&#160;</span>
  3712. <a expr:href='data:backlink.url' rel='nofollow'><data:backlink.title/></a>
  3713. <b:include data='backlink' name='backlinkDeleteIcon'/>
  3714. </dt>
  3715. <dd class='comment-body collapseable'>
  3716. <data:backlink.snippet/>
  3717. </dd>
  3718. <dd class='comment-footer collapseable'>
  3719. <span class='comment-author'><data:post.authorLabel/> <data:backlink.author/></span>
  3720. <span class='comment-timestamp'><data:post.timestampLabel/> <data:backlink.timestamp/></span>
  3721. </dd>
  3722. </div>
  3723. </b:loop>
  3724. </dl>
  3725. </b:if>
  3726. <p class='comment-footer'>
  3727. <a class='comment-link' expr:href='data:post.createLinkUrl' expr:id='data:widget.instanceId + "_backlinks-create-link"' target='_blank'><data:post.createLinkLabel/></a>
  3728. </p>
  3729. </b:includable>
  3730. <b:includable id='comment_count_picker' var='post'>
  3731. <b:if cond='data:post.forceIframeComments'>
  3732. <span class='cmt_count_iframe_holder' expr:data-count='data:post.numComments' expr:data-onclick='data:post.addCommentOnclick' expr:data-url='data:post.canonicalUrl'>
  3733. </span>
  3734. <b:else/>
  3735. <b:if cond='data:post.commentSource == 1'>
  3736. <span class='cmt_count_iframe_holder' expr:data-count='data:post.numComments' expr:data-onclick='data:post.addCommentOnclick' expr:data-url='data:post.canonicalUrl'>
  3737. </span>
  3738. <b:else/>
  3739. <a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
  3740. <data:post.commentLabelFull/>:
  3741. </a>
  3742. </b:if>
  3743. </b:if>
  3744. </b:includable>
  3745. <b:includable id='threaded_comment_js' var='post'>
  3746. <script async='async' expr:src='data:post.commentSrc' type='text/javascript'/>
  3747. <script type='text/javascript'>
  3748. (function() {
  3749. var items = <data:post.commentJso/>;
  3750. var msgs = <data:post.commentMsgs/>;
  3751. var config = <data:post.commentConfig/>;
  3752. // <![CDATA[
  3753. var cursor = null;
  3754. if (items && items.length > 0) {
  3755. cursor = parseInt(items[items.length - 1].timestamp) + 1;
  3756. }
  3757. var bodyFromEntry = function(entry) {
  3758. if (entry.gd$extendedProperty) {
  3759. for (var k in entry.gd$extendedProperty) {
  3760. if (entry.gd$extendedProperty[k].name == 'blogger.contentRemoved') {
  3761. return '<span class="deleted-comment">' + entry.content.$t + '</span>';
  3762. }
  3763. }
  3764. }
  3765. return entry.content.$t;
  3766. }
  3767. var parse = function(data) {
  3768. cursor = null;
  3769. var comments = [];
  3770. if (data && data.feed && data.feed.entry) {
  3771. for (var i = 0, entry; entry = data.feed.entry[i]; i++) {
  3772. var comment = {};
  3773. // comment ID, parsed out of the original id format
  3774. var id = /blog-(\d+).post-(\d+)/.exec(entry.id.$t);
  3775. comment.id = id ? id[2] : null;
  3776. comment.body = bodyFromEntry(entry);
  3777. comment.timestamp = Date.parse(entry.published.$t) + '';
  3778. if (entry.author && entry.author.constructor === Array) {
  3779. var auth = entry.author[0];
  3780. if (auth) {
  3781. comment.author = {
  3782. name: (auth.name ? auth.name.$t : undefined),
  3783. profileUrl: (auth.uri ? auth.uri.$t : undefined),
  3784. avatarUrl: (auth.gd$image ? auth.gd$image.src : undefined)
  3785. };
  3786. }
  3787. }
  3788. if (entry.link) {
  3789. if (entry.link[2]) {
  3790. comment.link = comment.permalink = entry.link[2].href;
  3791. }
  3792. if (entry.link[3]) {
  3793. var pid = /.*comments\/default\/(\d+)\?.*/.exec(entry.link[3].href);
  3794. if (pid && pid[1]) {
  3795. comment.parentId = pid[1];
  3796. }
  3797. }
  3798. }
  3799. comment.deleteclass = 'item-control blog-admin';
  3800. if (entry.gd$extendedProperty) {
  3801. for (var k in entry.gd$extendedProperty) {
  3802. if (entry.gd$extendedProperty[k].name == 'blogger.itemClass') {
  3803. comment.deleteclass += ' ' + entry.gd$extendedProperty[k].value;
  3804. }
  3805. }
  3806. }
  3807. comments.push(comment);
  3808. }
  3809. }
  3810. return comments;
  3811. };
  3812. var paginator = function(callback) {
  3813. if (hasMore()) {
  3814. var url = config.feed + '?alt=json&v=2&orderby=published&reverse=false&max-results=50';
  3815. if (cursor) {
  3816. url += '&published-min=' + new Date(cursor).toISOString();
  3817. }
  3818. window.bloggercomments = function(data) {
  3819. var parsed = parse(data);
  3820. cursor = parsed.length < 50 ? null
  3821. : parseInt(parsed[parsed.length - 1].timestamp) + 1
  3822. callback(parsed);
  3823. window.bloggercomments = null;
  3824. }
  3825. url += '&callback=bloggercomments';
  3826. var script = document.createElement('script');
  3827. script.type = 'text/javascript';
  3828. script.src = url;
  3829. document.getElementsByTagName('head')[0].appendChild(script);
  3830. }
  3831. };
  3832. var hasMore = function() {
  3833. return !!cursor;
  3834. };
  3835. var getMeta = function(key, comment) {
  3836. if ('iswriter' == key) {
  3837. var matches = !!comment.author
  3838. && comment.author.name == config.authorName
  3839. && comment.author.profileUrl == config.authorUrl;
  3840. return matches ? 'true' : '';
  3841. } else if ('deletelink' == key) {
  3842. return config.baseUri + '/delete-comment.g?blogID='
  3843. + config.blogId + '&postID=' + comment.id;
  3844. } else if ('deleteclass' == key) {
  3845. return comment.deleteclass;
  3846. }
  3847. return '';
  3848. };
  3849. var replybox = null;
  3850. var replyUrlParts = null;
  3851. var replyParent = undefined;
  3852. var onReply = function(commentId, domId) {
  3853. if (replybox == null) {
  3854. // lazily cache replybox, and adjust to suit this style:
  3855. replybox = document.getElementById('comment-editor');
  3856. if (replybox != null) {
  3857. replybox.height = '250px';
  3858. replybox.style.display = 'block';
  3859. replyUrlParts = replybox.src.split('#');
  3860. }
  3861. }
  3862. if (replybox && (commentId !== replyParent)) {
  3863. document.getElementById(domId).insertBefore(replybox, null);
  3864. replybox.src = replyUrlParts[0]
  3865. + (commentId ? '&parentID=' + commentId : '')
  3866. + '#' + replyUrlParts[1];
  3867. replyParent = commentId;
  3868. }
  3869. };
  3870. var hash = (window.location.hash || '#').substring(1);
  3871. var startThread, targetComment;
  3872. if (/^comment-form_/.test(hash)) {
  3873. startThread = hash.substring('comment-form_'.length);
  3874. } else if (/^c[0-9]+$/.test(hash)) {
  3875. targetComment = hash.substring(1);
  3876. }
  3877. // Configure commenting API:
  3878. var configJso = {
  3879. 'maxDepth': config.maxThreadDepth
  3880. };
  3881. var provider = {
  3882. 'id': config.postId,
  3883. 'data': items,
  3884. 'loadNext': paginator,
  3885. 'hasMore': hasMore,
  3886. 'getMeta': getMeta,
  3887. 'onReply': onReply,
  3888. 'rendered': true,
  3889. 'initComment': targetComment,
  3890. 'initReplyThread': startThread,
  3891. 'config': configJso,
  3892. 'messages': msgs
  3893. };
  3894. var render = function() {
  3895. if (window.goog && window.goog.comments) {
  3896. var holder = document.getElementById('comment-holder');
  3897. window.goog.comments.render(holder, provider);
  3898. }
  3899. };
  3900. // render now, or queue to render when library loads:
  3901. if (window.goog && window.goog.comments) {
  3902. render();
  3903. } else {
  3904. window.goog = window.goog || {};
  3905. window.goog.comments = window.goog.comments || {};
  3906. window.goog.comments.loadQueue = window.goog.comments.loadQueue || [];
  3907. window.goog.comments.loadQueue.push(render);
  3908. }
  3909. })();
  3910. // ]]>
  3911. </script>
  3912. </b:includable>
  3913. <b:includable id='mobile-main' var='top'>
  3914. <!-- posts -->
  3915. <div class='blog-posts hfeed'>
  3916. <b:include data='top' name='status-message'/>
  3917. <b:if cond='data:blog.pageType == "index"'>
  3918. <b:loop values='data:posts' var='post'>
  3919. <b:include data='post' name='mobile-index-post'/>
  3920. </b:loop>
  3921. <b:else/>
  3922. <b:loop values='data:posts' var='post'>
  3923. <b:include data='post' name='mobile-post'/>
  3924. </b:loop>
  3925. </b:if>
  3926. </div>
  3927. <b:include name='mobile-nextprev'/>
  3928. </b:includable>
  3929. <b:includable id='post' var='post'>
  3930. <div class='post hentry'>
  3931. <a expr:name='data:post.id'/>
  3932. <div class='bposttitle'>
  3933. <h2 class='post-title entry-title'>
  3934. <b:if cond='data:post.link'>
  3935. <a expr:href='data:post.link'><data:post.title/></a>
  3936. <b:else/>
  3937. <b:if cond='data:post.url'>
  3938. <a expr:href='data:post.url'><data:post.title/></a>
  3939. <b:else/>
  3940. <data:post.title/>
  3941. </b:if>
  3942. </b:if>
  3943. </h2>
  3944. <b:if cond='data:blog.pageType != "static_page"'>
  3945. <div class='postmeta'><span>Posted by <data:post.author/></span> | <span><data:post.timestamp/></span> | <span><b:if cond='data:post.labels'><b:loop values='data:post.labels' var='label'><a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != "true"'>, </b:if></b:loop></b:if></span></div>
  3946. </b:if>
  3947. </div>
  3948. <div class='post-header-line-1'/>
  3949. <div class='entry'>
  3950. <div class='post-body entry-content'>
  3951. <b:if cond='data:blog.pageType != "static_page"'>
  3952. <b:if cond='data:blog.pageType != "item"'>
  3953. <div expr:id='"summary" + data:post.id'><data:post.body/></div>
  3954. <script type='text/javascript'>createSummaryAndThumb("summary<data:post.id/>");</script>
  3955. </b:if>
  3956. </b:if>
  3957. <b:if cond='data:blog.pageType == "item"'><data:post.body/></b:if>
  3958. <b:if cond='data:blog.pageType == "static_page"'><data:post.body/></b:if>
  3959. <b:if cond='data:blog.pageType != "static_page"'>
  3960. <b:if cond='data:blog.pageType != "item"'>
  3961. <div class='readmore'>
  3962. <a class='rmore' expr:href='data:post.url'>Read More</a>
  3963. </div>
  3964. </b:if>
  3965. </b:if>
  3966. <b:if cond='data:blog.pageType == "item"'>
  3967. <div class='postmeta'>
  3968. <span class='categori'>Categories: <b:if cond='data:post.labels'><b:loop values='data:post.labels' var='label'><a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != "true"'>, </b:if></b:loop></b:if></span>
  3969. </div>
  3970. <div style='clear: both;'/>
  3971. </b:if>
  3972. <b:if cond='data:blog.pageType == "item"'>
  3973. <div style='clear:both;'/>
  3974. <div class='post-share-buttons'>
  3975. <b:include data='post' name='shareButtons'/>
  3976. </div>
  3977. <span class='reaction-buttons'>
  3978. <b:if cond='data:top.showReactions'>
  3979. <table border='0' cellpadding='0' width='100%'><tr>
  3980. <td style='font-size:12px;padding-top:2px;' valign='top'><span class='reactions-label'><data:top.reactionsLabel/></span></td>
  3981. <td><iframe allowtransparency='true' class='reactions-iframe' expr:src='data:post.reactionsUrl' frameborder='0' name='reactions' scrolling='no'/></td>
  3982. </tr></table>
  3983. </b:if>
  3984. </span>
  3985. </b:if>
  3986. <div style='clear: both;'/> <!-- clear for photos floats -->
  3987. </div>
  3988. </div>
  3989. </div>
  3990. <div style='clear: both;'/>
  3991. <b:if cond='data:blog.pageType == "item"'>
  3992. <!-- navigation -->
  3993. <b:include name='nextprev'/>
  3994. </b:if>
  3995. </b:includable>
  3996. <b:includable id='comment_picker' var='post'>
  3997. <b:if cond='data:post.commentSource == 1'>
  3998. <b:include data='post' name='iframe_comments'/>
  3999. <b:else/>
  4000. <b:if cond='data:post.showThreadedComments'>
  4001. <b:include data='post' name='threaded_comments'/>
  4002. <b:else/>
  4003. <b:include data='post' name='comments'/>
  4004. </b:if>
  4005. </b:if>
  4006. </b:includable>
  4007. <b:includable id='status-message'>
  4008. <b:if cond='data:navMessage'>
  4009. <div class='status-msg-wrap'>
  4010. <div class='status-msg-body'>
  4011. <data:navMessage/>
  4012. </div>
  4013. <div class='status-msg-border'>
  4014. <div class='status-msg-bg'>
  4015. <div class='status-msg-hidden'><data:navMessage/></div>
  4016. </div>
  4017. </div>
  4018. </div>
  4019. <div style='clear: both;'/>
  4020. </b:if>
  4021. </b:includable>
  4022. <b:includable id='comment-form' var='post'>
  4023. <div class='comment-form'>
  4024. <a name='comment-form'/>
  4025. <b:if cond='data:mobile'>
  4026. <h4 id='comment-post-message'>
  4027. <a expr:id='data:widget.instanceId + "_comment-editor-toggle-link"' href='javascript:void(0)'><data:postCommentMsg/></a></h4>
  4028. <p><data:blogCommentMessage/></p>
  4029. <data:blogTeamBlogMessage/>
  4030. <a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>
  4031. <iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' style='display: none' width='100%'/>
  4032. <b:else/>
  4033. <h4 id='comment-post-message'><data:postCommentMsg/></h4>
  4034. <p><data:blogCommentMessage/></p>
  4035. <data:blogTeamBlogMessage/>
  4036. <a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>
  4037. <iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' width='100%'/>
  4038. </b:if>
  4039. <data:post.friendConnectJs/>
  4040. <data:post.cmtfpIframe/>
  4041. <script type='text/javascript'>
  4042. BLOG_CMT_createIframe('<data:post.appRpcRelayPath/>', '<data:post.communityId/>');
  4043. </script>
  4044. </div>
  4045. </b:includable>
  4046. <b:includable id='threaded_comments' var='post'>
  4047. <div class='comments' id='comments'>
  4048. <a name='comments'/>
  4049. <h4><data:post.commentLabelFull/>:</h4>
  4050. <div class='comments-content'>
  4051. <b:if cond='data:post.embedCommentForm'>
  4052. <b:include data='post' name='threaded_comment_js'/>
  4053. </b:if>
  4054. <div id='comment-holder'>
  4055. <data:post.commentHtml/>
  4056. </div>
  4057. </div>
  4058. <p class='comment-footer'>
  4059. <b:if cond='data:post.allowNewComments'>
  4060. <b:include data='post' name='threaded-comment-form'/>
  4061. <b:else/>
  4062. <data:post.noNewCommentsText/>
  4063. </b:if>
  4064. </p>
  4065. <b:if cond='data:showCmtPopup'>
  4066. <div id='comment-popup'>
  4067. <iframe allowtransparency='true' frameborder='0' id='comment-actions' name='comment-actions' scrolling='no'>
  4068. </iframe>
  4069. </div>
  4070. </b:if>
  4071. <div id='backlinks-container'>
  4072. <div expr:id='data:widget.instanceId + "_backlinks-container"'>
  4073. <b:if cond='data:post.showBacklinks'>
  4074. <b:include data='post' name='backlinks'/>
  4075. </b:if>
  4076. </div>
  4077. </div>
  4078. </div>
  4079. </b:includable>
  4080. <b:includable id='backlinkDeleteIcon' var='backlink'>
  4081. <span expr:class='"item-control " + data:backlink.adminClass'>
  4082. <a expr:href='data:backlink.deleteUrl' expr:title='data:top.deleteBacklinkMsg'>
  4083. <img src='//www.blogger.com/img/icon_delete13.gif'/>
  4084. </a>
  4085. </span>
  4086. </b:includable>
  4087. <b:includable id='mobile-nextprev'>
  4088. <div class='blog-pager' id='blog-pager'>
  4089. <b:if cond='data:newerPageUrl'>
  4090. <div class='mobile-link-button' id='blog-pager-newer-link'>
  4091. <a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + "_blog-pager-newer-link"' expr:title='data:newerPageTitle'>&lsaquo;</a>
  4092. </div>
  4093. </b:if>
  4094. <b:if cond='data:olderPageUrl'>
  4095. <div class='mobile-link-button' id='blog-pager-older-link'>
  4096. <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"' expr:title='data:olderPageTitle'>&rsaquo;</a>
  4097. </div>
  4098. </b:if>
  4099. <div class='mobile-link-button' id='blog-pager-home-link'>
  4100. <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
  4101. </div>
  4102. <div class='mobile-desktop-link'>
  4103. <a class='home-link' expr:href='data:desktopLinkUrl'><data:desktopLinkMsg/></a>
  4104. </div>
  4105. </div>
  4106. <div class='clear'/>
  4107. </b:includable>
  4108. <b:includable id='mobile-post' var='post'>
  4109. <div class='date-outer'>
  4110. <b:if cond='data:post.dateHeader'>
  4111. <h2 class='date-header'><span><data:post.dateHeader/></span></h2>
  4112. </b:if>
  4113. <div class='date-posts'>
  4114. <div class='post-outer'>
  4115. <div class='post hentry uncustomized-post-template'>
  4116. <a expr:name='data:post.id'/>
  4117. <b:if cond='data:post.title'>
  4118. <h3 class='post-title entry-title'>
  4119. <b:if cond='data:post.link'>
  4120. <a expr:href='data:post.link'><data:post.title/></a>
  4121. <b:else/>
  4122. <b:if cond='data:post.url'>
  4123. <b:if cond='data:blog.url != data:post.url'>
  4124. <a expr:href='data:post.url'><data:post.title/></a>
  4125. <b:else/>
  4126. <data:post.title/>
  4127. </b:if>
  4128. <b:else/>
  4129. <data:post.title/>
  4130. </b:if>
  4131. </b:if>
  4132. </h3>
  4133. </b:if>
  4134. <div class='post-header'>
  4135. <div class='post-header-line-1'/>
  4136. </div>
  4137. <div class='post-body entry-content' expr:id='"post-body-" + data:post.id'>
  4138. <data:post.body/>
  4139. <div style='clear: both;'/> <!-- clear for photos floats -->
  4140. </div>
  4141. <div class='post-footer'>
  4142. <div class='post-footer-line post-footer-line-1'>
  4143. <span class='post-author vcard'>
  4144. <b:if cond='data:top.showAuthor'>
  4145. <b:if cond='data:post.authorProfileUrl'>
  4146. <span class='fn'>
  4147. <a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'>
  4148. <data:post.author/>
  4149. </a>
  4150. </span>
  4151. <b:else/>
  4152. <span class='fn'><data:post.author/></span>
  4153. </b:if>
  4154. </b:if>
  4155. </span>
  4156. <span class='post-timestamp'>
  4157. <b:if cond='data:top.showTimestamp'>
  4158. <data:top.timestampLabel/>
  4159. <b:if cond='data:post.url'>
  4160. <a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601'><data:post.timestamp/></abbr></a>
  4161. </b:if>
  4162. </b:if>
  4163. </span>
  4164. <span class='post-comment-link'>
  4165. <b:if cond='data:blog.pageType != "item"'>
  4166. <b:if cond='data:blog.pageType != "static_page"'>
  4167. <b:if cond='data:post.allowComments'>
  4168. <a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>
  4169. </b:if>
  4170. </b:if>
  4171. </b:if>
  4172. </span>
  4173. </div>
  4174. <div class='post-footer-line post-footer-line-2'>
  4175. <b:if cond='data:top.showMobileShare'>
  4176. <div class='mobile-link-button goog-inline-block' id='mobile-share-button'>
  4177. <a href='javascript:void(0);'><data:shareMsg/></a>
  4178. </div>
  4179. </b:if>
  4180. <b:if cond='data:top.showDummy'>
  4181. <div class='goog-inline-block dummy-container'><data:post.dummyTag/></div>
  4182. </b:if>
  4183. </div>
  4184. </div>
  4185. </div>
  4186. <b:if cond='data:blog.pageType == "static_page"'>
  4187. <b:if cond='data:post.showThreadedComments'>
  4188. <b:include data='post' name='threaded_comments'/>
  4189. <b:else/>
  4190. <b:include data='post' name='comments'/>
  4191. </b:if>
  4192. </b:if>
  4193. <b:if cond='data:blog.pageType == "item"'>
  4194. <b:if cond='data:post.showThreadedComments'>
  4195. <b:include data='post' name='threaded_comments'/>
  4196. <b:else/>
  4197. <b:include data='post' name='comments'/>
  4198. </b:if>
  4199. </b:if>
  4200. </div>
  4201. </div>
  4202. </div>
  4203. </b:includable>
  4204. <b:includable id='postQuickEdit' var='post'>
  4205. <b:if cond='data:post.editUrl'>
  4206. <span expr:class='"item-control " + data:post.adminClass'>
  4207. <a expr:href='data:post.editUrl' expr:title='data:top.editPostMsg'>
  4208. <img alt='' class='icon-action' height='18' src='http://img2.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/>
  4209. </a>
  4210. </span>
  4211. </b:if>
  4212. </b:includable>
  4213. <b:includable id='main' var='top'>
  4214. <b:if cond='data:mobile == "false"'>
  4215. <!-- posts -->
  4216. <div class='blog-posts hfeed'>
  4217. <b:include data='top' name='status-message'/>
  4218. <data:defaultAdStart/>
  4219. <b:loop values='data:posts' var='post'>
  4220. <b:if cond='data:post.isDateStart'>
  4221. <b:if cond='data:post.isFirstPost == "false"'>
  4222. </div></div>
  4223. </b:if>
  4224. </b:if>
  4225. <b:if cond='data:post.isDateStart'>
  4226. <div class="date-outer">
  4227. </b:if>
  4228. <b:if cond='data:post.dateHeader'>
  4229. <h2 class='date-header'><span><data:post.dateHeader/></span></h2>
  4230. </b:if>
  4231. <b:if cond='data:post.isDateStart'>
  4232. <div class="date-posts">
  4233. </b:if>
  4234. <div class='post-outer'>
  4235. <b:include data='post' name='post'/>
  4236. <b:if cond='data:blog.pageType == "static_page"'>
  4237. <b:if cond='data:post.showThreadedComments'>
  4238. <b:include data='post' name='threaded_comments'/>
  4239. <b:else/>
  4240. <b:include data='post' name='comments'/>
  4241. </b:if>
  4242. </b:if>
  4243. <b:if cond='data:blog.pageType == "item"'>
  4244. <b:if cond='data:post.showThreadedComments'>
  4245. <b:include data='post' name='threaded_comments'/>
  4246. <b:else/>
  4247. <b:include data='post' name='comments'/>
  4248. </b:if>
  4249. </b:if>
  4250. </div>
  4251. <b:if cond='data:post.includeAd'>
  4252. <b:if cond='data:post.isFirstPost'>
  4253. <data:defaultAdEnd/>
  4254. <b:else/>
  4255. <data:adEnd/>
  4256. </b:if>
  4257. <div class='inline-ad'>
  4258. <data:adCode/>
  4259. </div>
  4260. <data:adStart/>
  4261. </b:if>
  4262. </b:loop>
  4263. <b:if cond='data:numPosts != 0'>
  4264. </div></div>
  4265. </b:if>
  4266. <data:adEnd/>
  4267. </div>
  4268. <div style='clear: both;'/>
  4269. <b:if cond='data:blog.pageType != "item"'>
  4270. <!-- navigation -->
  4271. <b:include name='nextprev'/>
  4272. </b:if>
  4273. <!-- feed links -->
  4274. <b:include name='feedLinks'/>
  4275. <b:if cond='data:top.showStars'>
  4276. <script src='//www.google.com/jsapi' type='text/javascript'/>
  4277. <script type='text/javascript'>
  4278. google.load("annotations", "1", {"locale": "<data:top.languageCode/>"});
  4279. function initialize() {
  4280. google.annotations.setApplicationId(<data:top.blogspotReviews/>);
  4281. google.annotations.createAll();
  4282. google.annotations.fetch();
  4283. }
  4284. google.setOnLoadCallback(initialize);
  4285. </script>
  4286. </b:if>
  4287. <b:else/>
  4288. <b:include name='mobile-main'/>
  4289. </b:if>
  4290. <b:if cond='data:top.showDummy'>
  4291. <data:top.dummyBootstrap/>
  4292. </b:if>
  4293. </b:includable>
  4294. <b:includable id='commentDeleteIcon' var='comment'>
  4295. <span expr:class='"item-control " + data:comment.adminClass'>
  4296. <b:if cond='data:showCmtPopup'>
  4297. <div class='goog-toggle-button'>
  4298. <div class='goog-inline-block comment-action-icon'/>
  4299. </div>
  4300. <b:else/>
  4301. <a class='comment-delete' expr:href='data:comment.deleteUrl' expr:title='data:top.deleteCommentMsg'>
  4302. <img src='//www.blogger.com/img/icon_delete13.gif'/>
  4303. </a>
  4304. </b:if>
  4305. </span>
  4306. </b:includable>
  4307. <b:includable id='feedLinks'>
  4308. <b:if cond='data:blog.pageType != "item"'> <!-- Blog feed links -->
  4309. <b:if cond='data:feedLinks'>
  4310. <div class='blog-feeds'>
  4311. <b:include data='feedLinks' name='feedLinksBody'/>
  4312. </div>
  4313. </b:if>
  4314. <b:else/> <!--Post feed links -->
  4315. <div class='post-feeds'>
  4316. <b:loop values='data:posts' var='post'>
  4317. <b:if cond='data:post.allowComments'>
  4318. <b:if cond='data:post.feedLinks'>
  4319. <b:include data='post.feedLinks' name='feedLinksBody'/>
  4320. </b:if>
  4321. </b:if>
  4322. </b:loop>
  4323. </div>
  4324. </b:if>
  4325. </b:includable>
  4326. <b:includable id='threaded-comment-form' var='post'>
  4327. <div class='comment-form'>
  4328. <a name='comment-form'/>
  4329. <b:if cond='data:mobile'>
  4330. <p><data:blogCommentMessage/></p>
  4331. <data:blogTeamBlogMessage/>
  4332. <a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>
  4333. <iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' style='display: none' width='100%'/>
  4334. <b:else/>
  4335. <p><data:blogCommentMessage/></p>
  4336. <data:blogTeamBlogMessage/>
  4337. <a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>
  4338. <iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' width='100%'/>
  4339. </b:if>
  4340. <data:post.friendConnectJs/>
  4341. <data:post.cmtfpIframe/>
  4342. <script type='text/javascript'>
  4343. BLOG_CMT_createIframe('<data:post.appRpcRelayPath/>', '<data:post.communityId/>');
  4344. </script>
  4345. </div>
  4346. </b:includable>
  4347. <b:includable id='mobile-index-post' var='post'>
  4348. <div class='mobile-date-outer date-outer'>
  4349. <b:if cond='data:post.dateHeader'>
  4350. <div class='date-header'>
  4351. <span><data:post.dateHeader/></span>
  4352. </div>
  4353. </b:if>
  4354. <div class='mobile-post-outer'>
  4355. <a expr:href='data:post.url'>
  4356. <h3 class='mobile-index-title entry-title'>
  4357. <data:post.title/>
  4358. </h3>
  4359. <div class='mobile-index-arrow'>&rsaquo;</div>
  4360. <div class='mobile-index-contents'>
  4361. <b:if cond='data:post.thumbnailUrl'>
  4362. <div class='mobile-index-thumbnail'>
  4363. <div class='Image'>
  4364. <img expr:src='data:post.thumbnailUrl'/>
  4365. </div>
  4366. </div>
  4367. </b:if>
  4368. <div class='post-body'>
  4369. <b:if cond='data:post.snippet'><data:post.snippet/></b:if>
  4370. </div>
  4371. </div>
  4372. <div style='clear: both;'/>
  4373. </a>
  4374. <div class='mobile-index-comment'>
  4375. <b:if cond='data:blog.pageType != "static_page"'>
  4376. <b:if cond='data:post.allowComments'>
  4377. <b:if cond='data:post.numComments != 0'>
  4378. <a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>
  4379. </b:if>
  4380. </b:if>
  4381. </b:if>
  4382. </div>
  4383. </div>
  4384. </div>
  4385. </b:includable>
  4386. <b:includable id='feedLinksBody' var='links'>
  4387. <div class='feed-links'>
  4388. <data:feedLinksMsg/>
  4389. <b:loop values='data:links' var='f'>
  4390. <a class='feed-link' expr:href='data:f.url' expr:type='data:f.mimeType' target='_blank'><data:f.name/> (<data:f.feedType/>)</a>
  4391. </b:loop>
  4392. </div>
  4393. </b:includable>
  4394. <b:includable id='iframe_comments' var='post'>
  4395. <b:if cond='data:post.allowComments'>
  4396. <script expr:src='data:post.commentSrc' type='text/javascript'/>
  4397. <div class='cmt_iframe_holder'/>
  4398. <b:if cond='data:post.embedCommentForm == "false"'>
  4399. <a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a>
  4400. </b:if>
  4401. </b:if>
  4402. </b:includable>
  4403. <b:includable id='comments' var='post'>
  4404. <div class='comments' id='comments'>
  4405. <a name='comments'/>
  4406. <b:if cond='data:post.allowComments'>
  4407. <h4>
  4408. <b:if cond='data:post.numComments == 1'>
  4409. 1 <data:commentLabel/>:
  4410. <b:else/>
  4411. <data:post.numComments/> <data:commentLabelPlural/>:
  4412. </b:if>
  4413. </h4>
  4414. <b:if cond='data:post.commentPagingRequired'>
  4415. <span class='paging-control-container'>
  4416. <a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'><data:post.oldestLinkText/></a>
  4417. &#160;
  4418. <a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'><data:post.olderLinkText/></a>
  4419. &#160;
  4420. <data:post.commentRangeText/>
  4421. &#160;
  4422. <a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'><data:post.newerLinkText/></a>
  4423. &#160;
  4424. <a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'><data:post.newestLinkText/></a>
  4425. </span>
  4426. </b:if>
  4427. <div expr:id='data:widget.instanceId + "_comments-block-wrapper"'>
  4428. <dl expr:class='data:post.avatarIndentClass' id='comments-block'>
  4429. <b:loop values='data:post.comments' var='comment'>
  4430. <dt expr:class='"comment-author " + data:comment.authorClass' expr:id='data:comment.anchorName'>
  4431. <b:if cond='data:comment.favicon'>
  4432. <img expr:src='data:comment.favicon' height='16px' style='margin-bottom:-2px;' width='16px'/>
  4433. </b:if>
  4434. <a expr:name='data:comment.anchorName'/>
  4435. <b:if cond='data:blog.enabledCommentProfileImages'>
  4436. <data:comment.authorAvatarImage/>
  4437. </b:if>
  4438. <b:if cond='data:comment.authorUrl'>
  4439. <a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
  4440. <b:else/>
  4441. <data:comment.author/>
  4442. </b:if>
  4443. <data:commentPostedByMsg/>
  4444. </dt>
  4445. <dd class='comment-body' expr:id='data:widget.instanceId + data:comment.cmtBodyIdPostfix'>
  4446. <b:if cond='data:comment.isDeleted'>
  4447. <span class='deleted-comment'><data:comment.body/></span>
  4448. <b:else/>
  4449. <p>
  4450. <data:comment.body/>
  4451. </p>
  4452. </b:if>
  4453. </dd>
  4454. <dd class='comment-footer'>
  4455. <span class='comment-timestamp'>
  4456. <a expr:href='data:comment.url' title='comment permalink'>
  4457. <data:comment.timestamp/>
  4458. </a>
  4459. <b:include data='comment' name='commentDeleteIcon'/>
  4460. </span>
  4461. </dd>
  4462. </b:loop>
  4463. </dl>
  4464. </div>
  4465. <b:if cond='data:post.commentPagingRequired'>
  4466. <span class='paging-control-container'>
  4467. <a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'>
  4468. <data:post.oldestLinkText/>
  4469. </a>
  4470. <a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'>
  4471. <data:post.olderLinkText/>
  4472. </a>
  4473. &#160;
  4474. <data:post.commentRangeText/>
  4475. &#160;
  4476. <a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'>
  4477. <data:post.newerLinkText/>
  4478. </a>
  4479. <a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'>
  4480. <data:post.newestLinkText/>
  4481. </a>
  4482. </span>
  4483. </b:if>
  4484. <p class='comment-footer'>
  4485. <b:if cond='data:post.embedCommentForm'>
  4486. <b:if cond='data:post.allowNewComments'>
  4487. <b:include data='post' name='comment-form'/>
  4488. <b:else/>
  4489. <data:post.noNewCommentsText/>
  4490. </b:if>
  4491. <b:else/>
  4492. <b:if cond='data:post.allowComments'>
  4493. <a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a>
  4494. </b:if>
  4495. </b:if>
  4496. </p>
  4497. </b:if>
  4498. <b:if cond='data:showCmtPopup'>
  4499. <div id='comment-popup'>
  4500. <iframe allowtransparency='true' frameborder='0' id='comment-actions' name='comment-actions' scrolling='no'>
  4501. </iframe>
  4502. </div>
  4503. </b:if>
  4504. <div id='backlinks-container'>
  4505. <div expr:id='data:widget.instanceId + "_backlinks-container"'>
  4506. <b:if cond='data:post.showBacklinks'>
  4507. <b:include data='post' name='backlinks'/>
  4508. </b:if>
  4509. </div>
  4510. </div>
  4511. </div>
  4512. </b:includable>
  4513. </b:widget>
  4514. </b:section>
  4515. </div>
  4516. <div id='right'>
  4517. <!-- Sidebar widgets -->
  4518. <div class='sidebar'>
  4519. <b:section class='sidebartop' id='sidebartop' preferred='yes'>
  4520. <b:widget id='HTML1' locked='false' title='' type='HTML'>
  4521. <b:includable id='main'>
  4522. <!-- only display title if it's non-empty -->
  4523. <b:if cond='data:title != ""'>
  4524. <h2 class='title'><data:title/></h2>
  4525. </b:if>
  4526. <div class='widget-content'>
  4527. <data:content/>
  4528. </div>
  4529. <b:include name='quickedit'/>
  4530. </b:includable>
  4531. </b:widget>
  4532. <b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'>
  4533. <b:includable id='main'>
  4534. <b:if cond='data:title'><h2><data:title/></h2></b:if>
  4535. <div class='widget-content popular-posts'>
  4536. <ul>
  4537. <b:loop values='data:posts' var='post'>
  4538. <li>
  4539. <b:if cond='data:showThumbnails == "false"'>
  4540. <b:if cond='data:showSnippets == "false"'>
  4541. <!-- (1) No snippet/thumbnail -->
  4542. <a expr:href='data:post.href'><data:post.title/></a>
  4543. <b:else/>
  4544. <!-- (2) Show only snippets -->
  4545. <div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div>
  4546. <div class='item-snippet'><data:post.snippet/></div>
  4547. </b:if>
  4548. <b:else/>
  4549. <b:if cond='data:showSnippets == "false"'>
  4550. <!-- (3) Show only thumbnails -->
  4551. <div class='item-thumbnail-only'>
  4552. <b:if cond='data:post.thumbnail'>
  4553. <div class='item-thumbnail'>
  4554. <a expr:href='data:post.href' target='_blank'>
  4555. <img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
  4556. </a>
  4557. </div>
  4558. </b:if>
  4559. <div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div>
  4560. </div>
  4561. <div style='clear: both;'/>
  4562. <b:else/>
  4563. <!-- (4) Show snippets and thumbnails -->
  4564. <div class='item-content'>
  4565. <b:if cond='data:post.thumbnail'>
  4566. <div class='item-thumbnail'>
  4567. <a expr:href='data:post.href' target='_blank'>
  4568. <img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
  4569. </a>
  4570. </div>
  4571. </b:if>
  4572. <div class='item-title'><a expr:href='data:post.href'><data:post.title/></a></div>
  4573. <div class='item-snippet'><data:post.snippet/></div>
  4574. </div>
  4575. <div style='clear: both;'/>
  4576. </b:if>
  4577. </b:if>
  4578. </li>
  4579. </b:loop>
  4580. </ul>
  4581. <b:include name='quickedit'/>
  4582. </div>
  4583. </b:includable>
  4584. </b:widget>
  4585. <b:widget id='HTML5' locked='false' title='Blogger templates' type='HTML'>
  4586. <b:includable id='main'>
  4587. <!-- only display title if it's non-empty -->
  4588. <b:if cond='data:title != ""'>
  4589. <h2 class='title'><data:title/></h2>
  4590. </b:if>
  4591. <div class='widget-content'>
  4592. <data:content/>
  4593. </div>
  4594. <b:include name='quickedit'/>
  4595. </b:includable>
  4596. </b:widget>
  4597. </b:section>
  4598. </div>
  4599. <div class='clear'/>
  4600. </div>
  4601. <div class='clear'/>
  4602. </div>
  4603. <div id='bottom'>
  4604. <ul>
  4605. <li class='botwid'>
  4606. <b:section class='footersec' id='footersec1' showaddelement='yes'>
  4607. <b:widget id='HTML4' locked='false' title='Blogger news' type='HTML'>
  4608. <b:includable id='main'>
  4609. <!-- only display title if it's non-empty -->
  4610. <b:if cond='data:title != ""'>
  4611. <h2 class='title'><data:title/></h2>
  4612. </b:if>
  4613. <div class='widget-content'>
  4614. <data:content/>
  4615. </div>
  4616. <b:include name='quickedit'/>
  4617. </b:includable>
  4618. </b:widget>
  4619. </b:section>
  4620. </li>
  4621. <li class='botwid'>
  4622. <b:section class='footersec' id='footersec2' showaddelement='yes'>
  4623. <b:widget id='HTML3' locked='false' title='Blogroll' type='HTML'>
  4624. <b:includable id='main'>
  4625. <!-- only display title if it's non-empty -->
  4626. <b:if cond='data:title != ""'>
  4627. <h2 class='title'><data:title/></h2>
  4628. </b:if>
  4629. <div class='widget-content'>
  4630. <data:content/>
  4631. </div>
  4632. <b:include name='quickedit'/>
  4633. </b:includable>
  4634. </b:widget>
  4635. </b:section>
  4636. </li>
  4637. <li class='botwid'>
  4638. <b:section class='footersec' id='footersec3' showaddelement='yes'>
  4639. <b:widget id='HTML2' locked='false' title='About' type='HTML'>
  4640. <b:includable id='main'>
  4641. <!-- only display title if it's non-empty -->
  4642. <b:if cond='data:title != ""'>
  4643. <h2 class='title'><data:title/></h2>
  4644. </b:if>
  4645. <div class='widget-content'>
  4646. <data:content/>
  4647. </div>
  4648. <b:include name='quickedit'/>
  4649. </b:includable>
  4650. </b:widget>
  4651. </b:section>
  4652. </li>
  4653. </ul>
  4654. <div class='clear'/>
  4655. </div>
  4656. <div id='footer'>
  4657. <div class='fcred'>
  4658. Copyright 2012 <a expr:href='data:blog.homepageUrl'><data:blog.title/></a> | Powered by <a href='http://www.blogger.com/'>Blogger</a>
  4659. <br/>Design by <a href='http://www.web2feel.com/' target='_blank'>Web2feel</a> | Blogger Template by <a href='http://newbloggerthemes.com/' target='_blank' title='Best Blogger Templates'>NewBloggerThemes.com</a>
  4660. </div>
  4661. <div class='clear'/>
  4662. </div>
  4663. <div class='clear'/>
  4664. </div>
  4665. </body>
  4666. </html>

comments powered by Disqus