﻿// Copyright Fix My PC computer services. Please do not copy or distribute this software without permission of the Author.

				var clicked=true;

	
				//Function that flips the image and expands the table
				function ExpandCollapse(bExpand, id1, id2){
					clicked = bExpand;
					if(clicked){
					clicked=false;
					id1.style.display = 'block';
					id2.innerHTML='Collapse';
					}else{
					clicked=true;
					id1.style.display = 'none';
					id2.innerHTML='Expand';
					}	
				}
	
				//Function that swaps the images.
				function swaprollover(event){
					var userdida;
					userdida = event;
					if (clicked){
						if (userdida == 'mouseover'){
							MM_swapImage('arrow','','/nr/img/newsletter/dl-button-expand-over.gif',1)
						}
						if (userdida == 'mouseout'){
							document.getElementById('arrow').src = '/nr/img/newsletter/dl-button-expand.gif';
						}
					}else{
						if (userdida == 'mouseover'){
							MM_swapImage('arrow','','/nr/img/newsletter/dl-button-collapse-over.gif',1)
						}
						if (userdida == 'mouseout'){
							document.getElementById('arrow').src = '/nr/img/newsletter/dl-button-collapse.gif';
						}
					}
				}

				closetime = 0; // Close window after __ number of seconds?
				screenwidth = screen.width;
				// 0 = do not close, anything else = number of seconds
	
				//Function that pops the newsletter sign up page
				function doPopup() {
					
					url = "http://www.fixmypc.com.au/thankyou.html";
					
					width = 457;  // width of window in pixels
					height = 455; // height of window in pixels
					
					//left = screenwidth - width - 10;
					left = 10;
					windowprops = "location=no,scrollbars=no,left=" + left + ",top=50,width=" + width + ",height=" + height;
					preview = window.open(url, "preview", windowprops);
				}
				
				//  End -->