Blame | Last modification | View Log | RSS feed
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>gwt-ext-ux - Google Code</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="/hosting/css/d_20080403.css" />
<link type="text/css" rel="stylesheet" href="/hosting/css/d_sb_20080509.css" />
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="/hosting/css/d_ie.css" />
<![endif]-->
</head>
<body class="t4">
<div id=gaia>
<font size="-1">
<b>aurelienperonnet@gmail.com</b>
| <a href="/p/support/wiki/WhatsNew" style="color:#a03">What's new?</a>
| <a href="/u/aurelienperonnet/">Profile</a>
| <a href="/hosting/settings">Settings</a>
| <a href="/p/support/">Help</a>
| <a href="http://www.google.com/accounts/Logout?continue=http%3A%2F%2Fcode.google.com%2Fp%2Fgwt-ext-ux%2Fsource%2Fbrowse%2Ftrunk%2Fsamples%2Fshowcase2%2Fsrc%2Fcom%2Fgwtextux%2Fsample%2Fshowcase2%2Fpublic%2Fjs%2Futil%2Ftimeline-helper.js%3Fr%3D94">Sign out</a>
</font>
</div>
<table style="padding:0px; margin: 0px 0px -6px 0; width:100%" cellpadding=0 cellspacing=0>
<tr>
<td style="width:153px"><a href="/"><img src="/hosting/images/code_sm.png" width=153 height=55 alt="Google"/></a></td>
<td style="padding-left: 1.5em">
<div style="font-size:120%; font-weight: bold">
<a href="/p/gwt-ext-ux/" style="text-decoration:none; color:#000">gwt-ext-ux</a>
</div>
<div style="font-size:95%; margin-top:3px">
<i><a href="/p/gwt-ext-ux/" style="text-decoration:none; color:#000">GWT-Ext User Extensions</a></i>
</div>
</td>
<td style="white-space:nowrap; text-align:right">
<form action="/hosting/search">
<input size=30 name=q value=""/>
<input type=submit name=projectsearch value="Search Projects" />
<input type=submit name=websearch value="Search the Web" />
</form>
</tr>
</table>
<table id="mt" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<th class="int1" onclick="if (!cancelBubble) _go('/p/gwt-ext-ux/');">
<div class="tc1"><div class="tc2"><div class="tc3"></div></div></div>
<div class="tT"><a onclick="cancelBubble=true;" href="/p/gwt-ext-ux/">Project Home</a></div>
</th><td> </td>
<th class="int2" onclick="if (!cancelBubble) _go('/p/gwt-ext-ux/downloads/list');">
<div class="tc1"><div class="tc2"><div class="tc3"></div></div></div>
<div class="tT"><a onclick="cancelBubble=true;" href="/p/gwt-ext-ux/downloads/list">Downloads</a></div>
</th><td> </td>
<th class="int6" onclick="if (!cancelBubble) _go('/p/gwt-ext-ux/w/list');">
<div class="tc1"><div class="tc2"><div class="tc3"></div></div></div>
<div class="tT"><a onclick="cancelBubble=true;" href="/p/gwt-ext-ux/w/list">Wiki</a></div>
</th><td> </td>
<th class="int3" onclick="if (!cancelBubble) _go('/p/gwt-ext-ux/issues/list');">
<div class="tc1"><div class="tc2"><div class="tc3"></div></div></div>
<div class="tT"><a onclick="cancelBubble=true;" href="/p/gwt-ext-ux/issues/list">Issues</a></div>
</th><td> </td>
<th class="int4" onclick="if (!cancelBubble) _go('/p/gwt-ext-ux/source/checkout');">
<div class="tc1"><div class="tc2"><div class="tc3"></div></div></div>
<div class="tT"><a onclick="cancelBubble=true;" href="/p/gwt-ext-ux/source/checkout">Source</a></div>
</th><td> </td>
<td width="100%"> </td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0" class="st">
<tr>
<td>
<div class="st2">
<div class="isf">
<span class="inst1"><a href="/p/gwt-ext-ux/source/checkout">Checkout</a></span> |
<span class="inst2"><a href="/p/gwt-ext-ux/source/browse">Browse</a></span> |
<span class="inst3"><a href="/p/gwt-ext-ux/source/list">Changes</a></span> |
<form action="http://www.google.com/codesearch" method="get" style="display:inline"
onsubmit="document.getElementById('codesearchq').value = document.getElementById('origq').value + ' package:http://gwt-ext-ux\\.googlecode\\.com'">
<input type="hidden" name="q" id="codesearchq" value="">
<input maxlength="2048" size="35" id="origq" name="origq" value="" title="Google Code Search" style="font-size:92%"> <input type="submit" value="Search Trunk" name="btnG" style="font-size:92%">
</form>
</div>
</div>
</td>
<td height=4 align=right style="padding:0px; vertical-align:top">
<div class="stur"></div>
</td>
</tr>
</table>
<script>
var cancelBubble = false;
function _go(url) { document.location = url; }
</script>
<div id="maincol">
<!-- IE -->
<table align=center border=0 cellspacing=0 cellpadding=0 style="margin-bottom: 6px">
<tr><td class=notice>
<div class="rounded_ul"><div class="rounded_ur"><div class="rounded_ll"><div class="rounded_lr">
</div></div></div></div>
</td></tr>
</table>
<div class=expand>
<div id="nav_and_rev" class="heading">
<div class="rounded_ul"><div class="rounded_ur">
<div class="rounded_content" width="100%">
<div class="">
<div class="src_crumbs src_nav">
<strong class="src_nav">Source Path: </strong>
<span id="crumb_root">
<a href="/p/gwt-ext-ux/source/browse/?r=94">svn</a>/ </span>
<span id="crumb_links" class="ifClosed"><a href="/p/gwt-ext-ux/source/browse/trunk/?r=94">trunk</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/samples/?r=94">samples</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/samples/showcase2/?r=94">showcase2</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/samples/showcase2/src/?r=94">src</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/samples/showcase2/src/com/?r=94">com</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/samples/showcase2/src/com/gwtextux/?r=94">gwtextux</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/samples/showcase2/src/com/gwtextux/sample/?r=94">sample</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/samples/showcase2/src/com/gwtextux/sample/showcase2/?r=94">showcase2</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/sample
s/showcase2/src/com/gwtextux/sample/showcase2/public/?r=94">public</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/samples/showcase2/src/com/gwtextux/sample/showcase2/public/js/?r=94">js</a><span class="sp">/ </span><a href="/p/gwt-ext-ux/source/browse/trunk/samples/showcase2/src/com/gwtextux/sample/showcase2/public/js/util/?r=94">util</a><span class="sp">/ </span>timeline-helper.js</span>
</div>
</div>
<div class="pagination" style="margin-left: 2em">
<b>r94</b>
</div>
<div style="clear:both"></div>
</div>
</div></div>
</div>
<style type="text/css">
#nums td:target a {color:black; font-weight:bold}
</style>
<div class=fc>
<table><tr>
<td id="nums">
<pre><table><tr id=gr_svn94_1><td id=1><a href=#1>1</a></td></tr><tr id=gr_svn94_2><td id=2><a href=#2>2</a></td></tr><tr id=gr_svn94_3><td id=3><a href=#3>3</a></td></tr><tr id=gr_svn94_4><td id=4><a href=#4>4</a></td></tr><tr id=gr_svn94_5><td id=5><a href=#5>5</a></td></tr><tr id=gr_svn94_6><td id=6><a href=#6>6</a></td></tr><tr id=gr_svn94_7><td id=7><a href=#7>7</a></td></tr><tr id=gr_svn94_8><td id=8><a href=#8>8</a></td></tr><tr id=gr_svn94_9><td id=9><a href=#9>9</a></td></tr><tr id=gr_svn94_10><td id=10><a href=#10>10</a></td></tr><tr id=gr_svn94_11><td id=11><a href=#11>11</a></td></tr><tr id=gr_svn94_12><td id=12><a href=#12>12</a></td></tr><tr id=gr_svn94_13><td id=13><a href=#13>13</a></td></tr><tr id=gr_svn94_14><td id=14><a href=#14>14</a></td></tr><tr id=gr_svn94_15><td id=15><a href=#15>15</a></td></tr><tr id=gr_svn94_16><td id=16><a href=#16>16</a></td></tr><tr id=gr_svn94_17><td id=17><a href=#17>17</a></td></tr><tr id=gr_svn94_18><td id=18><a href=#18>18</a></td></tr><tr id=gr_svn94_19><t
d id=19><a href=#19>19</a></td></tr><tr id=gr_svn94_20><td id=20><a href=#20>20</a></td></tr><tr id=gr_svn94_21><td id=21><a href=#21>21</a></td></tr><tr id=gr_svn94_22><td id=22><a href=#22>22</a></td></tr><tr id=gr_svn94_23><td id=23><a href=#23>23</a></td></tr><tr id=gr_svn94_24><td id=24><a href=#24>24</a></td></tr><tr id=gr_svn94_25><td id=25><a href=#25>25</a></td></tr><tr id=gr_svn94_26><td id=26><a href=#26>26</a></td></tr><tr id=gr_svn94_27><td id=27><a href=#27>27</a></td></tr><tr id=gr_svn94_28><td id=28><a href=#28>28</a></td></tr><tr id=gr_svn94_29><td id=29><a href=#29>29</a></td></tr><tr id=gr_svn94_30><td id=30><a href=#30>30</a></td></tr><tr id=gr_svn94_31><td id=31><a href=#31>31</a></td></tr><tr id=gr_svn94_32><td id=32><a href=#32>32</a></td></tr><tr id=gr_svn94_33><td id=33><a href=#33>33</a></td></tr><tr id=gr_svn94_34><td id=34><a href=#34>34</a></td></tr><tr id=gr_svn94_35><td id=35><a href=#35>35</a></td></tr><tr id=gr_svn94_36><td id=36><a href=#36>36</a></td></tr><tr id=gr_svn94_37
><td id=37><a href=#37>37</a></td></tr><tr id=gr_svn94_38><td id=38><a href=#38>38</a></td></tr><tr id=gr_svn94_39><td id=39><a href=#39>39</a></td></tr><tr id=gr_svn94_40><td id=40><a href=#40>40</a></td></tr><tr id=gr_svn94_41><td id=41><a href=#41>41</a></td></tr><tr id=gr_svn94_42><td id=42><a href=#42>42</a></td></tr><tr id=gr_svn94_43><td id=43><a href=#43>43</a></td></tr><tr id=gr_svn94_44><td id=44><a href=#44>44</a></td></tr><tr id=gr_svn94_45><td id=45><a href=#45>45</a></td></tr><tr id=gr_svn94_46><td id=46><a href=#46>46</a></td></tr><tr id=gr_svn94_47><td id=47><a href=#47>47</a></td></tr><tr id=gr_svn94_48><td id=48><a href=#48>48</a></td></tr><tr id=gr_svn94_49><td id=49><a href=#49>49</a></td></tr><tr id=gr_svn94_50><td id=50><a href=#50>50</a></td></tr><tr id=gr_svn94_51><td id=51><a href=#51>51</a></td></tr><tr id=gr_svn94_52><td id=52><a href=#52>52</a></td></tr><tr id=gr_svn94_53><td id=53><a href=#53>53</a></td></tr><tr id=gr_svn94_54><td id=54><a href=#54>54</a></td></tr><tr id=gr_svn94
_55><td id=55><a href=#55>55</a></td></tr><tr id=gr_svn94_56><td id=56><a href=#56>56</a></td></tr><tr id=gr_svn94_57><td id=57><a href=#57>57</a></td></tr><tr id=gr_svn94_58><td id=58><a href=#58>58</a></td></tr><tr id=gr_svn94_59><td id=59><a href=#59>59</a></td></tr><tr id=gr_svn94_60><td id=60><a href=#60>60</a></td></tr><tr id=gr_svn94_61><td id=61><a href=#61>61</a></td></tr><tr id=gr_svn94_62><td id=62><a href=#62>62</a></td></tr><tr id=gr_svn94_63><td id=63><a href=#63>63</a></td></tr><tr id=gr_svn94_64><td id=64><a href=#64>64</a></td></tr><tr id=gr_svn94_65><td id=65><a href=#65>65</a></td></tr><tr id=gr_svn94_66><td id=66><a href=#66>66</a></td></tr><tr id=gr_svn94_67><td id=67><a href=#67>67</a></td></tr><tr id=gr_svn94_68><td id=68><a href=#68>68</a></td></tr><tr id=gr_svn94_69><td id=69><a href=#69>69</a></td></tr><tr id=gr_svn94_70><td id=70><a href=#70>70</a></td></tr><tr id=gr_svn94_71><td id=71><a href=#71>71</a></td></tr><tr id=gr_svn94_72><td id=72><a href=#72>72</a></td></tr><tr id=gr_sv
n94_73><td id=73><a href=#73>73</a></td></tr><tr id=gr_svn94_74><td id=74><a href=#74>74</a></td></tr><tr id=gr_svn94_75><td id=75><a href=#75>75</a></td></tr><tr id=gr_svn94_76><td id=76><a href=#76>76</a></td></tr><tr id=gr_svn94_77><td id=77><a href=#77>77</a></td></tr><tr id=gr_svn94_78><td id=78><a href=#78>78</a></td></tr><tr id=gr_svn94_79><td id=79><a href=#79>79</a></td></tr><tr id=gr_svn94_80><td id=80><a href=#80>80</a></td></tr><tr id=gr_svn94_81><td id=81><a href=#81>81</a></td></tr><tr id=gr_svn94_82><td id=82><a href=#82>82</a></td></tr><tr id=gr_svn94_83><td id=83><a href=#83>83</a></td></tr><tr id=gr_svn94_84><td id=84><a href=#84>84</a></td></tr><tr id=gr_svn94_85><td id=85><a href=#85>85</a></td></tr><tr id=gr_svn94_86><td id=86><a href=#86>86</a></td></tr><tr id=gr_svn94_87><td id=87><a href=#87>87</a></td></tr></table></pre>
</td>
<td id="lines">
<pre class="prettyprint"><table><tr id=sl_svn94_1><td>/*<br/></td></tr><tr id=sl_svn94_2><td>* These functions taken from online article here:<br/></td></tr><tr id=sl_svn94_3><td>* http://www.webreference.com/programming/javascript/definitive2/index.html<br/></td></tr><tr id=sl_svn94_4><td>* They are not included under the Apache license for the rest of the source.<br/></td></tr><tr id=sl_svn94_5><td>*/<br/></td></tr><tr id=sl_svn94_6><td><br/></td></tr><tr id=sl_svn94_7><td>var TimelineHelper = function()<br/></td></tr><tr id=sl_svn94_8><td>{<br/></td></tr><tr id=sl_svn94_9><td>}<br/></td></tr><tr id=sl_svn94_10><td><br/></td></tr><tr id=sl_svn94_11><td>/**<br/></td></tr><tr id=sl_svn94_12><td> * Create a new Document object. If no arguments are specified,<br/></td></tr><tr id=sl_svn94_13><td> * the document will be empty. If a root tag is specified, the document<br/></td></tr><tr id=sl_svn94_14><td> * will contain that single root tag. If the root tag has a namespace<br/></td></tr><tr id=sl_svn94_15><td> *
prefix, the second argument must specify the URL that identifies the<br/></td></tr><tr id=sl_svn94_16><td> * namespace.<br/></td></tr><tr id=sl_svn94_17><td> */<br/></td></tr><tr id=sl_svn94_18><td><br/></td></tr><tr id=sl_svn94_19><td>TimelineHelper.newDocument = function(rootTagName, namespaceURL) {<br/></td></tr><tr id=sl_svn94_20><td> if (!rootTagName) rootTagName = "";<br/></td></tr><tr id=sl_svn94_21><td> if (!namespaceURL) namespaceURL = "";<br/></td></tr><tr id=sl_svn94_22><td> if (document.implementation && document.implementation.createDocument) {<br/></td></tr><tr id=sl_svn94_23><td> // This is the W3C standard way to do it<br/></td></tr><tr id=sl_svn94_24><td> return document.implementation.createDocument(namespaceURL, rootTagName, null);<br/></td></tr><tr id=sl_svn94_25><td> }<br/></td></tr><tr id=sl_svn94_26><td> else { // This is the IE way to do it<br/></td></tr><tr id=sl_svn94_27><td> // Create an empty document as an ActiveX object<br/></td></tr><t
r id=sl_svn94_28><td> // If there is no root element, this is all we have to do<br/></td></tr><tr id=sl_svn94_29><td> var doc = new ActiveXObject("MSXML2.DOMDocument");<br/></td></tr><tr id=sl_svn94_30><td> // If there is a root tag, initialize the document<br/></td></tr><tr id=sl_svn94_31><td> if (rootTagName) {<br/></td></tr><tr id=sl_svn94_32><td> // Look for a namespace prefix<br/></td></tr><tr id=sl_svn94_33><td> var prefix = "";<br/></td></tr><tr id=sl_svn94_34><td> var tagname = rootTagName;<br/></td></tr><tr id=sl_svn94_35><td> var p = rootTagName.indexOf(':');<br/></td></tr><tr id=sl_svn94_36><td> if (p != -1) {<br/></td></tr><tr id=sl_svn94_37><td> prefix = rootTagName.substring(0, p);<br/></td></tr><tr id=sl_svn94_38><td> tagname = rootTagName.substring(p+1);<br/></td></tr><tr id=sl_svn94_39><td> }<br/></td></tr><tr id=sl_svn94_40><td> // If we have a namespace, we must have a namespace prefix<br/></td></tr><t
r id=sl_svn94_41><td> // If we don't have a namespace, we discard any prefix<br/></td></tr><tr id=sl_svn94_42><td> if (namespaceURL) {<br/></td></tr><tr id=sl_svn94_43><td> if (!prefix) prefix = "a0"; // What Firefox uses<br/></td></tr><tr id=sl_svn94_44><td> }<br/></td></tr><tr id=sl_svn94_45><td> else prefix = "";<br/></td></tr><tr id=sl_svn94_46><td> // Create the root element (with optional namespace) as a<br/></td></tr><tr id=sl_svn94_47><td> // string of text<br/></td></tr><tr id=sl_svn94_48><td> var text = "<" + (prefix?(prefix+":"):"") + tagname +<br/></td></tr><tr id=sl_svn94_49><td> (namespaceURL<br/></td></tr><tr id=sl_svn94_50><td> ?(" xmlns:" + prefix + '="' + namespaceURL +'"')<br/></td></tr><tr id=sl_svn94_51><td> :"") +<br/></td></tr><tr id=sl_svn94_52><td> "/>";<br/></td></tr><tr id=sl_svn94_53><td
> // And parse that text into the empty document<br/></td></tr><tr id=sl_svn94_54><td> doc.loadXML(text);<br/></td></tr><tr id=sl_svn94_55><td> }<br/></td></tr><tr id=sl_svn94_56><td> return doc;<br/></td></tr><tr id=sl_svn94_57><td> }<br/></td></tr><tr id=sl_svn94_58><td>};<br/></td></tr><tr id=sl_svn94_59><td><br/></td></tr><tr id=sl_svn94_60><td><br/></td></tr><tr id=sl_svn94_61><td>/**<br/></td></tr><tr id=sl_svn94_62><td> * Parse the XML document contained in the string argument and return<br/></td></tr><tr id=sl_svn94_63><td> * a Document object that represents it.<br/></td></tr><tr id=sl_svn94_64><td> */<br/></td></tr><tr id=sl_svn94_65><td>TimelineHelper.parseXML = function(text) {<br/></td></tr><tr id=sl_svn94_66><td> if (typeof DOMParser != "undefined") {<br/></td></tr><tr id=sl_svn94_67><td> // Mozilla, Firefox, and related browsers<br/></td></tr><tr id=sl_svn94_68><td> return (new DOMParser()).parseFromString(text, "application/xml");<br/></td
></tr><tr id=sl_svn94_69><td> }<br/></td></tr><tr id=sl_svn94_70><td> else if (typeof ActiveXObject != "undefined") {<br/></td></tr><tr id=sl_svn94_71><td> // Internet Explorer.<br/></td></tr><tr id=sl_svn94_72><td> var doc = TimelineHelper.newDocument(); // Create an empty document<br/></td></tr><tr id=sl_svn94_73><td> doc.loadXML(text); // Parse text into it<br/></td></tr><tr id=sl_svn94_74><td> return doc; // Return it<br/></td></tr><tr id=sl_svn94_75><td> }<br/></td></tr><tr id=sl_svn94_76><td> else {<br/></td></tr><tr id=sl_svn94_77><td> // As a last resort, try loading the document from a data: URL<br/></td></tr><tr id=sl_svn94_78><td> // This is supposed to work in Safari. Thanks to Manos Batsis and<br/></td></tr><tr id=sl_svn94_79><td> // his Sarissa library (sarissa.sourceforge.net) for this technique.<br/></td></tr><tr id=sl_svn94_80><td> var url = "data:text/xml;charset=utf-8," + e
ncodeURIComponent(text);<br/></td></tr><tr id=sl_svn94_81><td> var request = new XMLHttpRequest();<br/></td></tr><tr id=sl_svn94_82><td> request.open("GET", url, false);<br/></td></tr><tr id=sl_svn94_83><td> request.send(null);<br/></td></tr><tr id=sl_svn94_84><td> return request.responseXML;<br/></td></tr><tr id=sl_svn94_85><td> }<br/></td></tr><tr id=sl_svn94_86><td>};<br/></td></tr><tr id=sl_svn94_87><td><br/></td></tr></table></pre>
</td>
</tr></table>
<div id=log>
<a style="float:right;" class=ifCollapse href="#" onclick="_toggleMeta('gwt-ext-ux', this)">Show details</a>
<div class="ifExpand pmeta_bubble_bg" style="border:1px solid white"><div class="rounded_ul"><div class="rounded_ur"><div class="rounded_ll"><div class="rounded_lr">
<div style="padding: 6px">
<a style="float:right" class=ifExpand href="#" onclick="_toggleMeta('gwt-ext-ux', this)">Hide</a>
<div id=changelog>
<p>Change log</p>
<div>
<a href="/p/gwt-ext-ux/source/detail?r=94">r94</a>
by antonio.signore
on Apr 24, 2008
<a href="/p/gwt-ext-ux/source/diff?r=94&format=side&path=/trunk/samples/showcase2/src/com/gwtextux/sample/showcase2/public/js/util/timeline-helper.js">Diff</a>
</div>
<pre></pre>
</div>
<div id=older>
<p>Older revisions</p>
<a href="/p/gwt-ext-ux/source/list?path=/trunk/samples/showcase2/src/com/gwtextux/sample/showcase2/public/js/util/timeline-helper.js">All revisions of this file</a>
</div>
<div id=fileinfo>
<p>File info</p>
<div>Size: 3228 bytes,
87 lines</div>
<div><a href="http://gwt-ext-ux.googlecode.com/svn-history/r94/trunk/samples/showcase2/src/com/gwtextux/sample/showcase2/public/js/util/timeline-helper.js">View raw file</a></div>
</div>
</div>
</div></div></div></div></div>
</div>
</div>
</div>
<script src="/hosting/js/prettify.js"></script><script>prettyPrint();</script>
<script src="/hosting/js/source_file_scripts_20080115.js"></script>
<script type="text/javascript" src="/hosting/js/dit_scripts_20080325.js"></script>
</div>
<div id="footer" dir="ltr">
<div class="text">
©2008 Google -
<a href="/">Code Home</a> -
<a href="/tos.html">Terms of Service</a> -
<a href="http://www.google.com/privacy.html">Privacy Policy</a> -
<a href="/more/">Site Directory</a>
</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script>
var siteTracker = _gat._getTracker("UA-18071-1");
siteTracker._initData();
siteTracker._trackPageview();
</script>
</body>
</html>