﻿<!DOCTYPE html>
<html>
<!--
 * 
 * Copyright © 2012 All Rights Reserved, http://simpletrees.co.uk
 * 
 * NOTICE:  All information contained herein is, and remains the property 
 * of Simple Trees Ltd and its suppliers, if any. The intellectual and 
 * technical concepts contained herein are proprietary to Simple Trees Ltd 
 * and its suppliers and may be covered by UK, EU and Foreign Patents, 
 * patents in process, and are protected by copyright law. Dissemination of 
 * this information or reproduction of this material is strictly forbidden
 * unless prior written permission is obtained from Simple Trees Ltd. 
 *
 * This version of the product and all associated intellectual/technical
 * concepts are intended for demo purposes only and not for resale.
 *
 * Contact info@simpletrees.co.uk for license agreements or more details.
 *
-->
<head>
    <title> </title>
 <!-- Mimic Internet Explorer 7 -->
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
    <script src="../js/common.min.js"> </script>
    <script src="../js/crmhelper.min.js"> </script>
    <script src="../js/trafficlights.min.js"> </script>
    <script src="../js/jquery.min.js"> </script>
    <link href="../css/fonts.css" rel="stylesheet" />
    <link href="../css/control.css" rel="stylesheet" />
    <link href="../css/common.css" rel="stylesheet" />
    <link href="../css/trafficlights.css" rel="stylesheet" />
</head>
<body style="height: 100%; margin: 0">
	<script type="text/javascript">
		var transitionEnd;
		var Xrm;
		$(document).ready(function() {
			if (window.parent && window.parent.Xrm) {
				Xrm = window.parent.Xrm;
				var optionListName = getQueryString("data", "");
				var picklist = Xrm.Page.data.entity.attributes.get(optionListName);
				createLights($(".trafficlights"), picklist);
				refresh();
			} else {
				createLights($(".trafficlights"), null);
			}
		});
		
		function refresh() {
			refreshLights();
		}
	</script>
	<div class="fullscreen">
		<ul class="trafficlights">
			
			
		</ul>
	</div>
</body>