Desv_MetroHomepageStyle - Version 1.0.0.1

Version Notes

Free version release

Download this release

Release Info

Developer desvus
Extension Desv_MetroHomepageStyle
Version 1.0.0.1
Comparing to
See all releases


Version 1.0.0.1

Files changed (26) hide show
  1. app/code/local/Desv/Metro/Block/Metro.php +50 -0
  2. app/code/local/Desv/Metro/Helper/Data.php +6 -0
  3. app/code/local/Desv/Metro/controllers/IndexController.php +9 -0
  4. app/code/local/Desv/Metro/etc/adminhtml.xml +48 -0
  5. app/code/local/Desv/Metro/etc/config.xml +107 -0
  6. app/code/local/Desv/Metro/etc/system.xml +115 -0
  7. app/design/adminhtml/default/default/layout/metro.xml +8 -0
  8. app/design/frontend/default/default/layout/metro.xml +10 -0
  9. app/design/frontend/default/default/template/metro/metrohomepage.phtml +107 -0
  10. app/etc/modules/Desv_Metro.xml +9 -0
  11. package.xml +19 -0
  12. skin/frontend/default/default/metro/MetroJs.css +774 -0
  13. skin/frontend/default/default/metro/MetroJs.js +1272 -0
  14. skin/frontend/default/default/metro/font/JosefinSlab-Bold-webfont.eot +0 -0
  15. skin/frontend/default/default/metro/font/JosefinSlab-Bold-webfont.svg +148 -0
  16. skin/frontend/default/default/metro/font/JosefinSlab-Bold-webfont.ttf +0 -0
  17. skin/frontend/default/default/metro/font/JosefinSlab-Bold-webfont.woff +0 -0
  18. skin/frontend/default/default/metro/font/JosefinSlab-Light-webfont.eot +0 -0
  19. skin/frontend/default/default/metro/font/JosefinSlab-Light-webfont.svg +148 -0
  20. skin/frontend/default/default/metro/font/JosefinSlab-Light-webfont.ttf +0 -0
  21. skin/frontend/default/default/metro/font/JosefinSlab-Light-webfont.woff +0 -0
  22. skin/frontend/default/default/metro/images/1pixel.gif +0 -0
  23. skin/frontend/default/default/metro/images/metroIcons.jpg +0 -0
  24. skin/frontend/default/default/metro/images/metroIcons_light.jpg +0 -0
  25. skin/frontend/default/default/metro/jquery-1.5.1.min.js +19 -0
  26. skin/frontend/default/default/metro/metrohome.css +33 -0
app/code/local/Desv/Metro/Block/Metro.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Desv_Metro_Block_Metro extends Mage_Core_Block_Template
3
+ {
4
+ public function _prepareLayout()
5
+ {
6
+ return parent::_prepareLayout();
7
+ }
8
+
9
+ public function getMetro()
10
+ {
11
+ if (!$this->hasData('metro')) {
12
+ $this->setData('metro', Mage::registry('metro'));
13
+ }
14
+ return $this->getData('metro');
15
+
16
+ }
17
+ public function getFeaturedProducts() {
18
+ $idsProduct = Mage::getStoreConfig("metro/metro/ids");
19
+ $featured_product = explode(",",$idsProduct);
20
+ return $featured_product;
21
+ }
22
+ public function getCategoryIDS() {
23
+ $idcs = Mage::getStoreConfig("metro/metro/idcs");
24
+ $idcs1 = explode(",",$idcs);
25
+ return $idcs1;
26
+ }
27
+ public function getMetroColors() {
28
+ $colorcodes = Mage::getStoreConfig("metro/metro/metrocolor");
29
+ $colorcode = explode(",",$colorcodes);
30
+ return $colorcode;
31
+ }
32
+ public function getRandomMetroColors() {
33
+ $colorcodes = Mage::getStoreConfig("metro/metro/metrocolor");
34
+ $colorcode = explode(",",$colorcodes);
35
+ shuffle($colorcode);
36
+ return $colorcode;
37
+ }
38
+ public function cutText($text,$cond) {
39
+ $a=@explode(" ",$text); $b=count($a);
40
+ if ($cond>=$b) $str=$text;
41
+ else {
42
+ $str="";
43
+ for ($i=0;$i<$cond;$i++) {
44
+ $str.=$a[$i]." ";
45
+ }
46
+ $str.="...";
47
+ }
48
+ return strip_tags($str);
49
+ }
50
+ }
app/code/local/Desv/Metro/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Desv_Metro_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/local/Desv/Metro/controllers/IndexController.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Desv_Metro_IndexController extends Mage_Core_Controller_Front_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $this->loadLayout();
7
+ $this->renderLayout();
8
+ }
9
+ }
app/code/local/Desv/Metro/etc/adminhtml.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category Mage
23
+ * @package Mage_Contacts
24
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+ <config>
29
+ <acl>
30
+ <resources>
31
+ <admin>
32
+ <children>
33
+ <system>
34
+ <children>
35
+ <config>
36
+ <children>
37
+ <metro translate="title" module="metro">
38
+ <title>Metro Homepage</title>
39
+ </metro>
40
+ </children>
41
+ </config>
42
+ </children>
43
+ </system>
44
+ </children>
45
+ </admin>
46
+ </resources>
47
+ </acl>
48
+ </config>
app/code/local/Desv/Metro/etc/config.xml ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Desv_Metro>
5
+ <version>0.1.0</version>
6
+ </Desv_Metro>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <metro>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Desv_Metro</module>
14
+ <frontName>metro</frontName>
15
+ </args>
16
+ </metro>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <metro>
21
+ <file>metro.xml</file>
22
+ </metro>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <admin>
27
+ <routers>
28
+ <metro>
29
+ <use>admin</use>
30
+ <args>
31
+ <module>Desv_Metro</module>
32
+ <frontName>metro</frontName>
33
+ </args>
34
+ </metro>
35
+ </routers>
36
+ </admin>
37
+ <adminhtml>
38
+ <acl>
39
+ <resources>
40
+ <all>
41
+ <title>Allow Everything</title>
42
+ </all>
43
+ <admin>
44
+ <children>
45
+ <Desv_Metro>
46
+ <title>Metro Module</title>
47
+ <sort_order>10</sort_order>
48
+ </Desv_Metro>
49
+ </children>
50
+ </admin>
51
+ </resources>
52
+ </acl>
53
+ <layout>
54
+ <updates>
55
+ <metro>
56
+ <file>metro.xml</file>
57
+ </metro>
58
+ </updates>
59
+ </layout>
60
+ </adminhtml>
61
+ <global>
62
+ <models>
63
+ <metro>
64
+ <class>Desv_Metro_Model</class>
65
+ <resourceModel>metro_mysql4</resourceModel>
66
+ </metro>
67
+ <metro_mysql4>
68
+ <class>Desv_Metro_Model_Mysql4</class>
69
+ <entities>
70
+ <metro>
71
+ <table>metro</table>
72
+ </metro>
73
+ </entities>
74
+ </metro_mysql4>
75
+ </models>
76
+ <resources>
77
+ <metro_setup>
78
+ <setup>
79
+ <module>Desv_Metro</module>
80
+ </setup>
81
+ <connection>
82
+ <use>core_setup</use>
83
+ </connection>
84
+ </metro_setup>
85
+ <metro_write>
86
+ <connection>
87
+ <use>core_write</use>
88
+ </connection>
89
+ </metro_write>
90
+ <metro_read>
91
+ <connection>
92
+ <use>core_read</use>
93
+ </connection>
94
+ </metro_read>
95
+ </resources>
96
+ <blocks>
97
+ <metro>
98
+ <class>Desv_Metro_Block</class>
99
+ </metro>
100
+ </blocks>
101
+ <helpers>
102
+ <metro>
103
+ <class>Desv_Metro_Helper</class>
104
+ </metro>
105
+ </helpers>
106
+ </global>
107
+ </config>
app/code/local/Desv/Metro/etc/system.xml ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category Mage
23
+ * @package Mage_Contacts
24
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+ <config>
29
+ <sections>
30
+ <metro translate="label" module="metro">
31
+ <label>METRO CONFIGURATION</label>
32
+ <tab>general</tab>
33
+ <frontend_type>text</frontend_type>
34
+ <sort_order>100</sort_order>
35
+ <show_in_default>1</show_in_default>
36
+ <show_in_website>1</show_in_website>
37
+ <show_in_store>1</show_in_store>
38
+ <groups>
39
+ <metro translate="label">
40
+ <label>METRO Configuration</label>
41
+ <frontend_type>text</frontend_type>
42
+ <sort_order>10</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ <fields>
47
+ <metrohomepage translate="label">
48
+ <label>Enable METRO Homepage</label>
49
+ <frontend_type>select</frontend_type>
50
+ <source_model>adminhtml/system_config_source_yesno</source_model>
51
+ <sort_order>1</sort_order>
52
+ <show_in_default>1</show_in_default>
53
+ <show_in_website>1</show_in_website>
54
+ <show_in_store>1</show_in_store>
55
+ </metrohomepage>
56
+ <enablenewproduct translate="label">
57
+ <label>Enable New Products</label>
58
+ <frontend_type>select</frontend_type>
59
+ <source_model>adminhtml/system_config_source_yesno</source_model>
60
+ <sort_order>2</sort_order>
61
+ <show_in_default>1</show_in_default>
62
+ <show_in_website>1</show_in_website>
63
+ <show_in_store>1</show_in_store>
64
+ </enablenewproduct>
65
+ <enablecategory translate="label">
66
+ <label>Enable Categories</label>
67
+ <frontend_type>select</frontend_type>
68
+ <source_model>adminhtml/system_config_source_yesno</source_model>
69
+ <sort_order>3</sort_order>
70
+ <show_in_default>1</show_in_default>
71
+ <show_in_website>1</show_in_website>
72
+ <show_in_store>1</show_in_store>
73
+ </enablecategory>
74
+ <idcs translate="label">
75
+ <label>IDs categories</label>
76
+ <frontend_type>text</frontend_type>
77
+ <sort_order>4</sort_order>
78
+ <show_in_default>1</show_in_default>
79
+ <show_in_website>1</show_in_website>
80
+ <show_in_store>1</show_in_store>
81
+ <comment><![CDATA[separate by ","]]></comment>
82
+ </idcs>
83
+ <ids translate="label">
84
+ <label>Enter IDs of featured products</label>
85
+ <frontend_type>text</frontend_type>
86
+ <sort_order>5</sort_order>
87
+ <show_in_default>1</show_in_default>
88
+ <show_in_website>1</show_in_website>
89
+ <show_in_store>1</show_in_store>
90
+ <comment><![CDATA[separate by ","]]></comment>
91
+ </ids>
92
+ <metrocolor translate="label">
93
+ <label>Enter color code</label>
94
+ <frontend_type>text</frontend_type>
95
+ <sort_order>6</sort_order>
96
+ <show_in_default>1</show_in_default>
97
+ <show_in_website>1</show_in_website>
98
+ <show_in_store>1</show_in_store>
99
+ <comment><![CDATA[separate by ","]]></comment>
100
+ </metrocolor>
101
+ <randomcolor translate="label">
102
+ <label>Random Color Code</label>
103
+ <frontend_type>select</frontend_type>
104
+ <source_model>adminhtml/system_config_source_yesno</source_model>
105
+ <sort_order>7</sort_order>
106
+ <show_in_default>1</show_in_default>
107
+ <show_in_website>1</show_in_website>
108
+ <show_in_store>1</show_in_store>
109
+ </randomcolor>
110
+ </fields>
111
+ </metro>
112
+ </groups>
113
+ </metro>
114
+ </sections>
115
+ </config>
app/design/adminhtml/default/default/layout/metro.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <metro_adminhtml_metro_index>
4
+ <reference name="content">
5
+ <block type="metro/adminhtml_metro" name="metro" />
6
+ </reference>
7
+ </metro_adminhtml_metro_index>
8
+ </layout>
app/design/frontend/default/default/layout/metro.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ </default>
5
+ <metro_index_index>
6
+ <reference name="content">
7
+ <block type="metro/metro" name="metro" template="metro/metrohomepage.phtml" />
8
+ </reference>
9
+ </metro_index_index>
10
+ </layout>
app/design/frontend/default/default/template/metro/metrohomepage.phtml ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('metro/jquery-1.5.1.min.js'); ?>" ></script>
2
+ <script type="text/javascript" src="<?php echo $this->getSkinUrl('metro/MetroJs.js'); ?>" ></script>
3
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('metro/MetroJs.css'); ?>" type="text/css">
4
+ <link rel="stylesheet" href="<?php echo $this->getSkinUrl('metro/metrohome.css'); ?>" type="text/css">
5
+ <?php $_helper = $this->helper('catalog/output'); ?>
6
+ <?php $metrohomepage = Mage::getStoreConfig('metro/metro/metrohomepage'); ?>
7
+ <?php $enablenewproduct = Mage::getStoreConfig('metro/metro/enablenewproduct'); ?>
8
+ <?php $enablecategory = Mage::getStoreConfig('metro/metro/enablecategory'); ?>
9
+ <?php $idproducts = Mage::getStoreConfig('metro/metro/ids'); ?>
10
+ <?php $idcs = Mage::getStoreConfig("metro/metro/idcs"); ?>
11
+ <?php $randomcolor = Mage::getStoreConfig("metro/metro/randomcolor"); ?>
12
+ <?php $metrocolor = $this->getMetroColors(); ?>
13
+ <?php $count_metrocolor = count($metrocolor); ?>
14
+ <?php $randommetrocolor = $this->getRandomMetroColors(); ?>
15
+ <?php if ($metrohomepage == 1): ?>
16
+ <?php if ($idproducts != ''): // enable featured products ?>
17
+ <div class="homepage-row">
18
+ <h1 class="homepage-row-title">Featured Products</h1>
19
+ </div>
20
+ <?php $products = $this->getFeaturedProducts(); ?>
21
+ <?php $i = 0; ?>
22
+ <?php if ($randomcolor == 1) { $getcolor = $randommetrocolor; } else { $getcolor = $metrocolor; } ?>
23
+ <div class="homepage-row">
24
+ <?php foreach ($products as $product): ?>
25
+ <?php $i++; ?>
26
+ <?php if ($i == $count_metrocolor) { $i=0; } ?>
27
+ <?php $_product = Mage::getModel('catalog/product')->load($product); ?>
28
+ <div class="live-tile <?php echo $getcolor[$i]; ?>" data-stops="100%" data-speed="850" data-delay="-1">
29
+ <div class="metroinfo" >
30
+ <a href="<?php echo $_product->getProductUrl(); ?>" >
31
+ <h2><?php echo $_product->getName(); ?></h2>
32
+ <p><?php echo $this->cutText($_product->getShortDescription(),15); ?></p>
33
+ </a>
34
+ </div>
35
+ <div class="metroimg"><a href="<?php echo $_product->getProductUrl(); ?>" ><img src="<?php echo $_product->getImageUrl(); ?>" alt="" /></a></div>
36
+ </div>
37
+ <?php endforeach; ?>
38
+ </div>
39
+ <?php endif; ?>
40
+ <?php if ($enablenewproduct == 1): ?>
41
+ <div class="homepage-row">
42
+ <h1 class="homepage-row-title">Recently Added Products</h1>
43
+ </div>
44
+ <div class="homepage-row">
45
+ <?php
46
+ $collection = Mage::getModel('catalog/product')
47
+ ->getCollection()
48
+ ->addAttributeToSelect('*')
49
+ ->addAttributeToSort('entity_id', 'desc');
50
+ $k=0;
51
+ $countall = count($collection);
52
+ foreach ($collection as $producta) {
53
+ ?>
54
+ <?php $k++; ?>
55
+ <?php if ($k == $countall) { $k=0; } ?>
56
+ <?php if ($k >= 3) continue; ?>
57
+ <div class="live-tile <?php echo $getcolor[$k]; ?>" data-stops="100%" data-speed="850" data-delay="-1">
58
+ <div class="metroinfo">
59
+ <a href="<?php echo $producta->getProductUrl(); ?>" >
60
+ <h2><?php echo $producta->getName(); ?></h2>
61
+ <p><?php echo $this->cutText($producta->getShortDescription(),15); ?></p>
62
+ </a>
63
+ </div>
64
+ <div class="metroimg"><a href="<?php echo $producta->getProductUrl(); ?>" ><img src="<?php echo $producta->getImageUrl(); ?>" alt="" /></a></div>
65
+ </div>
66
+ <?php } ?>
67
+ </div>
68
+ <?php endif; // enable new products ?>
69
+ <?php //category ?>
70
+ <?php if ($enablecategory == 1): ?>
71
+ <?php if ($idcs != '') : ?>
72
+ <?php $categories_c = $this->getCategoryIDS(); ?>
73
+ <?php foreach ($categories_c as $category_c): ?>
74
+ <div class="homepage-row">
75
+ <h1 class="homepage-row-title"><a href="<?php echo Mage::getModel("catalog/category")->load($category_c)->getUrl(); ?>"><?php echo Mage::getModel("catalog/category")->load($category_c)->getName(); ?></a></h1>
76
+ </div>
77
+ <div class="homepage-row">
78
+ <?php $categoryp = Mage::getModel('catalog/category')->load($category_c); ?>
79
+ <?php $products_c = $categoryp->getProductCollection()->addAttributeToSort('created_at','DESC'); ?>
80
+ <?php $j = 0; ?>
81
+ <?php $countpc = count($products_c); ?>
82
+ <?php foreach ($products_c as $product_c): ?>
83
+ <?php $j++; ?>
84
+ <?php if ($j == $countpc) { $j=0; } ?>
85
+ <?php if ($j >= 6) continue; ?>
86
+ <?php $productc= Mage::getModel('catalog/product')->load($product_c->getId()); ?>
87
+ <div class="live-tile <?php echo $getcolor[$j]; ?>" data-stops="100%" data-speed="850" data-delay="-1">
88
+ <div class="metroinfo">
89
+ <a href="<?php echo $productc->getProductUrl(); ?>" >
90
+ <h2><?php echo $productc->getName(); ?></h2>
91
+ <p><?php echo $this->cutText($productc->getShortDescription(),15); ?></p>
92
+ </a>
93
+ </div>
94
+ <div class="metroimg"><a href="<?php echo $productc->getProductUrl(); ?>" ><img src="<?php echo $productc->getImageUrl(); ?>" alt="" /></a></div>
95
+ </div>
96
+ <?php endforeach; ?>
97
+ </div>
98
+ <?php endforeach; ?>
99
+ <?php endif; ?>
100
+ <?php endif; ?>
101
+ <?php // end category ?>
102
+ <?php endif; // enable metrohomepage ?>
103
+
104
+ <script type="text/javascript">
105
+ jQuery.noConflict()
106
+ jQuery(".live-tile").liveTile();
107
+ </script>
app/etc/modules/Desv_Metro.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Desv_Metro>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ </Desv_Metro>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Desv_MetroHomepageStyle</name>
4
+ <version>1.0.0.1</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.gnu.org/licenses/gpl.html">GNU General Public License</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>support interface for homepage same as interface of Windows 8, look winkle, colorful as windows 8</summary>
10
+ <description>&lt;p&gt;METRO UI homepage is a new extension of desv.us, in this extension it will support interface for homepage same as interface Modern UI (METRO UI before) of Windows 8. This set of product will help your website look winkle, colorful as windows 8.&lt;br /&gt; Features of this extension:&lt;br /&gt; 1, Support for more color (namely 16 colors), color will change incidental that makes hompage always looks fresh.&lt;br /&gt; 2, Easy set up for new user.&lt;br /&gt; 3, New product feature, recently updated products, menu categories display&#x2026;&lt;br /&gt; 4, Support in working time (ASIA timezone)&lt;br /&gt; 5, Support for version Magento 1.3.x, 1.4.x, 1.5.x, 1.6.x, 1.7.x&lt;/p&gt;&#xD;
11
+ &lt;p&gt;Support all browsers&lt;/p&gt;</description>
12
+ <notes>Free version release</notes>
13
+ <authors><author><name>desvus</name><user>desvus</user><email>desv.us@gmail.com</email></author></authors>
14
+ <date>2014-05-06</date>
15
+ <time>03:07:47</time>
16
+ <contents><target name="magelocal"><dir name="Desv"><dir name="Metro"><dir name="Block"><file name="Metro.php" hash="2f96e9c7874b926ccf64d37ba12b100d"/></dir><dir name="Helper"><file name="Data.php" hash="02c447eea739a7c3a91ac55a00928f32"/></dir><dir name="controllers"><file name="IndexController.php" hash="f83b310eec50dc8b0dd85b6575cee443"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4f4e1aafc9c795f4c75375735528c323"/><file name="config.xml" hash="0e214b7638ab423f6989ad178c9fc9a8"/><file name="system.xml" hash="57c309c8f972e2f4519c5aacfc063345"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="metro.xml" hash="3d3802cfb9cc2102828b8a2c970c2c01"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="metro.xml" hash="dedd5b6204fa09ee32624c708ff0e16c"/></dir><dir name="template"><dir name="metro"><file name="metrohomepage.phtml" hash="78c0a981b9686b58a2379e4472fe2e7a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Desv_Metro.xml" hash="bac8f1878a8e87b3c8515a927a0bd3ad"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="metro"><file name="MetroJs.css" hash="89a451b93dbaef81284b399e9482d187"/><file name="MetroJs.js" hash="a987f399b469ed789d733287080fe189"/><dir name="font"><file name="JosefinSlab-Bold-webfont.eot" hash="00e0bb46de3c9b70a15fccb3b1df19e1"/><file name="JosefinSlab-Bold-webfont.svg" hash="b9ad6529d48f8b10ff75f62029f41e18"/><file name="JosefinSlab-Bold-webfont.ttf" hash="ff91930dbac838b3d8ddbdf49e666bb9"/><file name="JosefinSlab-Bold-webfont.woff" hash="0507b658320b09ac9ad581bd8c9ac3db"/><file name="JosefinSlab-Light-webfont.eot" hash="b0074979ed372d134db540d49fe2c166"/><file name="JosefinSlab-Light-webfont.svg" hash="0dcb1956028b21beb580f2549e022627"/><file name="JosefinSlab-Light-webfont.ttf" hash="b3aae0dec14ac2ecc2e3b88d996024a8"/><file name="JosefinSlab-Light-webfont.woff" hash="9d17ccf103cd75053e544ea0bf0c56a3"/></dir><dir name="images"><file name="1pixel.gif" hash="18b3e43abad26bdac6f4cea944777b62"/><file name="metroIcons.jpg" hash="ae68698a3d4b2bcd6f67e4ab0c100115"/><file name="metroIcons_light.jpg" hash="c4cc6a69841dad675b1072584886cc79"/></dir><file name="jquery-1.5.1.min.js" hash="cfdfd16f60f1052c798932182429a13c"/><file name="metrohome.css" hash="183323272a4b9d560f7c717cd55aaf1d"/></dir></dir></dir></dir></target></contents>
17
+ <compatible/>
18
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.3</min><max>1.8</max></package></required></dependencies>
19
+ </package>
skin/frontend/default/default/metro/MetroJs.css ADDED
@@ -0,0 +1,774 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ .metroBig { font-size:36px; line-height:36px; }
3
+ .live-tile, .list-tile
4
+ {
5
+ color:#fff;
6
+ float:left;
7
+ height: 150px;
8
+ margin:0 15px 15px 0;
9
+ overflow:hidden;
10
+ position:relative;
11
+ width: 285px;
12
+ }
13
+ .live-tile.two-wide, .list-tile.two-wide { width:390px; }
14
+ .live-tile.two-tall, .list-tile.two-tall { height:390px; }
15
+ .live-tile img, .list-tile img { border:none; }
16
+ .live-tile.me>.slide-back>a.metroBig { position:absolute; left:0; bottom:0; padding: 0 0 12px 12px; text-decoration:none; }
17
+ .live-tile a:link, .live-tile a:visited { color:#fff; text-decoration:underline; }
18
+ .live-tile a:hover { color:#fff; text-decoration:none; }
19
+ .live-tile p { font-size:13px; line-height: 16px; padding:10px; }
20
+ .live-tile .tile-title, .list-tile .tile-title { position:absolute; bottom:0px; font-size:12px; left:0px; width:100%; padding:0 0 6px 6px; z-index:30; }
21
+ .live-tile a.tile-title, .list-tile a.tile-title { text-decoration:none; }
22
+ .live-tile.me>.metroBig { padding-top:45px; }
23
+
24
+ .live-tile,.live-tile>div,.list-tile>div
25
+ { /* ensure elements on backside don't continue to take focus */
26
+ backface-visibility:hidden;
27
+ -webkit-backface-visibility:hidden;
28
+ -moz-backface-visibility:hidden;
29
+ }
30
+
31
+ .live-tile>div,.list-tile>div
32
+ {
33
+ top:0px;
34
+ left:0px;
35
+ margin:0px;
36
+ height:100%;
37
+ width:100%;
38
+ position:absolute;
39
+ z-index:20;
40
+ }
41
+ .list-tile>div
42
+ {
43
+ position:relative;
44
+ }
45
+
46
+ img.full , a.full
47
+ {
48
+ display:block;
49
+ margin:0px;
50
+ height:100%;
51
+ width:100%;
52
+ }
53
+ .list-tile>div { background-color:transparent; }
54
+
55
+ .live-tile>.back, .live-tile>.slide-back,.live-tile>.flip-back, .flip-list .flip-back
56
+ {
57
+ position:absolute;
58
+ z-index:10;
59
+ }
60
+ /* ========== flip-list Styles ==========
61
+ .flip-list
62
+ ---li
63
+ ------div.flip-front
64
+ ------div.flip-back
65
+ */
66
+ .flip-list
67
+ {
68
+ padding:0px;
69
+ margin:0px;
70
+ }
71
+ .list-tile .flip-list
72
+ {
73
+ height:100%;
74
+ width:100%;
75
+ }
76
+ .flip-list>li>a
77
+ {
78
+ border:none;
79
+ outline:none;
80
+ text-decoration:none;
81
+ margin:0px;
82
+ padding:0px;
83
+ height:100%;
84
+ width:100%;
85
+ }
86
+
87
+ .flip-list img
88
+ {
89
+ border:none;
90
+ outline:none;
91
+ height:100%;
92
+ margin:0px;
93
+ padding:0px;
94
+ width:100%;
95
+ }
96
+ .flip-list>li
97
+ {
98
+ height: 60px;
99
+ float: left;
100
+ list-style-type:none;
101
+ margin: 0px;
102
+ outline:none;
103
+ padding: 0px;
104
+ position: relative;
105
+ width: 60px;
106
+ }
107
+
108
+ .flip-list>li>div
109
+ {
110
+ border:none;
111
+ background: white;
112
+ height: 100%;
113
+ left: 0px;
114
+ margin:0px;
115
+ overflow: hidden;
116
+ position: absolute;
117
+ padding:0px;
118
+ top: 0px;
119
+ width: 100%;
120
+ z-index:20;
121
+ }
122
+
123
+ .flip-list>li>div.flip-back
124
+ {
125
+ height:0px;
126
+ }
127
+
128
+
129
+
130
+
131
+ /***** Theme Definitions *****/
132
+ .light { background-color:#fff; color:#000; }
133
+ .dark { background-color:#000; color:#fff; }
134
+ .light.accent { background-color:#fff; }
135
+ .dark.accent { background-color:#000; }
136
+ .light .appbar { background-color:#dfdfdf; }
137
+ .dark .appbar { background-color:#212021; }
138
+ /*live tile accent colors */
139
+ .amber .accent, .amber .live-tile .accent,
140
+ .amber .live-tile>div, .amber .list-tile>div,
141
+ .amber .live-tile>div.slide-back, .amber .flip-list>li>div { background-color:rgb(241, 163, 11); }
142
+ .amber .accentColor,.amber.accentColor { color:rgb(241, 163, 11); }
143
+ .amber .accentHover:hover,.amber .accentHover a:hover,
144
+ .accentHover .amber a:hover, .amber.accentHover a:hover { color:rgb(241, 163, 11); }
145
+ .amber .accentBorder,.amber.accentBorder { border-color:rgb(241, 163, 11); }
146
+ .amber .accentVisited:visited,.amber .accentVisited a:visited { color:rgb(241, 163, 11); }
147
+ .amber.accentLink,.amber.accentLink:link,.amber.accentLink:hover,.amber.accentLink:visited,
148
+ .amber.accentVisited:visited,.amber.accentHover:hover,
149
+ .amber .accentLink,.amber .accentLink:link,.amber .accentLink:hover,.amber .accentLink:visited { color:rgb(241, 163, 11); }
150
+
151
+ .blue .accent, .blue .live-tile .accent,
152
+ .blue .live-tile>div, .blue .list-tile>div,
153
+ .blue .live-tile>div.slide-back, .blue .flip-list>li>div { background-color:rgb(27,161,226); }
154
+ .blue .accentBorder,.blue.accentBorder { border-color:rgb(27,161,226); }
155
+ .blue .accentColor,.blue.accentColor { color:rgb(27,161,226); }
156
+ .blue .accentHover:hover,.accentHover .blue a:hover,
157
+ .blue .accentHover a:hover, .blue.accentHover a:hover { color:rgb(27,161,226); }
158
+ .blue .accentVisited:visited,.blue .accentVisited a:visited { color:rgb(27,161,226); }
159
+ .blue.accentLink,.blue.accentLink:link,.blue.accentLink:hover,.blue.accentLink:visited,
160
+ .blue.accentVisited:visited,.blue.accentHover:hover,
161
+ .blue .accentLink,.blue .accentLink:link,.blue .accentLink:hover,.blue .accentLink:visited { color:rgb(27,161,226); }
162
+
163
+ .brown .accent, .brown .live-tile .accent,
164
+ .brown .live-tile>div, .brown .list-tile>div,
165
+ .brown .live-tile>div.slide-back, .brown .flip-list>li>div { background-color:rgb(160, 80, 0); }
166
+ .brown .accentBorder,.brown.accentBorder { border-color:rgb(160,80,0); }
167
+ .brown .accentColor,.brown.accentColor { color:rgb(160,80,0); }
168
+ .brown .accentHover:hover,.brown .accentHover a:hover,.brown.accentHover a:hover { color:rgb(160,80,0); }
169
+ .brown .accentVisited:visited,.brown .accentVisited a:visited { color:rgb(160,80,0); }
170
+ .brown.accentLink,.brown.accentLink:link,.brown.accentLink:hover,.brown.accentLink:visited,
171
+ .brown.accentVisited:visited,.brown.accentHover:hover,.accentHover .brown a:hover,
172
+ .brown .accentLink,.brown .accentLink:link,.brown .accentLink:hover,.brown .accentLink:visited { color:rgb(160,80,0); }
173
+
174
+ .cobalt .accent, .cobalt .live-tile .accent,
175
+ .cobalt .live-tile>div, .cobalt .list-tile>div,
176
+ .cobalt .live-tile>div.slide-back, .cobalt .flip-list>li>div { background-color:rgb(0, 80, 239); }
177
+ .cobalt .accentBorder,.cobalt.accentBorder { border-color:rgb(0, 80, 239); }
178
+ .cobalt .accentColor,.cobalt.accentColor { color:rgb(0, 80, 239); }
179
+ .cobalt .accentHover:hover,.cobalt .accentHover a:hover,.cobalt.accentHover a:hover { color:rgb(0, 80, 239); }
180
+ .cobalt .accentVisited:visited,.cobalt .accentVisited a:visited { color:rgb(0, 80, 239); }
181
+ .cobalt.accentLink,.cobalt.accentLink:link,.cobalt.accentLink:hover,.cobalt.accentLink:visited,
182
+ .cobalt.accentVisited:visited,.cobalt.accentHover:hover,.accentHover .cobalt a:hover,
183
+ .cobalt .accentLink,.cobalt .accentLink:link,.cobalt .accentLink:hover,.cobalt .accentLink:visited { color:rgb(0, 80, 239); }
184
+
185
+ .crimson .accent, .crimson .live-tile .accent,
186
+ .crimson .live-tile>div, .crimson .list-tile>div,
187
+ .crimson .live-tile>div.slide-back, .crimson .flip-list>li>div { background-color:rgb(162, 0, 37); }
188
+ .crimson .accentBorder,.crimson.accentBorder { border-color:rgb(162, 0, 37); }
189
+ .crimson .accentColor,.crimson.accentColor { color:rgb(162, 0, 37); }
190
+ .crimson .accentHover:hover,.crimson .accentHover a:hover,.crimson.accentHover a:hover { color:rgb(162, 0, 37); }
191
+ .crimson .accentVisited:visited,.crimson .accentVisited a:visited { color:rgb(162, 0, 37); }
192
+ .crimson.accentLink,.crimson.accentLink:link,.crimson.accentLink:hover,.crimson.accentLink:visited,
193
+ .crimson.accentVisited:visited,.crimson.accentHover:hover, .accentHover .crimson a:hover,
194
+ .crimson .accentLink,.crimson .accentLink:link,.crimson .accentLink:hover,.crimson .accentLink:visited { color:rgb(162, 0, 37); }
195
+
196
+ .cyan .accent, .cyan .live-tile .accent,
197
+ .cyan .live-tile>div, .cyan .list-tile>div,
198
+ .cyan .live-tile>div.slide-back, .cyan .flip-list>li>div { background-color:rgb(27, 160, 225); }
199
+ .cyan .accentBorder,.cyan.accentBorder { border-color:rgb(27, 160, 225); }
200
+ .cyan .accentColor,.cyan.accentColor { color:rgb(27, 160, 225); }
201
+ .cyan .accentHover:hover,.cyan .accentHover a:hover,.cyan.accentHover a:hover { color:rgb(27, 160, 225); }
202
+ .cyan .accentVisited:visited,.cyan .accentVisited a:visited { color:rgb(27, 160, 225); }
203
+ .cyan.accentLink,.cyan.accentLink:link,.cyan.accentLink:hover,.cyan.accentLink:visited,
204
+ .cyan.accentVisited:visited,.cyan.accentHover:hover,.accentHover .cyan a:hover,
205
+ .cyan .accentLink,.cyan .accentLink:link,.cyan .accentLink:hover,.cyan .accentLink:visited { color:rgb(27, 160, 225); }
206
+
207
+ .emerald .accent, .emerald .live-tile .accent,
208
+ .emerald .live-tile>div, .emerald .list-tile>div,
209
+ .emerald .live-tile>div.slide-back, .emerald .flip-list>li>div { background-color:rgb(0, 138, 0); }
210
+ .emerald .accentBorder,.emerald.accentBorder { border-color:rgb(0, 138, 0); }
211
+ .emerald .accentColor,.emerald.accentColor { color:rgb(0, 138, 0); }
212
+ .emerald .accentHover:hover,.emerald .accentHover a:hover,.emerald.accentHover a:hover { color:rgb(0, 138, 0); }
213
+ .emerald .accentVisited:visited,.emerald .accentVisited a:visited { color:rgb(0, 138, 0); }
214
+ .emerald.accentLink,.emerald.accentLink:link,.emerald.accentLink:hover,.emerald.accentLink:visited,
215
+ .emerald.accentVisited:visited,.emerald.accentHover:hover,.accentHover .emerald a:hover,
216
+ .emerald .accentLink,.emerald .accentLink:link,.emerald .accentLink:hover,.emerald .accentLink:visited { color:rgb(0, 138, 0); }
217
+
218
+ .green .accent, .green.live-tile, .green .live-tile .accent,
219
+ .green .live-tile>div, .green .list-tile>div,
220
+ .green .live-tile>div.slide-back, .green .flip-list>li>div { background-color:rgb(51,153,51); }
221
+ .green .accentBorder,.green.accentBorder { border-color:rgb(51,153,51); }
222
+ .green .accentColor,.green.accentColor { color:rgb(51,153,51); }
223
+ .green .accentHover:hover,.green .accentHover a:hover,.green.accentHover a:hover { color:rgb(51,153,51); }
224
+ .green .accentVisited:visited,.green .accentVisited a:visited { color:rgb(51,153,51); }
225
+ .green.accentLink,.green.accentLink:link,.green.accentLink:hover,.green.accentLink:visited,
226
+ .green.accentVisited:visited,.green.accentHover:hover,.accentHover .green a:hover,
227
+ .green .accentLink,.green .accentLink:link,.green .accentLink:hover,.green .accentLink:visited { color:rgb(51,153,51); }
228
+
229
+ .indigo .accent, .indigo.live-tile, .indigo .live-tile .accent,
230
+ .indigo .live-tile>div, .indigo .list-tile>div,
231
+ .indigo .live-tile>div.slide-back, .indigo .flip-list>li>div { background-color:rgb(106,0,255); }
232
+ .indigo .accentBorder,.indigo.accentBorder { border-color:rgb(106,0,255); }
233
+ .indigo .accentColor,.indigo.accentColor { color:rgb(106,0,255); }
234
+ .indigo .accentHover:hover,.indigo .accentHover a:hover,.indigo.accentHover a:hover { color:rgb(106,0,255); }
235
+ .indigo .accentVisited:visited,.indigo .accentVisited a:visited { color:rgb(106,0,255); }
236
+ .indigo.accentLink,.indigo.accentLink:link,.indigo.accentLink:hover,.indigo.accentLink:visited,
237
+ .indigo.accentVisited:visited,.indigo.accentHover:hover,.accentHover .indigo a:hover,
238
+ .indigo .accentLink,.indigo .accentLink:link,.indigo .accentLink:hover,.indigo .accentLink:visited { color:rgb(106,0,255); }
239
+
240
+ .lime .accent, .lime .live-tile .accent,
241
+ .lime .live-tile>div, .lime .list-tile>div,
242
+ .lime .live-tile>div.slide-back, .lime .flip-list>li>div { background-color:rgb(162,193,57); }
243
+ .lime .accentBorder,.lime.accentBorder { border-color:rgb(162,193,57); }
244
+ .lime .accentColor,.lime.accentColor { color:rgb(162,193,57); }
245
+ .lime .accentHover:hover,.lime .accentHover a:hover,.lime.accentHover a:hover { color:rgb(162,193,57); }
246
+ .lime .accentVisited:visited,.lime .accentVisited a:visited { color:rgb(162,193,57); }
247
+ .lime.accentLink,.lime.accentLink:link,.lime.accentLink:hover,.lime.accentLink:visited,
248
+ .lime.accentVisited:visited,.lime.accentHover:hover,.accentHover .lime a:hover,
249
+ .lime .accentLink,.lime .accentLink:link,.lime .accentLink:hover,.lime .accentLink:visited { color:rgb(162,193,57); }
250
+
251
+ .magenta .accent, .magenta.live-tile, .magenta .live-tile .accent,
252
+ .magenta .live-tile>div, .magenta .list-tile>div,
253
+ .magenta .live-tile>div.slide-back, .magenta .flip-list>li>div { background-color:rgb(216,0,115); }
254
+ .magenta .accentBorder,.magenta.accentBorder { border-color:rgb(216,0,115); }
255
+ .magenta .accentColor,.magenta.accentColor { color:rgb(216,0,115); }
256
+ .magenta .accentHover:hover,.magenta .accentHover a:hover,.magenta.accentHover a:hover { color:rgb(216,0,115); }
257
+ .magenta .accentVisited:visited,.magenta .accentVisited a:visited { color:rgb(216,0,115); }
258
+ .magenta.accentLink,.magenta.accentLink:link,.magenta.accentLink:hover,.magenta.accentLink:visited,
259
+ .magenta.accentVisited:visited,.magenta.accentHover:hover,.accentHover .magenta a:hover,
260
+ .magenta .accentLink,.magenta .accentLink:link,.magenta .accentLink:hover,.magenta .accentLink:visited { color:rgb(216,0,115); }
261
+
262
+ .mango .accent, .mango.live-tile, .mango .live-tile .accent,
263
+ .mango .live-tile>div, .mango .list-tile>div,
264
+ .mango .live-tile>div.slide-back, .mango .flip-list>li>div { background-color:rgb(240,150,9); }
265
+ .mango .accentBorder,.mango.accentBorder { border-color:rgb(240,150,9); }
266
+ .mango .accentColor,.mango.accentColor { color:rgb(240,150,9); }
267
+ .mango .accentHover:hover,.mango .accentHover: a:hover,.mango.accentHover: a:hover { color:rgb(240,150,9); }
268
+ .mango .accentVisited:visited,.mango .accentVisited a:visited { color:rgb(240,150,9); }
269
+ .mango.accentLink,.mango.accentLink:link,.mango.accentLink:hover,.mango.accentLink:visited,
270
+ .mango.accentVisited:visited,.mango.accentHover:hover,.accentHover .mango a:hover,
271
+ .mango .accentLink,.mango .accentLink:link,.mango .accentLink:hover,.mango .accentLink:visited { color:rgb(240,150,9); }
272
+
273
+ .mauve .accent, .mauve.live-tile, .mauve .live-tile .accent,
274
+ .mauve .live-tile>div, .mauve .list-tile>div,
275
+ .mauve .live-tile>div.slide-back, .mauve .flip-list>li>div { background-color:rgb(118,95,137); }
276
+ .mauve .accentBorder,.mauve.accentBorder { border-color:rgb(118,95,137); }
277
+ .mauve .accentColor,.mauve.accentColor { color:rgb(118,95,137); }
278
+ .mauve .accentHover:hover,.mauve .accentHover: a:hover,.mauve.accentHover: a:hover { color:rgb(118,95,137); }
279
+ .mauve .accentVisited:visited,.mauve .accentVisited a:visited { color:rgb(118,95,137); }
280
+ .mauve.accentLink,.mauve.accentLink:link,.mauve.accentLink:hover,.mauve.accentLink:visited,
281
+ .mauve.accentVisited:visited,.mauve.accentHover:hover,.accentHover .mauve a:hover,
282
+ .mauve .accentLink,.mauve .accentLink:link,.mauve .accentLink:hover,.mauve .accentLink:visited { color:rgb(118,95,137); }
283
+
284
+ .olive .accent, .olive.live-tile, .olive .live-tile .accent,
285
+ .olive .live-tile>div, .olive .list-tile>div,
286
+ .olive .live-tile>div.slide-back, .olive .flip-list>li>div { background-color:rgb(109,135,100); }
287
+ .olive .accentBorder,.olive.accentBorder { border-color:rgb(109,135,100); }
288
+ .olive .accentColor,.olive.accentColor { color:rgb(109,135,100); }
289
+ .olive .accentHover:hover,.olive .accentHover: a:hover,.olive.accentHover: a:hover { color:rgb(109,135,100); }
290
+ .olive .accentVisited:visited,.olive .accentVisited a:visited { color:rgb(109,135,100); }
291
+ .olive.accentLink,.olive.accentLink:link,.olive.accentLink:hover,.olive.accentLink:visited,
292
+ .olive.accentVisited:visited,.olive.accentHover:hover,.accentHover .olive a:hover,
293
+ .olive .accentLink,.olive .accentLink:link,.olive .accentLink:hover,.olive .accentLink:visited { color:rgb(109,135,100); }
294
+
295
+ .orange .accent, .orange.live-tile, .orange .live-tile .accent,
296
+ .orange .live-tile>div, .orange .list-tile>div,
297
+ .orange .live-tile>div.slide-back, .orange .flip-list>li>div { background-color:rgb(250,104,1); }
298
+ .orange .accentBorder,.orange.accentBorder { border-color:rgb(250,104,1); }
299
+ .orange .accentColor,.orange.accentColor { color:rgb(250,104,1); }
300
+ .orange .accentHover:hover,.orange .accentHover: a:hover,.orange.accentHover: a:hover { color:rgb(250,104,1); }
301
+ .orange .accentVisited:visited,.orange .accentVisited a:visited { color:rgb(250,104,1); }
302
+ .orange.accentLink,.orange.accentLink:link,.orange.accentLink:hover,.orange.accentLink:visited,
303
+ .orange.accentVisited:visited,.orange.accentHover:hover,.accentHover .orange a:hover,
304
+ .orange .accentLink,.orange .accentLink:link,.orange .accentLink:hover,.orange .accentLink:visited { color:rgb(250,104,1); }
305
+
306
+ .pink .accent, .pink .live-tile .accent,
307
+ .pink .live-tile>div, .pink .list-tile>div,
308
+ .pink .live-tile>div.slide-back, .pink .flip-list>li>div { background-color:rgb(230,113,184); }
309
+ .pink .accentBorder,.pink.accentBorder { border-color:rgb(230,113,184); }
310
+ .pink .accentColor,.pink.accentColor { color:rgb(230,113,184); }
311
+ .pink .accentHover:hover,.pink .accentHover a:hover,.pink.accentHover a:hover { color:rgb(230,113,184); }
312
+ .pink .accentVisited:visited,.pink .accentVisited a:visited { color:rgb(230,113,184); }
313
+ .pink.accentLink,.pink.accentLink:link,.pink.accentLink:hover,.pink.accentLink:visited,
314
+ .pink.accentVisited:visited,.pink.accentHover:hover,.accentHover .pink a:hover,
315
+ .pink .accentLink,.pink .accentLink:link,.pink .accentLink:hover,.pink .accentLink:visited { color:rgb(230,113,184); }
316
+
317
+ .purple .accent, .purple .live-tile .accent,.violet .accent, .violet .live-tile .accent,
318
+ .purple .live-tile>div, .purple .list-tile>div, .violet .live-tile>div, .violet .list-tile>div,
319
+ .purple .live-tile>div.slide-back, .purple .flip-list>li>div, .violet .live-tile>div.slide-back, .violet .flip-list>li>div
320
+ { background-color:rgb(162,0,255); }
321
+ .purple .accentBorder,.purple.accentBorder, .violet .accentBorder,.violet.accentBorder {border-color:rgb(162,0,255); }
322
+ .purple .accentColor,.purple.accentColor, .violet .accentColor,.violet.accentColor { color:rgb(162,0,255); }
323
+ .purple .accentHover:hover,.purple .accentHover a:hover,.purple.accentHover a:hover,
324
+ .violet .accentHover:hover,.violet .accentHover a:hover,.violet.accentHover a:hover { color:rgb(162,0,255); }
325
+ .purple .accentVisited:visited,.purple .accentVisited a:visited,
326
+ .violet .accentVisited:visited,.violet .accentVisited a:visited { color:rgb(162,0,255); }
327
+ .purple.accentLink,.purple.accentLink:link,.purple.accentLink:hover,.purple.accentLink:visited,
328
+ .violet.accentLink,.violet.accentLink:link,.violet.accentLink:hover,.violet.accentLink:visited,
329
+ .purple.accentVisited:visited,.purple.accentHover:hover,.violet.accentVisited:visited,.violet.accentHover:hover,
330
+ .purple .accentLink,.purple .accentLink:link,.purple .accentLink:hover,.purple .accentLink:visited,.accentHover .purple a:hover,
331
+ .violet .accentLink,.violet .accentLink:link,.violet .accentLink:hover,.violet .accentLink:visited,.accentHover .violet a:hover { color:rgb(162,0,255); }
332
+
333
+ .red .accent, .red .live-tile .accent,
334
+ .red .live-tile>div, .red .list-tile>div,
335
+ .red .live-tile>div.slide-back, .red .flip-list>li>div { background-color:rgb(229,20,0); }
336
+ .red .accentBorder,.red.accentBorder { border-color:rgb(229,20,0); }
337
+ .red .accentColor,.red.accentColor { color:rgb(229,20,0); }
338
+ .red .accentHover:hover,.red .accentHover a:hover,.red.accentHover a:hover { color:rgb(229,20,0); }
339
+ .red .accentVisited:visited,.red .accentVisited a:visited { color:rgb(229,20,0); }
340
+ .red.accentLink,.red.accentLink:link,.red.accentLink:hover,.red.accentLink:visited,
341
+ .red.accentVisited:visited,.red.accentHover:hover,
342
+ .red .accentLink,.red .accentLink:link,.red .accentLink:hover,.red .accentLink:visited,.accentHover .red a:hover { color:rgb(229,20,0); }
343
+
344
+ .sienna .accent, .sienna .live-tile .accent,
345
+ .sienna .live-tile>div, .sienna .list-tile>div,
346
+ .sienna .live-tile>div.slide-back, .sienna .flip-list>li>div { background-color:rgb(123,58,62); }
347
+ .sienna .accentBorder,.sienna.accentBorder { border-color:rgb(123,58,62); }
348
+ .sienna .accentColor,.sienna.accentColor { color:rgb(123,58,62); }
349
+ .sienna .accentHover:hover,.sienna .accentHover a:hover,.sienna.accentHover a:hover { color:rgb(123,58,62); }
350
+ .sienna .accentVisited:visited,.sienna .accentVisited a:visited { color:rgb(123,58,62); }
351
+ .sienna.accentLink,.sienna.accentLink:link,.sienna.accentLink:hover,.sienna.accentLink:visited,
352
+ .sienna.accentVisited:visited,.sienna.accentHover:hover,.accentHover .sienna a:hover,
353
+ .sienna .accentLink,.sienna .accentLink:link,.sienna .accentLink:hover,.sienna .accentLink:visited { color:rgb(123,58,62); }
354
+
355
+ .steel .accent, .steel .live-tile .accent,
356
+ .steel .live-tile>div, .steel .list-tile>div,
357
+ .steel .live-tile>div.slide-back, .steel .flip-list>li>div { background-color:rgb(101,118,136); }
358
+ .steel .accentBorder,.steel.accentBorder { border-color:rgb(101,118,136); }
359
+ .steel .accentColor,.steel.accentColor { color:rgb(101,118,136); }
360
+ .steel .accentHover:hover,.steel .accentHover a:hover,.steel.accentHover a:hover { color:rgb(101,118,136); }
361
+ .steel .accentVisited:visited,.steel .accentVisited a:visited { color:rgb(101,118,136); }
362
+ .steel.accentLink,.steel.accentLink:link,.steel.accentLink:hover,.steel.accentLink:visited,
363
+ .steel.accentVisited:visited,.steel.accentHover:hover,.accentHover .steel a:hover,
364
+ .steel .accentLink,.steel .accentLink:link,.steel .accentLink:hover,.steel .accentLink:visited { color:rgb(101,118,136); }
365
+
366
+ .teal .accent, .teal .live-tile .accent,
367
+ .teal .live-tile>div, .teal .list-tile>div,
368
+ .teal .live-tile>div.slide-back, .teal .flip-list>li>div { background-color:rgb(0,171,169); }
369
+ .teal .accentBorder,.teal.accentBorder { border-color:rgb(0,171,169); }
370
+ .teal .accentColor,.teal.accentColor { color:rgb(0,171,169); }
371
+ .teal .accentHover:hover,.teal .accentHover a:hover,.teal.accentHover a:hover { color:rgb(0,171,169); }
372
+ .teal .accentVisited:visited,.teal .accentVisited a:visited { color:rgb(0,171,169); }
373
+ .teal.accentLink,.teal.accentLink:link,.teal.accentLink:hover,.teal.accentLink:visited,
374
+ .teal.accentVisited:visited,.teal.accentHover:hover,.accentHover .teal a:hover,
375
+ .teal .accentLink,.teal .accentLink:link,.teal .accentLink:hover,.teal .accentLink:visited { color:rgb(0,171,169); }
376
+
377
+ .yellow .accent, .yellow .live-tile .accent,
378
+ .yellow .live-tile>div, .yellow .list-tile>div,
379
+ .yellow .live-tile>div.slide-back, .yellow .flip-list>li>div { background-color:rgb(216,193,1); }
380
+ .yellow .accentBorder,.yellow.accentBorder { border-color:rgb(216,193,1); }
381
+ .yellow .accentColor,.yellow.accentColor { color:rgb(216,193,1); }
382
+ .yellow .accentHover:hover,.yellow .accentHover a:hover,.yellow.accentHover a:hover { color:rgb(216,193,1); }
383
+ .yellow .accentVisited:visited,.yellow .accentVisited a:visited { color:rgb(216,193,1); }
384
+ .yellow.accentLink,.yellow.accentLink:link,.yellow.accentLink:hover,.yellow.accentLink:visited,
385
+ .yellow.accentVisited:visited,.yellow.accentHover:hover,.accentHover .yellow a:hover,
386
+ .yellow .accentLink,.yellow .accentLink:link,.yellow .accentLink:hover,.yellow .accentLink:visited { color:rgb(216,193,1); }
387
+
388
+ /* local theme overrides */
389
+ .amber.live-tile, .amber.live-tile .accent,.amber.accent,
390
+ .amber.live-tile>div, .amber.list-tile>div,
391
+ .amber.live-tile>div.slide-back, .amber.list-tile .flip-list>li>div { background-color:rgb(241, 163, 11); }
392
+ .blue.live-tile, .blue.live-tile .accent,.blue.accent,
393
+ .blue.live-tile>div, .blue.list-tile>div,
394
+ .blue.live-tile>div.slide-back, .blue.list-tile .flip-list>li>div { background-color:rgb(27,161,226); }
395
+ .brown.live-tile, .brown.live-tile .accent,.brown.accent,
396
+ .brown.live-tile>div, .brown.list-tile>div,
397
+ .brown.live-tile>div.slide-back, .brown.list-tile .flip-list>li>div { background-color:rgb(160,80,0); }
398
+ .cobalt.live-tile, .cobalt.live-tile .accent,.cobalt.accent,
399
+ .cobalt.live-tile>div, .cobalt.list-tile>div,
400
+ .cobalt.live-tile>div.slide-back, .cobalt.list-tile .flip-list>li>div { background-color:rgb(0, 80, 239); }
401
+ .crimson.live-tile, .crimson.live-tile .accent,.crimson.accent,
402
+ .crimson.live-tile>div, .crimson.list-tile>div,
403
+ .crimson.live-tile>div.slide-back, .crimson.list-tile .flip-list>li>div { background-color:rgb(162, 0, 37); }
404
+ .cyan.live-tile, .cyan.live-tile .accent,.cyan.accent,
405
+ .cyan.live-tile>div, .cyan.list-tile>div,
406
+ .cyan.live-tile>div.slide-back, .cyan.list-tile .flip-list>li>div { background-color:rgb(27, 160, 225); }
407
+ .emerald.live-tile, .emerald.live-tile .accent,.emerald.accent,
408
+ .emerald.live-tile>div, .emerald.list-tile>div,
409
+ .emerald.live-tile>div.slide-back, .emerald.list-tile .flip-list>li>div { background-color:rgb(0, 138, 0); }
410
+ .green.live-tile, .green.live-tile .accent,.green.accent,
411
+ .green.live-tile>div, .green.list-tile>div,
412
+ .green.live-tile>div.slide-back, .green.list-tile .flip-list>li>div { background-color:rgb(51,153,51); }
413
+ .indigo.live-tile, .indigo.live-tile .accent,.indigo.accent,
414
+ .indigo.live-tile>div, .indigo.list-tile>div,
415
+ .indigo.live-tile>div.slide-back, .indigo.list-tile .flip-list>li>div { background-color:rgb(106,0,255); }
416
+ .lime.live-tile, .lime.live-tile .accent,.lime.accent,
417
+ .lime.live-tile>div, .lime.list-tile>div,
418
+ .lime.live-tile>div.slide-back, .lime.list-tile .flip-list>li>div { background-color:rgb(162,193,57); }
419
+ .magenta.live-tile, .magenta.live-tile .accent,.magenta.accent,
420
+ .magenta.live-tile>div, .magenta.list-tile>div,
421
+ .magenta.live-tile>div.slide-back, .magenta.list-tile .flip-list>li>div { background-color:rgb(216,0,115); }
422
+ .mango.live-tile, .mango.live-tile .accent,.mango.accent,
423
+ .mango.live-tile>div, .mango.list-tile>div,
424
+ .mango.live-tile>div.slide-back, .mango.list-tile .flip-list>li>div { background-color:rgb(240,150,9); }
425
+ .mauve.live-tile, .mauve.live-tile .accent,.mauve.accent,
426
+ .mauve.live-tile>div, .mauve.list-tile>div,
427
+ .mauve.live-tile>div.slide-back, .mauve.list-tile .flip-list>li>div { background-color:rgb(118,95,137); }
428
+ .olive.live-tile, .olive.live-tile .accent,.olive.accent,
429
+ .olive.live-tile>div, .olive.list-tile>div,
430
+ .olive.live-tile>div.slide-back, .olive.list-tile .flip-list>li>div { background-color:rgb(109,135,100); }
431
+ .orange.live-tile, .orange.live-tile .accent,.orange.accent,
432
+ .orange.live-tile>div, .orange.list-tile>div,
433
+ .orange.live-tile>div.slide-back, .orange.list-tile .flip-list>li>div { background-color:rgb(250,104,1); }
434
+ .pink.live-tile, .pink.live-tile .accent,.pink.accent,
435
+ .pink.live-tile>div, .pink.list-tile>div,
436
+ .pink.live-tile>div.slide-back, .pink.list-tile .flip-list>li>div { background-color:rgb(230,113,184); }
437
+ .purple.live-tile, .purple.live-tile .accent,.purple.accent,
438
+ .violet.live-tile, .violet.live-tile .accent,.violet.accent,
439
+ .purple.live-tile>div, .purple.list-tile>div,.violet.live-tile>div, .violet.list-tile>div,
440
+ .purple.live-tile>div.slide-back, .purple.list-tile .flip-list>li>div,
441
+ .violet.live-tile>div.slide-back, .violet.list-tile .flip-list>li>div { background-color:rgb(162,0,255); }
442
+ .red.live-tile, .red.live-tile .accent,.red.accent,
443
+ .red.live-tile>div, .red.list-tile>div,
444
+ .red.live-tile>div.slide-back, .red.list-tile .flip-list>li>div { background-color:rgb(229,20,0); }
445
+ .sienna.live-tile, .sienna.live-tile .accent,.sienna.accent,
446
+ .sienna.live-tile>div, .sienna.list-tile>div,
447
+ .sienna.live-tile>div.slide-back, .sienna.list-tile .flip-list>li>div { background-color:rgb(123,58,62); }
448
+ .steel.live-tile, .steel.live-tile .accent,.steel.accent,
449
+ .steel.live-tile>div, .steel.list-tile>div,
450
+ .steel.live-tile>div.slide-back, .steel.list-tile .flip-list>li>div { background-color:rgb(101,118,136); }
451
+ .teal.live-tile, .teal.live-tile .accent, .teal.accent,
452
+ .teal.live-tile>div, .teal.list-tile>div,
453
+ .teal.live-tile>div.slide-back, .teal.list-tile .flip-list>li>div { background-color:rgb(0,171,169); }
454
+ .yellow.live-tile, .yellow.live-tile .accent, .yellow.accent,
455
+ .yellow.live-tile>div, .yellow.list-tile>div,
456
+ .yellow.live-tile>div.slide-back, .yellow.list-tile .flip-list>li>div { background-color:rgb(216,193,1); }.live-tile.flip { background:none;}
457
+
458
+ /* flip-list tile grid sprite styles */
459
+ .nineTiles
460
+ {
461
+ /* set a default image here
462
+ background-image:url('/content/images/yourimage.jpg');
463
+ */
464
+ }
465
+ .flip-list.nineTiles>li,.flip-list.nineTiles>li>div,.flip-list.nineTiles>li>div>img,.flip-list.nineTiles>li>div>a
466
+ {
467
+ height:60px; width:60px; border:none; padding:0; margin:0;
468
+ }
469
+ .nineTiles1 { background-position: 0px 0px; }
470
+ .nineTiles2 { background-position: -60px 0px; }
471
+ .nineTiles3 { background-position: -120px 0px; }
472
+ .nineTiles4 { background-position: 0px -60px; }
473
+ .nineTiles5 { background-position: -60px -60px; }
474
+ .nineTiles6 { background-position: -120px -60px; }
475
+ .nineTiles7 { background-position: 0px -120px; }
476
+ .nineTiles8 { background-position: -60px -120px; }
477
+ .nineTiles9 { background-position: -120px -120px; }
478
+
479
+ .fourTiles {}
480
+ .flip-list.fourTiles>li,.flip-list.fourTiles>li>div,.flip-list.fourTiles>li>div>img,.flip-list.fourTiles>li>div>a
481
+ {
482
+ border:none; padding:0; margin:0;
483
+ height:90px;
484
+ width:90px;
485
+ }
486
+ .fourTiles1 { background-position: 0px 0px; }
487
+ .fourTiles2 { background-position: -90px 0px; }
488
+ .fourTiles3 { background-position: 0px -90px; }
489
+ .fourTiles4 { background-position: -90px -90px; }
490
+
491
+
492
+
493
+ /* application-bar styles */
494
+ .appbar
495
+ {
496
+ background-color:#212021;
497
+ bottom:0px;
498
+ color: #fff;
499
+ font-size: .9em;
500
+ height:60px;
501
+ left:0px;
502
+ line-height: normal;
503
+ margin:0;
504
+ overflow:hidden;
505
+ padding: 10px 0;
506
+ position:fixed;
507
+ text-align: center;
508
+ width:100%;
509
+ z-index:100;
510
+ }
511
+ .light .appbar { background-color:#dfdfdf; color:#000; }
512
+ .dark .appbar { background-color:#212021; }
513
+ .appbar .clear { clear:both; }
514
+
515
+ .appbar-buttons {
516
+ padding: 0 0 2px;
517
+ position: relative;
518
+ margin: 0 auto;
519
+ text-align: right;
520
+ width:252px;
521
+ }
522
+
523
+ .appbar-buttons li {
524
+ display: inline;
525
+ padding: 0 10px;
526
+ float:left;
527
+ list-style: none;
528
+ }
529
+
530
+ .appbar-buttons li a {
531
+ font-weight: bold;
532
+ background-color: transparent;
533
+ color: #fff;
534
+ }
535
+
536
+ .light .appbar-buttons li a { color:#000; }
537
+ .appbar-buttons a>img { background-image:url('images/metroIcons.jpg'); background-repeat:no-repeat; height:64px; width:64px; border:none;}
538
+ .light .appbar-buttons a>img { background-image:url('images/metroIcons_light.jpg'); }
539
+ .appbar-buttons a.home>img { background-position:-104px -12px; }
540
+ .appbar-buttons a.about>img { background-position:-198px -99px; }
541
+ .appbar-buttons a.twitter>img { background-position:-198px -12px; }
542
+ .appbar-buttons li a:active, ul#menu li.selected a, .appbar-buttons li a:hover { text-decoration: none; }
543
+
544
+ .appbar a.etc, .appbar a:hover.etc,.appbar a:visited.etc
545
+ {
546
+ color:#fff;
547
+ cursor:pointer;
548
+ display:block;
549
+ font-size:32px;
550
+ height:60px;
551
+ position:absolute;
552
+ right:0px;
553
+ text-decoration:none;
554
+ top:0px;
555
+ width:60px;
556
+ }
557
+ .light .appbar a.etc, .light .appbar a:hover.etc,
558
+ .light .appbar a:visited.etc { color:#000; }
559
+ .appbar .charm-title { font-size:10px; display:block; text-align:center; }
560
+ .appbar .theme-options { display:block; width:644px; margin:0px auto; }
561
+ .appbar .theme-options>li { margin:7px; display:inline; float:left; line-height:24px; height:24px; width:24px; }
562
+ .appbar .theme-options>li>a, .appbar .theme-options>li>a:hover,
563
+ .appbar .theme-options>li>a:visited { display:block; padding:0px; text-decoration:none; height:24px; width:24px; }
564
+ .appbar .base-theme-options { display:block; width:130px; margin:0px auto; }
565
+ .appbar .base-theme-options>li { margin:7px; display:inline; float:left; line-height:24px; height:24px; width:24px; }
566
+ .appbar .base-theme-options>li>a, .appbar .base-theme-options>li>a:hover,
567
+ .appbar .base-theme-options>li>a:visited { display:block; padding:0px; text-decoration:none; height:24px; width:24px; }
568
+ .appbar .base-theme-options>li>a.dark.accent { background-color:#000; }
569
+ /* Media queries */
570
+ @media screen and (max-width: 1025px)
571
+ {
572
+ .appbar .theme-options { width:650px; } /* ensures alignment and no wrapping on ipad */
573
+ .appbar .base-theme-options { width:140px; } /* ensures alignment and no wrapping on ipad */
574
+ }
575
+ @media screen and (max-width: 801px)
576
+ {
577
+ .appbar .theme-options { width:360px; }
578
+ }
579
+
580
+ /* ------ Hardware Accelerated CSS3 Animations --------*/
581
+ /* flip */
582
+ .flip-list>li>.ha.flip-back, .flip-list>li>.ha.flip-back img
583
+ {
584
+ /* override the values set for margin and ensure the back tile is visible */
585
+ margin:0px !important;
586
+ height:100%;
587
+ }
588
+
589
+ .live-tile>.ha.flip-front, .flip-list>li>.ha.flip-front
590
+ {
591
+ position:absolute;
592
+ /* time to start repeating ourselves
593
+ note: we are not setting a duration or delay here,
594
+ that is added in script */
595
+ -webkit-animation-name:flipfront180;
596
+ -webkit-animation-play-state:paused;
597
+ -webkit-animation-fill-mode:forwards;
598
+ -webkit-animation-iteration-count: 1;
599
+ -webkit-animation-timing-function: linear;
600
+ -moz-animation-name:flipfront180;
601
+ -moz-animation-play-state:paused;
602
+ -moz-animation-fill-mode:forwards;
603
+ -moz-animation-iteration-count: 1;
604
+ -moz-animation-timing-function: linear;
605
+ -ms-animation-name:flipfront180;
606
+ -ms-animation-play-state:paused;
607
+ -ms-animation-fill-mode:forwards;
608
+ -ms-animation-iteration-count: 1;
609
+ -ms-animation-timing-function: linear;
610
+ -o-animation-name:flipfront180;
611
+ -o-animation-play-state:paused;
612
+ -o-animation-fill-mode:forwards;
613
+ -o-animation-iteration-count: 1;
614
+ -o-animation-timing-function: linear;
615
+ animation-name:flipfront180;
616
+ animation-play-state:paused;
617
+ animation-fill-mode:forwards;
618
+ animation-iteration-count: 1;
619
+ animation-timing-function: linear;
620
+ }
621
+
622
+ .live-tile>.ha.flip-back, .flip-list>li>.ha.flip-back
623
+ {
624
+ position:absolute;
625
+ -webkit-animation-name:flipback180;
626
+ -webkit-animation-play-state:paused;
627
+ -webkit-animation-fill-mode:forwards;
628
+ -webkit-animation-iteration-count: 1;
629
+ -webkit-animation-timing-function: linear;
630
+ -moz-animation-name:flipback180;
631
+ -moz-animation-play-state:paused;
632
+ -moz-animation-fill-mode:forwards;
633
+ -moz-animation-iteration-count: 1;
634
+ -moz-animation-timing-function: linear;
635
+ -ms-animation-name:flipback180;
636
+ -ms-animation-play-state:paused;
637
+ -ms-animation-fill-mode:forwards;
638
+ -ms-animation-iteration-count: 1;
639
+ -ms-animation-timing-function: linear;
640
+ -o-animation-name:flipback180;
641
+ -o-animation-play-state:paused;
642
+ -o-animation-fill-mode:forwards;
643
+ -o-animation-iteration-count: 1;
644
+ -o-animation-timing-function: linear;
645
+ animation-name:flipback180;
646
+ animation-play-state:paused;
647
+ animation-fill-mode:forwards;
648
+ animation-iteration-count: 1;
649
+ animation-timing-function: linear;
650
+ }
651
+
652
+ /* Flip Vertical */
653
+ @-keyframes flipfront180 {
654
+ from { z-index:20; transform: rotateX(0deg); }
655
+ 49% { z-index:20; }
656
+ 50% { z-index:10; }
657
+ to { z-index:10; transform: rotateX(-180deg); }
658
+ }
659
+ @-webkit-keyframes flipfront180 {
660
+ from { z-index:20; -webkit-transform: rotateX(0deg); }
661
+ 49% { z-index:20; }
662
+ 50% { z-index:10; }
663
+ to { z-index:10; -webkit-transform: rotateX(-180deg); }
664
+ }
665
+ @-moz-keyframes flipfront180 {
666
+ 0% { z-index:20; -moz-transform: rotateX(0deg); }
667
+ 49% { z-index:20; }
668
+ 50% { z-index:10; }
669
+ 100% { z-index:10; -moz-transform: rotateX(-180deg); }
670
+ }
671
+ @-ms-keyframes flipfront180 {
672
+ from { z-index:20; -ms-transform: rotateX(0deg); }
673
+ 49% { z-index:20; }
674
+ 50% { z-index:10; }
675
+ to { z-index:10; -ms-transform: rotateX(-180deg); }
676
+ }
677
+ @-o-keyframes flipfront180 {
678
+ from { z-index:20; -o-transform: rotateX(0deg); }
679
+ 49% { z-index:20; }
680
+ 50% { z-index:10; }
681
+ to { z-index:10; -o-transform: rotateX(-180deg); }
682
+ }
683
+ @-keyframes flipback180 {
684
+ 0% { z-index:10; transform: rotateX(180deg); }
685
+ 49% { z-index:10; }
686
+ 50% { z-index:20; }
687
+ 100% { z-index:20; transform: rotateX(0deg); }
688
+ }
689
+ @-webkit-keyframes flipback180 {
690
+ from { z-index:10; -webkit-transform: rotateX(180deg); }
691
+ 49% { z-index:10; }
692
+ 50% { z-index:20; }
693
+ to { z-index:20; -webkit-transform: rotateX(0deg); }
694
+ }
695
+ @-moz-keyframes flipback180 {
696
+ 0% { z-index:10; -moz-transform: rotateX(180deg); }
697
+ 49% { z-index:10; }
698
+ 50% { z-index:20; }
699
+ 100% { z-index:20; -moz-transform: rotateX(0deg); }
700
+ }
701
+ @-ms-keyframes flipback180 {
702
+ from { z-index:10; -ms-transform: rotateX(180deg); }
703
+ 49% { z-index:10; }
704
+ 50% { z-index:20; }
705
+ to { z-index:20; -ms-transform: rotateX(0deg); }
706
+ }
707
+ @-o-keyframes flipback180 {
708
+ from { z-index:10; -o-transform: rotateX(180deg); }
709
+ 49% { z-index:10; }
710
+ 50% { z-index:20; }
711
+ to { z-index:20; -o-transform: rotateX(0deg); }
712
+ }
713
+
714
+ /* Flip Horizontal */
715
+ @-keyframes flipfrontY180 {
716
+ 0% { z-index:20; transform: rotateY(0deg); }
717
+ 49% { z-index:20; }
718
+ 50% { z-index:10; }
719
+ 100% { z-index:10; transform: rotateY(-180deg); }
720
+ }
721
+ @-webkit-keyframes flipfrontY180 {
722
+ from { z-index:20; -webkit-transform: rotateY(0deg); }
723
+ 49% { z-index:20; }
724
+ 50% { z-index:10; }
725
+ to { z-index:10; -webkit-transform: rotateY(-180deg); }
726
+ }
727
+ @-moz-keyframes flipfrontY180 {
728
+ 0% { z-index:20; -moz-transform: rotateY(0deg); }
729
+ 49% { z-index:20; }
730
+ 50% { z-index:10; }
731
+ 100% { z-index:10; -moz-transform: rotateY(-180deg); }
732
+ }
733
+ @-ms-keyframes flipfrontY180 {
734
+ from { z-index:20; -ms-transform: rotateY(0deg); }
735
+ 49% { z-index:20; }
736
+ 50% { z-index:10; }
737
+ to { z-index:10; -ms-transform: rotateY(-180deg); }
738
+ }
739
+ @-o-keyframes flipfrontY180 {
740
+ from { z-index:20; -o-transform: rotateY(0deg); }
741
+ 49% { z-index:20; }
742
+ 50% { z-index:10; }
743
+ to { z-index:10; -o-transform: rotateY(-180deg); }
744
+ }
745
+ @-keyframes flipbackY180 {
746
+ 0% { z-index:10; transform: rotateY(180deg); }
747
+ 49% { z-index:10; }
748
+ 50% { z-index:20; }
749
+ 100% { z-index:20; transform: rotateY(0deg); }
750
+ }
751
+ @-webkit-keyframes flipbackY180 {
752
+ from { z-index:10; -webkit-transform: rotateY(180deg); }
753
+ 49% { z-index:10; }
754
+ 50% { z-index:20; }
755
+ to { z-index:20; -webkit-transform: rotateY(0deg); }
756
+ }
757
+ @-moz-keyframes flipbackY180 {
758
+ 0% { z-index:10; -moz-transform: rotateY(180deg); }
759
+ 49% { z-index:10; }
760
+ 50% { z-index:20; }
761
+ 100% { z-index:20; -moz-transform: rotateY(0deg); }
762
+ }
763
+ @-ms-keyframes flipbackY180 {
764
+ from { z-index:10; -ms-transform: rotateY(180deg); }
765
+ 49% { z-index:10; }
766
+ 50% { z-index:20; }
767
+ to { z-index:20; -ms-transform: rotateY(0deg); }
768
+ }
769
+ @-o-keyframes flipbackY180 {
770
+ from { z-index:10; -o-transform: rotateY(180deg); }
771
+ 49% { z-index:10; }
772
+ 50% { z-index:20; }
773
+ to { z-index:20; -o-transform: rotateY(0deg); }
774
+ }
skin/frontend/default/default/metro/MetroJs.js ADDED
@@ -0,0 +1,1272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Metro JS for jQuery
3
+ * http://drewgreenwell.com/
4
+ * For details and usage info see: http://drewgreenwell.com/projects/metrojs
5
+
6
+ Copyright (C) 2012, Drew Greenwell
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
9
+ to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
+ and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
16
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
+ */
18
+ (function () {
19
+ jQuery.fn.metrojs = {};
20
+
21
+
22
+ /* Preload Images */
23
+ // Usage: jQuery(['img1.jpg','img2.jpg']).metrojs.preloadImages(function(){ ... });
24
+ // Callback function gets called after all images are preloaded
25
+ jQuery.fn.metrojs.preloadImages = function (callback) {
26
+ var checklist = jQuery(this).toArray();
27
+ var $img = jQuery("<img style='display:none;'>").appendTo("body");
28
+ jQuery(this).each(function () {
29
+ $img.attr({ src: this }).load(function () {
30
+ var src = jQuery(this).attr('src');
31
+ for (var i = 0; i < checklist.length; i++) {
32
+ if (checklist[i] == element) { checklist.splice(i, 1); }
33
+ }
34
+ if (checklist.length == 0) { callback(); }
35
+ });
36
+ });
37
+ $img.remove();
38
+ }; jQuery.fn.liveTile = function (method) {
39
+ if (pubMethods[method]) {
40
+ var args = [];
41
+ for (var i = 1; i <= arguments.length; i++) {
42
+ args[i - 1] = arguments[i];
43
+ }
44
+ return pubMethods[method].apply(this, args);
45
+ } else if (typeof method === 'object' || !method) {
46
+ return pubMethods.init.apply(this, arguments);
47
+ } else {
48
+ jQuery.error('Method ' + method + ' does not exist on jQuery.liveTile');
49
+ }
50
+ };
51
+ jQuery.fn.liveTile.State = {
52
+ RUNNING: "running",
53
+ STOPPED: "stopped"
54
+ };
55
+ jQuery.fn.liveTile.defaults = {
56
+ mode: 'slide', // 'slide', 'flip', 'flip-list'
57
+ speed: 500, // how fast should animations be performed, in milliseconds
58
+ initDelay: -1, // how long to wait before the initial animation
59
+ delay: 5000, // how long to wait between animations
60
+ stops: "100%", // how much of the back tile should 'slide' reveal before starting a delay
61
+ stack: false, // should tiles in slide mode appear stacked (e.g Me tile)
62
+ direction: 'vertical', // which direction should animations be performed(horizontal | vertical)
63
+ tileCssSelector: '>div,>li', // The selector used by slide, flip, and flip-list mode to choose the front and back containers
64
+ listTileCssSelector: '>div,>p,>img,>a', // The selector used by flip-tile mode to choose the front and back containers.2
65
+ imageCssSelector: '>img,>a>img', // the selector used to choose a an image to apply a src or background to
66
+ ignoreDataAttributes: false, // should data attributes be ignored
67
+ pauseOnHover: false, // should tile animations be paused on hover in and restarted on hover out
68
+ repeatCount: -1, // number of times to repeat the animation
69
+ animationComplete: function (tileData, $front, $back) {
70
+ },
71
+ preloadImages: false, // should the images arrays be preloaded
72
+ fadeSlideSwap: false, // fade any image swaps on slides (e.g. mode: 'slide', stops:'50%', frontImages: ['img1.jpg', 'img2.jpg'])
73
+ appendBack: true, // appends the .last tile if one doesnt exist (slide and flip only)
74
+ triggerDelay: function (idx) { // used by flip-list to decide how random the tile flipping should be
75
+ return Math.random() * 3000;
76
+ },
77
+ alwaysTrigger: false, // used by flip-list to decide if all tiles are triggered every time
78
+ frontImages: null, // a list of images to use for the front
79
+ frontIsRandom: true, // should images be chosen at random or in order
80
+ frontIsBackgroundImage: false, // set the src attribute or css background-image property
81
+ frontIsInGrid: false, // only chooses one item for each iteration in flip-list
82
+ backImages: null, // a list of images to use for the back
83
+ backIsRandom: true, // should images be chosen at random or in order
84
+ backIsBackgroundImage: false, // set the src attribute or css background-image property
85
+ backIsInInGrid: false, // only chooses one item for each iteration in flip-list
86
+ flipListOnHover: false, // should items in flip-list flip and stop when hovered
87
+ useModernizr: (typeof (window.Modernizr) != "undefined"), // checks to see if modernizer is already in use
88
+ useHardwareAccel: true, // should css animations, transitions and transforms be used when available
89
+ $front: null, // the jQuery element to use as the front face of the tile; this will bypass tileCssSelector
90
+ $back: null // the jQuery element to use as the back face of the tile; this will bypass tileCssSelector
91
+ };
92
+
93
+ var privMethods = {
94
+ //a shuffle method to provide more randomness than sort
95
+ //credit: http://javascript.about.com/library/blshuffle.htm
96
+ //*avoiding prototype for sharepoint compatability
97
+ shuffleArray: function (array) {
98
+ var s = [];
99
+ while (array.length) s.push(array.splice(Math.random() * array.length, 1));
100
+ while (s.length) array.push(s.pop());
101
+ return array;
102
+ },
103
+ setTimer: function (func, interval) {
104
+ return setInterval(func, interval);
105
+ },
106
+ stopTimer: function (handle) {
107
+ clearInterval(handle);
108
+ return null;
109
+ },
110
+ setExtraProperties: function ($ele, imageObj) {
111
+ if (typeof (imageObj.alt) != "undefined")
112
+ $ele.attr("alt", imageObj.alt);
113
+ var $parent = $ele.parent();
114
+ if (typeof (imageObj.href) != "undefined" && $parent[0].tagName == "A") {
115
+ $parent.attr("href", imageObj.href);
116
+ if (typeof (imageObj.target) != "undefined")
117
+ $parent.attr("target", imageObj.target);
118
+ if (typeof (imageObj.onclick) != "undefined") {
119
+ $parent.attr("onclick", imageObj.onclick);
120
+ $ele.attr("onclick", "");
121
+ }
122
+ } else {
123
+ if (typeof (imageObj.onclick) != "undefined")
124
+ $ele.attr("onclick", imageObj.onclick);
125
+ }
126
+ },
127
+ // changes the src or background image property of an image in a flip-list
128
+ handleListItemSwap: function ($cont, image, isBgroundImg, stgs) {
129
+ var $img = $cont.find(stgs.imageCssSelector);
130
+ if (!isBgroundImg) {
131
+ $img.attr("src", image.src);
132
+ } else {
133
+ $img.css({ backgroundImage: "url('" + image.src + "')" });
134
+ }
135
+ privMethods.setExtraProperties($img, image);
136
+ },
137
+ handleSlide: function (isSlidingUp, $cont, swapFrontSource, stgs, index) {
138
+ if (!isSlidingUp && swapFrontSource) {
139
+ var image;
140
+ var $img = $cont.find(stgs.imageCssSelector);
141
+ image = stgs.frontImages[index];
142
+ if (stgs.fadeSlideSwap == true) {
143
+ $img.fadeOut(function () {
144
+ $img.attr("src", image.src);
145
+ privMethods.setExtraProperties($img, image);
146
+ $img.fadeIn();
147
+ });
148
+ } else {
149
+ $img.attr("src", image.src);
150
+ privMethods.setExtraProperties($img, image);
151
+ }
152
+ }
153
+
154
+ },
155
+ // fired if an image swap is needed. gets the image and applies properties
156
+ handleSwap: function ($cont, isFront, stgs, index) {
157
+ var image = privMethods.getImage(isFront, stgs, index);
158
+ var $img = $cont.find(stgs.imageCssSelector);
159
+ $img.attr("src", image.src);
160
+ privMethods.setExtraProperties($img, image);
161
+ },
162
+ // get an image from the frontImages or backImages array
163
+ getImage: function (isFront, stgs, index) {
164
+ var imgs = (isFront) ? stgs.frontImages : stgs.backImages;
165
+ var image;
166
+ image = imgs[Math.min(index, imgs.length - 1)];
167
+ return image;
168
+ }
169
+ };
170
+ var pubMethods = {
171
+ init: function (options) {
172
+ // Setup the public options for the livetile
173
+ var stgs = {};
174
+ jQuery.extend(stgs, jQuery.fn.liveTile.defaults, options);
175
+
176
+ //is there at least one item in the front images list?
177
+ var swapFrontSource = (typeof (stgs.frontImages) == 'object' && (stgs.frontImages instanceof Array) && stgs.frontImages.length > 0);
178
+ //is there at least one item in the back images list?
179
+ var swapBackSource = (typeof (stgs.backImages) == 'object' && (stgs.backImages instanceof Array) && stgs.backImages.length > 0);
180
+ var canTransform = false;
181
+ var canTransition = false;
182
+ var canTransform3d = false;
183
+ var canAnimate = false;
184
+ var canFlip3d = stgs.useHardwareAccel;
185
+ if (stgs.useHardwareAccel == true) {
186
+ if (stgs.useModernizr == false) {
187
+ //determine if the browser supports the neccessary accelerated features
188
+ if (typeof (window.MetroModernizr) != "undefined") {
189
+ canTransform = window.MetroModernizr.canTransform;
190
+ canTransition = window.MetroModernizr.canTransition;
191
+ canTransform3d = window.MetroModernizr.canTransform3d;
192
+ canAnimate = window.MetroModernizr.canAnimate;
193
+ } else {
194
+ window.MetroModernizr = {};
195
+ /***** check for browser capabilities credit: modernizr-1.7 *****/
196
+ var mod = 'metromodernizr';
197
+ var docElement = document.documentElement;
198
+ var docHead = document.head || document.getElementsByTagName('head')[0];
199
+ var modElem = document.createElement(mod);
200
+ var m_style = modElem.style;
201
+ var prefixes = ' -webkit- -moz- -o- -ms- -khtml- '.split(' ');
202
+ var domPrefixes = 'Webkit Moz O ms Khtml'.split(' ');
203
+ var test_props = function (props, callback) {
204
+ for (var i in props) {
205
+ if (m_style[props[i]] !== undefined && (!callback || callback(props[i], modElem))) {
206
+ return true;
207
+ }
208
+ }
209
+ };
210
+ var test_props_all = function (prop, callback) {
211
+
212
+ var uc_prop = prop.charAt(0).toUpperCase() + prop.substr(1),
213
+ props = (prop + ' ' + domPrefixes.join(uc_prop + ' ') + uc_prop).split(' ');
214
+
215
+ return !!test_props(props, callback);
216
+ };
217
+ var test_3d = function () {
218
+ var ret = !!test_props(['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']);
219
+ if (ret && 'webkitPerspective' in docElement.style) {
220
+ // Webkit allows this media query to succeed only if the feature is enabled.
221
+ // '@media (transform-3d),(-o-transform-3d),(-moz-transform-3d),(-ms-transform-3d),(-webkit-transform-3d),(modernizr){ ... }'
222
+ ret = testMediaQuery('@media (' + prefixes.join('transform-3d),(') + 'metromodernizr)');
223
+ }
224
+ return ret;
225
+ };
226
+ var testMediaQuery = function (mq) {
227
+ var st = document.createElement('style'),
228
+ div = document.createElement('div'),
229
+ ret;
230
+ st.textContent = mq + '{#metromodernizr{height:3px}}';
231
+ docHead.appendChild(st);
232
+ div.id = 'metromodernizr';
233
+ docElement.appendChild(div);
234
+ ret = div.offsetHeight === 3;
235
+ st.parentNode.removeChild(st);
236
+ div.parentNode.removeChild(div);
237
+ return !!ret;
238
+ };
239
+ canTransform = !!test_props(['transformProperty', 'WebkitTransform', 'MozTransform', 'OTransform', 'msTransform']);
240
+ canTransition = test_props_all('transitionProperty');
241
+ canTransform3d = test_3d();
242
+ canAnimate = test_props_all('animationName');
243
+ window.MetroModernizr.canTransform = canTransform;
244
+ window.MetroModernizr.canTransition = canTransition;
245
+ window.MetroModernizr.canTransform3d = canTransform3d;
246
+ window.MetroModernizr.canAnimate = canAnimate;
247
+ docElement = null;
248
+ docHead = null;
249
+ modElem = null;
250
+ m_style = null;
251
+ }
252
+ } else {
253
+ canTransform = jQuery("html").hasClass("csstransforms");
254
+ canTransition = jQuery("html").hasClass("csstransitions");
255
+ canTransform3d = jQuery("html").hasClass("csstransforms3d");
256
+ canAnimate = jQuery("html").hasClass("cssanimations");
257
+ }
258
+ }
259
+ canFlip3d = canFlip3d && canAnimate && canTransform && canTransform3d;
260
+ /****** end capabilities check ******/
261
+ if (stgs.preloadImages) {
262
+ if (swapFrontSource)
263
+ jQuery(stgs.frontImages).metrojs.preloadImages(function () { });
264
+ if (swapBackSource)
265
+ jQuery(stgs.backImages).metrojs.preloadImages(function () { });
266
+ }
267
+ return jQuery(this).each(function (tileIndex) {
268
+ var $this = jQuery(this);
269
+ $this.slideTimer = null;
270
+ var tdata = {}; //an object to store settings for later access
271
+ tdata.state = $this.slideTimer == null ? jQuery.fn.liveTile.State.STOPPED : jQuery.fn.liveTile.State.RUNNING;
272
+ tdata.speed = (!stgs.ignoreDataAttributes && typeof ($this.data("speed")) != "undefined") ? $this.data("speed") : stgs.speed;
273
+ tdata.delay = (!stgs.ignoreDataAttributes && typeof ($this.data("delay")) != "undefined") ? $this.data("delay") : stgs.delay;
274
+ if (tdata.delay < -1)
275
+ tdata.delay = stgs.triggerDelay(tileIndex);
276
+ else if (tdata.delay < 0)
277
+ tdata.delay = 3500 + (Math.random() * 4501);
278
+ tdata.stops = (!stgs.ignoreDataAttributes && typeof ($this.data("stops")) != "undefined") ? $this.data("stops") : stgs.stops;
279
+ tdata.stack = (!stgs.ignoreDataAttributes && typeof ($this.data("stack")) != "undefined") ? $this.data("stack") : stgs.mode;
280
+ tdata.mode = (!stgs.ignoreDataAttributes && typeof ($this.data("mode")) != "undefined") ? $this.data("mode") : stgs.mode;
281
+ tdata.direction = (!stgs.ignoreDataAttributes && typeof ($this.data("direction")) != "undefined") ? $this.data("direction") : stgs.direction;
282
+ tdata.useHwAccel = (!stgs.ignoreDataAttributes && typeof ($this.data("ha")) != "undefined") ? $this.data("ha") : stgs.useHardwareAccel;
283
+ tdata.initDelay = (!stgs.ignoreDataAttributes && typeof ($this.data("initdelay")) != "undefined") ? $this.data("initdelay") : (stgs.initDelay < 0) ? tdata.delay : stgs.initDelay;
284
+ tdata.repeatCount = (!stgs.ignoreDataAttributes && typeof ($this.data("repeat")) != "undefined") ? $this.data("repeat") : stgs.repeatCount;
285
+ tdata.hasRun = false; // init delay flag
286
+ tdata.isReversed = false;
287
+ tdata.loopCount = 0;
288
+ tdata.slideIndex = 0;
289
+ //convert stops if needed
290
+ tdata.stops = (typeof (stgs.stops) == 'object' && (stgs.stops instanceof Array)) ? stgs.stops : ('' + tdata.stops).split(',');
291
+ //add the mode to the tile if it's not already there.
292
+ $this.addClass(tdata.mode);
293
+ var $tileContainer = $this.find(stgs.tileCssSelector);
294
+ var $firstContainer = null;
295
+ if (stgs.$front != null && stgs.$front.length > 0) {
296
+ $firstContainer = (tdata.mode == "flip-list") ? null : (tdata.mode == 'slide') ?
297
+ stgs.$front.addClass('slide-front') :
298
+ stgs.$front.addClass('flip-front');
299
+ } else {
300
+ $firstContainer = (tdata.mode == "flip-list") ? null : (tdata.mode == 'slide') ?
301
+ $tileContainer.first().addClass('slide-front') :
302
+ $tileContainer.first().addClass('flip-front');
303
+ }
304
+ var lClass = (tdata.mode == 'slide') ? 'slide-back' : 'flip-back';
305
+ var $scndContainer = null;
306
+ if (stgs.$back != null && stgs.$back.length > 0) {
307
+ $scndContainer = (tdata.mode == "flip-list") ? null : stgs.$back.addClass(lClass);
308
+ } else {
309
+ $scndContainer = (tdata.mode == "flip-list") ? null : ($tileContainer.length > 1) ?
310
+ $tileContainer.last().addClass(lClass) :
311
+ (stgs.appendBack == true) ?
312
+ jQuery('<div class="' + lClass + '"></div>').appendTo($this) :
313
+ jQuery('<div></div>');
314
+ }
315
+ var height = $this.height();
316
+ var width = $this.width();
317
+ var margin = (tdata.direction == "vertical") ? height / 2 : width / 2;
318
+
319
+
320
+ var staticCount = 0;
321
+ var staticIndexBack = 0;
322
+ var staticIndexFront = 0;
323
+ var doAnimations = false;
324
+ var flistData = []; // an array to cache flip list selectors
325
+ var frontRandomBag = [];
326
+ var prevFrontIndex = -1;
327
+ var backRandomBag = [];
328
+ var prevBackIndex = -1;
329
+ /* Mouse over and out functions*/
330
+
331
+ if (stgs.pauseOnHover) {
332
+ $this.find(stgs.tileCssSelector).hover(
333
+ function () {
334
+ tdata.stopTimer(false);
335
+ },
336
+ function () {
337
+ tdata.setTimer();
338
+ });
339
+ }
340
+ // prep tiles
341
+ if (tdata.mode == 'flip-list') {
342
+ $this.find(stgs.tileCssSelector).each(function () {
343
+ var $li = jQuery(this);
344
+ var $front = stgs.$front != null ? stgs.$front : $li.find(stgs.listTileCssSelector).first().addClass("flip-front");
345
+ if ($li.find(stgs.listTileCssSelector).length == 1 && stgs.appendBack == true) {
346
+ $li.append("<div></div>");
347
+ }
348
+ var $back = stgs.$back != null ? stgs.$back : $li.find(stgs.listTileCssSelector).last().addClass("flip-back").css({ marginTop: "0px" });
349
+ if (canFlip3d && tdata.useHwAccel) {
350
+ $li.addClass("ha");
351
+ $front.addClass("ha").data("tile", { animating: false });
352
+ $back.addClass("ha").data("tile", { animating: false });
353
+ if (stgs.flipListOnHover == true) {
354
+ $front.bind("mouseout.liveTile", null, function () {
355
+ $this.flipListItem(false, $li, $back, $front);
356
+ });
357
+ $back.bind("mouseout.liveTile", null, function () {
358
+ $this.flipListItem(true, $li, $front, $back);
359
+ });
360
+ }
361
+ } else {
362
+ if (stgs.flipListOnHover == true) {
363
+ $front.bind("mouseout.liveTile", function () {
364
+ $this.flipListItem(true, $li, $front, $back);
365
+ });
366
+ $back.bind("mouseout.liveTile", function () {
367
+ $this.flipListItem(false, $li, $back, $front);
368
+ });
369
+ }
370
+ }
371
+ });
372
+ } else if (tdata.mode == 'slide') {
373
+ if (tdata.stack == true) {
374
+ if (tdata.direction == "vertical") {
375
+ $scndContainer.css({ top: -height + 'px' });
376
+ } else {
377
+ $scndContainer.css({ left: -width + 'px' });
378
+ }
379
+ }
380
+ if (canTransition && tdata.useHwAccel) {
381
+ $this.addClass("ha");
382
+ $firstContainer.addClass("ha").data("tile", { animating: false });
383
+ }
384
+ } else if (tdata.mode == 'flip') {
385
+ if (canFlip3d && tdata.useHwAccel) {
386
+ $this.addClass("ha");
387
+ $firstContainer.addClass("ha").data("tile", { animating: false });
388
+ $scndContainer.addClass("ha").data("tile", { animating: false });
389
+ } else {
390
+ var fCss = (tdata.direction == "vertical") ?
391
+ { height: '0px', width: width + 'px', marginTop: margin + 'px', opacity: '0'} :
392
+ { height: '100%', width: '0px !important', marginLeft: margin + 'px', opacity: '0' };
393
+ var fCss2 = (tdata.direction == "vertical") ?
394
+ { height: '100%', width: '100%', marginTop: '0px', opacity: '1'} :
395
+ { height: '100%', width: '100%', marginLeft: '0px', opacity: '1' };
396
+ $scndContainer.css(fCss);
397
+ $firstContainer.css(fCss2);
398
+ //temp fix
399
+ // TODO: debug and remove instances of jQuery.browser for compatibility with jq 1.8+
400
+ if (tdata.repeatCount > -1 && jQuery.browser.msie) {
401
+ tdata.repeatCount += 1;
402
+ }
403
+ // if (tdata.direction == "horizontal")
404
+ // $scndContainer.css({ marginLeft: $scndContainer.width() / 2 + 'px', width: '0px' });
405
+ // else
406
+ // $scndContainer.css({ marginTop: $scndContainer.height() / 2 + 'px', height: '0px' });
407
+ }
408
+ }
409
+
410
+
411
+ //slide animation
412
+ $this.slide = function (callback) {
413
+ if (typeof (callback) == "undefined" || callback == null)
414
+ callback = null;
415
+ if (tdata.repeatCount > -1) {
416
+ if (tdata.loopCount > tdata.repeatCount) {
417
+ tdata.stopTimer(false);
418
+ tdata.loopCount = 0;
419
+ tdata.hasRun = false;
420
+ $this.data("LiveTile", tdata);
421
+ return;
422
+ }
423
+ }
424
+ if (!doAnimations)
425
+ return;
426
+ var clojIsReversed = tdata.isReversed;
427
+ var fData = $firstContainer.data("tile");
428
+ var stop = jQuery.trim(tdata.stops[tdata.slideIndex]);
429
+ var pxIdx = stop.indexOf('px');
430
+ var offset = 0;
431
+ var amount = 0
432
+ var metric = (tdata.direction == "vertical") ? height : width;
433
+ var prop = (tdata.direction == "vertical") ? "top" : "left";
434
+ if (pxIdx > 0) {
435
+ amount = parseInt(stop.substring(0, pxIdx));
436
+ offset = (amount - metric) + 'px';
437
+ } else {
438
+ //is a percentage
439
+ amount = parseInt(stop.replace('%', ''));
440
+ offset = (amount - 100) + '%';
441
+ }
442
+ if (canTransition && tdata.useHwAccel) {
443
+ if (typeof (fData.animated) != "undefined" && fData.animated == true)
444
+ return;
445
+ fData.animated = true;
446
+ var css = {
447
+ WebkitTransitionProperty: prop, WebkitTransitionDuration: tdata.speed + 'ms',
448
+ MozTransitionProperty: prop, MozTransitionDuration: tdata.speed + 'ms',
449
+ OTransitionProperty: prop, OTransitionDuration: tdata.speed + 'ms',
450
+ msTransitionProperty: prop, msTransitionDuration: tdata.speed + 'ms',
451
+ KhtmlTransitionProperty: prop, KhtmlTransitionDuration: tdata.speed + 'ms',
452
+ TransitionProperty: prop, TransitionDuration: tdata.speed + 'ms'
453
+ };
454
+ if (tdata.direction == "vertical") {
455
+ css.top = (clojIsReversed && tdata.stops.length == 1) ? "0px" : stop;
456
+ } else {
457
+ css.left = (clojIsReversed && tdata.stops.length == 1) ? "0px" : stop;
458
+ }
459
+ $firstContainer.css(css);
460
+ if (tdata.stack == true) {
461
+ if (tdata.direction == "vertical") {
462
+ css.top = (clojIsReversed && tdata.stops.length == 1) ? -metric + 'px' : offset;
463
+ } else {
464
+ css.left = (clojIsReversed && tdata.stops.length == 1) ? -metric + 'px' : offset;
465
+ }
466
+ $scndContainer.css(css);
467
+ }
468
+ window.setTimeout(function () {
469
+ var index = staticCount;
470
+ if (swapFrontSource && stgs.frontIsRandom) {
471
+ //make sure the random bag is ready
472
+ if (frontRandomBag.length == 0) {
473
+ for (var i = 0; i < stgs.frontImages.length; i++) {
474
+ //make sure there's not an immediate repeat
475
+ if (i != prevBackIndex || stgs.frontImages.length == 1)
476
+ frontRandomBag[i] = i;
477
+ }
478
+ frontRandomBag = privMethods.shuffleArray(frontRandomBag);
479
+ }
480
+ index = frontRandomBag.pop();
481
+ prevFrontIndex = index;
482
+ }
483
+ privMethods.handleSlide(clojIsReversed, $firstContainer, swapFrontSource, stgs, index);
484
+ fData.animated = false;
485
+ $firstContainer.data("tile", fData);
486
+ if (!clojIsReversed && swapFrontSource) {
487
+ staticCount += 1;
488
+ if (staticCount >= stgs.frontImages.length)
489
+ staticCount = 0;
490
+ }
491
+ stgs.animationComplete(tdata, $firstContainer, $scndContainer);
492
+ if (callback != null)
493
+ callback();
494
+ }, tdata.speed);
495
+ } else {
496
+ if ($firstContainer.is(':animated')) {
497
+ return;
498
+ }
499
+ var uCss = (tdata.direction == "vertical") ?
500
+ { top: (clojIsReversed && tdata.stops.length == 1) ? "0px" : stop} :
501
+ { left: (clojIsReversed && tdata.stops.length == 1) ? "0px" : stop };
502
+ var dCss = (tdata.direction == "vertical") ?
503
+ { top: (clojIsReversed && tdata.stops.length == 1) ? -metric + 'px' : offset} :
504
+ { left: (clojIsReversed && tdata.stops.length == 1) ? -metric + 'px' : offset };
505
+
506
+ $firstContainer.animate(uCss, tdata.speed, function () {
507
+ var index = staticCount;
508
+ if (swapFrontSource && stgs.frontIsRandom) {
509
+ //make sure the random bag is ready
510
+ if (frontRandomBag.length == 0) {
511
+ for (var i = 0; i < stgs.frontImages.length; i++) {
512
+ //make sure there's not an immediate repeat
513
+ if (i != prevBackIndex || stgs.frontImages.length == 1)
514
+ frontRandomBag[i] = i;
515
+ }
516
+ frontRandomBag = privMethods.shuffleArray(frontRandomBag);
517
+ }
518
+ index = frontRandomBag.pop();
519
+ prevFrontIndex = index;
520
+ }
521
+ privMethods.handleSlide(clojIsReversed, $firstContainer, swapFrontSource, stgs, index);
522
+ if (!clojIsReversed && swapFrontSource) {
523
+ staticCount += 1;
524
+ if (staticCount >= stgs.frontImages.length)
525
+ staticCount = 0;
526
+ }
527
+ stgs.animationComplete(tdata, $firstContainer, $scndContainer);
528
+ if (callback != null)
529
+ callback();
530
+ });
531
+ if (tdata.stack == true) {
532
+ $scndContainer.animate(dCss, tdata.speed, function () { });
533
+ }
534
+ }
535
+ //increment slide count
536
+ tdata.slideIndex += 1;
537
+ if (tdata.slideIndex >= tdata.stops.length) {
538
+ tdata.slideIndex = 0;
539
+ tdata.isReversed = !tdata.isReversed;
540
+ tdata.loopCount += 1;
541
+ }
542
+ };
543
+
544
+
545
+ //flip mode
546
+ $this.flip = function (callback) {
547
+ if (typeof (callback) == "undefined" || callback == null)
548
+ callback = null;
549
+ if (tdata.repeatCount > -1) {
550
+ if (tdata.loopCount > tdata.repeatCount) {
551
+ tdata.stopTimer(false);
552
+ tdata.loopCount = 0;
553
+ // TODO: debug and remove instances of jQuery.browser for compatibility with jq 1.8+
554
+ if (jQuery.browser.msie) /* straighten out issue with loopcount in IE */
555
+ tdata.loopCount += 1;
556
+ tdata.hasRun = false;
557
+ $this.data("LiveTile", tdata);
558
+ return;
559
+ } else {
560
+ tdata.loopCount += 1;
561
+ }
562
+ }
563
+ if (canFlip3d && tdata.useHwAccel) {
564
+ var spd = (tdata.speed * 2); // accelerated flip speeds are calculated on 1/2 rotation rather than 1/4 rotation like jQuery animate
565
+ var duration = spd + 'ms';
566
+ var aniFName = (tdata.direction == "vertical") ? 'flipfront180' : 'flipfrontY180';
567
+ var aniBName = (tdata.direction == "vertical") ? 'flipback180' : 'flipbackY180';
568
+ var data = $firstContainer.data("tile");
569
+ if (typeof (data.animated) != "undefined" && data.animated == true) {
570
+ return;
571
+ }
572
+ data.animated = true;
573
+ if (doAnimations) {
574
+ if (tdata.isReversed) {
575
+ var uCss = {
576
+ WebkitAnimationPlayState: 'running', WebkitAnimationName: aniBName, WebkitAnimationDuration: duration,
577
+ MozAnimationPlayState: 'running', MozAnimationName: aniBName, MozAnimationDuration: duration,
578
+ OAnimationPlayState: 'running', OAnimationName: aniBName, OAnimationDuration: duration,
579
+ msAnimationPlayState: 'running', msAnimationName: aniBName, msAnimationDuration: duration,
580
+ AnimationPlayState: 'running', AnimationName: aniBName, AnimationDuration: duration
581
+ };
582
+ $firstContainer.css(uCss).data("tile", data);
583
+ uCss.WebkitAnimationName = aniFName;
584
+ uCss.MozAnimationName = aniFName;
585
+ uCss.msAnimationName = aniFName;
586
+ uCss.OAnimationName = aniFName;
587
+ uCss.AnimationName = aniFName;
588
+ $scndContainer.css(uCss).data("tile", data);
589
+ window.setTimeout(function () {
590
+ if (swapBackSource) { // change the source image when the animation is finished
591
+ var isRandom = stgs.backIsRandom;
592
+ var index = staticIndexBack;
593
+ if (isRandom) {
594
+ //make sure the random bag is ready
595
+ if (backRandomBag.length == 0) {
596
+ for (var i = 0; i < stgs.backImages.length; i++) {
597
+ //make sure there's not an immediate repeat
598
+ if (i != prevBackIndex || stgs.backImages.length == 1)
599
+ backRandomBag[i] = i;
600
+ }
601
+ backRandomBag = privMethods.shuffleArray(backRandomBag);
602
+ }
603
+ index = backRandomBag.pop();
604
+ prevBackIndex = index;
605
+ }
606
+ privMethods.handleSwap($scndContainer, false, stgs, index);
607
+ staticIndexBack += 1;
608
+ if (staticIndexBack >= stgs.backImages.length) {
609
+ staticIndexBack = 0;
610
+ }
611
+ }
612
+ stgs.animationComplete(tdata, $firstContainer, $scndContainer);
613
+ if (callback != null)
614
+ callback();
615
+ data.animated = false;
616
+ $firstContainer.data("tile", data);
617
+ $scndContainer.data("tile", data);
618
+ }, spd);
619
+ } else {
620
+ var dCss = { WebkitAnimationPlayState: 'running', WebkitAnimationName: aniFName, WebkitAnimationDuration: duration,
621
+ MozAnimationPlayState: 'running', MozAnimationName: aniFName, MozAnimationDuration: duration,
622
+ OAnimationPlayState: 'running', OAnimationName: aniFName, OAnimationDuration: duration,
623
+ msAnimationPlayState: 'running', msAnimationName: aniFName, msAnimationDuration: duration,
624
+ AnimationPlayState: 'running', AnimationName: aniFName, AnimationDuration: duration
625
+ };
626
+ $firstContainer.css(dCss).data("tile", data);
627
+ dCss.WebkitAnimationName = aniBName;
628
+ dCss.MozAnimationName = aniBName;
629
+ dCss.msAnimationName = aniBName;
630
+ dCss.OAnimationName = aniBName;
631
+ dCss.AnimationName = aniBName;
632
+ $scndContainer.css(dCss).data("tile", data);
633
+ window.setTimeout(function () {
634
+ if (swapFrontSource) {
635
+ // change the source image when the animation is finished
636
+ var isRandom = stgs.frontIsRandom;
637
+ var index = staticIndexFront;
638
+ if (isRandom) {
639
+ //make sure the random bag is ready
640
+ if (frontRandomBag.length == 0) {
641
+ for (var i = 0; i < stgs.frontImages.length; i++) {
642
+ //make sure there's not an immediate repeat
643
+ if (i != prevBackIndex || stgs.frontImages.length == 1)
644
+ frontRandomBag[i] = i;
645
+ }
646
+ frontRandomBag = privMethods.shuffleArray(frontRandomBag);
647
+ }
648
+ index = frontRandomBag.pop();
649
+ prevFrontIndex = index;
650
+ }
651
+ privMethods.handleSwap($firstContainer, true, stgs, index);
652
+ staticIndexFront += 1;
653
+ if (staticIndexFront >= stgs.frontImages.length) {
654
+ staticIndexFront = 0;
655
+ }
656
+ }
657
+ stgs.animationComplete(tdata, $scndContainer, $firstContainer);
658
+ if (callback != null) {
659
+ callback();
660
+ }
661
+ data.animated = false;
662
+ $firstContainer.data("tile", data);
663
+ $scndContainer.data("tile", data);
664
+ }, spd);
665
+ }
666
+ }
667
+ //an interval isnt needed
668
+ tdata.isReversed = !tdata.isReversed;
669
+ } else {
670
+
671
+ //crossbrowser single tile flip illusion (works best with images)
672
+ if (tdata.isReversed) {
673
+ var upCss = (tdata.direction == "vertical") ?
674
+ { height: '0px', width: '100%', marginTop: margin + 'px', opacity: '0'} :
675
+ { height: '100%', width: '0px', marginLeft: margin + 'px', opacity: '0' };
676
+ var upCss2 = (tdata.direction == "vertical") ?
677
+ { height: '100%', width: '100%', marginTop: '0px', opacity: '1'} :
678
+ { height: '100%', width: '100%', marginLeft: '0px', opacity: '1' };
679
+
680
+ $firstContainer.stop().animate(upCss, { duration: tdata.speed });
681
+ window.setTimeout(function () {
682
+ $scndContainer.stop().animate(upCss2, { duration: tdata.speed });
683
+ if (swapFrontSource) {
684
+ var isRandom = stgs.frontIsRandom;
685
+ var index = staticIndexFront;
686
+ if (isRandom) {
687
+ //make sure the random bag is ready
688
+ if (frontRandomBag.length == 0) {
689
+ for (var i = 0; i < stgs.frontImages.length; i++) {
690
+ //make sure there's not an immediate repeat
691
+ if (i != prevFrontIndex || stgs.frontImages.length == 1)
692
+ frontRandomBag[i] = i;
693
+ }
694
+ frontRandomBag = privMethods.shuffleArray(frontRandomBag);
695
+ }
696
+ index = frontRandomBag.pop();
697
+ prevFrontIndex = index;
698
+ }
699
+ privMethods.handleSwap($firstContainer, true, stgs, index);
700
+ staticIndexFront += 1;
701
+ if (staticIndexFront >= stgs.frontImages.length) {
702
+ staticIndexFront = 0;
703
+ }
704
+ }
705
+ tdata.isReversed = !tdata.isReversed;
706
+ stgs.animationComplete(tdata, $scndContainer, $firstContainer);
707
+ if (callback != null)
708
+ callback();
709
+ }, tdata.speed);
710
+ } else {
711
+ var dwnCss = (tdata.direction == "vertical") ?
712
+ { height: '0px', width: '100%', marginTop: margin + 'px', opacity: '0'} :
713
+ { height: '100%', width: '0px', marginLeft: margin + 'px', opacity: '0' };
714
+ var dwnCss2 = (tdata.direction == "vertical") ?
715
+ { height: '100%', width: '100%', marginTop: '0px', opacity: '1'} :
716
+ { height: '100%', width: '100%', marginLeft: '0px', opacity: '1' };
717
+ $scndContainer.stop().animate(dwnCss, { duration: tdata.speed });
718
+ window.setTimeout(function () {
719
+ $firstContainer.stop().animate(dwnCss2, { duration: tdata.speed });
720
+ if (swapBackSource) {
721
+ var isRandom = stgs.backIsRandom;
722
+ var index = staticIndexBack;
723
+ if (isRandom) {
724
+ //make sure the random bag is ready
725
+ if (backRandomBag.length == 0) {
726
+ for (var i = 0; i < stgs.backImages.length; i++) {
727
+ //make sure there's not an immediate repeat
728
+ if (i != prevBackIndex || stgs.backImages.length == 1)
729
+ backRandomBag[i] = i;
730
+ }
731
+ backRandomBag = privMethods.shuffleArray(backRandomBag);
732
+ }
733
+ index = backRandomBag.pop();
734
+ prevBackIndex = index;
735
+ }
736
+ privMethods.handleSwap($scndContainer, false, stgs, index);
737
+ staticIndexBack += 1;
738
+ if (staticIndexBack >= stgs.backImages.length) {
739
+ staticIndexBack = 0;
740
+ }
741
+ }
742
+ tdata.isReversed = !tdata.isReversed;
743
+ stgs.animationComplete(tdata, $firstContainer, $scndContainer);
744
+ if (callback != null)
745
+ callback();
746
+ }, tdata.speed);
747
+ }
748
+ }
749
+ };
750
+ // flip arbitrary number of items and swap sources accordingly
751
+ $this.flipList = function (callback) {
752
+ if (typeof (callback) == "undefined" || callback == null)
753
+ callback = null;
754
+ if (tdata.repeatCount > -1) {
755
+ if (tdata.loopCount > tdata.repeatCount) {
756
+ tdata.stopTimer(false);
757
+ tdata.loopCount = 0;
758
+ tdata.hasRun = false;
759
+ $this.data("LiveTile", tdata);
760
+ return;
761
+ } else {
762
+ tdata.loopCount += 1;
763
+ }
764
+ }
765
+ var fBag = []; // two bags to make sure we don't duplicate images
766
+ var bBag = [];
767
+ var $tiles = $this.find(stgs.tileCssSelector);
768
+ //in case we want to pick one image per loop
769
+ var fStaticRndm = 0;
770
+ if (swapFrontSource) {
771
+ if (frontRandomBag.length == 0) {
772
+ for (var i = 0; i < stgs.frontImages.length; i++) {
773
+ if (i != prevFrontIndex || stgs.frontImages.length == 1)
774
+ frontRandomBag[i] = i;
775
+ }
776
+ frontRandomBag = privMethods.shuffleArray(frontRandomBag);
777
+ }
778
+ fStaticRndm = frontRandomBag.pop();
779
+ prevFrontIndex = fStaticRndm;
780
+ }
781
+ var bStaticRndm = 0;
782
+ if (swapBackSource) {
783
+ if (backRandomBag.length == 0) {
784
+ for (var i = 0; i < stgs.backImages.length; i++) {
785
+ if (i != prevBackIndex || stgs.backImages.length == 1)
786
+ backRandomBag[i] = i;
787
+ }
788
+ backRandomBag = privMethods.shuffleArray(backRandomBag);
789
+ }
790
+ bStaticRndm = backRandomBag.pop();
791
+ prevBackIndex = bStaticRndm;
792
+ }
793
+ $tiles.each(function (idx) {
794
+ var $t = jQuery(this);
795
+ if (flistData.length < idx + 1) {
796
+ // cache the selector
797
+ var data = {};
798
+ data.$front = $t.find(stgs.listTileCssSelector).first();
799
+ data.$back = $t.find(stgs.listTileCssSelector).last();
800
+ data.isReversed = false;
801
+ flistData[idx] = data;
802
+ }
803
+ var $front = flistData[idx].$front;
804
+ var $back = flistData[idx].$back;
805
+
806
+ var tDelay = stgs.triggerDelay(idx);
807
+ var triggerSpeed = (tDelay > 0) ? (tdata.speed + tDelay) : tdata.speed;
808
+ var trigger = (!stgs.alwaysTrigger) ? ((Math.random() * 351) > 150 ? true : false) : true;
809
+ var newImage;
810
+ if (flistData[idx].isReversed) {
811
+ if (trigger && tDelay >= 0) {
812
+ window.setTimeout(function () {
813
+ flistData[idx].isReversed = false;
814
+ if (!swapFrontSource) {
815
+ $this.flipListItem(true, $t, $front, $back);
816
+ } else {
817
+ var isRandom = stgs.frontIsRandom;
818
+ var isInGrid = stgs.frontIsInGrid;
819
+ var isBground = stgs.frontIsBackgroundImage;
820
+ var frontImages = stgs.frontImages;
821
+ if (isRandom && !isInGrid) {
822
+ //make sure the random bag is ready
823
+ if (fBag.length == 0) {
824
+ for (var i = 0; i < stgs.frontImages.length; i++) {
825
+ fBag[i] = i;
826
+ }
827
+ fBag = privMethods.shuffleArray(fBag);
828
+ }
829
+ newImage = frontImages[fBag.pop()];
830
+ } else {
831
+ if (!isInGrid) {
832
+ newImage = frontImages[Math.min(idx, frontImages.length)];
833
+ } else {
834
+ newImage = frontImages[Math.min(fStaticRndm, frontImages.length)];
835
+ }
836
+ }
837
+ $this.flipListItem(true, $t, $front, $back, newImage, isBground);
838
+ }
839
+ }, triggerSpeed);
840
+ }
841
+ } else {
842
+ if (trigger && tDelay >= 0) {
843
+ window.setTimeout(function () {
844
+ flistData[idx].isReversed = true;
845
+ if (!swapBackSource) {
846
+ $this.flipListItem(false, $t, $back, $front);
847
+ } else {
848
+ var isRandom = stgs.backIsRandom;
849
+ var isInGrid = stgs.backIsInGrid;
850
+ var isBground = stgs.backIsBackgroundImage;
851
+ var backImages = stgs.backImages;
852
+ if (isRandom && !isInGrid) {
853
+ //make sure the random bag is ready
854
+ if (bBag.length == 0) {
855
+ for (var i = 0; i < stgs.backImages.length; i++) {
856
+ bBag[i] = i;
857
+ }
858
+ bBag = privMethods.shuffleArray(bBag);
859
+ }
860
+ newImage = backImages[bBag.pop()];
861
+ } else {
862
+ if (!isInGrid) {
863
+ newImage = backImages[Math.min(idx, backImages.length)];
864
+ } else {
865
+ newImage = backImages[Math.min(bStaticRndm, backImages.length)];
866
+ }
867
+ }
868
+ $this.flipListItem(false, $t, $back, $front, newImage, isBground);
869
+ }
870
+ }, triggerSpeed);
871
+ }
872
+ }
873
+ });
874
+ window.setTimeout(function () {
875
+ tdata.isReversed = !tdata.isReversed;
876
+ }, tdata.speed);
877
+
878
+ };
879
+
880
+ //does the actual animation of a flip list item
881
+ $this.flipListItem = function (isFront, $itm, $front, $back, newSrc, isBgroundImg) {
882
+
883
+ var dir = (!stgs.ignoreDataAttributes && typeof ($itm.data("direction")) != "undefined") ? $itm.data("direction") : tdata.direction;
884
+ if (canFlip3d && tdata.useHwAccel) {
885
+ // avoid any z-index flickering from reversing an animation too early
886
+ isBgroundImg = isFront ? stgs.frontIsBackgroundImage : stgs.backIsBackgroundImage;
887
+ var animating = isFront ? $front.data("tile").animating : $back.data("tile").animating;
888
+ if (animating == true) {
889
+ return;
890
+ }
891
+ var spd = (tdata.speed * 2);
892
+ var duration = spd + 'ms';
893
+ var aniFName = (dir == "vertical") ? 'flipfront180' : 'flipfrontY180';
894
+ var aniBName = (dir == "vertical") ? 'flipback180' : 'flipbackY180';
895
+ var fCss = {
896
+ WebkitAnimationPlayState: 'running', WebkitAnimationName: aniBName, WebkitAnimationDuration: duration,
897
+ MozAnimationPlayState: 'running', MozAnimationName: aniBName, MozAnimationDuration: duration,
898
+ msAnimationPlayState: 'running', msAnimationName: aniBName, msAnimationDuration: duration,
899
+ OAnimationPlayState: 'running', OAnimationName: aniBName, OAnimationDuration: duration,
900
+ AnimationPlayState: 'running', AnimationName: aniBName, AnimationDuration: duration
901
+ };
902
+ var bCss = {
903
+ WebkitAnimationPlayState: 'running', WebkitAnimationName: aniFName, WebkitAnimationDuration: duration,
904
+ MozAnimationPlayState: 'running', MozAnimationName: aniFName, MozAnimationDuration: duration,
905
+ msAnimationPlayState: 'running', msAnimationName: aniFName, msAnimationDuration: duration,
906
+ OAnimationPlayState: 'running', OAnimationName: aniFName, OAnimationDuration: duration,
907
+ AnimationPlayState: 'running', AnimationName: aniFName, AnimationDuration: duration
908
+ };
909
+ $front.css(fCss).data("tile").animating = true;
910
+ $back.css(bCss).data("tile").animating = true;
911
+ window.setTimeout(function () {
912
+ if (typeof (newSrc) != "undefined") {
913
+ privMethods.handleListItemSwap($front, newSrc, isBgroundImg, stgs);
914
+ }
915
+ $front.data("tile").animating = false;
916
+ $back.data("tile").animating = false;
917
+ }, 0); // once the animation is half through it can be reversed
918
+
919
+ } else {
920
+ var height = $itm.height();
921
+ var width = $itm.width();
922
+ var margin = (dir == "vertical") ? height / 2 : width / 2;
923
+ var uCss = (dir == "vertical") ?
924
+ { height: '0px', width: '100%', marginTop: margin + 'px', opacity: 0} :
925
+ { height: '100%', width: '0px', marginLeft: margin + 'px', opacity: 0 };
926
+ var dCss = (dir == "vertical") ?
927
+ { height: '100%', width: '100%', marginTop: '0px', opacity: 1} :
928
+ { height: '100%', width: '100%', marginLeft: '0px', opacity: 1 };
929
+ $front.stop().animate(uCss, { duration: tdata.speed });
930
+ window.setTimeout(function () {
931
+ $back.stop().animate(dCss, { duration: tdata.speed });
932
+ if (typeof (newSrc) != "undefined") {
933
+ privMethods.handleListItemSwap($front, newSrc, isBgroundImg, stgs);
934
+ }
935
+ }, tdata.speed);
936
+ }
937
+ };
938
+
939
+ /* Delay the tile action*/
940
+ tdata.doAction = function () {
941
+ var action = null;
942
+ tdata.stopTimer(false);
943
+ switch (tdata.mode) {
944
+ case 'slide':
945
+ action = $this.slide;
946
+ break;
947
+ case 'flip':
948
+ action = $this.flip;
949
+ break;
950
+ case 'flip-list':
951
+ action = $this.flipList;
952
+ break;
953
+ }
954
+ var callBack = function () {
955
+ tdata.setTimer();
956
+ };
957
+ if (action != null) {
958
+ doAnimations = true;
959
+ action(callBack);
960
+ }
961
+ };
962
+ tdata.setTimer = function () {
963
+ var action = null;
964
+ switch (tdata.mode) {
965
+ case 'slide':
966
+ action = $this.slide;
967
+ break;
968
+ case 'flip':
969
+ action = $this.flip;
970
+ break;
971
+ case 'flip-list':
972
+ action = $this.flipList;
973
+ break;
974
+ }
975
+
976
+ if (action != null) {
977
+ if (tdata.hasRun == false) {
978
+ window.setTimeout(function () {
979
+ doAnimations = true;
980
+ action();
981
+ tdata.setTimer();
982
+ }, tdata.initDelay);
983
+ } else {
984
+ if ($this.slideTimer != null)
985
+ $this.slideTimer = privMethods.stopTimer($this.slideTimer);
986
+ $this.slideTimer = privMethods.setTimer(function () { doAnimations = true; action(); }, tdata.speed + tdata.delay);
987
+ }
988
+ }
989
+ tdata.hasRun = true;
990
+ };
991
+
992
+ tdata.stopTimer = function (restart) {
993
+ $this.slideTimer = privMethods.stopTimer($this.slideTimer);
994
+ doAnimations = false;
995
+
996
+ if (typeof (restart) != "undefined" && restart == true) {
997
+ tdata.setTimer();
998
+ }
999
+ };
1000
+ $this.data("LiveTile", tdata);
1001
+ tdata.setTimer();
1002
+ });
1003
+ },
1004
+ animate: function () {
1005
+ jQuery(this).each(function () {
1006
+ var tData = jQuery(this).data("LiveTile");
1007
+ tData.doAction();
1008
+ });
1009
+ },
1010
+ destroy: function () {
1011
+ jQuery(this).each(function () {
1012
+ var $t = jQuery(this);
1013
+ $t.unbind(".liveTile");
1014
+ var $tile = jQuery(this).data("LiveTile");
1015
+ if ($tile != null) {
1016
+ $tile.stopTimer(false);
1017
+ $t.removeData("LiveTile");
1018
+ $t.removeData("ha");
1019
+ $t.removeData("tile");
1020
+ delete $tile;
1021
+ delete $t.slide;
1022
+ delete $t.flip;
1023
+ delete $t.flipList;
1024
+ delete $t.liveTile;
1025
+ }
1026
+
1027
+ });
1028
+ },
1029
+ stop: function (restart) {
1030
+ jQuery(this).each(function () {
1031
+ var $tile = jQuery(this).data("LiveTile");
1032
+ $tile.stopTimer(restart);
1033
+ $tile.loopCount = 0;
1034
+ $tile.hasRun = false;
1035
+ });
1036
+ },
1037
+ pause: function () {
1038
+ jQuery(this).each(function () {
1039
+ jQuery(this).data("LiveTile").stopTimer();
1040
+ });
1041
+ },
1042
+ play: function () {
1043
+ jQuery(this).each(function () {
1044
+ jQuery(this).data("LiveTile").setTimer();
1045
+ });
1046
+ }
1047
+ };jQuery.fn.metrojs.theme = {};
1048
+ jQuery.fn.metrojs.theme.loadDefaultTheme = function (stgs) {
1049
+ if (typeof (stgs) == "undefined" || stgs == null) {
1050
+ stgs = jQuery.fn.metrojs.theme.defaults;
1051
+ } else {
1052
+ var stg = jQuery.fn.metrojs.theme.defaults;
1053
+ jQuery.extend(stg, stgs);
1054
+ stgs = stg;
1055
+ }
1056
+ //get theme from local storage or set base theme
1057
+ var hasLocalStorage = typeof (window.localStorage) != "undefined";
1058
+ var hasKeyAndValue = function (key) {
1059
+ return (typeof (window.localStorage[key]) != "undefined" && window.localStorage[key] != null);
1060
+ };
1061
+ if (stgs.applyTheme == true) {
1062
+ if (hasLocalStorage && (!hasKeyAndValue("Metro.JS.AccentColor") || !hasKeyAndValue("Metro.JS.BaseAccentColor"))) {
1063
+ //base theme
1064
+ window.localStorage["Metro.JS.AccentColor"] = stgs.accentColor;
1065
+ window.localStorage["Metro.JS.BaseAccentColor"] = stgs.baseTheme;
1066
+ jQuery(stgs.accentCssSelector).addClass(stgs.accentColor).data("accent", stgs.accentColor);
1067
+ jQuery(stgs.baseThemeCssSelector).addClass(stgs.baseTheme);
1068
+ if (typeof (stgs.loaded == "function"))
1069
+ stgs.loaded(stgs.baseTheme, stgs.accentColor);
1070
+ //preload light theme image
1071
+ if (typeof (stgs.preloadAltBaseTheme) != "undefined" && stgs.preloadAltBaseTheme)
1072
+ jQuery([(stgs.baseTheme == 'dark') ? stgs.metroLightUrl : stgs.metroDarkUrl]).metrojs.preloadImages(function () { });
1073
+ } else {
1074
+ if (hasLocalStorage) {
1075
+ stgs.accentColor = window.localStorage["Metro.JS.AccentColor"];
1076
+ stgs.baseTheme = window.localStorage["Metro.JS.BaseAccentColor"];
1077
+ jQuery(stgs.accentCssSelector).addClass(stgs.accentColor).data("accent", stgs.accentColor);
1078
+ jQuery(stgs.baseThemeCssSelector).addClass(stgs.baseTheme);
1079
+ if (typeof (stgs.loaded == "function"))
1080
+ stgs.loaded(stgs.baseTheme, stgs.accentColor);
1081
+ } else {
1082
+ jQuery(stgs.accentCssSelector).addClass(stgs.accentColor).data("accent", stgs.accentColor);
1083
+ jQuery(stgs.baseThemeCssSelector).addClass(stgs.baseTheme);
1084
+ if (typeof (stgs.loaded == "function"))
1085
+ stgs.loaded(stgs.baseTheme, stgs.accentColor);
1086
+ //preload light theme image
1087
+ if (typeof (stgs.preloadAltBaseTheme) != "undefined" && stgs.preloadAltBaseTheme)
1088
+ jQuery([(stgs.baseTheme == 'dark') ? stgs.metroLightUrl : stgs.metroDarkUrl]).metrojs.preloadImages(function () { });
1089
+ }
1090
+ }
1091
+ }
1092
+ };
1093
+ jQuery.fn.metrojs.theme.applyTheme = function (tColor, aColor, stgs) {
1094
+ if (typeof (stgs) == "undefined" || stgs == null) {
1095
+ stgs = jQuery.fn.metrojs.theme.defaults;
1096
+ } else {
1097
+ var stg = jQuery.fn.metrojs.theme.defaults;
1098
+ jQuery.extend(stg, stgs);
1099
+ stgs = stg;
1100
+ }
1101
+
1102
+ if (typeof (tColor) != "undefined" && tColor != null) {
1103
+ if (typeof (window.localStorage) != "undefined") {
1104
+ window.localStorage["Metro.JS.BaseAccentColor"] = tColor;
1105
+ }
1106
+ var $theme = jQuery(stgs.baseThemeCssSelector);
1107
+ if ($theme.length > 0) {
1108
+ if (tColor == "dark")
1109
+ $theme.addClass("dark").removeClass("light");
1110
+ else if (tColor == "light")
1111
+ $theme.addClass("light").removeClass("dark");
1112
+ }
1113
+ }
1114
+ if (typeof (aColor) != "undefined" && aColor != null) {
1115
+ if (typeof (window.localStorage) != "undefined") {
1116
+ window.localStorage["Metro.JS.AccentColor"] = aColor;
1117
+ }
1118
+ var $accent = jQuery(stgs.accentCssSelector);
1119
+ if ($accent.length > 0) {
1120
+ var themeset = false;
1121
+ $accent.each(function () {
1122
+ jQuery(this).addClass(aColor);
1123
+ var dAccent = jQuery(this).data("accent");
1124
+ if (dAccent != aColor) {
1125
+ var cleanClass = jQuery(this).attr("class").replace(dAccent, "");
1126
+ cleanClass = cleanClass.replace(/(\s)+/, ' ');
1127
+ jQuery(this).attr("class", cleanClass);
1128
+ jQuery(this).data("accent", aColor);
1129
+ themeset = true;
1130
+ }
1131
+ });
1132
+ if (themeset && typeof (stgs.accentPicked) == "function")
1133
+ stgs.accentPicked(aColor);
1134
+ }
1135
+ }
1136
+ };
1137
+
1138
+ jQuery.fn.metrojs.theme.appendAccentColors = function (stgs) {
1139
+ if (typeof (stgs) == "undefined" || stgs == null) {
1140
+ stgs = jQuery.fn.metrojs.theme.defaults;
1141
+ } else {
1142
+ var stg = jQuery.fn.metrojs.theme.defaults;
1143
+ jQuery.extend(stg, stgs);
1144
+ stgs = stg;
1145
+ }
1146
+ var themeList = "";
1147
+ var themes = stgs.accentColors;
1148
+ var template = stgs.accentListTemplate;
1149
+ for (var i = 0; i < themes.length; i++) {
1150
+ themeList += template.replace(/\{0\}/g, themes[i]);
1151
+ }
1152
+ $(themeList).appendTo(stgs.accentListContainer);
1153
+ };
1154
+
1155
+ jQuery.fn.metrojs.theme.appendBaseThemes = function (stgs) {
1156
+ if (typeof (stgs) == "undefined" || stgs == null) {
1157
+ stgs = jQuery.fn.metrojs.theme.defaults;
1158
+ } else {
1159
+ var stg = jQuery.fn.metrojs.theme.defaults;
1160
+ jQuery.extend(stg, stgs);
1161
+ stgs = stg;
1162
+ }
1163
+ var themeList = "";
1164
+ var themes = stgs.baseThemes;
1165
+ var template = stgs.baseThemeListTemplate;
1166
+ for (var i = 0; i < themes.length; i++) {
1167
+ themeList += template.replace(/\{0\}/g, themes[i]);
1168
+ }
1169
+ $(themeList).appendTo(stgs.baseThemeListContainer);
1170
+ };
1171
+
1172
+ // default options for theme
1173
+ jQuery.fn.metrojs.theme.defaults = {
1174
+ baseThemeCssSelector: 'body', // selector to place dark or light class after load or selection
1175
+ accentCssSelector: '.tiles', // selector to place accent color class after load or selection
1176
+ accentColor: 'blue', // the default accent color. options are blue, brown, green, lime, magenta, mango, pink, purple, red, teal
1177
+ baseTheme: 'dark', // the default theme color. options are dark, light
1178
+ accentColors: [
1179
+ 'amber', 'brown', 'cobalt', 'crimson', 'cyan',
1180
+ 'magenta', 'lime', 'indigo', 'green', 'emerald',
1181
+ 'mauve', 'olive', 'orange', 'pink', 'red',
1182
+ 'sienna', 'steel', 'teal', 'violet', 'yellow'
1183
+ ],
1184
+ baseThemes: [
1185
+ 'light',
1186
+ 'dark'
1187
+ ],
1188
+ accentListTemplate: "<li><a href='javascript:;' title='{0}' class='accent {0}'></a></li>", // template to generate accent options
1189
+ accentListContainer: ".theme-options", // selector of container to append accents
1190
+ baseThemeListTemplate: "<li><a href='javascript:;' title='{0}' class='accent {0}'></a></li>", // template to generate accent options
1191
+ baseThemeListContainer: ".base-theme-options" // selector of container to append accents
1192
+ };jQuery.fn.applicationBar = function (options) {
1193
+ /* Setup the public options for the applicationBar */
1194
+ var stgs = typeof (jQuery.fn.metrojs.theme) != "undefined" ? jQuery.fn.metrojs.theme.defaults : {};
1195
+ jQuery.extend(stgs, jQuery.fn.applicationBar.defaults, options);
1196
+ if (typeof (jQuery.fn.metrojs.theme) != "undefined") {
1197
+ var theme = jQuery.fn.metrojs.theme;
1198
+ theme.loadDefaultTheme(stgs);
1199
+ var themeContainer = stgs.accentListContainer + " a";
1200
+ $(themeContainer).live("click", function () {
1201
+ var accent = jQuery(this).attr("class").replace("accent", "").replace(" ", "");
1202
+ theme.applyTheme(null, accent, stgs);
1203
+ if (typeof (stgs.accentPicked) == "function")
1204
+ stgs.accentPicked(accent);
1205
+ });
1206
+ var baseContainer = stgs.baseThemeListContainer + " a";
1207
+ $(baseContainer).live("click", function () {
1208
+ var accent = jQuery(this).attr("class").replace("accent", '').replace(' ', '');
1209
+ theme.applyTheme(accent, null, stgs);
1210
+ if (typeof (stgs.themePicked) == "function")
1211
+ stgs.themePicked(accent);
1212
+ });
1213
+ }
1214
+
1215
+ //this should really only run once but we can support multiple application bars
1216
+ jQuery(this).each(function () {
1217
+
1218
+ var $this = jQuery(this);
1219
+
1220
+ //unfortunately we have to sniff out mobile browsers because of the inconsistent implementation of position:fixed
1221
+ //most desktop methods return false positives on a mobile
1222
+ if (navigator.userAgent.match(/(Android|webOS|iPhone|iPod|BlackBerry|PIE|IEMobile)/i)) {
1223
+ $this.css({ position: 'absolute', bottom: '0px' });
1224
+ }
1225
+
1226
+ $this.animateAppBar = function (isExpanded) {
1227
+ var hgt = isExpanded ? stgs.collapseHeight : stgs.expandHeight;
1228
+ if (isExpanded)
1229
+ $this.removeClass("expanded");
1230
+ else
1231
+ if (!$this.hasClass("expanded"))
1232
+ $this.addClass("expanded");
1233
+ $this.stop().animate({ height: hgt }, { duration: stgs.duration });
1234
+ };
1235
+
1236
+ $this.find("a.etc").click(function () {
1237
+ $this.animateAppBar($this.hasClass("expanded"));
1238
+ });
1239
+
1240
+ if (stgs.bindKeyboard == true) {
1241
+ jQuery(document.documentElement).keyup(function (event) {
1242
+ // handle cursor keys
1243
+ if (event.keyCode == 38) {
1244
+ // expand
1245
+ if (!$this.hasClass("expanded")) {
1246
+ $this.animateAppBar(false);
1247
+ }
1248
+ } else if (event.keyCode == 40) {
1249
+ // collapse
1250
+ if ($this.hasClass("expanded")) {
1251
+ $this.animateAppBar(true);
1252
+ }
1253
+ }
1254
+ });
1255
+ }
1256
+ });
1257
+ };
1258
+
1259
+ // default options for applicationBar, the theme defaults are merged with this object when the applicationBar function is called
1260
+ jQuery.fn.applicationBar.defaults = {
1261
+ applyTheme: true, // should the theme be loaded from local storage and applied to the page
1262
+ themePicked: function (tColor) { }, // called when a new theme is chosen. the chosen theme (dark | light)
1263
+ accentPicked: function (aColor) { }, // called when a new accent is chosen. the chosen theme (blue, mango, purple, etc.)
1264
+ loaded: function (tColor, aColor) { }, // called if applyTheme is true onload when a theme has been loaded from local storage or overridden by options
1265
+ duration: 500, // how fast should animation be performed, in milliseconds
1266
+ expandHeight: "320px", // height the application bar to expand to when opened
1267
+ collapseHeight: "60px", // height the application bar will collapse back to when closed
1268
+ bindKeyboard: true, // should up and down keys on keyborad be bound to the application bar
1269
+ metroLightUrl: 'images/metroIcons_light.jpg', // the url for the metro light icons (only needed if preload 'preloadAltBaseTheme' is true)
1270
+ metroDarkUrl: 'images/metroIcons.jpg', // the url for the metro dark icons (only needed if preload 'preloadAltBaseTheme' is true)
1271
+ preloadAltBaseTheme: false // should the applicationBar icons be pre loaded for the alternate theme to enable fast theme switching
1272
+ };})();
skin/frontend/default/default/metro/font/JosefinSlab-Bold-webfont.eot ADDED
Binary file
skin/frontend/default/default/metro/font/JosefinSlab-Bold-webfont.svg ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>
5
+ This is a custom SVG webfont generated by Font Squirrel.
6
+ Copyright : Copyright c 2010 by Typemade All rights reserved
7
+ Designer : Santiago Orozco
8
+ Foundry : Typemade
9
+ </metadata>
10
+ <defs>
11
+ <font id="webfontJdkZPQ7q" horiz-adv-x="614" >
12
+ <font-face units-per-em="2048" ascent="1536" descent="-512" />
13
+ <missing-glyph horiz-adv-x="500" />
14
+ <glyph unicode=" " />
15
+ <glyph unicode="!" horiz-adv-x="411" d="M98 109q0 47 33 76.5t74 29.5q39 0 71.5 -29.5t32.5 -76.5t-32.5 -78t-71.5 -31q-41 0 -74 31t-33 78zM119 340v1196h170v-1196h-170z" />
16
+ <glyph unicode="&#x22;" horiz-adv-x="686" d="M129 967v508h170l-4 -254l-4 -254h-162zM401 967v508h170l-4 -254l-4 -254h-162z" />
17
+ <glyph unicode="#" horiz-adv-x="1169" d="M51 385q4 41 10.5 83t10.5 83h188l25 209h-187l8 83l9 83h188l25 195l24 196h172l-24 -196l-25 -195h205l25 195l24 196h172l-24 -196l-25 -195h209l-8 -83l-9 -83h-210l-25 -209h209q-4 -41 -10.5 -83t-10.5 -83h-209q-10 -98 -22 -192.5t-23 -192.5h-172 q10 98 22.5 192.5t22.5 192.5h-204q-10 -98 -22.5 -192.5t-22.5 -192.5h-172q10 98 22 192.5t23 192.5h-189zM432 551h205l25 209h-205z" />
18
+ <glyph unicode="$" horiz-adv-x="1161" d="M43 190v238h162v-182q41 -31 90 -55.5t108 -36.5v548q-59 18 -112 43t-95 65t-68 99.5t-28 149.5q-2 57 13.5 117.5t52.5 112.5t95 90t142 55v131h172v-127q66 -6 141 -31t152 -88v-201h-161v121q-29 12 -61 22.5t-71 14.5v-461q66 -23 131.5 -51.5t118 -75.5t84 -120.5 t31.5 -184.5q0 -84 -28.5 -152.5t-78 -120t-116 -83t-142.5 -39.5v-127h-172v133q-123 18 -219 73t-141 123zM270 1053q0 -70 37 -110t96 -69v388q-68 -27 -100.5 -83t-32.5 -126zM575 154q82 18 138.5 75.5t56.5 155.5q0 57 -15.5 99t-41 73t-61.5 52.5t-77 37.5v-493z" />
19
+ <glyph unicode="%" horiz-adv-x="1486" d="M184 797q0 53 20.5 100t56.5 82t84 55.5t101 20.5t100.5 -20.5t83.5 -55.5t57.5 -82t21.5 -100q0 -55 -21.5 -102.5t-57.5 -82t-83 -55t-101 -20.5q-53 0 -101 20.5t-84 55t-56.5 82t-20.5 102.5zM356 0l306 512l305 512h186l-305 -512l-305 -512h-187zM356 797 q0 -41 25 -68t65 -27q41 0 66 27t25 68t-25 66.5t-66 25.5t-65.5 -25.5t-24.5 -66.5zM807 227q0 53 20.5 100.5t56.5 82t84 55t101 20.5t100.5 -20.5t83 -55t57 -81.5t21.5 -101q0 -55 -21.5 -102t-57 -82t-83 -55.5t-100.5 -20.5t-101 20.5t-84 55.5t-56.5 82t-20.5 102z M979 227q0 -41 24.5 -67.5t65.5 -26.5t65.5 26.5t24.5 67.5t-24.5 66.5t-65.5 25.5t-65.5 -25.5t-24.5 -66.5z" />
20
+ <glyph unicode="&#x26;" horiz-adv-x="1433" d="M215 385q0 74 24.5 139.5t69.5 117.5t104.5 88t131.5 48l-144 238q-37 61 -52 126.5t-5 128t48 119t106 97.5q57 35 117.5 42t118 -4.5t107.5 -34t89 -46.5l-68 -133q-20 12 -52 27.5t-66.5 23.5t-69.5 8t-62 -18q-84 -53 -93 -135t40 -162l305 -496v6v203h367v-166h-195 v-82q0 -16 1 -41.5t1 -57.5t-3 -64.5t-9 -59.5l154 -248l-133 -88l-103 168q-57 -68 -139 -107.5t-180 -39.5q-86 0 -161 31.5t-130 87t-87 128t-32 156.5zM385 385q0 -100 66.5 -169t173.5 -69q78 0 136 39t85 103l-203 332q-115 0 -186.5 -62.5t-71.5 -173.5z" />
21
+ <glyph unicode="'" horiz-adv-x="333" d="M86 967v508h172l-4 -254l-4 -254h-164z" />
22
+ <glyph unicode="(" horiz-adv-x="868" d="M236 596q0 154 28.5 293t75.5 258t107.5 216t125.5 165l75 -23.5l75 -23.5q-59 -68 -115.5 -160t-101.5 -204.5t-71.5 -244t-26.5 -276.5t26.5 -276.5t71.5 -244t101.5 -204.5t115.5 -160l-75 -23.5l-75 -23.5q-66 68 -126 165t-107 216t-75.5 258t-28.5 293z" />
23
+ <glyph unicode=")" horiz-adv-x="819" d="M152 -299q59 68 115.5 160t101.5 204.5t71.5 243.5t26.5 277q0 145 -26.5 276t-71.5 244t-101.5 205t-115.5 159l74 26l75 26q63 -68 124.5 -165t109 -216t76 -258.5t28.5 -292.5q0 -154 -28.5 -293t-76 -258t-108.5 -216t-125 -165l-75 21z" />
24
+ <glyph unicode="*" horiz-adv-x="686" d="M51 1110q33 16 63.5 34.5t63.5 35.5l-62 38l-63 37l80 142l65 -38l64 -38v154h172q0 -39 -1 -77t-1 -77l66 37l65 37l41 -71l41 -71q-35 -18 -66.5 -37.5t-66.5 -37.5l129 -74q-23 -37 -43 -75t-43 -75q-33 18 -63.5 38t-63.5 38q0 -35 -1 -70.5t-1 -70.5h-164v143 l-62 -36l-63 -35q-23 37 -43 74.5t-43 74.5z" />
25
+ <glyph unicode="+" horiz-adv-x="1112" d="M176 389v166h283v287h172v-287h282v-166h-282v-285h-172v285h-283z" />
26
+ <glyph unicode="," horiz-adv-x="409" d="M4 -246l79 211l79 211h172l-88 -211l-88 -211h-154z" />
27
+ <glyph unicode="-" d="M109 301v166h376v-166h-376z" />
28
+ <glyph unicode="." horiz-adv-x="333" d="M68 106q0 47 32.5 78t73.5 31q39 0 72 -30.5t33 -78.5q0 -47 -33 -76.5t-72 -29.5q-41 0 -73.5 29.5t-32.5 76.5z" />
29
+ <glyph unicode="/" horiz-adv-x="778" d="M35 -39l284 773l285 773h172l-284 -773l-285 -773h-172z" />
30
+ <glyph unicode="0" horiz-adv-x="1261" d="M76 670q0 156 44 281.5t118.5 213.5t175 135.5t215.5 47.5t215 -49.5t174 -138.5t115 -216t41 -282q0 -156 -48.5 -281t-126 -214t-176 -136t-202.5 -47t-203 49t-175.5 139t-121.5 216t-45 282zM248 668q0 -109 28.5 -203t80 -164t119 -110.5t145.5 -40.5 q76 0 145.5 38.5t121.5 108.5t82.5 164t30.5 203q0 74 -18 164t-62 168.5t-116 132t-176 53.5t-177 -52.5t-118 -130t-65.5 -167.5t-20.5 -164z" />
31
+ <glyph unicode="1" horiz-adv-x="593" d="M47 0v162h162v1003h-139v166h311v-1169h162v-162h-496z" />
32
+ <glyph unicode="2" horiz-adv-x="1062" d="M90 932q0 82 27.5 157.5t82 133t134.5 91.5t184 34q94 0 172 -35t133.5 -93.5t86 -135t30.5 -162.5q0 -102 -36 -197.5t-94 -190t-134 -185.5l-158 -183h336v190h162v-356h-907l245 247q119 120 211 231.5t147.5 217t55.5 201.5q0 76 -24.5 129t-62.5 88t-82 51.5 t-81 16.5q-78 0 -127 -27t-77.5 -65.5t-40 -81.5t-11.5 -76q0 -68 20.5 -120t59.5 -93l-102 -105q-35 23 -62.5 61t-47 82t-30 90t-10.5 85z" />
33
+ <glyph unicode="3" horiz-adv-x="1054" d="M121 129l125 117q37 -45 89 -70.5t114 -25.5q57 0 107 22.5t88 60t60.5 88t22.5 107.5t-22.5 107.5t-60.5 87t-88 58t-107 21.5q-74 0 -134 -34l285 495h-227v-96h-162v264h674l-293 -487q68 -25 123 -65t96 -93t63.5 -118.5t22.5 -139.5q0 -92 -36 -173t-97.5 -141.5 t-142 -95t-172.5 -34.5q-98 0 -182.5 39.5t-145.5 105.5z" />
34
+ <glyph unicode="4" horiz-adv-x="1083" d="M76 375l749 973v-807h199v-166h-199v-213h170v-162h-495v162h153v213h-577zM420 541h233v305z" />
35
+ <glyph unicode="5" horiz-adv-x="1112" d="M211 109l125 114q35 -35 82 -54t100 -19q57 0 107.5 22.5t88.5 60t60.5 88t22.5 107.5t-22.5 107.5t-60.5 87t-88.5 58t-107.5 21.5q-72 0 -131 -23.5t-94 -80.5v733h588v-264h-162v98h-254v-301q12 2 25.5 3t27.5 1q92 0 173 -33.5t142.5 -94t97.5 -140.5t36 -172 t-36 -173t-97.5 -141.5t-142.5 -95t-173 -34.5q-90 0 -169 33t-138 92z" />
36
+ <glyph unicode="6" horiz-adv-x="1064" d="M98 403q0 147 62.5 275.5t161 239t219.5 206.5l235 181l53 -66l54 -65q-133 -88 -225.5 -165t-157.5 -143q10 0 21 1t22 1q92 0 173 -33.5t142.5 -94t97 -140.5t35.5 -172t-35.5 -173t-97 -141.5t-142.5 -95t-173 -34.5q-88 0 -167 32.5t-139.5 89t-97.5 133t-41 164.5z M274 428q0 -57 20.5 -107.5t57.5 -88t86 -60t105 -22.5q57 0 107 22.5t88 60t60.5 88t22.5 107.5t-22.5 107.5t-60.5 87t-88 58t-107 21.5q-55 0 -104.5 -21.5t-86.5 -58t-57.5 -87t-20.5 -107.5z" />
37
+ <glyph unicode="7" horiz-adv-x="960" d="M29 1067v264h845l-598 -1331h-194l526 1163h-418v-96h-161z" />
38
+ <glyph unicode="8" horiz-adv-x="1044" d="M74 428q0 119 57 216t152 157q-41 41 -64.5 97t-23.5 122q0 68 25.5 127t69.5 104t102.5 71t125.5 26q68 0 127.5 -26t104.5 -71t70.5 -104.5t25.5 -126.5q0 -66 -24.5 -122t-65.5 -97q94 -59 152.5 -156.5t58.5 -216.5q0 -92 -36 -173t-97.5 -141.5t-142.5 -95 t-173 -34.5t-173 34.5t-141.5 95t-95 141.5t-34.5 173zM250 428q0 -57 20.5 -107.5t57.5 -88t86 -60t104 -22.5q57 0 107.5 22.5t88.5 60t60.5 88t22.5 107.5q0 55 -21.5 104.5t-57.5 86t-85 59t-105 24.5q-59 0 -110 -21.5t-88 -58t-58.5 -87t-21.5 -107.5zM369 1020 q0 -66 45 -109t108 -43q66 0 110 43t44 109t-44 114t-110 48q-63 0 -108 -48t-45 -114z" />
39
+ <glyph unicode="9" horiz-adv-x="1075" d="M53 858q0 92 36 173t97.5 141.5t142.5 95.5t173 35t173 -36t141.5 -96.5t95 -141.5t34.5 -171q0 -139 -64.5 -264t-165 -234.5t-218.5 -203.5l-230 -174l-53 65l-53 66q133 88 225 164.5t158 142.5q-10 -2 -22 -2h-21q-92 0 -173 33.5t-142.5 94t-97.5 140.5t-36 172z M223 858q0 -57 22.5 -107.5t60.5 -87t88 -58t108 -21.5q55 0 104 21.5t86 58t57.5 87t20.5 107.5t-20.5 107.5t-57.5 88.5t-86 60.5t-104 22.5q-57 0 -107.5 -22.5t-88.5 -60.5t-60.5 -88.5t-22.5 -107.5z" />
40
+ <glyph unicode=":" horiz-adv-x="358" d="M68 106q0 47 32.5 78t73.5 31q39 0 72 -30.5t33 -78.5q0 -47 -33 -76.5t-72 -29.5q-41 0 -73.5 29.5t-32.5 76.5zM68 618q0 47 32.5 78t73.5 31q39 0 72 -30.5t33 -78.5q0 -47 -33 -76.5t-72 -29.5q-41 0 -73.5 29.5t-32.5 76.5z" />
41
+ <glyph unicode=";" horiz-adv-x="411" d="M-25 -246l79 211l79 211h172l-88 -211l-88 -211h-154zM131 618q0 47 33 78t74 31q39 0 71.5 -30.5t32.5 -78.5q0 -47 -33 -76.5t-71 -29.5q-41 0 -74 29.5t-33 76.5z" />
42
+ <glyph unicode="&#x3c;" horiz-adv-x="1392" d="M238 487l447 258l448 259v-232l-247 -142l-247 -143l247 -142l247 -142v-232l-448 258z" />
43
+ <glyph unicode="=" horiz-adv-x="1449" d="M205 229v166h1036v-166h-1036zM205 627v166h1036v-166h-1036z" />
44
+ <glyph unicode="&#x3e;" horiz-adv-x="1331" d="M238 -29v232l246 142l247 142l-247 143l-246 142v232l447 -259l448 -258l-448 -258z" />
45
+ <glyph unicode="?" horiz-adv-x="925" d="M84 1186q14 45 41 99t74 101.5t118.5 80t176.5 32.5q84 0 157.5 -31.5t128 -86t85 -127t30.5 -154.5q0 -115 -54.5 -200t-146.5 -155l-61 -42q-33 -22 -61.5 -49t-47 -65t-18.5 -93v-160h-172v199q0 66 20.5 106.5t55 72t77.5 59.5t91 65q74 55 108.5 120.5t34.5 141.5 q0 100 -62.5 166.5t-164.5 66.5q-115 0 -172.5 -51t-88.5 -152l-74.5 28zM311 106q0 47 33 78t74 31q39 0 71.5 -30.5t32.5 -78.5q0 -47 -32.5 -76.5t-71.5 -29.5q-41 0 -74 29.5t-33 76.5z" />
46
+ <glyph unicode="@" horiz-adv-x="2027" d="M133 387q0 178 68.5 336t186.5 274.5t275.5 184t337.5 67.5q178 0 336 -67.5t275 -184t184.5 -274.5t67.5 -338q-8 -109 -50 -181.5t-99.5 -118.5t-123 -65.5t-121.5 -19.5h-217v41v41q-2 -6 -20.5 -22.5t-52 -33t-80.5 -30.5t-107 -14q-86 0 -161.5 31.5t-131 87 t-87 128t-31.5 154.5q0 80 31.5 152.5t87 128t131 87t161.5 31.5q53 0 99.5 -14t81 -33.5t55 -38t24.5 -24.5q0 23 4.5 47t4.5 49h141v-602h67q41 0 80 11t70 37t49.5 68t22.5 103q0 145 -54.5 272t-148.5 222.5t-219 149.5t-269 54q-145 0 -271 -54t-221 -149.5 t-149.5 -222.5t-54.5 -272t54.5 -271t149.5 -220.5t221 -148.5t271 -54q121 0 228.5 35.5t200.5 99.5l51 -60l51 -61q-51 -45 -114.5 -79t-134.5 -56.5t-142.5 -33.5t-139.5 -11q-180 0 -337.5 67.5t-275.5 184.5t-186.5 274.5t-68.5 335.5zM754 385q0 -100 66.5 -169 t172.5 -69t173 69t67 169q0 102 -66.5 169t-173.5 67q-106 0 -172.5 -67t-66.5 -169z" />
47
+ <glyph unicode="A" horiz-adv-x="1613" d="M72 0v162h168l283 668l284 669l284 -669l283 -668h168v-162h-455v162h115l-85 203l-85 202h-450l-172 -405h116v-162h-454zM651 729h312l-138 326l-20 67q-2 -4 -4 -14t-6 -23q-4 -14 -11 -30q-27 -59 -49 -117l-43 -107z" />
48
+ <glyph unicode="B" horiz-adv-x="1110" d="M72 0v162h92v1110h-92v162h467q100 0 183 -20.5t141.5 -63.5t91 -112t32.5 -163q0 -127 -60.5 -223t-183.5 -131q57 -12 111.5 -41t94.5 -74t64.5 -104.5t24.5 -132.5q0 -92 -38.5 -161t-103.5 -115t-148.5 -69.5t-172.5 -23.5h-503zM334 162h227q63 0 118.5 14t97.5 44 t66.5 73t24.5 102q0 63 -28.5 110.5t-74.5 77t-107.5 44t-125.5 14.5h-198v-479zM334 803h221q121 0 191.5 67.5t70.5 178.5q0 121 -73.5 172t-192.5 51h-217v-469z" />
49
+ <glyph unicode="C" horiz-adv-x="1249" d="M72 715q0 152 57 286t156.5 233t232.5 157.5t285 58.5q104 0 197.5 -26.5t177.5 -75.5v-230h-162v125q-102 45 -213 45q-117 0 -218.5 -45t-178 -124t-120.5 -183.5t-44 -220.5q0 -117 44 -221.5t120.5 -181t178 -122t218.5 -45.5q152 0 280 76l93 -135 q-82 -47 -175.5 -74.5t-197.5 -27.5q-152 0 -285 57t-232.5 156.5t-156.5 232.5t-57 285z" />
50
+ <glyph unicode="D" horiz-adv-x="1294" d="M72 0v164h96v1108h-96v162h430q147 0 278 -50.5t229.5 -144.5t156 -226t57.5 -298q0 -121 -42 -248t-136.5 -230.5t-245 -170t-367.5 -66.5h-360zM338 164h143q121 0 225.5 39t181.5 111.5t121 174t44 228.5t-44 229.5t-121 175t-181.5 111.5t-225.5 39h-143v-1108z" />
51
+ <glyph unicode="E" horiz-adv-x="1169" d="M72 0v162h114v1110h-114v162h997v-316h-162v154h-551v-469h633v-162h-633v-479h580v153h162v-315h-1026z" />
52
+ <glyph unicode="F" horiz-adv-x="1140" d="M72 0v162h114v1110h-114v162h997v-316h-162v154h-551v-469h633v-162h-633v-479h211v-162h-495z" />
53
+ <glyph unicode="G" horiz-adv-x="1247" d="M72 711q0 152 57 285.5t156.5 233t232.5 158t285 58.5q104 0 197.5 -26.5t177.5 -76.5l-95 -137q-63 37 -132.5 57.5t-147.5 20.5q-117 0 -218.5 -45t-178 -124t-120.5 -183.5t-44 -220.5q0 -117 44 -221.5t120.5 -181.5t178 -122t218.5 -45q106 0 203 37v271h-211v161 h381v-528q-82 -47 -175.5 -74.5t-197.5 -27.5q-152 0 -285 57t-232.5 156.5t-156.5 232.5t-57 285z" />
54
+ <glyph unicode="H" horiz-adv-x="1581" d="M72 0v162h161v1110h-161v162h495v-162h-164v-469h775v469h-164v162h495v-162h-161v-1110h161v-162h-495v162h164v479h-775v-479h164v-162h-495z" />
55
+ <glyph unicode="I" horiz-adv-x="638" d="M72 0v162h161v1110h-161v162h495v-162h-164v-1110h164v-162h-495z" />
56
+ <glyph unicode="J" horiz-adv-x="636" d="M72 -133q141 8 232 90t91 233v1082h-323v162h493v-1250q0 -115 -38 -202.5t-103.5 -148t-156.5 -93.5t-195 -35v162z" />
57
+ <glyph unicode="K" horiz-adv-x="1404" d="M72 0v162h157v1110h-157v162h454v-162h-127v-400q-2 -16 -3 -32.5t-3 -32.5l39 47l438 418h-75v162h454v-162h-170l-440 -420l273 -345l274 -345h147v-162h-454v162h106l-230 290l-229 291l-127 -120v-461h168v-162h-495z" />
58
+ <glyph unicode="L" horiz-adv-x="1169" d="M72 0v162h114v1110h-114v162h454v-162h-170v-1110h580v153h162v-315h-1026z" />
59
+ <glyph unicode="M" horiz-adv-x="1998" d="M72 0v162h178v1110h-178v162h229l349 -454l349 -454l350 454l349 454h229v-162h-178v-1110h178v-162h-495v162h147v801q2 16 3 32.5t3 32.5l-33 -47l-32 -47q-123 -174 -257 -341l-264 -337l-548 717l-37 55q2 -16 3 -32.5t3 -32.5v-801h147v-162h-495z" />
60
+ <glyph unicode="N" horiz-adv-x="1751" d="M72 0v162h178v1110h-178v162h237l989 -1072l39 -53l-6 66v897h-147v162h495v-162h-178v-1338l-1048 1115l-39 53l6 -66v-874h147v-162h-495z" />
61
+ <glyph unicode="O" horiz-adv-x="1609" d="M72 715q0 150 57 284t156.5 234t232.5 158.5t285 58.5q150 0 284 -58.5t234 -158.5t158.5 -234.5t58.5 -283.5q0 -152 -58.5 -285t-158.5 -232.5t-234.5 -156.5t-283.5 -57q-152 0 -285 57t-232.5 156.5t-156.5 232.5t-57 285zM242 715q0 -119 44 -222.5t120.5 -180 t179 -122t219.5 -45.5t219 45.5t179 122t121 180t44 222.5t-44 222t-121 181t-179 123t-219 45t-219.5 -45t-179 -123t-120.5 -181t-44 -222z" />
62
+ <glyph unicode="P" horiz-adv-x="1058" d="M72 0v162h92v1110h-92v162h430q70 0 154.5 -21.5t158.5 -69t123 -121t49 -178.5q0 -186 -110.5 -295.5t-319.5 -109.5h-223v-477h233v-162h-495zM334 803h178q90 0 148.5 23.5t93 58.5t49 78t14.5 81q0 45 -23.5 86t-63.5 73t-96 50.5t-120 18.5h-180v-469z" />
63
+ <glyph unicode="Q" horiz-adv-x="1654" d="M72 715q0 152 57 286t156.5 233t232.5 157.5t285 58.5t286 -58.5t233 -157.5t157.5 -233.5t58.5 -285.5q0 -166 -69.5 -309.5t-186.5 -243.5h301v-162h-629q-78 -16 -151 -16q-152 0 -285 57t-232.5 156.5t-156.5 232.5t-57 285zM242 715q0 -117 44 -221.5t120.5 -181 t178 -122t218.5 -45.5t219 45.5t179 122t122 181t45 221.5t-45 221t-122 183t-179 124t-219 45t-218.5 -45t-178 -124t-120.5 -183t-44 -221z" />
64
+ <glyph unicode="R" horiz-adv-x="1179" d="M72 0v162h92v1110h-92v162h430q70 0 154.5 -21.5t158.5 -69t123 -121t49 -178.5q0 -154 -76.5 -257t-224.5 -136l229 -489h193v-162h-299l-301 639h-88h-86v-477h233v-162h-495zM334 803h178q90 0 148.5 23.5t93 58.5t49 78t14.5 81q0 45 -23.5 86t-63.5 73t-96 50.5 t-120 18.5h-180v-469z" />
65
+ <glyph unicode="S" horiz-adv-x="978" d="M43 190v238h162v-182q53 -41 127 -71t166 -30q53 0 102 15.5t87 45.5t60.5 75t22.5 104q0 106 -49 163.5t-123 89.5t-160 54.5t-160.5 61.5t-125 108.5t-52.5 196.5v12q0 61 19 123q20 68 67 123t125 90t191 35q37 0 80 -4t90 -16.5t97 -37t99 -65.5v-201h-161v121 q-39 16 -90.5 28.5t-112.5 12.5q-119 0 -176.5 -67.5t-57.5 -159.5q0 -61 29 -99.5t76 -64t107.5 -44t123 -40t122.5 -51t107.5 -77.5t76 -119t28.5 -175q0 -92 -34 -166t-92 -126t-136 -79.5t-164 -27.5q-78 0 -151.5 17t-135 46t-109.5 65.5t-75 77.5z" />
66
+ <glyph unicode="T" horiz-adv-x="1275" d="M72 1118v316h1132v-316h-162v154h-317v-1110h149v-162h-495v162h176v1110h-322v-154h-161z" />
67
+ <glyph unicode="U" horiz-adv-x="1492" d="M72 1272v162h495v-162h-168v-803q0 -78 26 -138.5t72 -101.5t109.5 -62.5t138.5 -21.5q76 0 139.5 21.5t109.5 62.5t73 101.5t27 138.5v803h-168v162h495v-162h-157v-809q0 -117 -40 -207t-110 -150.5t-164 -91t-205 -30.5t-205 30.5t-163.5 91t-108.5 150.5t-39 207v809 h-157z" />
68
+ <glyph unicode="V" horiz-adv-x="1658" d="M72 1272v162h495v-162h-147l189 -447l190 -446l18 -68l19 68l189 445l187 448h-120v162h495v-162h-203l-283 -669l-284 -669l-283 669l-284 669h-178z" />
69
+ <glyph unicode="W" horiz-adv-x="2412" d="M72 1272v162h495v-162h-147l189 -447l190 -446l18 -68q25 92 60.5 183.5t75.5 182.5l82 181q42 90 79 178l-50 118l-50 118h-189v162h496v-162h-137l189 -447l190 -446l18 -68l18 68l190 445l187 448h-131v162h496v-162h-193l-283 -669l-284 -669l-362 854l-21 72 q-29 -115 -74 -232.5t-98 -234.5l-107 -232l-102 -227l-283 669l-284 669h-178z" />
70
+ <glyph unicode="X" horiz-adv-x="1421" d="M72 0v162h153l373 569l-352 541h-174v162h495v-162h-112l114 -177l115 -175l27 -56l26 56l230 352h-113v162h496v-162h-176l-179 -278l-180 -275l182 -279l183 -278h170v-162h-496v162h113l-238 366q-8 14 -14 28.5t-15 29.5l-26 -58l-119 -183l-119 -183h131v-162h-495z " />
71
+ <glyph unicode="Y" horiz-adv-x="1615" d="M72 1272v162h495v-162h-82l150 -250l149 -250l23 -63h2l25 63l294 500h-79v162h495v-162h-207l-212 -361l-212 -360v-389h150v-162h-496v162h138v391l-215 359l-211 360h-207z" />
72
+ <glyph unicode="Z" horiz-adv-x="1288" d="M72 0v164l876 1108h-844v233h170v-71h883v-162l-876 -1108h774v332h162v-496h-1145z" />
73
+ <glyph unicode="[" horiz-adv-x="692" d="M170 -305v1833h393v-166h-223v-1501h223v-166h-393z" />
74
+ <glyph unicode="\" horiz-adv-x="788" d="M0 1507h193l284 -773l285 -773h-193l-284 773z" />
75
+ <glyph unicode="]" horiz-adv-x="700" d="M121 -139h223v1501h-223v166h393v-1833h-393v166z" />
76
+ <glyph unicode="^" horiz-adv-x="962" d="M229 981l123 185l123 186l123 -186l123 -185h-121l-62 74l-63 73l-62 -73l-63 -74h-121z" />
77
+ <glyph unicode="_" horiz-adv-x="1228" d="M205 0v166h819v-166h-819z" />
78
+ <glyph unicode="`" horiz-adv-x="409" d="M-104 1253h172l92 -136l92 -136h-121l-118 136z" />
79
+ <glyph unicode="a" horiz-adv-x="1120" d="M72 383q0 80 31.5 153.5t87 129t131 88t161.5 32.5q55 0 102.5 -16t82 -35.5t55 -38t20.5 -24.5q0 23 4.5 47t4.5 49h141v-606h156v-162h-306v41v41q-2 -6 -20 -22.5t-52 -34t-81 -30.5t-107 -13q-86 0 -161.5 31.5t-131 87t-87 128t-31.5 154.5zM244 385 q0 -100 66.5 -169t172.5 -69t173 69t67 169q0 102 -66.5 169t-173.5 67q-106 0 -172.5 -67t-66.5 -169z" />
80
+ <glyph unicode="b" horiz-adv-x="1120" d="M72 0v162h155v1212h-135v162h305v-795q-4 -16 -10 -31.5t-10 -31.5q2 6 23.5 24.5t56.5 37t81 32.5t99 14q86 0 161.5 -31.5t131 -87t87.5 -128t32 -154.5t-32 -155.5t-87.5 -129t-131 -87t-161.5 -31.5q-59 0 -106.5 13t-81 30.5t-52 34t-20.5 22.5v-41v-41h-305z M397 385q0 -100 66.5 -169t173.5 -69q106 0 173 69t67 169q0 102 -67 169t-173 67t-173 -67t-67 -169z" />
81
+ <glyph unicode="c" horiz-adv-x="813" d="M72 385q0 82 31.5 155.5t87 128t130 86t160.5 31.5q76 0 141.5 -23.5t118.5 -64.5v-237h-151v137q-51 23 -109 23q-106 0 -172.5 -67t-66.5 -169q0 -100 66.5 -169t172.5 -69q90 0 154 52l102 -129q-53 -41 -117.5 -64.5t-138.5 -23.5q-86 0 -160.5 31.5t-130 87t-87 128 t-31.5 156.5z" />
82
+ <glyph unicode="d" horiz-adv-x="1120" d="M72 385q0 82 31.5 154.5t87 128t131 87t161.5 31.5q51 0 97.5 -14t81 -32.5t56 -37t25.5 -24.5q-4 16 -10 31.5t-10 31.5v633h-135v162h305v-1374h156v-162h-306v41v41q-2 -6 -20 -22.5t-52 -34t-81 -30.5t-107 -13q-86 0 -161.5 31.5t-131 87t-87 129t-31.5 155.5z M244 385q0 -100 66.5 -169t172.5 -69t173 69t67 169q0 102 -66.5 169t-173.5 67q-106 0 -172.5 -67t-66.5 -169z" />
83
+ <glyph unicode="e" horiz-adv-x="921" d="M72 385q0 82 31.5 155.5t87 128t130 86t160.5 31.5q63 0 122 -25.5t105 -70.5t80.5 -107.5t53.5 -136.5l-278 -102l-277 -102q31 -43 81 -69t113 -26q94 0 156 66l104 -123q-51 -51 -116.5 -79.5t-143.5 -28.5q-86 0 -160.5 31.5t-130 87t-87 128t-31.5 156.5zM242 401 l191 71l192 71q-29 35 -65 56.5t-79 21.5q-104 0 -169.5 -63t-69.5 -157z" />
84
+ <glyph unicode="f" horiz-adv-x="688" d="M72 0v162h125v440h-125v166h123v291q0 115 37.5 203t103 148t157 92t195.5 36v-162q-141 -8 -232 -90t-91 -233v-285h241v-166h-241v-440h161v-162h-454z" />
85
+ <glyph unicode="g" horiz-adv-x="1120" d="M72 383q0 80 31.5 153.5t87 129t131 88t161.5 32.5q55 0 102.5 -16t82 -35.5t55 -38t20.5 -24.5q0 23 4.5 47t4.5 49h297v-162h-156v-729q0 -82 -32 -152.5t-87 -123t-129 -83t-160 -30.5q-92 0 -178 40t-147 83l112 139q41 -31 95.5 -58.5t113.5 -27.5q53 0 97.5 18.5 t77 50t50 76t17.5 95.5v137q4 8 8 17.5l8 19.5q-6 -10 -26.5 -25.5t-53 -31t-76.5 -26.5t-100 -11q-86 0 -161.5 31.5t-131 86t-87 127t-31.5 154.5zM244 385q0 -100 66.5 -169t172.5 -69t173 69t67 169q0 102 -66.5 169t-173.5 67q-106 0 -172.5 -67t-66.5 -169z" />
86
+ <glyph unicode="h" horiz-adv-x="1187" d="M72 0v162h155v1212h-155v162h325v-872l-6 -93q45 100 131 154.5t203 60.5q121 0 190.5 -63.5t73.5 -165.5v-395h127v-162h-454v162h157v317q-4 55 -40 95t-113 44q-53 0 -101.5 -18t-85.5 -51t-59.5 -78t-22.5 -98v-211h129v-162h-454z" />
87
+ <glyph unicode="i" horiz-adv-x="598" d="M72 0v162h143v444h-143v162h313v-606h141v-162h-454zM197 1065q0 47 32.5 78t73.5 31q39 0 72 -31t33 -78t-33 -77t-72 -30q-41 0 -73.5 30t-32.5 77z" />
88
+ <glyph unicode="j" horiz-adv-x="434" d="M72 606v162h290v-768q0 -125 -43 -218t-120 -153l-117 127q53 41 82 102.5t29 147.5v600h-121zM178 1065q0 47 33 78t74 31q39 0 71.5 -31t32.5 -78t-32.5 -77t-71.5 -30q-41 0 -74 30t-33 77z" />
89
+ <glyph unicode="k" horiz-adv-x="1079" d="M72 0v162h155v1212h-135v162h305v-1104l187 174h-76v162h412v-162h-127l-88 -84l-89 -84l100 -138l101 -138h191v-162h-412v162h22l-61 83l-59 83l-101 -95v-71h129v-162h-454z" />
90
+ <glyph unicode="l" horiz-adv-x="598" d="M72 0v162h155v1212h-135v162h305v-1374h129v-162h-454z" />
91
+ <glyph unicode="m" horiz-adv-x="1781" d="M72 0v162h155v444h-135v162h285v-18l7 -90l7 -89q43 98 130 154.5t204 60.5q113 0 181.5 -56t80.5 -148q45 94 131 147t199 57q121 0 190.5 -63.5t73.5 -165.5v-395h129v-162h-455v162h156v317q-4 55 -40 95t-114 44q-53 0 -101 -18t-85 -51t-59.5 -78t-22.5 -98v-211 h129v-162h-454v162h155v317q-4 55 -40 95t-113 44q-53 0 -101.5 -18t-85.5 -51t-59.5 -78t-22.5 -98v-211h129v-162h-454z" />
92
+ <glyph unicode="n" horiz-adv-x="1187" d="M72 0v162h155v444h-135v162h285v-18l7 -90l7 -89q41 98 132 156.5t202 58.5q121 0 190.5 -63.5t73.5 -165.5v-395h127v-162h-454v162h157v317q-4 55 -40 95t-113 44q-53 0 -101.5 -18t-85.5 -51t-59.5 -78t-22.5 -98v-211h129v-162h-454z" />
93
+ <glyph unicode="o" horiz-adv-x="964" d="M72 385q0 82 31.5 155.5t87 128t130 86t160.5 31.5t162 -31.5t131 -86t87 -128t32 -155.5q0 -84 -32 -156.5t-87 -128t-131 -87t-162 -31.5t-160.5 31.5t-130 87t-87 128t-31.5 156.5zM242 383q0 -49 18.5 -92t50 -75t74.5 -50.5t92 -18.5t92 18.5t76 50.5t51.5 75 t18.5 92t-18.5 92t-51.5 76t-76 51.5t-92 18.5t-92 -18.5t-74.5 -51.5t-50 -76t-18.5 -92z" />
94
+ <glyph unicode="p" horiz-adv-x="1122" d="M72 606v162h299q0 -23 2 -48.5t6 -47.5q2 6 23.5 25.5t56.5 39t81 34.5t99 15q86 0 162 -31.5t131 -87t87 -128t32 -154.5t-32 -155.5t-87 -129t-131 -87t-162 -31.5q-57 0 -102 12t-78 28.5t-52.5 32t-25.5 23.5q4 -10 9 -19.5t9 -19.5v-389h148v-162h-455v162h137v956 h-157zM399 385q0 -100 66.5 -169t173.5 -69q106 0 173 69t67 169q0 102 -67 169t-173 67t-173 -67t-67 -169z" />
95
+ <glyph unicode="q" horiz-adv-x="1128" d="M72 385q0 82 31.5 154.5t87 128t131 87t161.5 31.5q53 0 99.5 -15t81 -34.5t55 -39t24.5 -25.5q0 23 4.5 47t4.5 49h305v-162h-164v-956h129v-162h-455v162h156v389q4 10 9 19.5t9 19.5q-6 -8 -26.5 -23.5t-53 -32t-77.5 -28.5t-101 -12q-86 0 -161.5 31.5t-131 87 t-87 129t-31.5 155.5zM244 385q0 -100 66.5 -169t172.5 -69t173 69t67 169q0 102 -66.5 169t-173.5 67q-106 0 -172.5 -67t-66.5 -169z" />
96
+ <glyph unicode="r" horiz-adv-x="757" d="M72 0v162h155v444h-135v162h285v-18l7 -90l7 -89q25 51 63 91t79.5 68t81.5 42t71 14l-12 -168q-125 0 -201 -69.5t-76 -175.5v-211h129v-162h-454z" />
97
+ <glyph unicode="s" horiz-adv-x="679" d="M96 68v178h152v-80q25 -10 48 -13t58 -3q2 0 15.5 1t30 8t29.5 21.5t15 42.5q2 37 -20.5 56.5t-58 33t-78.5 26.5t-81 36.5t-62.5 66.5t-24.5 115q0 63 24.5 106.5t61.5 71t80 39.5t77 12q20 0 50 -4t61 -14t60.5 -26.5t52.5 -41.5v-178h-152v88q-31 10 -61 11 q-45 0 -65.5 -19.5t-16.5 -52.5q4 -25 30.5 -40t62.5 -29.5t77 -33t75.5 -46t57 -69.5t22.5 -106q0 -29 -11 -69.5t-39.5 -79.5t-80 -65.5t-133.5 -26.5q-76 0 -145.5 19.5t-110.5 64.5z" />
98
+ <glyph unicode="t" horiz-adv-x="686" d="M72 602v166h172v500h170v-500h200v-166h-200v-440h153v-162h-323v602h-172z" />
99
+ <glyph unicode="u" horiz-adv-x="1167" d="M72 606v162h305v-479q4 -55 40 -95t113 -44q53 0 101.5 18t85.5 51t59.5 78t22.5 98v211h-135v162h305v-625h127v-143h-297v104l6 93q-41 -98 -132 -156.5t-202 -58.5q-121 0 -190.5 63.5t-73.5 165.5v395h-135z" />
100
+ <glyph unicode="v" horiz-adv-x="1196" d="M72 606v162h454v-162h-106l102 -180q49 -90 78 -180q29 90 77 180t101 180h-123v162h469v-162h-170l-177 -327l-177 -326l-178 327l-178 326h-172z" />
101
+ <glyph unicode="w" horiz-adv-x="1699" d="M72 606v162h424v-162h-72l88 -179q43 -89 74 -181q23 70 54 136l65 134q10 23 21 45.5l22 44.5h-105v162h455v-162h-117l88 -179q43 -89 74 -181q31 92 72.5 181t89.5 179h-115v162h438v-162h-155l-165 -327l-165 -326l-279 551l-278 -551l-166 327l-166 326h-182z" />
102
+ <glyph unicode="x" horiz-adv-x="1077" d="M72 0v162h157l94 126l93 126l-71 96l-71 96h-202v162h454v-162h-47l88 -121l86 121h-55v162h408v-162h-150l-182 -252l70 -97l73 -95h189v-162h-455v162h51l-42 55l-40 55l-41 -55l-41 -55h41v-162h-407z" />
103
+ <glyph unicode="y" horiz-adv-x="1263" d="M72 606v162h454v-162h-108l119 -226q59 -114 98 -228q39 115 97 228l118 226h-127v162h469v-162h-168l-241 -478l-240 -478h100v-162h-455v162h185l87 176l89 174l-153 303l-152 303h-172z" />
104
+ <glyph unicode="z" horiz-adv-x="890" d="M72 0v166l119 112l111 107l110 109q55 55 120 112h-436v234h152v-72h524v-166q-66 -57 -121 -112l-109 -107l-111 -107l-120 -110h357v117h151v-283h-747z" />
105
+ <glyph unicode="{" horiz-adv-x="655" d="M61 524v166q49 2 81 30t50.5 68.5t24.5 89t6 89.5v319q0 94 19.5 144.5t52.5 72t77 23.5t93 2h129v-166h-90q-31 0 -51.5 -8t-32.5 -32t-17.5 -64.5t-5.5 -106.5v-264q0 -63 -13 -109.5t-33.5 -79t-43 -54t-43.5 -34.5q20 -12 43 -33.5t43.5 -55.5t33.5 -79t13 -106v-264 q0 -66 5.5 -108t17.5 -64.5t32.5 -30.5t51.5 -8h90v-166h-129q-47 0 -91 2t-78 23.5t-53.5 70.5t-19.5 146v311q0 41 -6 89t-24.5 89t-50.5 68.5t-81 29.5z" />
106
+ <glyph unicode="|" horiz-adv-x="555" d="M186 -475v1909h172v-1909h-172z" />
107
+ <glyph unicode="}" horiz-adv-x="655" d="M61 -139h91q31 0 51 8t32.5 30.5t17.5 64.5t5 108v264q0 61 13.5 107t34 79t44 54.5t41.5 33.5q-20 12 -43.5 34t-43 54.5t-33 78.5t-13.5 110v264q0 66 -5 106.5t-17.5 64.5t-33 32t-50.5 8h-91v166h129q47 0 91.5 -2t78 -23.5t53 -71t19.5 -145.5v-319q0 -41 7 -89.5 t24.5 -89t49.5 -68.5t81 -30v-166q-49 -2 -81 -29.5t-49.5 -68.5t-24.5 -89t-7 -89v-311q0 -96 -19.5 -145.5t-52 -71t-76.5 -23.5t-94 -2h-129v166z" />
108
+ <glyph unicode="~" horiz-adv-x="1001" d="M248 950q2 41 20.5 75t45 57.5t58 35.5t62.5 12q47 0 85 -18t73 -49q31 -33 54.5 -43t51.5 -10q14 0 32 4t34 14t27.5 28.5t15.5 47.5l92 -6q-2 -41 -20.5 -75t-45 -56.5t-58.5 -34.5t-62 -12q-47 0 -85 18t-73 47q-31 33 -54.5 43t-51.5 10q-29 0 -66 -18.5t-43 -75.5z " />
109
+ <glyph unicode="&#xa0;" />
110
+ <glyph unicode="&#xa2;" horiz-adv-x="788" d="M74 385q0 68 21.5 129t60.5 112.5t93 88.5t118 55v127h172v-115q59 -6 110 -28.5t94 -55.5l-2 -2v-59v-176h-151v137q-12 6 -24.5 9t-26.5 7v-462q27 6 52 18t46 29l102 -129q-45 -35 -92 -54.5t-108 -29.5v-125h-172v139q-63 18 -117.5 55t-93.5 87.5t-60.5 112.5 t-21.5 130zM244 385q0 -70 32.5 -125t90.5 -86v418q-57 -29 -90 -83t-33 -124z" />
111
+ <glyph unicode="&#xa3;" horiz-adv-x="1175" d="M59 0v166h91q33 0 53 7t32.5 29.5t16.5 62.5t4 106v188h-133v166h133v299q0 141 119 207.5t334 66.5q137 0 219 -61t123 -143l-129 -76l-24 34q-13 19 -35.5 37.5t-59.5 31t-94 12.5q-139 0 -210 -29t-71 -125v-254h240v-166h-240v-225q0 -59 -5 -99t-38 -69h563v196 q43 0 86 1.5t86 1.5v-365h-1061z" />
112
+ <glyph unicode="&#xa5;" horiz-adv-x="1306" d="M27 1272v162h495v-162h-82l150 -250l149 -250l23 -63h2l24 63l295 500h-79v162h495v-162h-207l-166 -285l-168 -282h148v-166h-238v-56v-112h240v-166h-240v-43h150v-162h-496v162h137v43h-235v166h235v168h-235v166h145l-336 567h-206z" />
113
+ <glyph unicode="&#xa9;" horiz-adv-x="1624" d="M281 762q0 117 43 215t115.5 170t171 111.5t208.5 39.5q111 0 209 -39.5t171 -111.5t116 -170t43 -215q0 -115 -43 -212t-116 -169t-171 -113t-209 -41t-209 41t-170.5 113t-115.5 169t-43 212zM362 762q0 -98 35 -182t96.5 -145.5t145.5 -96.5t180 -35t180 35 t145.5 96.5t96.5 145.5t35 182q0 100 -35 184t-96.5 145.5t-145.5 96.5t-180 35t-180 -35t-145.5 -96.5t-96.5 -145.5t-35 -184zM526 768q0 70 26 130t71 105.5t105 71t128 25.5q90 0 170 -45v-105h-74v58q-47 20 -96 20q-53 0 -99 -20.5t-80 -56.5t-54.5 -83t-20.5 -100 t20.5 -100t54.5 -82t80 -55.5t99 -20.5q70 0 127 35l41 -62q-37 -23 -79 -35t-89 -12q-68 0 -128 26.5t-105 72t-71 105.5t-26 128z" />
114
+ <glyph unicode="&#xad;" d="M109 301v166h376v-166h-376z" />
115
+ <glyph unicode="&#xae;" horiz-adv-x="1640" d="M281 762q0 117 43 215t115.5 170t171 111.5t208.5 39.5q111 0 209 -39.5t171 -111.5t116 -170t43 -215q0 -115 -43 -212t-116 -169t-171 -113t-209 -41t-209 41t-170.5 113t-115.5 169t-43 212zM362 762q0 -98 35 -182t96.5 -145.5t145.5 -96.5t180 -35t180 35 t145.5 96.5t96.5 145.5t35 182q0 100 -35 184t-96.5 145.5t-145.5 96.5t-180 35t-180 -35t-145.5 -96.5t-96.5 -145.5t-35 -184zM635 430v76h43v526h-43v76h203q33 0 72.5 -10.5t75.5 -33t59.5 -57t23.5 -83.5q0 -72 -37 -121t-106 -66l108 -231h90v-76h-141l-141 303h-43 h-41v-227h110v-76h-233zM758 809h86q43 0 70.5 11t44 27.5t22.5 37t6 39.5q0 43 -41 75.5t-102 32.5h-86v-223z" />
116
+ <glyph unicode="&#xb4;" horiz-adv-x="561" d="M205 981l92 136l92 136h172l-118 -136l-117 -136h-121z" />
117
+ <glyph unicode="&#x2000;" horiz-adv-x="782" />
118
+ <glyph unicode="&#x2001;" horiz-adv-x="1564" />
119
+ <glyph unicode="&#x2002;" horiz-adv-x="782" />
120
+ <glyph unicode="&#x2003;" horiz-adv-x="1564" />
121
+ <glyph unicode="&#x2004;" horiz-adv-x="520" />
122
+ <glyph unicode="&#x2005;" horiz-adv-x="391" />
123
+ <glyph unicode="&#x2006;" horiz-adv-x="260" />
124
+ <glyph unicode="&#x2007;" horiz-adv-x="260" />
125
+ <glyph unicode="&#x2008;" horiz-adv-x="194" />
126
+ <glyph unicode="&#x2009;" horiz-adv-x="311" />
127
+ <glyph unicode="&#x200a;" horiz-adv-x="86" />
128
+ <glyph unicode="&#x2010;" d="M109 301v166h376v-166h-376z" />
129
+ <glyph unicode="&#x2011;" d="M109 301v166h376v-166h-376z" />
130
+ <glyph unicode="&#x2012;" d="M109 301v166h376v-166h-376z" />
131
+ <glyph unicode="&#x2013;" horiz-adv-x="1042" d="M205 356v166h616v-166h-616z" />
132
+ <glyph unicode="&#x2014;" horiz-adv-x="1433" d="M203 356v166h1028v-166h-1028z" />
133
+ <glyph unicode="&#x2018;" horiz-adv-x="335" d="M63 1456q27 -4 53.5 -7t53.5 -7q-14 -72 5.5 -132.5t62.5 -101.5q-23 -12 -42.5 -24.5t-41.5 -24.5q-57 57 -82 134t-9 163z" />
134
+ <glyph unicode="&#x2019;" horiz-adv-x="335" d="M72 1208q43 41 62.5 101.5t4.5 132.5q27 4 53.5 7t53.5 7q16 -86 -8.5 -162.5t-81.5 -134.5q-23 12 -42 24.5t-42 24.5z" />
135
+ <glyph unicode="&#x201c;" horiz-adv-x="509" d="M63 1456q27 -4 53.5 -7t53.5 -7q-14 -72 5.5 -132.5t62.5 -101.5q-23 -12 -42.5 -24.5t-41.5 -24.5q-57 57 -82 134t-9 163zM276 1456q27 -4 53.5 -7t53.5 -7q-14 -72 5.5 -132.5t62.5 -101.5q-23 -12 -42.5 -24.5t-41.5 -24.5q-57 57 -82 134t-9 163z" />
136
+ <glyph unicode="&#x201d;" horiz-adv-x="507" d="M23 1208q43 41 62 101.5t5 132.5q27 4 53.5 7t53.5 7q16 -86 -8.5 -162.5t-82.5 -134.5q-23 12 -41.5 24.5t-41.5 24.5zM236 1208q43 41 62 101.5t5 132.5q27 4 53.5 7t53.5 7q16 -86 -8.5 -162.5t-82.5 -134.5q-23 12 -41.5 24.5t-41.5 24.5z" />
137
+ <glyph unicode="&#x2022;" horiz-adv-x="980" d="M231 614q0 55 20.5 102.5t55.5 83.5t82 56.5t100 20.5q55 0 102.5 -20.5t83.5 -56.5t56.5 -83t20.5 -103q0 -55 -20.5 -102t-56.5 -82t-83 -54.5t-103 -19.5q-53 0 -100 19.5t-82 54.5t-55.5 82t-20.5 102z" />
138
+ <glyph unicode="&#x2026;" horiz-adv-x="1001" d="M736 106q0 47 32.5 78t73.5 31q39 0 72 -30.5t33 -78.5q0 -47 -33 -76.5t-72 -29.5q-41 0 -73.5 29.5t-32.5 76.5zM402 106q0 47 32.5 78t73.5 31q39 0 72 -30.5t33 -78.5q0 -47 -33 -76.5t-72 -29.5q-41 0 -73.5 29.5t-32.5 76.5zM68 106q0 47 32.5 78t73.5 31 q39 0 72 -30.5t33 -78.5q0 -47 -33 -76.5t-72 -29.5q-41 0 -73.5 29.5t-32.5 76.5z" />
139
+ <glyph unicode="&#x202f;" horiz-adv-x="311" />
140
+ <glyph unicode="&#x205f;" horiz-adv-x="391" />
141
+ <glyph unicode="&#x2122;" horiz-adv-x="3274" d="M1348 0v162h178v1110h-178v162h229l349 -454l349 -454l350 454l349 454h229v-162h-178v-1110h178v-162h-495v162h147v801q2 16 3 32.5t3 32.5l-33 -47l-32 -47q-123 -174 -257 -341l-264 -337l-548 717l-37 55q2 -16 3 -32.5t3 -32.5v-801h147v-162h-495zM72 1118v316 h1132v-316h-162v154h-317v-1110h149v-162h-495v162h176v1110h-322v-154h-161z" />
142
+ <glyph unicode="&#xe000;" horiz-adv-x="770" d="M0 770h770v-770h-770v770z" />
143
+ <glyph unicode="&#xfb01;" horiz-adv-x="1286" d="M760 0v162h143v444h-143v162h313v-606h141v-162h-454zM885 1065q0 47 32.5 78t73.5 31q39 0 72 -31t33 -78t-33 -77t-72 -30q-41 0 -73.5 30t-32.5 77zM72 0v162h125v440h-125v166h123v291q0 115 37.5 203t103 148t157 92t195.5 36v-162q-141 -8 -232 -90t-91 -233v-285 h241v-166h-241v-440h161v-162h-454z" />
144
+ <glyph unicode="&#xfb02;" horiz-adv-x="1286" d="M760 0v162h155v1212h-135v162h305v-1374h129v-162h-454zM72 0v162h125v440h-125v166h123v291q0 115 37.5 203t103 148t157 92t195.5 36v-162q-141 -8 -232 -90t-91 -233v-285h241v-166h-241v-440h161v-162h-454z" />
145
+ <glyph unicode="&#xfb03;" horiz-adv-x="1974" d="M1448 0v162h143v444h-143v162h313v-606h141v-162h-454zM1573 1065q0 47 32.5 78t73.5 31q39 0 72 -31t33 -78t-33 -77t-72 -30q-41 0 -73.5 30t-32.5 77zM760 0v162h125v440h-125v166h123v291q0 115 37.5 203t103 148t157 92t195.5 36v-162q-141 -8 -232 -90t-91 -233 v-285h241v-166h-241v-440h161v-162h-454zM72 0v162h125v440h-125v166h123v291q0 115 37.5 203t103 148t157 92t195.5 36v-162q-141 -8 -232 -90t-91 -233v-285h241v-166h-241v-440h161v-162h-454z" />
146
+ <glyph unicode="&#xfb04;" horiz-adv-x="1974" d="M1448 0v162h155v1212h-135v162h305v-1374h129v-162h-454zM760 0v162h125v440h-125v166h123v291q0 115 37.5 203t103 148t157 92t195.5 36v-162q-141 -8 -232 -90t-91 -233v-285h241v-166h-241v-440h161v-162h-454zM72 0v162h125v440h-125v166h123v291q0 115 37.5 203 t103 148t157 92t195.5 36v-162q-141 -8 -232 -90t-91 -233v-285h241v-166h-241v-440h161v-162h-454z" />
147
+ </font>
148
+ </defs></svg>
skin/frontend/default/default/metro/font/JosefinSlab-Bold-webfont.ttf ADDED
Binary file
skin/frontend/default/default/metro/font/JosefinSlab-Bold-webfont.woff ADDED
Binary file
skin/frontend/default/default/metro/font/JosefinSlab-Light-webfont.eot ADDED
Binary file
skin/frontend/default/default/metro/font/JosefinSlab-Light-webfont.svg ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>
5
+ This is a custom SVG webfont generated by Font Squirrel.
6
+ Copyright : Copyright c 2010 by Typemade All rights reserved
7
+ Designer : Santiago Orozco
8
+ Foundry : Typemade
9
+ </metadata>
10
+ <defs>
11
+ <font id="webfontj5wOmE3w" horiz-adv-x="614" >
12
+ <font-face units-per-em="2048" ascent="1536" descent="-512" />
13
+ <missing-glyph horiz-adv-x="500" />
14
+ <glyph unicode=" " />
15
+ <glyph unicode="!" horiz-adv-x="411" d="M152 113q0 25 16 40t37 15q20 0 36.5 -15.5t16.5 -39.5q0 -23 -16.5 -38.5t-37 -15.5t-36.5 15.5t-16 38.5zM176 340v1196h57v-1196h-57z" />
16
+ <glyph unicode="&#x22;" horiz-adv-x="616" d="M129 967v508h64l-5 -254l-4 -254h-55zM401 967v508h64l-4 -254l-4 -254h-56z" />
17
+ <glyph unicode="#" horiz-adv-x="1169" d="M57 446l6 56h232q10 80 18.5 158.5t18.5 158.5h-228l7 55h229l26 222l27 221h58l-28 -221l-26 -222h320l25 222l28 221h57l-27 -221l-26 -222h264l-6 -55h-266q-10 -80 -18.5 -158.5t-18.5 -158.5h262q0 -14 -2 -28l-4 -28h-264l-25 -223q-12 -111 -26 -223h-58l27 223 l25 223h-320l-25 -223q-12 -111 -26 -223h-57q14 113 26 223l25 223h-230zM352 502h320q10 80 18 158.5t19 158.5h-320q-10 -80 -18.5 -158.5t-18.5 -158.5z" />
18
+ <glyph unicode="$" horiz-adv-x="1161" d="M84 143v211h55v-184q53 -53 132 -89t190 -40v700q-63 18 -121.5 41t-104 57.5t-74 87t-32.5 132.5q-4 66 13.5 131t58.5 119.5t105.5 90.5t154.5 40v125h55v-123q33 -2 71 -7t75.5 -15.5t74.5 -29t70 -44.5v-228h-55v199q-37 27 -96.5 46t-139.5 23v-600 q74 -23 145.5 -48t130 -68t95.5 -113t39 -176q2 -88 -30 -159.5t-88 -123t-131 -81t-161 -33.5v-123h-55v125q-76 2 -136.5 19.5t-107.5 41t-81 50t-52 46.5zM184 1079q0 -66 22.5 -110.5t60.5 -76.5t88.5 -52.5t105.5 -36.5v579q-70 -4 -121 -30.5t-86 -67.5t-52.5 -94.5 t-17.5 -110.5zM516 41q70 4 133.5 28.5t112.5 67.5t77.5 103.5t28.5 134.5q0 90 -30.5 149.5t-79.5 97t-112.5 61.5t-129.5 42v-684z" />
19
+ <glyph unicode="%" horiz-adv-x="1486" d="M213 797q0 47 18.5 89t50 72.5t74.5 49t90 18.5t89.5 -18.5t75 -49t51 -72.5t18.5 -89q0 -49 -18.5 -91t-51 -73t-74.5 -49.5t-90 -18.5q-47 0 -90 18.5t-74.5 49.5t-50 73t-18.5 91zM270 795q0 -72 51.5 -122t124.5 -50q74 0 125.5 50t51.5 122t-51.5 123t-125.5 51 t-125 -51t-51 -123zM412 0l305 512l305 512h63l-305 -512l-305 -512h-63zM836 231q0 47 18 89t50 73t75 48.5t90 17.5t89 -17.5t75 -48.5t51.5 -72.5t18.5 -89.5q0 -49 -18.5 -91t-51.5 -72.5t-75 -49t-89 -18.5t-90 18.5t-75 49t-50 72.5t-18 91zM893 229q0 -72 51 -123 t125 -51t125 51.5t51 122.5q0 72 -51 123t-125 51t-125 -51t-51 -123z" />
20
+ <glyph unicode="&#x26;" horiz-adv-x="1433" d="M217 383q0 74 25.5 140.5t69.5 118.5t104.5 87t132.5 47l-146 240q-37 61 -52 126.5t-5 129t47 119t105 96.5q57 35 117.5 42t118 -3t107.5 -33t89 -47l-23 -49q-43 25 -89 46t-93 30.5t-95 3t-95 -34.5q-59 -37 -92 -85t-41.5 -102.5t5 -109.5t46.5 -109l469 -764 q39 68 39 148v348h270v-55h-213v-160q0 -43 1 -89t-2 -91t-14.5 -90t-33.5 -86l127 -205l-45 -31l-113 182q-55 -72 -138 -114.5t-184 -42.5q-84 0 -156.5 30.5t-126.5 85t-85 126t-31 155.5zM274 383q0 -72 27 -134.5t73 -108.5t108.5 -72.5t133.5 -26.5q92 0 168 42 t121 114l-323 526q-66 -6 -122.5 -35t-97 -74t-64.5 -104t-24 -127z" />
21
+ <glyph unicode="'" horiz-adv-x="307" d="M127 967v508h63l-4 -254l-4 -254h-55z" />
22
+ <glyph unicode="(" horiz-adv-x="819" d="M289 598q0 154 28.5 293t75.5 258t107.5 216t126.5 165l16 -24q8 -11 19 -23q-59 -68 -116 -160t-102 -204.5t-71.5 -244t-26.5 -276.5t26.5 -276.5t71.5 -244t101.5 -204.5t116.5 -160l-19 -23l-16 -24q-66 68 -126.5 165t-107.5 216t-75.5 258t-28.5 293z" />
23
+ <glyph unicode=")" horiz-adv-x="819" d="M213 -289q59 68 115.5 160t101.5 204.5t71.5 244t26.5 276.5t-26.5 276.5t-71.5 244t-101.5 204.5t-115.5 160l16 23q8 11 19 24q63 -68 124.5 -165t108.5 -216t76 -258t29 -293t-29 -293t-76 -258t-108.5 -216t-124.5 -165q-10 12 -19 24z" />
24
+ <glyph unicode="*" horiz-adv-x="686" d="M74 1063l104 58l103 59l-103 61l-104 62q8 12 15 24t13 25l209 -123v246h64q-2 -61 -2 -123t-2 -123l106 59l107 62q8 -12 15 -24.5t13 -25.5l-105 -61l-106 -61l104 -60l105 -59l-16 -28l-16 -27l-104 61l-103 61q-2 -59 -2 -118.5t-2 -118.5h-56v237l-103 -60l-102 -58 l-16 27z" />
25
+ <glyph unicode="+" horiz-adv-x="1112" d="M176 446v56h340v340h57v-340h340v-56h-340v-342h-57v342h-340z" />
26
+ <glyph unicode="," horiz-adv-x="409" d="M45 -246l79 211l79 211h71l-88 -211l-88 -211h-53z" />
27
+ <glyph unicode="-" d="M109 362v56h376v-56h-376z" />
28
+ <glyph unicode="." horiz-adv-x="333" d="M121 53q0 23 16.5 39.5t38.5 16.5q23 0 38 -16.5t15 -39.5t-15 -38t-38 -15t-39 15t-16 38z" />
29
+ <glyph unicode="/" horiz-adv-x="684" d="M35 -39l284 773l285 773h58l-285 -773l-285 -773h-57z" />
30
+ <glyph unicode="0" horiz-adv-x="1261" d="M74 670q0 109 32.5 228.5t100 220t172 165t252.5 64.5q143 0 246.5 -67t170 -167t96.5 -220t30 -230q0 -145 -46.5 -269.5t-122 -215.5t-177 -142t-212.5 -51t-210 53t-172.5 144t-116.5 216.5t-43 270.5zM133 672q0 -141 40 -257t108.5 -199t156.5 -129t183 -46 q94 0 183 44t157.5 126t111.5 196.5t43 254.5q0 135 -34.5 249.5t-99 199.5t-155 133t-198.5 48q-109 0 -200 -46t-156.5 -129t-102.5 -196.5t-37 -248.5z" />
31
+ <glyph unicode="1" horiz-adv-x="526" d="M70 1276v55h270v-1276h164v-55h-385v55h164v1221h-213z" />
32
+ <glyph unicode="2" horiz-adv-x="1024" d="M100 954q0 82 25 154t73 125t117.5 84t161.5 31q82 0 150.5 -31t118 -85t76 -128t26.5 -160q0 -115 -55.5 -228.5t-142.5 -224t-193 -220.5l-207 -216h633v224h55v-279h-829l253 250q123 123 218.5 239.5t153 225t57.5 205.5q0 106 -31 177.5t-78 114.5t-101.5 61.5 t-103.5 18.5q-96 0 -158.5 -34.5t-98.5 -85t-49 -109.5t-13 -109q0 -141 82 -229l-37 -33q-47 47 -75 113.5t-28 148.5z" />
33
+ <glyph unicode="3" horiz-adv-x="1054" d="M176 121l41 45q47 -55 115.5 -91t148.5 -36q76 0 143.5 29.5t119 80t81 117t29.5 140.5q0 76 -29.5 142t-81 115.5t-119 78t-143.5 28.5q-35 0 -66.5 -12.5t-60.5 -32.5l406 549h-494v-129h-55v186h657l-385 -510q88 -2 165 -33.5t135.5 -87t92 -131t33.5 -163.5 t-33.5 -165t-91 -134.5t-134.5 -90t-165 -32.5q-92 0 -171 37t-138 100z" />
34
+ <glyph unicode="4" horiz-adv-x="1044" d="M76 375l749 973v-918h199v-55h-199v-320h170v-55h-385v55h158v320h-692zM195 430h573v750z" />
35
+ <glyph unicode="5" horiz-adv-x="1112" d="M231 100l43 39q47 -47 109.5 -73.5t134.5 -26.5q76 0 144.5 29.5t118.5 80t80 117t30 140.5t-30 139t-80 114.5t-118.5 77t-144.5 27.5q-72 0 -131 -23.5t-94 -62.5v653h588v-186h-56v131h-475v-494q41 16 83 27.5t89 11.5q86 0 164 -32.5t135.5 -89t91 -132t33.5 -161.5 q0 -88 -33.5 -165t-91 -134.5t-135.5 -90t-164 -32.5t-160 30.5t-131 85.5z" />
36
+ <glyph unicode="6" horiz-adv-x="1064" d="M102 397q0 147 63.5 275.5t162 240t218.5 206.5l234 179l19.5 -24t19.5 -23q-123 -82 -218 -160.5t-164.5 -150.5t-116 -136.5t-70.5 -115.5q47 59 117.5 96t156.5 37q88 0 165 -32.5t134.5 -90t91 -134.5t33.5 -163t-33.5 -161.5t-91 -133t-134.5 -90t-165 -32.5 q-86 0 -162.5 32.5t-134 88t-91.5 131t-34 161.5zM158 401q0 -76 28.5 -141t77.5 -114.5t115.5 -78t142.5 -28.5t143.5 28.5t118 78t79 115t28.5 140.5q0 76 -28.5 141.5t-79 115t-118 78t-143.5 28.5t-142.5 -28.5t-115.5 -78t-77.5 -115t-28.5 -141.5z" />
37
+ <glyph unicode="7" horiz-adv-x="960" d="M29 1145v186h825l-598 -1331h-68l576 1274h-680v-129h-55z" />
38
+ <glyph unicode="8" horiz-adv-x="1044" d="M102 406q0 70 21.5 132t59.5 113t91.5 89t116.5 57q-78 31 -127 99.5t-49 156.5q0 61 23.5 114.5t65.5 93t96.5 63.5t115.5 24q63 0 117.5 -24t95.5 -64.5t64.5 -96t23.5 -116.5q0 -86 -46 -152t-122 -98q63 -18 117.5 -55t94.5 -88.5t62.5 -115t22.5 -132.5 q0 -88 -33.5 -165t-91 -134.5t-135.5 -90t-164 -32.5t-162.5 32.5t-134 90t-90.5 134.5t-33 165zM160 406q0 -74 27.5 -140.5t75.5 -117t113.5 -80t141.5 -29.5t144.5 29.5t118.5 80t80 117t30 140.5t-30 139t-80 114.5t-117.5 77t-143.5 27.5t-141.5 -27.5t-114.5 -77 t-76.5 -114.5t-27.5 -139zM274 1040q0 -47 19.5 -87t52.5 -68.5t78 -45t96 -16.5t95 16.5t77 45t51.5 68.5t18.5 87q0 51 -18.5 96.5t-51.5 80t-77 55t-95 20.5t-96 -20.5t-78 -55t-52.5 -80t-19.5 -96.5z" />
39
+ <glyph unicode="9" horiz-adv-x="1075" d="M100 879q0 86 34 162.5t91.5 134t134 90t164.5 32.5t165 -32.5t134.5 -90t91 -134t33.5 -162.5q0 -147 -63.5 -274.5t-162.5 -238t-220 -205.5l-234 -177l-37 47q246 164 382.5 311t187.5 252q-47 -61 -119 -97t-158 -36q-88 0 -164.5 32.5t-134 90t-91.5 133.5t-34 162z M158 879q0 -76 28.5 -141.5t78.5 -115t118 -78t143 -28.5q76 0 142.5 28.5t116 78t78 115t28.5 141.5t-28.5 141t-78 114.5t-116 78t-142.5 28.5t-143.5 -28.5t-117.5 -78t-78.5 -114.5t-28.5 -141z" />
40
+ <glyph unicode=":" horiz-adv-x="358" d="M121 53q0 23 15.5 39.5t37.5 16.5q23 0 38 -16.5t15 -39.5t-15 -38t-38 -15t-38 15t-15 38zM121 565q0 23 15.5 39.5t37.5 16.5q23 0 38 -16.5t15 -39.5t-15 -38t-38 -15t-38 15t-15 38z" />
41
+ <glyph unicode=";" horiz-adv-x="411" d="M14 -246l79 211l79 211h72l-88 -211l-88 -211h-54zM170 565q0 23 16.5 39.5t38.5 16.5q20 0 37 -16.5t17 -39.5t-16.5 -38t-37.5 -15q-23 0 -39 15t-16 38z" />
42
+ <glyph unicode="&#x3c;" horiz-adv-x="1392" d="M236 487l448 259l449 260v-74l-388 -222l-387 -223l387 -222l388 -222v-74l-449 259z" />
43
+ <glyph unicode="=" horiz-adv-x="1449" d="M205 291v57h1036v-57h-1036zM205 688v57h1036v-57h-1036z" />
44
+ <glyph unicode="&#x3e;" horiz-adv-x="1331" d="M236 -31v74l387 222l387 222l-387 223l-387 222v74l448 -260l449 -259l-449 -259z" />
45
+ <glyph unicode="?" horiz-adv-x="925" d="M68 1219q18 55 53 106t84 90t111.5 61.5t136.5 22.5q84 0 157.5 -31.5t128 -86t85 -127t30.5 -154.5q0 -111 -54.5 -195t-146.5 -149q-37 -29 -71.5 -48.5t-60 -45t-41 -63.5t-15.5 -103v-160h-57v199q0 63 22.5 102t60 69.5t85 58.5t96.5 71q66 55 95.5 121.5 t29.5 142.5q0 74 -27 136t-73 108.5t-108.5 73t-135.5 26.5q-121 0 -210 -65.5t-124 -176.5l-26 8zM383 94q0 25 16.5 40.5t36.5 15.5t36.5 -15.5t16.5 -40.5q0 -23 -16 -38t-37 -15q-20 0 -36.5 15t-16.5 38z" />
46
+ <glyph unicode="@" horiz-adv-x="2027" d="M180 387q0 170 64.5 319.5t176 261t261 176t319.5 64.5t319.5 -64.5t261.5 -176t176.5 -261t64.5 -321.5q-4 -119 -33 -193.5t-71 -117.5t-94 -58.5t-103 -15.5h-172v96q0 29 1 56.5t1 56.5q-18 -47 -51 -87t-79 -69.5t-101.5 -48t-119.5 -18.5q-84 0 -156.5 31.5 t-126.5 85t-85 126t-31 156.5q0 82 31 154.5t85 127t127 86t156 31.5q61 0 115.5 -17t101 -48t80 -72t52.5 -86q0 51 3 102.5t5 104.5h45v-713h129q104 0 166.5 78t66.5 252q0 160 -60 299t-163.5 243.5t-243 165t-297.5 60.5t-297 -60.5t-242.5 -165t-163.5 -243.5 t-60 -299q0 -158 60 -297t163.5 -242.5t243 -164t296.5 -60.5q125 0 238 39t207 104q10 -12 17 -22t18 -21q-102 -74 -223 -114.5t-257 -40.5q-170 0 -319.5 64.5t-261 176t-176 261t-64.5 319.5zM659 385q0 -72 27 -134.5t73 -108.5t108.5 -72.5t133.5 -26.5 q72 0 135.5 26.5t109.5 72.5t73 108.5t27 134.5t-27 134.5t-73 109.5t-109.5 73.5t-135.5 26.5t-134 -26.5t-108 -73.5t-73 -109.5t-27 -134.5z" />
47
+ <glyph unicode="A" horiz-adv-x="1679" d="M72 0v55h155l307 721l306 723l306 -723l306 -721h156v-55h-377v55h162l-122 287l-122 289h-619l-121 -289l-122 -287h162v-55h-377zM555 686h569l-266 631l-18 55q-2 -4 -4 -12t-7 -19l-8 -24q-55 -143 -127 -307z" />
48
+ <glyph unicode="B" horiz-adv-x="1067" d="M72 0v55h135v1323h-135v56h446q94 0 172 -20.5t134.5 -63.5t87 -112t30.5 -163q0 -127 -63.5 -223t-194.5 -131q61 -12 117.5 -41t99.5 -74t68.5 -104.5t25.5 -132.5q0 -92 -36.5 -161t-98 -115t-140.5 -69.5t-165 -23.5h-483zM264 55h287q80 0 149.5 19.5t123 58.5 t84 98.5t30.5 137.5q0 84 -36 145t-95 101t-135 58.5t-158 18.5h-250v-637zM264 748h285q76 0 138.5 23.5t106.5 66.5t67.5 103t23.5 134q0 82 -25.5 139.5t-71 94.5t-109 53t-138.5 16h-277v-630z" />
49
+ <glyph unicode="C" horiz-adv-x="1249" d="M72 715q0 152 57 286t156.5 233t232.5 157.5t285 58.5q104 0 197.5 -26.5t177.5 -75.5v-230h-56v195q-145 82 -319 82q-139 0 -262 -54.5t-214 -146.5t-144.5 -216t-53.5 -265q0 -139 53.5 -262t143.5 -214.5t211.5 -144.5t261.5 -53q94 0 180 24.5t164 69.5l33 -47 q-82 -47 -175.5 -74.5t-197.5 -27.5q-152 0 -285 57t-232.5 156.5t-156.5 232.5t-57 285z" />
50
+ <glyph unicode="D" horiz-adv-x="1294" d="M72 0v55h139v1323h-139v56h430q147 0 278 -50.5t229.5 -143.5t156 -226t57.5 -297q0 -121 -42 -248t-136.5 -231.5t-245 -171t-367.5 -66.5h-360zM268 55h189q186 0 320 59.5t221 153.5t128 212t41 237q0 152 -52 274.5t-142 208.5t-210 132t-255 46h-240v-1323z" />
51
+ <glyph unicode="E" horiz-adv-x="1169" d="M72 0v55h157v1323h-157v56h997v-316h-55v260h-727v-628h702v-56h-702v-639h755v260h56v-315h-1026z" />
52
+ <glyph unicode="F" horiz-adv-x="1140" d="M72 0v55h157v1323h-157v56h997v-316h-55v260h-727v-628h702v-56h-702v-639h170v-55h-385z" />
53
+ <glyph unicode="G" horiz-adv-x="1247" d="M72 711q0 152 57 285.5t156.5 233t232.5 158t285 58.5q104 0 197.5 -26.5t177.5 -76.5l-33 -47q-154 94 -342 95q-139 0 -262 -54.5t-214 -146.5t-144.5 -216t-53.5 -265q0 -139 53.5 -262t143.5 -214.5t211.5 -144.5t261.5 -53q172 0 319 82v438h-323v55h381v-528 q-82 -47 -175.5 -74.5t-197.5 -27.5q-152 0 -285 57t-232.5 156.5t-156.5 232.5t-57 285z" />
54
+ <glyph unicode="H" horiz-adv-x="1488" d="M72 0v55h157v1323h-157v56h385v-56h-170v-628h915v628h-168v56h383v-56h-157v-1323h157v-55h-383v55h168v639h-915v-639h170v-55h-385z" />
55
+ <glyph unicode="I" horiz-adv-x="528" d="M72 0v55h157v1323h-157v56h385v-56h-170v-1323h170v-55h-385z" />
56
+ <glyph unicode="J" horiz-adv-x="544" d="M72 -236q74 4 137 34t109.5 84.5t72 132t25.5 175.5v1188h-344v56h401v-1250q0 -115 -31.5 -201.5t-86 -146t-128 -92.5t-155.5 -35v55z" />
57
+ <glyph unicode="K" horiz-adv-x="1404" d="M72 0v55h157v1323h-157v56h377v-56h-162v-614q0 -16 -1 -29.5t-3 -29.5l36 40l662 633h-119v56h375v-56h-178l-539 -514l321 -405l318 -404h174v-55h-377v55h131l-304 385l-302 387l-196 -184q0 -147 1 -293.5t1 -294.5h170v-55h-385z" />
58
+ <glyph unicode="L" horiz-adv-x="1161" d="M72 0v55h149v1323h-149v56h377v-56h-170v-1323h755v260h56v-315h-1018z" />
59
+ <glyph unicode="M" horiz-adv-x="1974" d="M72 0v55h161v1323h-161v56h209q12 -14 52 -68l98 -129l130 -169l147 -190l145 -190l130 -168l351 457l352 457h208v-56h-161v-1323h170v-55h-385v55h157v1194v15q0 12 1 27.5t2 28.5t1 15q-4 -4 -11 -13l-17 -24l-73 -96l-102 -134l-122 -160l-130 -170l-127 -166 l-114 -148l-214 279l-175 229l-149 194l-136 179l-22 30q2 -23 3 -43t1 -43v-1194h166v-55h-385z" />
60
+ <glyph unicode="N" horiz-adv-x="1726" d="M72 0v55h161v1323h-161v56h217l1106 -1315l39 -53l-7 65v1247h-157v56h385v-56h-170v-1444l-1161 1373l-37 45l4 -58v-1239h166v-55h-385z" />
61
+ <glyph unicode="O" horiz-adv-x="1609" d="M72 715q0 152 57 286t156.5 233t232.5 157.5t285 58.5t286 -58.5t233 -157.5t157.5 -233.5t58.5 -285.5q0 -152 -58.5 -285t-157.5 -232.5t-233.5 -156.5t-285.5 -57q-152 0 -285 57t-232.5 156.5t-156.5 232.5t-57 285zM129 713q0 -139 53.5 -262t143.5 -214.5 t211.5 -144.5t261.5 -53q139 0 263 53t217 145.5t147.5 215t54.5 262.5q0 139 -53.5 263t-145.5 216t-216 146.5t-263 54.5t-262 -54.5t-214 -146.5t-144.5 -216t-53.5 -265z" />
62
+ <glyph unicode="P" horiz-adv-x="999" d="M72 0v55h135v1323h-135v56h432q61 0 135 -20.5t138.5 -64.5t107.5 -115t43 -169q0 -174 -113 -276.5t-323 -102.5h-228v-631h193v-55h-385zM264 741h223q113 0 187 31t118 79t61 104.5t17 109.5q0 61 -28.5 118.5t-79.5 100.5t-121 68.5t-152 25.5h-225v-637z" />
63
+ <glyph unicode="Q" horiz-adv-x="1654" d="M72 715q0 152 57 286t156.5 233t232.5 157.5t285 58.5t286 -58.5t233 -157.5t157.5 -233.5t58.5 -285.5q0 -111 -31.5 -213.5t-90 -187.5t-138.5 -151.5t-176 -107.5h481v-55h-629q-78 -16 -151 -16q-152 0 -285 57t-232.5 156.5t-156.5 232.5t-57 285zM129 713 q0 -139 53.5 -262t143.5 -214.5t211.5 -144.5t261.5 -53q139 0 263 53t217 145.5t147.5 215t54.5 262.5q0 139 -54.5 263t-146.5 216t-215 146.5t-262 54.5t-262 -54.5t-214 -146.5t-144.5 -216t-53.5 -265z" />
64
+ <glyph unicode="R" horiz-adv-x="1167" d="M72 0v55h135v1323h-135v56h432q61 0 135 -20.5t138.5 -64.5t107.5 -115t43 -169q0 -145 -79 -241.5t-231 -127.5l302 -641h176v-55h-209l-328 692q-47 -6 -94 -6h-201v-631h193v-55h-385zM264 741h223q113 0 187 31t118 79t61 104.5t17 109.5q0 61 -28.5 118.5 t-79.5 100.5t-121 68.5t-152 25.5h-225v-637z" />
65
+ <glyph unicode="S" horiz-adv-x="978" d="M84 143v211h55v-184q57 -55 142.5 -93t203.5 -38q74 0 143.5 23.5t123 66.5t85 105.5t31.5 140.5q0 92 -30.5 152.5t-81.5 98.5t-116 61.5t-133.5 43t-134 41t-118.5 56t-87 90t-38 141.5q-1 12 -1 23q0 56 16 113q19 69 63.5 124t114 89t167.5 34q35 0 75 -4t82 -14.5 t83 -29t78 -48.5v-228h-55v199q-41 29 -106.5 49t-158.5 20q-76 0 -133 -25.5t-95 -68.5t-56.5 -98t-18.5 -115q0 -78 32 -128t83 -81.5t117 -52.5l135 -41q70 -20 136.5 -47t118.5 -70t85 -110.5t35 -167.5v-10q0 -84 -32 -154q-34 -74 -93.5 -126t-139 -79.5t-167.5 -27.5 q-82 0 -148.5 16t-118 41t-87.5 52t-56 50z" />
66
+ <glyph unicode="T" horiz-adv-x="1275" d="M72 1118v316h1132v-316h-55v260h-483v-1323h163v-55h-385v55h164v1323h-481v-260h-55z" />
67
+ <glyph unicode="U" horiz-adv-x="1402" d="M72 1378v56h385v-56h-170v-909q0 -104 30.5 -184t86 -134.5t131 -83t165.5 -28.5t166 28.5t131.5 83t87 134.5t31.5 184v909h-170v56h385v-56h-157v-915q0 -117 -36 -207t-99.5 -150.5t-150.5 -91t-188 -30.5q-102 0 -188 30.5t-148.5 91t-98.5 150.5t-36 207v915h-157z " />
68
+ <glyph unicode="V" horiz-adv-x="1714" d="M72 1378v56h385v-56h-156l268 -630l267 -631l18 -56l18 56l269 631l266 630h-147v56h382v-56h-176l-306 -723l-306 -721l-306 721l-306 723h-170z" />
69
+ <glyph unicode="W" horiz-adv-x="2482" d="M72 1378v56h385v-56h-156l265 -632l270 -629l18 -56q76 215 170 423l182 419l-99 237l-101 238h-168v56h385v-56h-158l264 -632l270 -629l19 -56l18 56l267 631l266 630h-144v56h385v-56h-182l-305 -723l-305 -721l-363 854l-20 52q-88 -227 -186 -454l-195 -452 l-306 721l-306 723h-170z" />
70
+ <glyph unicode="X" horiz-adv-x="1447" d="M72 0v55h176l436 680l-416 643h-196v56h385v-56h-121l187 -285l186 -284l18 -33l18 33l365 569h-119v56h385v-56h-198l-208 -326l-208 -325l219 -337l219 -335h176v-55h-385v55h137l-331 508q-20 29 -38 62.5t-40 62.5l-19 -33l-192 -302l-193 -298h142v-55h-385z" />
71
+ <glyph unicode="Y" horiz-adv-x="1499" d="M72 1378v56h385v-56h-172l221 -367l219 -368l25 -55h2l22 55l438 735h-168v56h383v-56h-145l-250 -420l-250 -419v-484h162v-55h-383v55h156v486l-251 418l-251 419h-143z" />
72
+ <glyph unicode="Z" horiz-adv-x="1288" d="M72 0v55l1011 1323h-977v127h60v-71h991v-56l-1012 -1323h1016v330h56v-385h-1145z" />
73
+ <glyph unicode="[" horiz-adv-x="692" d="M170 -305v1833h346v-55h-287v-1723h287v-55h-346z" />
74
+ <glyph unicode="\" horiz-adv-x="681" d="M29 1507h61l285 -773l284 -773h-61l-285 773z" />
75
+ <glyph unicode="]" horiz-adv-x="700" d="M168 -250h287v1723h-287v55h346v-1833h-346v55z" />
76
+ <glyph unicode="^" horiz-adv-x="962" d="M229 981l123 185l123 186l123 -186l123 -185h-51l-98 141l-97 142l-97 -142l-97 -141h-52z" />
77
+ <glyph unicode="_" horiz-adv-x="1228" d="M205 0v55h819v-55h-819z" />
78
+ <glyph unicode="`" horiz-adv-x="409" d="M-43 1253h59l93 -136l92 -136h-49l-99 136z" />
79
+ <glyph unicode="a" horiz-adv-x="1095" d="M72 385q0 82 30.5 154.5t85 127t127 86t156.5 31.5q61 0 116.5 -17t101.5 -48t80 -72t52 -86q0 51 2 102.5t6 104.5h43v-713h152v-55h-203v96v113q-18 -45 -51 -86t-79 -72t-101 -48t-119 -17q-84 0 -156.5 31.5t-127 85t-85 126t-30.5 156.5zM129 385q0 -72 26.5 -134.5 t72.5 -108.5t108.5 -72.5t134.5 -26.5t135.5 26.5t110.5 72.5t73.5 108.5t26.5 134.5t-26.5 134.5t-73.5 109.5t-110.5 73.5t-135.5 26.5t-134.5 -26.5t-108.5 -73.5t-72.5 -109.5t-26.5 -134.5z" />
80
+ <glyph unicode="b" horiz-adv-x="1095" d="M72 0v55h151v1426h-147v55h203v-862q0 -29 -1.5 -56.5t-3.5 -56.5q18 45 52 86t79.5 72t101.5 48t118 17q84 0 156.5 -31.5t127 -85t85 -127t30.5 -155.5q0 -84 -30.5 -156.5t-85 -126t-127 -85t-156.5 -31.5q-63 0 -118.5 17t-102 48t-79 72t-51.5 86v-113v-96h-202z M279 385q0 -72 26.5 -134.5t73.5 -108.5t110.5 -72.5t135.5 -26.5t134 26.5t108 72.5t73 108.5t27 134.5t-27 134.5t-73 109.5t-108.5 73.5t-133.5 26.5q-72 0 -135.5 -26.5t-110.5 -73.5t-73.5 -109.5t-26.5 -134.5z" />
81
+ <glyph unicode="c" horiz-adv-x="796" d="M72 385q0 82 31.5 155.5t85 127t126 85t156.5 31.5q74 0 138.5 -23.5t115.5 -64.5v-190h-53v158q-43 31 -93.5 48t-107.5 17q-72 0 -134.5 -26.5t-108.5 -73.5t-72.5 -109.5t-26.5 -134.5t26.5 -134.5t72.5 -108.5t108.5 -72.5t134.5 -26.5q63 0 117.5 19.5t99.5 54.5 l37 -43q-53 -41 -117.5 -64.5t-136.5 -23.5q-84 0 -156.5 31.5t-126 85t-85 126t-31.5 156.5z" />
82
+ <glyph unicode="d" horiz-adv-x="1095" d="M72 385q0 82 30.5 155.5t85 127t127 85t156.5 31.5q61 0 116.5 -17t101.5 -48t80 -72t52 -86q-2 53 -3 104.5t-1 104.5v711h-147v55h202v-1481h152v-55h-203v96v113q-18 -45 -51 -86t-79 -72t-101 -48t-119 -17q-84 0 -156.5 31.5t-127 85t-85 126t-30.5 156.5zM129 385 q0 -72 26.5 -134.5t72.5 -108.5t108.5 -72.5t134.5 -26.5t135.5 26.5t110.5 72.5t73.5 108.5t26.5 134.5t-26.5 134.5t-73.5 109.5t-110.5 73.5t-135.5 26.5t-134.5 -26.5t-108.5 -73.5t-72.5 -109.5t-26.5 -134.5z" />
83
+ <glyph unicode="e" horiz-adv-x="897" d="M72 385q0 82 31.5 155.5t85 127t126 85t156.5 31.5q123 0 216 -75.5t134 -194.5l-332 -133l-331 -133q39 -92 121.5 -148.5t191.5 -56.5q70 0 129 24.5t107 67.5l16 -20q8 -10 18 -21q-53 -51 -121.5 -79.5t-148.5 -28.5q-84 0 -156.5 31.5t-126 85t-85 126t-31.5 156.5z M137 459q-9 -37 -9 -74q0 -41 11 -84l304 122l305 122q-39 82 -112 133t-165 51q-84 0 -153.5 -37t-116 -96t-64.5 -137z" />
84
+ <glyph unicode="f" horiz-adv-x="598" d="M72 0v55h125v658h-125v55h125v293q0 113 31.5 201t86 147t127 91t156.5 36v-55q-70 0 -132.5 -30t-109.5 -83t-74.5 -130t-27.5 -173v-297h260v-55h-260v-658h195v-55h-377z" />
85
+ <glyph unicode="g" horiz-adv-x="1097" d="M72 385q0 82 30.5 154.5t85 127t127 86t156.5 31.5q61 0 116.5 -17t101.5 -48t80 -72t52 -86q0 51 2 102.5t6 104.5h197v-55h-154v-766q0 -109 -29.5 -193t-81.5 -142t-122 -90t-150 -34q-86 4 -173 31.5t-140 91.5l43 39q47 -55 122 -80t146 -25q68 0 128.5 29t104.5 81 t70.5 126t26.5 164v151q0 29 1 55.5t3 55.5q-37 -92 -131 -155.5t-219 -63.5q-84 0 -156.5 30.5t-127 85t-85 126t-30.5 155.5zM129 385q0 -72 26.5 -134.5t72.5 -108.5t108.5 -72.5t134.5 -26.5t135.5 26.5t110.5 72.5t73.5 108.5t26.5 134.5t-26.5 134.5t-73.5 109.5 t-110.5 73.5t-135.5 26.5t-134.5 -26.5t-108.5 -73.5t-72.5 -109.5t-26.5 -134.5z" />
86
+ <glyph unicode="h" horiz-adv-x="1093" d="M72 0v55h159v1426h-149v55h207v-877l-6 -92q43 98 132 156.5t206 58.5q111 0 174 -63.5t67 -165.5v-498h160v-55h-377v55h162v494q-4 72 -52 123t-134 55q-66 0 -126.5 -21.5t-106.5 -60.5t-72.5 -93t-26.5 -118v-379h160v-55h-377z" />
87
+ <glyph unicode="i" horiz-adv-x="520" d="M72 0v55h164v658h-164v55h219v-713h158v-55h-377zM209 1032q0 23 16.5 39t38.5 16q23 0 38 -16t15 -39t-15 -38t-38 -15t-39 15t-16 38z" />
88
+ <glyph unicode="j" horiz-adv-x="358" d="M72 713v55h215v-780q0 -119 -33 -208t-92 -149l-43 39q51 53 80.5 132t29.5 182v729h-157zM207 1032q0 23 15.5 39t37.5 16q23 0 38 -16t15 -39t-15 -38t-38 -15t-38 15t-15 38z" />
89
+ <glyph unicode="k" horiz-adv-x="1013" d="M72 0v55h149v1426h-147v55h205v-1161l360 338h-139v55h366v-55h-153l-124 -120q-54 -54 -126 -120l151 -209l154 -209h174v-55h-367v55h123l-140 189l-138 190l-141 -133v-246h170v-55h-377z" />
90
+ <glyph unicode="l" horiz-adv-x="520" d="M72 0v55h149v1426h-147v55h205v-1481h170v-55h-377z" />
91
+ <glyph unicode="m" horiz-adv-x="1667" d="M72 0v55h159v658h-149v55h192l5 -90q0 -31 2 -55.5t2 -55.5q41 98 131 156.5t207 58.5q102 0 165.5 -56t73.5 -148q45 92 133 148t201 56q111 0 175.5 -63.5t68.5 -165.5v-498h157v-55h-376v55h161v494q-4 72 -52 123t-134 55q-66 0 -124 -21.5t-103 -58.5t-74 -89 t-31 -114v-389h160v-55h-377v55h162v494q-4 72 -52 123t-134 55q-66 0 -126.5 -21.5t-106.5 -60.5t-72.5 -93t-26.5 -118v-379h160v-55h-377z" />
92
+ <glyph unicode="n" horiz-adv-x="1093" d="M72 0v55h159v658h-149v55h192l5 -90q0 -31 2 -55.5t2 -55.5q41 98 131 156.5t207 58.5q111 0 174 -63.5t67 -165.5v-498h160v-55h-377v55h162v494q-4 72 -52 123t-134 55q-66 0 -126.5 -21.5t-106.5 -60.5t-72.5 -93t-26.5 -118v-379h160v-55h-377z" />
93
+ <glyph unicode="o" horiz-adv-x="948" d="M74 385q0 82 30.5 155.5t85 128t127 86t156.5 31.5t158 -31.5t128 -86t86 -128t32 -155.5q0 -84 -32 -156.5t-86 -126t-128 -85t-158 -31.5t-156.5 31.5t-127 85t-85 126t-30.5 156.5zM131 385q0 -72 26.5 -134.5t72.5 -108.5t108.5 -72.5t134.5 -26.5q70 0 133.5 26.5 t109.5 72.5t73.5 108.5t27.5 134.5t-27.5 134.5t-73.5 109.5t-109.5 73.5t-133.5 26.5q-72 0 -134.5 -26.5t-108.5 -73.5t-72.5 -109.5t-26.5 -134.5z" />
94
+ <glyph unicode="p" horiz-adv-x="1095" d="M72 713v55h196q0 -53 2 -106l4 -107q18 45 52 87t80.5 72.5t101.5 49t117 18.5q84 0 156.5 -31.5t127 -85t85 -127t30.5 -155.5q0 -84 -30.5 -156.5t-85 -126t-127 -85t-156.5 -31.5q-125 0 -218.5 64.5t-130.5 156.5q0 -25 2.5 -49.5t2.5 -46.5v-566h182v-55h-375v55 h135v1170h-151zM281 383q0 -72 26.5 -134.5t72.5 -109.5t109.5 -73.5t135.5 -26.5t134 26.5t108 73.5t73 109.5t27 134.5t-27 134.5t-73 108.5t-108.5 72.5t-133.5 26.5q-72 0 -135.5 -26.5t-109.5 -72.5t-72.5 -108.5t-26.5 -134.5z" />
95
+ <glyph unicode="q" horiz-adv-x="1097" d="M72 383q0 82 30.5 155.5t85 127t127 85t156.5 31.5q61 0 117.5 -18.5t102.5 -49t79 -72.5t51 -87q0 53 4 106.5t4 106.5h197v-55h-154v-1170h144v-55h-377v55h176v566q0 23 2 47t2 49q-37 -92 -130 -156.5t-218 -64.5q-84 0 -156.5 31.5t-127 85t-85 126t-30.5 156.5z M129 383q0 -72 26.5 -134.5t72.5 -109.5t108.5 -73.5t134.5 -26.5t135.5 26.5t110.5 73.5t73.5 109.5t26.5 134.5t-26.5 134.5t-73.5 108.5t-110.5 72.5t-135.5 26.5t-134.5 -26.5t-108.5 -72.5t-72.5 -108.5t-26.5 -134.5z" />
96
+ <glyph unicode="r" horiz-adv-x="686" d="M72 0v55h159v658h-149v55h192l5 -90q0 -31 2 -55.5t2 -55.5q45 100 136 156.5t195 58.5l-2 -55q-66 -2 -125 -24.5t-103 -61.5t-69.5 -92t-25.5 -115v-379h160v-55h-377z" />
97
+ <glyph unicode="s" horiz-adv-x="651" d="M109 55v144h53v-113q43 -31 93 -39t97 -8q25 0 55.5 10t58.5 30.5t46 51.5t18 74q0 57 -28.5 89t-71.5 51.5t-94 32.5t-95 33.5t-74 56.5t-30 101q0 51 19.5 90t50.5 66t68.5 40t74.5 13q6 0 31 -1t56.5 -7t64.5 -19.5t55 -37.5v-144h-53v115q-16 14 -40 22.5t-47.5 11.5 t-42 4t-24.5 1q-25 0 -52.5 -8t-51 -24.5t-37.5 -45.5t-14 -67q0 -53 28.5 -82t72.5 -47.5t95 -33t95 -38t73 -61t29 -105.5q0 -37 -13.5 -77t-43 -73.5t-75.5 -55t-110 -21.5q-16 0 -46 2t-63.5 10t-68 21t-59.5 38z" />
98
+ <glyph unicode="t" horiz-adv-x="628" d="M72 713v55h180v500h57v-500h248v-55h-248v-658h172v-55h-229v713h-180z" />
99
+ <glyph unicode="u" horiz-adv-x="1081" d="M72 713v55h213v-549q4 -72 52 -123t134 -55q66 0 126 21.5t106.5 60.5t73 93t26.5 118v379h-158v55h213v-717h152v-51h-195l-4 109l-2 92q-41 -98 -132 -156.5t-206 -58.5q-111 0 -175.5 63.5t-68.5 165.5v498h-155z" />
100
+ <glyph unicode="v" horiz-adv-x="1206" d="M72 713v55h354v-55h-141l164 -325l159 -327l155 320l169 332h-119v55h322v-55h-144l-191 -380l-192 -380l-193 380l-192 380h-151z" />
101
+ <glyph unicode="w" horiz-adv-x="1748" d="M72 713v55h348v-55h-135l160 -327l161 -325l116 240l118 238l-36 86l-34 88h-141v55h354v-55h-141l160 -327l161 -325l158 327l162 325h-121v55h315v-55h-135l-190 -380l-189 -380l-278 559l-279 -559l-190 380l-191 380h-153z" />
102
+ <glyph unicode="x" horiz-adv-x="1015" d="M72 0v55h149l121 166l119 168l-119 162l-119 162h-151v55h377v-55h-154l211 -291l209 291h-137v55h366v-55h-160l-243 -338l117 -159l118 -161h168v-55h-377v55h140l-105 145l-104 142l-103 -143l-102 -144h145v-55h-366z" />
103
+ <glyph unicode="y" horiz-adv-x="1218" d="M72 713v55h354v-55h-137l165 -330l160 -330l160 327l168 333h-117v55h322v-55h-141l-582 -1170h141v-55h-377v55h170l113 227l113 224l-182 359l-179 360h-151z" />
104
+ <glyph unicode="z" horiz-adv-x="880" d="M72 0v55l312 329l310 329h-598v127h54v-72h622v-55l-312 -329l-310 -329h606v109h53v-164h-737z" />
105
+ <glyph unicode="{" horiz-adv-x="577" d="M61 575v72q49 2 81 30t50.5 68.5t24.5 89t6 89.5v362q0 94 16.5 143.5t42 71t59.5 24.5t71 3h88v-55h-113q-63 0 -84.5 -50.5t-21.5 -177.5v-297q0 -90 -11.5 -148.5t-30 -95t-43 -57t-51.5 -35.5q27 -14 51.5 -35.5t43 -59.5t30 -95t11.5 -146v-299q0 -125 21.5 -175 t84.5 -50h113v-55h-88q-41 0 -76 3t-59.5 30.5t-39 89t-14.5 178.5v301q0 41 -6 89t-24.5 89t-50.5 68.5t-81 29.5z" />
106
+ <glyph unicode="|" horiz-adv-x="468" d="M199 -475v1909h57v-1909h-57z" />
107
+ <glyph unicode="}" horiz-adv-x="655" d="M156 -248h112q63 0 85 50.5t22 174.5v361q0 68 14 115t34.5 78.5t44.5 50t42 30.5q-27 14 -51.5 35t-43 57.5t-29.5 95t-11 148.5v297q0 127 -21.5 177.5t-85.5 50.5h-112v55h88q37 0 70.5 -2t59 -23.5t42 -72t16.5 -144.5v-303q0 -37 2 -93t17.5 -108.5t48 -92.5 t94.5 -42v-72q-61 -4 -94 -42.5t-48.5 -92t-17.5 -109t-2 -91.5v-301q0 -94 -16.5 -144.5t-42 -72t-59 -23.5t-70.5 -2h-88v55z" />
108
+ <glyph unicode="~" horiz-adv-x="1001" d="M266 967q2 39 18.5 66.5t41 45t54.5 25.5t58 8q41 0 76 -20.5t68 -55.5t57.5 -47t52.5 -12q14 0 36 4t41 16.5t33.5 34t18.5 53.5q10 -2 20.5 -2t20.5 -2q-2 -39 -18.5 -66.5t-41 -45t-54 -25.5t-58.5 -8q-41 0 -76.5 20.5t-68.5 55.5t-56.5 47t-52.5 12q-16 0 -36.5 -4 t-41 -16.5t-35 -34t-18.5 -53.5q-10 2 -19.5 2t-19.5 2z" />
109
+ <glyph unicode="&#xa0;" />
110
+ <glyph unicode="&#xa2;" horiz-adv-x="788" d="M74 385q0 76 26.5 144.5t73.5 122t111.5 87t140.5 41.5v117h57v-113q70 -2 132.5 -24.5t111.5 -63.5l-2 -2q0 -4 1 -6t1 -6v-176h-53v158q-41 29 -89 46t-102 17v-684q59 2 111.5 21.5t95.5 52.5l37 -43q-104 -82 -244 -86v-127h-57v131q-76 8 -140.5 42t-111.5 86 t-73.5 119.5t-26.5 145.5zM131 385q0 -66 22.5 -123t62.5 -102t93 -75t117 -38v674q-63 -6 -116.5 -36t-93.5 -74t-62.5 -102t-22.5 -124z" />
111
+ <glyph unicode="&#xa3;" horiz-adv-x="1175" d="M55 0v55h90q35 0 56.5 13.5t33 46t14.5 88t3 139.5v279h-133v57h133v346q0 143 95 208.5t255 65.5q137 0 210 -52t114 -134l-41 -25q-23 41 -47.5 71t-57 48.5t-75.5 27.5t-103 9q-84 0 -140 -17.5t-90 -47t-48.5 -69.5t-14.5 -87v-344h258v-57h-258v-375 q0 -59 -9 -110.5t-38 -80.5h701v219h57v-274h-965z" />
112
+ <glyph unicode="&#xa5;" horiz-adv-x="1306" d="M27 1378v56h385v-56h-172l223 -365q113 -181 217 -370l25 -55h2l22 55l438 735h-168v56h383v-56h-145l-233 -392l-234 -392h274v-55h-307v-13v-266h310v-55h-310v-150h162v-55h-383v55h156v150h-310v55h310v277v2h-310v55h277l-469 784h-143z" />
113
+ <glyph unicode="&#xa9;" horiz-adv-x="1624" d="M293 762q0 113 41 209t111.5 166.5t167 109.5t206.5 39q111 0 207 -39t167 -109.5t112 -167t41 -208.5q0 -113 -41 -209t-112 -166t-167 -108.5t-207 -38.5t-207 38.5t-166.5 108.5t-111.5 166t-41 209zM334 760q0 -102 38 -191.5t103.5 -154t153.5 -101.5t188 -37 t189.5 37t156 101.5t104.5 153.5t38 192q0 106 -38 195t-104.5 155t-155.5 102.5t-190 36.5q-100 0 -188 -36.5t-153.5 -102.5t-103.5 -155t-38 -195zM528 768q0 70 26 130t71 105.5t105.5 71t127.5 25.5q90 0 170 -45v-105h-24v88q-66 37 -146 37q-63 0 -118.5 -24.5 t-97.5 -66.5t-65.5 -98.5t-23.5 -119.5t23.5 -118.5t65.5 -96.5t97.5 -64.5t116.5 -23.5q86 0 156 41l14 -21q-37 -23 -79 -35t-89 -12q-68 0 -128 26.5t-105 72t-71 105.5t-26 128z" />
114
+ <glyph unicode="&#xad;" d="M109 362v56h376v-56h-376z" />
115
+ <glyph unicode="&#xae;" horiz-adv-x="1640" d="M293 762q0 113 41 209t111.5 166.5t167 109.5t206.5 39q111 0 207 -39t167 -109.5t112 -167t41 -208.5q0 -113 -41 -209t-112 -166t-167 -108.5t-207 -38.5t-207 38.5t-166.5 108.5t-111.5 166t-41 209zM334 760q0 -102 38 -191.5t103.5 -154t153.5 -101.5t188 -37 t189.5 37t156 101.5t104.5 153.5t38 192q0 106 -38 195t-104.5 155t-155.5 102.5t-190 36.5q-100 0 -188 -36.5t-153.5 -102.5t-103.5 -155t-38 -195zM637 430v27h63v624h-63v27h203q29 0 63.5 -9t65 -30.5t51 -54.5t20.5 -80q0 -70 -36.5 -115t-108.5 -59l141 -303h84v-27 h-98l-156 328q-10 -2 -22.5 -3t-22.5 -1h-94v-297h90v-27h-180zM727 780h104q53 0 89 14.5t56.5 38t29 50t8.5 51.5q0 59 -51.5 103t-128.5 44h-107v-301z" />
116
+ <glyph unicode="&#xb4;" horiz-adv-x="468" d="M205 981l92 136l92 136h62l-99 -136l-96 -136h-51z" />
117
+ <glyph unicode="&#x2000;" horiz-adv-x="782" />
118
+ <glyph unicode="&#x2001;" horiz-adv-x="1564" />
119
+ <glyph unicode="&#x2002;" horiz-adv-x="782" />
120
+ <glyph unicode="&#x2003;" horiz-adv-x="1564" />
121
+ <glyph unicode="&#x2004;" horiz-adv-x="520" />
122
+ <glyph unicode="&#x2005;" horiz-adv-x="391" />
123
+ <glyph unicode="&#x2006;" horiz-adv-x="260" />
124
+ <glyph unicode="&#x2007;" horiz-adv-x="260" />
125
+ <glyph unicode="&#x2008;" horiz-adv-x="194" />
126
+ <glyph unicode="&#x2009;" horiz-adv-x="311" />
127
+ <glyph unicode="&#x200a;" horiz-adv-x="86" />
128
+ <glyph unicode="&#x2010;" d="M109 362v56h376v-56h-376z" />
129
+ <glyph unicode="&#x2011;" d="M109 362v56h376v-56h-376z" />
130
+ <glyph unicode="&#x2012;" d="M109 362v56h376v-56h-376z" />
131
+ <glyph unicode="&#x2013;" horiz-adv-x="1042" d="M205 365v55h616v-55h-616z" />
132
+ <glyph unicode="&#x2014;" horiz-adv-x="1433" d="M203 365v55h1028v-55h-1028z" />
133
+ <glyph unicode="&#x2018;" horiz-adv-x="335" d="M78 1456q12 -4 26.5 -7t26.5 -7q-14 -72 5.5 -132.5t62.5 -101.5q-8 -10 -14.5 -19t-12.5 -20q-59 53 -84.5 129t-9.5 158z" />
134
+ <glyph unicode="&#x2019;" horiz-adv-x="335" d="M111 1208q43 41 62.5 101.5t4.5 132.5q12 4 26.5 7t26.5 7q16 -82 -9 -157.5t-85 -129.5l-12 19.5t-14 19.5z" />
135
+ <glyph unicode="&#x201c;" horiz-adv-x="509" d="M63 1456q12 -4 25.5 -7t28.5 -7q-14 -72 5 -132.5t62 -101.5q-8 -10 -14 -19t-12 -20q-59 53 -85 129t-10 158zM276 1456q12 -4 25.5 -7t28.5 -7q-14 -72 5 -132.5t62 -101.5q-8 -10 -14 -19t-12 -20q-59 53 -85 129t-10 158z" />
136
+ <glyph unicode="&#x201d;" horiz-adv-x="507" d="M76 1208q43 41 62.5 101.5t4.5 132.5q14 4 27.5 7t26.5 7q16 -82 -9.5 -157.5t-85.5 -129.5l-12 19.5t-14 19.5zM289 1208q43 41 62.5 101.5t4.5 132.5q14 4 27.5 7t26.5 7q16 -82 -9.5 -157.5t-85.5 -129.5l-12 19.5t-14 19.5z" />
137
+ <glyph unicode="&#x2022;" horiz-adv-x="980" d="M332 614q0 68 46 114t111 46q68 0 114 -46t46 -114q0 -66 -46 -111.5t-114 -45.5q-66 0 -111.5 45.5t-45.5 111.5z" />
138
+ <glyph unicode="&#x2026;" horiz-adv-x="1001" d="M789 53q0 23 16.5 39.5t38.5 16.5q23 0 38 -16.5t15 -39.5t-15 -38t-38 -15t-39 15t-16 38zM455 53q0 23 16.5 39.5t38.5 16.5q23 0 38 -16.5t15 -39.5t-15 -38t-38 -15t-39 15t-16 38zM121 53q0 23 16.5 39.5t38.5 16.5q23 0 38 -16.5t15 -39.5t-15 -38t-38 -15t-39 15 t-16 38z" />
139
+ <glyph unicode="&#x202f;" horiz-adv-x="311" />
140
+ <glyph unicode="&#x205f;" horiz-adv-x="391" />
141
+ <glyph unicode="&#x2122;" horiz-adv-x="3250" d="M1348 0v55h161v1323h-161v56h209q12 -14 52 -68l98 -129l130 -169l147 -190l145 -190l130 -168l351 457l352 457h208v-56h-161v-1323h170v-55h-385v55h157v1194v15q0 12 1 27.5t2 28.5t1 15q-4 -4 -11 -13l-17 -24l-73 -96l-102 -134l-122 -160l-130 -170l-127 -166 l-114 -148l-214 279l-175 229l-149 194l-136 179l-22 30q2 -23 3 -43t1 -43v-1194h166v-55h-385zM72 1118v316h1132v-316h-55v260h-483v-1323h163v-55h-385v55h164v1323h-481v-260h-55z" />
142
+ <glyph unicode="&#xe000;" horiz-adv-x="770" d="M0 770h770v-770h-770v770z" />
143
+ <glyph unicode="&#xfb01;" horiz-adv-x="1118" d="M670 0v55h164v658h-164v55h219v-713h158v-55h-377zM807 1032q0 23 16.5 39t38.5 16q23 0 38 -16t15 -39t-15 -38t-38 -15t-39 15t-16 38zM72 0v55h125v658h-125v55h125v293q0 113 31.5 201t86 147t127 91t156.5 36v-55q-70 0 -132.5 -30t-109.5 -83t-74.5 -130 t-27.5 -173v-297h260v-55h-260v-658h195v-55h-377z" />
144
+ <glyph unicode="&#xfb02;" horiz-adv-x="1118" d="M670 0v55h149v1426h-147v55h205v-1481h170v-55h-377zM72 0v55h125v658h-125v55h125v293q0 113 31.5 201t86 147t127 91t156.5 36v-55q-70 0 -132.5 -30t-109.5 -83t-74.5 -130t-27.5 -173v-297h260v-55h-260v-658h195v-55h-377z" />
145
+ <glyph unicode="&#xfb03;" horiz-adv-x="1716" d="M1268 0v55h164v658h-164v55h219v-713h158v-55h-377zM1405 1032q0 23 16.5 39t38.5 16q23 0 38 -16t15 -39t-15 -38t-38 -15t-39 15t-16 38zM670 0v55h125v658h-125v55h125v293q0 113 31.5 201t86 147t127 91t156.5 36v-55q-70 0 -132.5 -30t-109.5 -83t-74.5 -130 t-27.5 -173v-297h260v-55h-260v-658h195v-55h-377zM72 0v55h125v658h-125v55h125v293q0 113 31.5 201t86 147t127 91t156.5 36v-55q-70 0 -132.5 -30t-109.5 -83t-74.5 -130t-27.5 -173v-297h260v-55h-260v-658h195v-55h-377z" />
146
+ <glyph unicode="&#xfb04;" horiz-adv-x="1716" d="M1268 0v55h149v1426h-147v55h205v-1481h170v-55h-377zM670 0v55h125v658h-125v55h125v293q0 113 31.5 201t86 147t127 91t156.5 36v-55q-70 0 -132.5 -30t-109.5 -83t-74.5 -130t-27.5 -173v-297h260v-55h-260v-658h195v-55h-377zM72 0v55h125v658h-125v55h125v293 q0 113 31.5 201t86 147t127 91t156.5 36v-55q-70 0 -132.5 -30t-109.5 -83t-74.5 -130t-27.5 -173v-297h260v-55h-260v-658h195v-55h-377z" />
147
+ </font>
148
+ </defs></svg>
skin/frontend/default/default/metro/font/JosefinSlab-Light-webfont.ttf ADDED
Binary file
skin/frontend/default/default/metro/font/JosefinSlab-Light-webfont.woff ADDED
Binary file
skin/frontend/default/default/metro/images/1pixel.gif ADDED
Binary file
skin/frontend/default/default/metro/images/metroIcons.jpg ADDED
Binary file
skin/frontend/default/default/metro/images/metroIcons_light.jpg ADDED
Binary file
skin/frontend/default/default/metro/jquery-1.5.1.min.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Note: While Microsoft is not the author of this file, Microsoft is
3
+ * offering you a license subject to the terms of the Microsoft Software
4
+ * License Terms for Microsoft ASP.NET Model View Controller 3.
5
+ * Microsoft reserves all other rights. The notices below are provided
6
+ * for informational purposes only and are not the license terms under
7
+ * which Microsoft distributed this file.
8
+ *
9
+ * jQuery JavaScript Library v1.5.1
10
+ * http://jquery.com/
11
+ * Copyright 2011, John Resig
12
+ *
13
+ * Includes Sizzle.js
14
+ * http://sizzlejs.com/
15
+ * Copyright 2011, The Dojo Foundation
16
+ *
17
+ * Date: Thu Nov 11 19:04:53 2010 -0500
18
+ */
19
+ (function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h==="string"&&(f[h.toLowerCase()]=a.converters[h]);l=k,k=e[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=f[m]||f["* "+k];if(!n){p=b;for(o in f){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=f[j[1]+" "+k];if(p){o=f[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&d.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bP(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bO(a,b,c,e){if(d.isArray(b)&&b.length)d.each(b,function(b,f){c||bq.test(a)?e(a,f):bO(a+"["+(typeof f==="object"||d.isArray(f)?b:"")+"]",f,c,e)});else if(c||b==null||typeof b!=="object")e(a,b);else if(d.isArray(b)||d.isEmptyObject(b))e(a,"");else for(var f in b)bO(a+"["+f+"]",b[f],c,e)}function bN(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bH,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l==="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bN(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bN(a,c,d,e,"*",g));return l}function bM(a){return function(b,c){typeof b!=="string"&&(c=b,b="*");if(d.isFunction(c)){var e=b.toLowerCase().split(bB),f=0,g=e.length,h,i,j;for(;f<g;f++)h=e[f],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bo(a,b,c){var e=b==="width"?bi:bj,f=b==="width"?a.offsetWidth:a.offsetHeight;if(c==="border")return f;d.each(e,function(){c||(f-=parseFloat(d.css(a,"padding"+this))||0),c==="margin"?f+=parseFloat(d.css(a,"margin"+this))||0:f-=parseFloat(d.css(a,"border"+this+"Width"))||0});return f}function ba(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function _(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function $(a,b){if(b.nodeType===1){var c=b.nodeName.toLowerCase();b.clearAttributes(),b.mergeAttributes(a);if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(d.expando)}}function Z(a,b){if(b.nodeType===1&&d.hasData(a)){var c=d.expando,e=d.data(a),f=d.data(b,e);if(e=e[c]){var g=e.events;f=f[c]=d.extend({},e);if(g){delete f.handle,f.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)d.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function Y(a,b){return d.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function O(a,b,c){if(d.isFunction(b))return d.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return d.grep(a,function(a,d){return a===b===c});if(typeof b==="string"){var e=d.grep(a,function(a){return a.nodeType===1});if(J.test(b))return d.filter(b,e,!c);b=d.filter(b,e)}return d.grep(a,function(a,e){return d.inArray(a,b)>=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;i<t.length;i++)g=t[i],g.origType.replace(p,"")===a.type?r.push(g.selector):t.splice(i--,1);f=d(a.target).closest(r,a.currentTarget);for(j=0,k=f.length;j<k;j++){m=f[j];for(i=0;i<t.length;i++){g=t[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,e=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,e=d(a.relatedTarget).closest(g.selector)[0];(!e||e!==h)&&q.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=q.length;j<k;j++){f=q[j];if(c&&f.level>c)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){e=i[c],f=a[c];if(i===f)continue;l&&f&&(d.isPlainObject(f)||(g=d.isArray(f)))?(g?(g=!1,h=e&&d.isArray(e)?e:[]):h=e&&d.isPlainObject(e)?e:{},i[c]=d.extend(l,h,f)):f!==b&&(i[c]=f)}return i},d.extend({noConflict:function(b){a.$=f,b&&(a.jQuery=e);return d},isReady:!1,readyWait:1,ready:function(a){a===!0&&d.readyWait--;if(!d.readyWait||a!==!0&&!d.isReady){if(!c.body)return setTimeout(d.ready,1);d.isReady=!0;if(a!==!0&&--d.readyWait>0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g<h;)if(c.apply(a[g++],e)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(var j=a[0];g<h&&c.call(j,g,j)!==!1;j=a[++g]){}return a},trim:F?function(a){return a==null?"":F.call(a)}:function(a){return a==null?"":(a+"").replace(j,"").replace(k,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var e=d.type(a);a.length==null||e==="string"||e==="function"||e==="regexp"||d.isWindow(a)?D.call(c,a):d.merge(c,a)}return c},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length==="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,b,c){var d=[],e;for(var f=0,g=a.length;f<g;f++)e=b(a[f],f,c),e!=null&&(d[d.length]=e);return d.concat.apply([],d)},guid:1,proxy:function(a,c,e){arguments.length===2&&(typeof c==="string"?(e=a,a=e[c],c=b):c&&!d.isFunction(c)&&(e=c,c=b)),!c&&a&&(c=function(){return a.apply(e||this,arguments)}),a&&(c.guid=a.guid=a.guid||c.guid||d.guid++);return c},access:function(a,c,e,f,g,h){var i=a.length;if(typeof c==="object"){for(var j in c)d.access(a,j,c[j],f,g,e);return a}if(e!==b){f=!h&&f&&d.isFunction(e);for(var k=0;k<i;k++)g(a[k],c,f?e.call(a[k],k,g(a[k],c)):e,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},_Deferred:function(){var a=[],b,c,e,f={done:function(){if(!e){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=d.type(i),j==="array"?f.done.apply(f,i):j==="function"&&a.push(i);k&&f.resolveWith(k[0],k[1])}return this},resolveWith:function(d,f){if(!e&&!b&&!c){c=1;try{while(a[0])a.shift().apply(d,f)}catch(g){throw g}finally{b=[d,f],c=0}}return this},resolve:function(){f.resolveWith(d.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return c||b},cancel:function(){e=1,a=[];return this}};return f},Deferred:function(a){var b=d._Deferred(),c=d._Deferred(),e;d.extend(b,{then:function(a,c){b.done(a).fail(c);return this},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,promise:function(a){if(a==null){if(e)return e;e=a={}}var c=z.length;while(c--)a[z[c]]=b[z[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){var b=arguments.length,c=b<=1&&a&&d.isFunction(a.promise)?a:d.Deferred(),e=c.promise();if(b>1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=arguments.length>1?E.call(arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function"),b=null;return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expando;if(!i[j])return;if(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i<j;i++)h=g[i].name,h.indexOf("data-")===0&&(h=h.substr(5),f(this[0],h,e[h]))}}return e}if(typeof a==="object")return this.each(function(){d.data(this,a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(c===b){e=this.triggerHandler("getData"+k[1]+"!",[k[0]]),e===b&&this.length&&(e=d.data(this[0],a),e=f(this[0],a,e));return e===b&&k[1]?this.data(k[0]):e}return this.each(function(){var b=d(this),e=[k[0],c];b.triggerHandler("setData"+k[1]+"!",e),d.data(this,a,c),b.triggerHandler("changeData"+k[1]+"!",e)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}}),d.extend({queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var e=d._data(a,b);if(!c)return e||[];!e||d.isArray(c)?e=d._data(a,b,d.makeArray(c)):e.push(c);return e}},dequeue:function(a,b){b=b||"fx";var c=d.queue(a,b),e=c.shift();e==="inprogress"&&(e=c.shift()),e&&(b==="fx"&&c.unshift("inprogress"),e.call(a,function(){d.dequeue(a,b)})),c.length||d.removeData(a,b+"queue",!0)}}),d.fn.extend({queue:function(a,c){typeof a!=="string"&&(c=a,a="fx");if(c===b)return d.queue(this[0],a);return this.each(function(b){var e=d.queue(this,a,c);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){d.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var h=/[\n\t\r]/g,i=/\s+/,j=/\r/g,k=/^(?:href|src|style)$/,l=/^(?:button|input)$/i,m=/^(?:button|input|object|select|textarea)$/i,n=/^a(?:rea)?$/i,o=/^(?:radio|checkbox)$/i;d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},d.fn.extend({attr:function(a,b){return d.access(this,a,b,!0,d.attr)},removeAttr:function(a,b){return this.each(function(){d.attr(this,a,""),this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.addClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"){var b=(a||"").split(i);for(var c=0,e=this.length;c<e;c++){var f=this[c];if(f.nodeType===1)if(f.className){var g=" "+f.className+" ",h=f.className;for(var j=0,k=b.length;j<k;j++)g.indexOf(" "+b[j]+" ")<0&&(h+=" "+b[j]);f.className=d.trim(h)}else f.className=a}}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.removeClass(a.call(this,b,c.attr("class")))});if(a&&typeof a==="string"||a===b){var c=(a||"").split(i);for(var e=0,f=this.length;e<f;e++){var g=this[e];if(g.nodeType===1&&g.className)if(a){var j=(" "+g.className+" ").replace(h," ");for(var k=0,l=c.length;k<l;k++)j=j.replace(" "+c[k]+" "," ");g.className=d.trim(j)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(c){var e=d(this);e.toggleClass(a.call(this,c,e.attr("class"),b),b)});return this.each(function(){if(c==="string"){var f,g=0,h=d(this),j=b,k=a.split(i);while(f=k[g++])j=e?j:!h.hasClass(f),h[j?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean")this.className&&d._data(this,"__className__",this.className),this.className=this.className||a===!1?"":d._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(h," ").indexOf(b)>-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k<l;k++){var m=h[k];if(m.selected&&(d.support.optDisabled?!m.disabled:m.getAttribute("disabled")===null)&&(!m.parentNode.disabled||!d.nodeName(m.parentNode,"optgroup"))){a=d(m).val();if(i)return a;g.push(a)}}if(i&&!g.length&&h.length)return d(h[f]).val();return g}if(o.test(c.type)&&!d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(j,"")}return b}var n=d.isFunction(a);return this.each(function(b){var c=d(this),e=a;if(this.nodeType===1){n&&(e=a.call(this,b,c.val())),e==null?e="":typeof e==="number"?e+="":d.isArray(e)&&(e=d.map(e,function(a){return a==null?"":a+""}));if(d.isArray(e)&&o.test(this.type))this.checked=d.inArray(c.val(),e)>=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))d.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=d.event.special[h]||{};for(j=f||0;j<p.length;j++){q=p[j];if(e.guid===q.guid){if(l||n.test(q.namespace))f==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(f!=null)break}}if(p.length===0||f!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&d.removeEvent(a,h,s.handle),g=null,delete t[h]}if(d.isEmptyObject(t)){var w=s.handle;w&&(w.elem=null),delete s.events,delete s.handle,d.isEmptyObject(s)&&d.removeData(a,b,!0)}}},trigger:function(a,c,e){var f=a.type||a,g=arguments[3];if(!g){a=typeof a==="object"?a[d.expando]?a:d.extend(d.Event(f),a):d.Event(f),f.indexOf("!")>=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l<m;l++){var n=f[l];if(e||h.test(n.namespace)){c.handler=n.handler,c.data=n.data,c.handleObj=n;var o=n.handler.apply(this,k);o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[d.expando])return a;var e=a;a=d.Event(e);for(var f=this.props.length,g;f;)g=this.props[--f],a[g]=e[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=c.documentElement,i=c.body;a.pageX=a.clientX+(h&&h.scrollLeft||i&&i.scrollLeft||0)-(h&&h.clientLeft||i&&i.clientLeft||0),a.pageY=a.clientY+(h&&h.scrollTop||i&&i.scrollTop||0)-(h&&h.clientTop||i&&i.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,F(a.origType,a.selector),d.extend({},a,{handler:E,guid:a.handler.guid}))},remove:function(a){d.event.remove(this,F(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){d.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},d.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},d.Event=function(a){if(!this.preventDefault)return new d.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?w:v):this.type=a,this.timeStamp=d.now(),this[d.expando]=!0},d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=w;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=w;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=w,this.stopPropagation()},isDefaultPrevented:v,isPropagationStopped:v,isImmediatePropagationStopped:v};var x=function(a){var b=a.relatedTarget;try{if(b!==c&&!b.parentNode)return;while(b&&b!==this)b=b.parentNode;b!==this&&(a.type=a.data,d.event.handle.apply(this,arguments))}catch(e){}},y=function(a){a.type=a.data,d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={setup:function(c){d.event.add(this,b,c&&c.selector?y:x,a)},teardown:function(a){d.event.remove(this,b,a&&a.selector?y:x)}}}),d.support.submitBubbles||(d.event.special.submit={setup:function(a,b){if(this.nodeName&&this.nodeName.toLowerCase()!=="form")d.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&d(b).closest("form").length&&C("submit",this,arguments)}),d.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&d(b).closest("form").length&&a.keyCode===13&&C("submit",this,arguments)});else return!1},teardown:function(a){d.event.remove(this,".specialSubmit")}});if(!d.support.changeBubbles){var z,A=function(a){var b=a.type,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i<j;i++)d.event.add(this[i],a,h,e);return this}}),d.fn.extend({unbind:function(a,b){if(typeof a!=="object"||a.preventDefault)for(var e=0,f=this.length;e<f;e++)d.event.remove(this[e],a,b);else for(var c in a)this.unbind(c,a[c]);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=d.Event(a);c.preventDefault(),c.stopPropagation(),d.event.trigger(c,b,this[0]);return c.result}},toggle:function(a){var b=arguments,c=1;while(c<b.length)d.proxy(a,b[c++]);return this.click(d.proxy(a,function(e){var f=(d._data(this,"lastToggle"+a.guid)||0)%c;d._data(this,"lastToggle"+a.guid,f+1),e.preventDefault();return b[f].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var D={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,c){d.fn[c]=function(a,e,f,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:d(this.context);if(typeof a==="object"&&!a.preventDefault){for(var o in a)n[c](o,e,a[o],m);return this}d.isFunction(e)&&(f=e,e=b),a=(a||"").split(" ");while((h=a[i++])!=null){j=p.exec(h),k="",j&&(k=j[0],h=h.replace(p,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,h==="focus"||h==="blur"?(a.push(D[h]+k),h=h+k):h=(D[h]||h)+k;if(c==="live")for(var q=0,r=n.length;q<r;q++)d.event.add(n[q],"live."+F(h,m),{data:e,selector:m,handler:f,origType:h,origHandler:f,preType:l});else n.unbind("live."+F(h,m),f)}return this}}),d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){d.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!=="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(f){if(f===!0)continue}else g=o=!0}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=u;typeof b==="string"&&!j.test(b)&&(b=b.toLowerCase(),d=b,g=t),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(a===b){g=!0;return 0}if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};d.find=k,d.expr=k.selectors,d.expr[":"]=d.expr.filters,d.unique=k.uniqueSort,d.text=k.getText,d.isXMLDoc=k.isXML,d.contains=k.contains}();var G=/Until$/,H=/^(?:parents|prevUntil|prevAll)/,I=/,/,J=/^.[^:#\[\.,]*$/,K=Array.prototype.slice,L=d.expr.match.POS,M={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this.pushStack("","find",a),c=0;for(var e=0,f=this.length;e<f;e++){c=b.length,d.find(a,this[e],b);if(e>0)for(var g=c;g<b.length;g++)for(var h=0;h<c;h++)if(b[h]===b[g]){b.splice(g--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(d.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(O(this,a,!1),"not",a)},filter:function(a){return this.pushStack(O(this,a,!0),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e<f;e++)i=a[e],j[i]||(j[i]=d.expr.match.POS.test(i)?d(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e<f;e++){g=this[e];while(g){if(l?l.index(g)>-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/<tbody/i,U=/<|&#?\w+;/,V=/<(?:script|object|embed|option|style)/i,W=/checked\s*(?:[^=]|=\s*.checked.)/i,X={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div<div>","</div>"]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1></$2>");try{for(var c=0,e=this.length;c<e;c++)this[c].nodeType===1&&(d.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(f){this.empty().append(a)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});typeof a!=="string"&&(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(this).remove(),b?d(b).before(a):d(c).append(a)})}return this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,e){var f,g,h,i,j=a[0],k=[];if(!d.support.checkClone&&arguments.length===3&&typeof j==="string"&&W.test(j))return this.each(function(){d(this).domManip(a,c,e,!0)});if(d.isFunction(j))return this.each(function(f){var g=d(this);a[0]=j.call(this,f,c?g.html():b),g.domManip(a,c,e)});if(this[0]){i=j&&j.parentNode,d.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?f={fragment:i}:f=d.buildFragment(a,this,k),h=f.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&d.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)e.call(c?Y(this[l],g):this[l],f.cacheable||m>1&&l<n?d.clone(h,!0,!0):h)}k.length&&d.each(k,ba)}return this}}),d.buildFragment=function(a,b,e){var f,g,h,i=b&&b[0]?b[0].ownerDocument||b[0]:c;a.length===1&&typeof a[0]==="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!V.test(a[0])&&(d.support.checkClone||!W.test(a[0]))&&(g=!0,h=d.fragments[a[0]],h&&(h!==1&&(f=h))),f||(f=i.createDocumentFragment(),d.clean(a,i,f,e)),g&&(d.fragments[a[0]]=h?f:1);return{fragment:f,cacheable:g}},d.fragments={},d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var e=[],f=d(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&f.length===1){f[b](this[0]);return this}for(var h=0,i=f.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1></$2>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]==="<table>"&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^&]*/,bD=/(^|\-)([a-z])/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("<div>").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e.crossDomain||(q=bF.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)e=this[g],f=e.style.display,!d._data(e,"olddisplay")&&f==="none"&&(f=e.style.display=""),f===""&&d.css(e,"display")==="none"&&d._data(e,"olddisplay",cd(e.nodeName));for(g=0;g<h;g++){e=this[g],f=e.style.display;if(f===""||f==="none")e.style.display=d._data(e,"olddisplay")||""}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cc("hide",3),a,b,c);for(var e=0,f=this.length;e<f;e++){var g=d.css(this[e],"display");g!=="none"&&!d._data(this[e],"olddisplay")&&d._data(this[e],"olddisplay",g)}for(e=0;e<f;e++)this[e].style.display="none";return this},_toggle:d.fn.toggle,toggle:function(a,b,c){var e=typeof a==="boolean";d.isFunction(a)&&d.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var b=e?a:d(this).is(":hidden");d(this)[b?"show":"hide"]()}):this.animate(cc("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,e){var f=d.speed(b,c,e);if(d.isEmptyObject(a))return this.each(f.complete);return this[f.queue===!1?"each":"queue"](function(){var b=d.extend({},f),c,e=this.nodeType===1,g=e&&d(this).is(":hidden"),h=this;for(c in a){var i=d.camelCase(c);c!==i&&(a[i]=a[c],delete a[c],c=i);if(a[c]==="hide"&&g||a[c]==="show"&&!g)return b.complete.call(this);if(e&&(c==="height"||c==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(d.css(this,"display")==="inline"&&d.css(this,"float")==="none")if(d.support.inlineBlockNeedsLayout){var j=cd(this.nodeName);j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else this.style.display="inline-block"}d.isArray(a[c])&&((b.specialEasing=b.specialEasing||{})[c]=a[c][1],a[c]=a[c][0])}b.overflow!=null&&(this.style.overflow="hidden"),b.curAnim=d.extend({},a),d.each(a,function(c,e){var f=new d.fx(h,b,c);if(b$.test(e))f[e==="toggle"?g?"show":"hide":e](a);else{var i=b_.exec(e),j=f.cur();if(i){var k=parseFloat(i[2]),l=i[3]||(d.cssNumber[c]?"":"px");l!=="px"&&(d.style(h,c,(k||1)+l),j=(k||1)/f.cur()*j,d.style(h,c,j+l)),i[1]&&(k=(i[1]==="-="?-1:1)*k+j),f.custom(j,k,l)}else f.custom(j,e,"")}});return!0})},stop:function(a,b){var c=d.timers;a&&this.queue([]),this.each(function(){for(var a=c.length-1;a>=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(ca),ca=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),d.expr&&d.expr.filters&&(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});var ce=/^t(?:able|d|h)$/i,cf=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?d.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!c||!d.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=f.body,i=cg(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||d.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||d.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:d.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(d.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===e&&(l+=b.offsetTop,m+=b.offsetLeft,d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!ce.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),f=e,e=b.offsetParent),d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;d.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},d.offset={initialize:function(){var a=c.body,b=c.createElement("div"),e,f,g,h,i=parseFloat(d.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window);
skin/frontend/default/default/metro/metrohome.css ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @font-face {
2
+ font-family: 'Metrolight';
3
+ src: url('font/JosefinSlab-Light-webfont.eot');
4
+ src: url('font/JosefinSlab-Light-webfont.eot?#iefix') format('embedded-opentype'),
5
+ url('font/JosefinSlab-Light-webfont.woff') format('woff'),
6
+ url('font/JosefinSlab-Light-webfont.ttf') format('truetype'),
7
+ url('font/JosefinSlab-Light-webfont.svg#JosefinSlabLight') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+
11
+ }
12
+ @font-face {
13
+ font-family: 'Metrobold';
14
+ src: url('font/JosefinSlab-Bold-webfont.eot');
15
+ src: url('font/JosefinSlab-Bold-webfont.eot?#iefix') format('embedded-opentype'),
16
+ url('font/JosefinSlab-Bold-webfont.woff') format('woff'),
17
+ url('font/JosefinSlab-Bold-webfont.ttf') format('truetype'),
18
+ url('font/JosefinSlab-Bold-webfont.svg#JosefinSlabBold') format('svg');
19
+ font-weight: normal;
20
+ font-style: normal;
21
+
22
+ }
23
+
24
+ .homepage-row { float: left; width: 100%; }
25
+ .homepage-row-title { font-family: 'Metrobold', Arial, sans-serif; font-size: 32px; color: #000; }
26
+ .homepage-row-title a { color: #000; text-decoration: none; }
27
+ .homepage-row-title a:hover { color: #AAA; }
28
+ .metroinfo { font-family: 'Metrolight', Arial, sans-serif; color: #FFF; }
29
+ .metroinfo a { float: left; width: 100%; height: 100%; cursor: pointer; text-decoration: none !important; color: #FFF; }
30
+ .metroinfo h2 { padding: 10px; color: #FFF; }
31
+ .metroinfo h2 { text-decoration: none !important; font-size: 26px; line-height: 22px; }
32
+ .metroinfo p { font-size: 16px !important; padding: 0px 10px !important; }
33
+ .metroimg img { height: 150px !important; width: 285px !important;}