<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<title>Untitled document</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
/* * Thickbox 3.1 - One Box To Rule Them All. * By Cody Lindley (http://www.codylindley.com) * Copyright (c) 2007 cody lindley * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php */ var tb_pathToImage = &quot;loadingAnimation.gif&quot;; /*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/ //on page load call tb_init $(document).ready(function(){ tb_init(&#39;a.thickbox, area.thickbox, input.thickbox&#39;);//pass where to apply thickbox imgLoader = new Image();// preload image imgLoader.src = tb_pathToImage; }); //add thickbox to href &amp; area elements that have a class of .thickbox function tb_init(domChunk){ $(domChunk).click(function(){ var t = this.title || this.name || null; var a = this.href || this.alt; var g = this.rel || false; tb_show(t,a,g); this.blur(); return false; }); } function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link try { if (typeof document.body.style.maxHeight === &quot;undefined&quot;) {//if IE 6 $(&quot;body&quot;,&quot;html&quot;).css({height: &quot;100%&quot;, width: &quot;100%&quot;}); $(&quot;html&quot;).css(&quot;overflow&quot;,&quot;hidden&quot;); if (document.getElementById(&quot;TB_HideSelect&quot;) === null) {//iframe to hide select elements in ie6 $(&quot;body&quot;).append(&quot;<iframe id="TB_HideSelect"></iframe> 
<div id="TB_overlay">
</div>
<div id="TB_window">
</div>
&quot;); $(&quot;#TB_overlay&quot;).click(tb_remove); } }else{//all others if(document.getElementById(&quot;TB_overlay&quot;) === null){ $(&quot;body&quot;).append(&quot; 
<div id="TB_overlay">
</div>
<div id="TB_window">
</div>
&quot;); $(&quot;#TB_overlay&quot;).click(tb_remove); } } if(tb_detectMacXFF()){ $(&quot;#TB_overlay&quot;).addClass(&quot;TB_overlayMacFFBGHack&quot;);//use png overlay so hide flash }else{ $(&quot;#TB_overlay&quot;).addClass(&quot;TB_overlayBG&quot;);//use background and opacity } if(caption===null){caption=&quot;&quot;;} $(&quot;body&quot;).append(&quot; 
<div id="TB_load">
<img src="%22+imgLoader.src+%22" /> 
</div>
&quot;);//add loader to the page $(&#39;#TB_load&#39;).show();//show loader var baseURL; if(url.indexOf(&quot;?&quot;)!==-1){ //ff there is a query string involved baseURL = url.substr(0, url.indexOf(&quot;?&quot;)); }else{ baseURL = url; } var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/; var urlType = baseURL.toLowerCase().match(urlString); if(urlType == &#39;.jpg&#39; || urlType == &#39;.jpeg&#39; || urlType == &#39;.png&#39; || urlType == &#39;.gif&#39; || urlType == &#39;.bmp&#39;){//code to show images TB_PrevCaption = &quot;&quot;; TB_PrevURL = &quot;&quot;; TB_PrevHTML = &quot;&quot;; TB_NextCaption = &quot;&quot;; TB_NextURL = &quot;&quot;; TB_NextHTML = &quot;&quot;; TB_imageCount = &quot;&quot;; TB_FoundURL = false; if(imageGroup){ TB_TempArray = $(&quot;a[@rel=&quot;+imageGroup+&quot;]&quot;).get(); for (TB_Counter = 0; ((TB_Counter &lt; TB_TempArray.length) &amp;&amp; (TB_NextHTML === &quot;&quot;)); TB_Counter++) { var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString); if (!(TB_TempArray[TB_Counter].href == url)) { if (TB_FoundURL) { TB_NextCaption = TB_TempArray[TB_Counter].title; TB_NextURL = TB_TempArray[TB_Counter].href; TB_NextHTML = &quot;<span id="TB_next">&nbsp;&nbsp;<a href="../">Next&gt;</a></span>&quot;; } else { TB_PrevCaption = TB_TempArray[TB_Counter].title; TB_PrevURL = TB_TempArray[TB_Counter].href; TB_PrevHTML = &quot;<span id="TB_prev">&nbsp;&nbsp;<a href="../">&lt; Prev</a></span>&quot;; } } else { TB_FoundURL = true; TB_imageCount = &quot;Image &quot; + (TB_Counter + 1) +&quot; of &quot;+ (TB_TempArray.length); } } } imgPreloader = new Image(); imgPreloader.onload = function(){ imgPreloader.onload = null; // Resizing large images - orginal by Christian Montoya edited by me. var pagesize = tb_getPageSize(); var x = pagesize[0] - 150; var y = pagesize[1] - 150; var imageWidth = imgPreloader.width; var imageHeight = imgPreloader.height; if (imageWidth &gt; x) { imageHeight = imageHeight * (x / imageWidth); imageWidth = x; if (imageHeight &gt; y) { imageWidth = imageWidth * (y / imageHeight); imageHeight = y; } } else if (imageHeight &gt; y) { imageWidth = imageWidth * (y / imageHeight); imageHeight = y; if (imageWidth &gt; x) { imageHeight = imageHeight * (x / imageWidth); imageWidth = x; } } // End Resizing TB_WIDTH = imageWidth + 30; TB_HEIGHT = imageHeight + 60; $(&quot;#TB_window&quot;).append(&quot;<a href="../" title="Close" id="TB_ImageOff"><img width="1" src="%22+url+%22" height="1" id="TB_Image" /></a>&quot; + &quot; 
<div id="TB_caption">
&quot;+caption+&quot; 
<div id="TB_secondLine">
&quot; + TB_imageCount + TB_PrevHTML + TB_NextHTML + &quot; 
</div>
</div>
<div id="TB_closeWindow">
<a href="../" title="Close" id="TB_closeWindowButton">close</a> or Esc Key 
</div>
&quot;); $(&quot;#TB_closeWindowButton&quot;).click(tb_remove); if (!(TB_PrevHTML === &quot;&quot;)) { function goPrev(){ if($(document).unbind(&quot;click&quot;,goPrev)){$(document).unbind(&quot;click&quot;,goPrev);} $(&quot;#TB_window&quot;).remove(); $(&quot;body&quot;).append(&quot; 
<div id="TB_window">
</div>
&quot;); tb_show(TB_PrevCaption, TB_PrevURL, imageGroup); return false; } $(&quot;#TB_prev&quot;).click(goPrev); } if (!(TB_NextHTML === &quot;&quot;)) { function goNext(){ $(&quot;#TB_window&quot;).remove(); $(&quot;body&quot;).append(&quot; 
<div id="TB_window">
</div>
&quot;); tb_show(TB_NextCaption, TB_NextURL, imageGroup); return false; } $(&quot;#TB_next&quot;).click(goNext); } document.onkeydown = function(e){ if (e == null) { // ie keycode = event.keyCode; } else { // mozilla keycode = e.which; } if(keycode == 27){ // close tb_remove(); } else if(keycode == 190){ // display previous image if(!(TB_NextHTML == &quot;&quot;)){ document.onkeydown = &quot;&quot;; goNext(); } } else if(keycode == 188){ // display next image if(!(TB_PrevHTML == &quot;&quot;)){ document.onkeydown = &quot;&quot;; goPrev(); } } }; tb_position(); $(&quot;#TB_load&quot;).remove(); $(&quot;#TB_ImageOff&quot;).click(tb_remove); $(&quot;#TB_window&quot;).css({display:&quot;block&quot;}); //for safari using css instead of show }; imgPreloader.src = url; }else{//code to show html var queryString = url.replace(/^[^\?]+\??/,&#39;&#39;); var params = tb_parseQuery( queryString ); TB_WIDTH = (params[&#39;width&#39;]*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL TB_HEIGHT = (params[&#39;height&#39;]*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL ajaxContentW = TB_WIDTH - 30; ajaxContentH = TB_HEIGHT - 45; if(url.indexOf(&#39;TB_iframe&#39;) != -1){// either iframe or ajax window urlNoQuery = url.split(&#39;TB_&#39;); $(&quot;#TB_iframeContent&quot;).remove(); if(params[&#39;modal&#39;] != &quot;true&quot;){//iframe no modal $(&quot;#TB_window&quot;).append(&quot; 
<div id="TB_title">
<div id="TB_ajaxWindowTitle">
&quot;+caption+&quot; 
</div>
<div id="TB_closeAjaxWindow">
<a href="../" title="Close" id="TB_closeWindowButton">close</a> or Esc Key 
</div>
</div>
<iframe frameBorder="0" name="TB_iframeContent" id="TB_iframeContent"></iframe>&quot;); }else{//iframe modal $(&quot;#TB_overlay&quot;).unbind(); $(&quot;#TB_window&quot;).append(&quot;<iframe frameBorder="0" name="TB_iframeContent" id="TB_iframeContent"></iframe>&quot;); } }else{// not an iframe, ajax if($(&quot;#TB_window&quot;).css(&quot;display&quot;) != &quot;block&quot;){ if(params[&#39;modal&#39;] != &quot;true&quot;){//ajax no modal $(&quot;#TB_window&quot;).append(&quot; 
<div id="TB_title">
<div id="TB_ajaxWindowTitle">
&quot;+caption+&quot; 
</div>
<div id="TB_closeAjaxWindow">
<a href="../" id="TB_closeWindowButton">close</a> or Esc Key 
</div>
</div>
<div id="TB_ajaxContent">
</div>
&quot;); }else{//ajax modal $(&quot;#TB_overlay&quot;).unbind(); $(&quot;#TB_window&quot;).append(&quot; 
<div id="TB_ajaxContent" class="TB_modal">
</div>
&quot;); } }else{//this means the window is already up, we are just loading new content via ajax $(&quot;#TB_ajaxContent&quot;)[0].style.width = ajaxContentW +&quot;px&quot;; $(&quot;#TB_ajaxContent&quot;)[0].style.height = ajaxContentH +&quot;px&quot;; $(&quot;#TB_ajaxContent&quot;)[0].scrollTop = 0; $(&quot;#TB_ajaxWindowTitle&quot;).html(caption); } } $(&quot;#TB_closeWindowButton&quot;).click(tb_remove); if(url.indexOf(&#39;TB_inline&#39;) != -1){ $(&quot;#TB_ajaxContent&quot;).append($(&#39;#&#39; + params[&#39;inlineId&#39;]).children()); $(&quot;#TB_window&quot;).unload(function () { $(&#39;#&#39; + params[&#39;inlineId&#39;]).append( $(&quot;#TB_ajaxContent&quot;).children() ); // move elements back when you&#39;re finished }); tb_position(); $(&quot;#TB_load&quot;).remove(); $(&quot;#TB_window&quot;).css({display:&quot;block&quot;}); }else if(url.indexOf(&#39;TB_iframe&#39;) != -1){ tb_position(); if($.browser.safari){//safari needs help because it will not fire iframe onload $(&quot;#TB_load&quot;).remove(); $(&quot;#TB_window&quot;).css({display:&quot;block&quot;}); } }else{ $(&quot;#TB_ajaxContent&quot;).load(url += &quot;&amp;random=&quot; + (new Date().getTime()),function(){//to do a post change this load method tb_position(); $(&quot;#TB_load&quot;).remove(); tb_init(&quot;#TB_ajaxContent a.thickbox&quot;); $(&quot;#TB_window&quot;).css({display:&quot;block&quot;}); }); } } if(!params[&#39;modal&#39;]){ document.onkeyup = function(e){ if (e == null) { // ie keycode = event.keyCode; } else { // mozilla keycode = e.which; } if(keycode == 27){ // close tb_remove(); } }; } } catch(e) { //nothing here } } //helper functions below function tb_showIframe(){ $(&quot;#TB_load&quot;).remove(); $(&quot;#TB_window&quot;).css({display:&quot;block&quot;}); } function tb_remove() { $(&quot;#TB_imageOff&quot;).unbind(&quot;click&quot;); $(&quot;#TB_closeWindowButton&quot;).unbind(&quot;click&quot;); $(&quot;#TB_window&quot;).fadeOut(&quot;fast&quot;,function(){$(&#39;#TB_window,#TB_overlay,#TB_HideSelect&#39;).trigger(&quot;unload&quot;).unbind().remove();}); $(&quot;#TB_load&quot;).remove(); if (typeof document.body.style.maxHeight == &quot;undefined&quot;) {//if IE 6 $(&quot;body&quot;,&quot;html&quot;).css({height: &quot;auto&quot;, width: &quot;auto&quot;}); $(&quot;html&quot;).css(&quot;overflow&quot;,&quot;&quot;); } document.onkeydown = &quot;&quot;; document.onkeyup = &quot;&quot;; return false; } function tb_position() { $(&quot;#TB_window&quot;).css({marginLeft: &#39;-&#39; + parseInt((TB_WIDTH / 2),10) + &#39;px&#39;, width: TB_WIDTH + &#39;px&#39;}); if ( !(jQuery.browser.msie &amp;&amp; jQuery.browser.version &lt; 7)) { // take away IE6 $(&quot;#TB_window&quot;).css({marginTop: &#39;-&#39; + parseInt((TB_HEIGHT / 2),10) + &#39;px&#39;}); } } function tb_parseQuery ( query ) { var Params = {}; if ( ! query ) {return Params;}// return empty object var Pairs = query.split(/[;&amp;]/); for ( var i = 0; i &lt; Pairs.length; i++ ) { var KeyVal = Pairs[i].split(&#39;=&#39;); if ( ! KeyVal || KeyVal.length != 2 ) {continue;} var key = unescape( KeyVal[0] ); var val = unescape( KeyVal[1] ); val = val.replace(/\+/g, &#39; &#39;); Params[key] = val; } return Params; } function tb_getPageSize(){ var de = document.documentElement; var w = window.innerWidth || self.innerWidth || (de&amp;&amp;de.clientWidth) || document.body.clientWidth; var h = window.innerHeight || self.innerHeight || (de&amp;&amp;de.clientHeight) || document.body.clientHeight; arrayPageSize = [w,h]; return arrayPageSize; } function tb_detectMacXFF() { var userAgent = navigator.userAgent.toLowerCase(); if (userAgent.indexOf(&#39;mac&#39;) != -1 &amp;&amp; userAgent.indexOf(&#39;firefox&#39;)!=-1) { return true; } } 
</body>
</html>
