// JavaScript Document

var currentSlide = 8;

var supported = !/Gecko/.test(navigator.userAgent) && !/Opera/.test(navigator.userAgent) && /MSIE (5\.5|6)/.test(navigator.userAgent) &&  navigator.platform == "Win32";

var slideButtons = new Array  (
		"slide_text_8.png",
		"slide_text_7.png",
		"slide_text_6.png",
		"slide_text_5.png",
		"slide_text_4.png",
		"slide_text_3.png",
		"slide_text_2.png",
		"slide_text_1.png"
	); 
	
var slides = new Array  (
	"<div class=\"leftslidecontent squished_text\" style=\"width: 550px;\"><h3 style=\"font-size: 16px; padding-top: 8px;\">Fit Out, Construction & Building Services</h3><table id=\"centered_table\" width=\"100%\" border=\"0\" cellspacing=\"0\" style=\"margin-top: 5px;\">        <tr align=\"center\"><td style=\"vertical-align: middle; text-align: right; font-size: 20px; line-height: 23px;\" width=\"300\"><a href=\"http://www.amaryllispropertyservices.com\" style=\"color: #F3726D; text-decoration: none;\">Click here</a><br />to visit our dedicated<br />property services site</td><td><img src=\"images/fitoutvan.jpg\" width=\"300\" /></td> </tr></table></div>",
	
	
	"<div class=\"leftslidecontent\"><h3 style=\"font-size: 16px;\">Reuse, Recycling &amp; Remanufacturing</h3><p class=\"smalltext\">We provide a full service recycling, renovation, reuse and disposal operation. Through our inhouse recycling facilities, we offer a single source solution – helping all types of organisations fulfil commitments to Green, environmental policies through minimising contributions to landfill.</p><p class=\"smalltext\" style=\"margin-top: -2px;\">Furniture and Equipment – Reuse, Recycling and Environmental Disposal<br />WEEE Directive (Electrical Goods) Environmental Disposal<br />Fluorescent Light Bulb Recycling<br />Document Security Disposal<br />Data Destruction<br />Computer and IT Equipment Recycling<br />PCB Storage and Disposal</p><p><a id=\"show_content3\" href=\"javascript:showContent3()\"><img src=\"images/readmore.jpg\"/></a></p></div><div class=\"rightslidecontent\"><a href=\"#inline21\" class=\"various1\" title=\"Carbon Offset\"><img src=\"images/carbon_offset_2_btn.jpg\" align=\"right\" class=\"reuse_btns\" alt=\"Recycling Guarantee\" /></a><a href=\"#inline25\" class=\"various1\"><img src=\"images/recycling_2_btn.jpg\" align=\"right\" class=\"reuse_btns\" alt\"Carbon Offset\" /></a></div>",
	
	
	
	"<h3>Moves &amp; Relocation Management</h3><table id=\"centered_table\" width=\"100%\" border=\"0\" cellspacing=\"0\" style=\"margin-top: 5px;\">        <tr align=\"center\"><td style=\"vertical-align: middle; text-align: right; font-size: 20px; line-height: 23px;\" width=\"300\"><a href=\"http://www.amaryllismoves.com\" style=\"color: #F3726D; text-decoration: none;\">Click here</a><br />to visit our dedicated<br />moves site</td><td><img src=\"images/movesvan.jpg\" /></td> </tr></table>",
	
	
	"<h3>Workplace Services</h3><div class=\"worktable\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" id=\"workplace_services\">	<tr> 	<td width=\"25%\"><a class=\"various1\" href=\"#inline1\" title=\"Help Desk Provision\"><img src=\"images/helpdesk.png\" class=\"cimage\" alt=\"lifecycle management\" /></a></td>  <td width=\"25%\"><a class=\"various1\" href=\"#inline2\" title=\"Space Management and Planning\"><img src=\"images/space.png\" class=\"cimage\" /></a></td>     <td width=\"25%\"><a class=\"various1\" href=\"#inline3\" title=\"Project Management\"><img src=\"images/manage.png\" class=\"cimage\" alt=\"furniture\" /></a></td>        <td width=\"25%\"><a class=\"various1\" href=\"#inline4\" title=\"Installation Services\"><img src=\"images/install.png\" class=\"cimage\" alt=\"workplace services\" /></a></td>    </tr>    <tr>    	<td width=\"25%\" align=\"center\"><p align=\"center\"><a href=\"#inline1\" class=\"various1\">Help Desk Provision</a></p></td>        <td width=\"25%\" align=\"center\"><p align=\"center\"><a class=\"various1\" href=\"#inline2\">Space Management and Planning</a></p></td>        <td width=\"25%\" align=\"center\"><p align=\"center\"><a class=\"various1\" href=\"#inline3\">Project Management</a></p></td>        <td width=\"25%\" align=\"center\"><p align=\"center\"><a class=\"various1\" href=\"#inline4\">Installation Services</a></p></td>    </tr>    <tr>    <td width=\"25%\"><a class=\"various1\" href=\"#inline5\" title=\"Inventory Management, Warehousing and Logistics\"><img src=\"images/invest.png\" class=\"cimage\" alt=\"workplace management\" /></a></td>        <td width=\"25%\"><a class=\"various1\" href=\"#inline6\" title=\"Onsite Repairs and Maintenance\"><img src=\"images/repairs.png\" class=\"cimage\" alt=\"remanufacturing\" /></a></td>        <td width=\"25%\"><a class=\"various1\" href=\"#inline7\" title=\"Rental and Short Term Hire\"><img src=\"images/rental.png\" class=\"cimage\" alt=\"Rental\" /></a></td>       <td width=\"25%\"><a class=\"various1\" href=\"#inline8\" title=\"Temporary Storage\"><img src=\"images/tempstorage.png\" class=\"cimage\" /></a></td>    </tr>    <tr>    	<td width=\"25%\" align=\"center\"><p align=\"center\"><a class=\"various1\" href=\"#inline5\">Inventory Management, Warehousing and Logistics</a></p></td>        <td width=\"25%\" align=\"center\"><p align=\"center\"><a class=\"various1\" href=\"#inline6\">Onsite Repairs and Maintenance</a></p></td>        <td width=\"25%\" align=\"center\"><p align=\"center\"><a class=\"various1\" href=\"#inline7\">Rental and Short Term Hire</a></p></td>        <td width=\"25%\" align=\"center\"><p align=\"center\"><a class=\"various1\" href=\"#inline8\">Temporary Storage</a></p></td>    </tr>  </table>  </div>",
	
	"<p style=\"text-align: center\">We are currently updating the content of our 2011 Online Catalogue. Please revisit or call us to discuss.</p>",
	
	"<div class=\"leftslidecontent2\"><h3>Procurement and Product Supply</h3><p class=\"smalltext\">Having 'cut our teeth' in the PFI / PPP market, we have created a global procurement and logistics infrastructure to support a wide range of product supply requirements servicing major public and private sector organisations. </p><p class=\"smalltext\">Maximising leverage on a global basis as well as harnessing the best of British manufacturing, Amaryllis utilises a range of procurement techniques including online supplier management systems, tender assessment tools and e-tendering. Our network of quality audit and compliance auditors ensures that 'best price' is not compromised by poor standards.</p><a id=\"show_content2\" href=\"javascript:showContent2()\"><img src=\"images/readmore.jpg\"/></a></div><div class=\"rightslidecontent2\"><img src=\"images/globe.png\" align=\"right\" class=\"risk top\" alt=\"Procurement Product Supply\"  /></div>",
	
	"<div class=\"leftslidecontent2\"><h3>About Us</h3><p class=\"smalltext\">Amaryllis is firmly established as a leading force in workplace management</p><p class=\"smalltext\">With offices, warehouses and an inhouse national service infrastructure, Amaryllis has developed a unique portfolio of products and service disciplines to offer 'Best Value' solutions for public and private sector clients.</p><p class=\"smalltext\">We employ over 250 personnel to provide an expert, security cleared onsite capability. With offices and warehousing in Birmingham, Brighouse, Bristol, Chelmsford, Livingston, Swansea and Whitstable, we also have established presence and partnerships to support activities in Northern Ireland, Eire, Europe, Middle East, USA and the Far East. </p><p><a id=\"show_content\" href=\"javascript:showContent()\"><img src=\"images/readmore.jpg\" alt=\"Read more about amaryllis .\" /></a></p></div><div class=\"rightslidecontent2\"><script type=\"text/javascript\">new fadeshow(fadeimages3, 203, 270, 0, 500, 1, 0);</script> </div>",
	
"<p style=\"margin-left: 150px; display: \"block\"\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"400\" height=\"250\" id=\"FlashID\" title=\"Logo\">  <param name=\"movie\" value=\"images/amaryllis.swf\" />  <param name=\"quality\" value=\"high\" />  <param name=\"wmode\" value=\"opaque\" />  <param name=\"swfversion\" value=\"6.0.65.0\" />  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->  <param name=\"expressinstall\" value=\"Scripts/expressInstall.swf\" /><param name=\"LOOP\" value=\"false\" />  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->  <!--[if !IE]>-->  <object type=\"application/x-shockwave-flash\" data=\"images/amaryllis.swf\" width=\"400\" height=\"250\">    <!--<![endif]-->    <param name=\"quality\" value=\"high\" />    <param name=\"wmode\" value=\"opaque\" />    <param name=\"swfversion\" value=\"6.0.65.0\" />    <param name=\"expressinstall\" value=\"Scripts/expressInstall.swf\" /><param name=\"LOOP\" value=\"false\" />    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->    <div>      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>      <p><a href=\"http://www.adobe.com/go/getflashplayer\"><img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Adobe Flash player\" width=\"112\" height=\"33\" /></a></p>    </div>    <!--[if !IE]>-->  </object>  <!--<![endif]--></object></p>"
	);

function switchSlide(id) {
	var IE7 = (navigator.appVersion.indexOf("MSIE 7.")==-1) ? false : true;
	var IE6 = (navigator.appVersion.indexOf("MSIE 6.")==-1) ? false : true; 

	if(id != 7) {
		document.getElementById("master0").style.zIndex = -1;	
	}
	
	if(!IE6 && !IE7) {
		if(id >= 1 && id <= 8) {
			id = parseInt(id);
			if(id != currentSlide) {
				if(id < currentSlide) {
					var slideDiff = parseInt(currentSlide - id);
						for(x = currentSlide; x > id; x--) {
							$('#slide_' + x).animate({
								marginRight: '+=745'
							}, 1000, function() {
								if(id == 7) {
									document.getElementById("master0").style.zIndex = 1;	
								}	
							});
						}
				}
				
				if(id > currentSlide) {
					var slideDiff = id - currentSlide;
					
						for(x = (currentSlide + 1); x <= (currentSlide + slideDiff); x++) {
							$('#slide_' + x).animate({
								marginRight: '-=745'
							}, 1000, function() {
							if(id == 7) {
								document.getElementById("master0").style.zIndex = 1;	
							}	
							});
						}
				}
			closeHiddenBoxes();
			}
			
			currentSlide = id;
		}
	} else {
		$('#ie_content_container').fadeOut('fast', function() {
			document.getElementById("ie_content_container").innerHTML = slides[(id - 1)];
			 
			$('#ie_content_container').fadeIn('fast');
		});
	}
	
}

function extendSection(id) {
	$('#more_content_' + id).slideDown('fast');
}

function retractSection(id) {
	$('#more_content_' + id).slideUp('fast');	
}

function closeHiddenBoxes() {
	$('#more_content').slideUp(1000);
	document.getElementById('show_content').style.display="block";
	document.getElementById('hide_content').style.display="none";
	$('#more_content2').slideUp(1000);
	document.getElementById('show_content2').style.display="block";
		document.getElementById('hide_content2').style.display="none";
	$('#more_content3').slideUp(1000);
	document.getElementById('show_content3').style.display="block";
		document.getElementById('hide_content3').style.display="none";
}

