/*
Auto-updater (Gavin Russell gavin@wavex.co.uk - http://www.wavex.co.uk)
Do not use without authors permission.
*/

var today = new Date(); // Set date
var expiry = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000); // plus 1 year
var monster = document.cookie;
function Set_Cookie(name, value) { // use: setCookie("name", value);
    if (value != null && value != "")
      document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString() + "; path=/ ;";
    monster = document.cookie; // update monster
  }

function QueryString(key)
{
	var value = null;
	for (var i=0;i<QueryString.keys.length;i++)
	{
		if (QueryString.keys[i]==key)
		{
			value = QueryString.values[i];
			break;
		}
	}
	return value;
}
QueryString.keys = new Array();
QueryString.values = new Array();

function QueryString_Parse()
{
	var query = window.location.search.substring(1);
	var pairs = query.split("&");
	
	for (var i=0;i<pairs.length;i++)
	{
		var pos = pairs[i].indexOf('=');
		if (pos >= 0)
		{
			var argname = pairs[i].substring(0,pos);
			var value = pairs[i].substring(pos+1);
			QueryString.keys[QueryString.keys.length] = argname;
			QueryString.values[QueryString.values.length] = value;		
		}
	}

}

//number will be given a value of 
var number=3;
var step = 1;
var whichimage = 1;
		
QueryString_Parse();
var imageurl="blackberry.jpg"
var title="Which IT provider?";
var url = "Which_IT_Provider.htm";
var mainbody = "A useful article to assist you in deciding which IT provider is right for you."

/*
var title="Are you on a blacklist?";
var url = "/products/svx.htm?popup=/products/spamtests/";
var mainbody = "1 in 5 companies have at one time been on a blacklist, are you? - Wavex have devised a quick and easy way to see if you are affected and what you can do."
*/

ref=QueryString("referrer");

if (ref == null) { 
ref=document.referrer;
}

if (ref.length < 5) {
ref='' + document.location;
}

ref=ref.toLowerCase();

if (ref.indexOf("download")>-1) {
title="NETi";
url = "NETi_Network_Management_Diagnostics.htm";
mainbody = "Find out more about Wavex's acclaimed network management application - NETi.";
}
if (ref.indexOf("junipe")>-1) {
title="Juniper Appliances";
url = "Security_Services.htm";
mainbody = "<img src='/newimages/company/juniper_networks_black.jpg'><br>Find out more about product options.";
}
if (ref.indexOf("netscre")>-1) {
title="Netscreen Appliances";
url = "Security_Services.htm";
mainbody = "<img src='/newimages/company/juniper_networks_black.jpg'><br>Find out more about product options.";
}
if (ref.indexOf("cisco")>-1) {
title="Cisco Appliances";
url = "Security_Services.htm";
mainbody = "<img src='/newimages/company/cisco.jpg' width='66' height='35'><BR>Find out more about product options.";
}

if (ref.indexOf("blackbe")>-1) {
title="Blackberry solutions";
url = "Mobile_Workforce_Support.htm";
mainbody = "Looking to keep your workforce in contact all the time? Have you considered Blackberry or Microsoft Mobile solutions?";
}

if (ref.indexOf("virus")>-1) {
title="Worried about viruses?";
url = "SVX_Viruses_Worms_Spam.htm";
mainbody = "Wavex has developed various solutions to protect you from viruses, spam and worms."
}

if (ref.indexOf("spam")>-1) {
title="Getting to much spam?";
url = "SVX_Viruses_Worms_Spam.htm";
mainbody = "Wavex has developed various solutions to protect you from viruses, spam and worms."
}

if (ref.indexOf("blackli")>-1) {
title="Are you on a blacklist?";
url = "SVX_Viruses_Worms_Spam.htm";
mainbody = "Wavex's SVX solution relays your email, removing spam, viruses and minimising your chance of being blacklisted."
}

if (ref.indexOf("neti")>-1) {
title="NETi";
url = "NETi_Network_Management_Diagnostics.htm";
mainbody = "Find out more about Wavex's acclaimed network management application - NETi.";
}

if (ref.indexOf("helpdesk")>-1) {
title="Need a Helpdesk?";
url = "Service_Desk.htm";
mainbody = "With Wavex's IT support services - there can be always someone to call, 24/7 365 days a year.";
}

if (ref.indexOf("disast")>-1) {
title="Disaster Recovery";
url = "Disaster_Recovery.htm";
mainbody = "Wavex can either help create your disaster recovery plan, or help you recover from one.";
}
if (ref.indexOf("help desk")>-1) {
title="Need a Helpdesk";
url = "Service_Desk.htm";
mainbody = "With Wavex's IT support services - there can be always someone to call, 24 hours a day.";
}

if (ref.indexOf("voip")>-1) {
title="VoIP";
var url = "VoIP_Implementation_Intergration.htm";
mainbody = "Wavex can deliver not only the IP Telephony component - but the supporting network infrastructure.";
}

if (ref.indexOf("teleph")>-1) {
title="VoIP";
var url = "VoIP_Implementation_Intergration.htm";
mainbody = "Wavex can deliver not only the IP Telephony component - but the supporting network infrastructure.";
}
if (ref.indexOf("phon")>-1) {
title="IP Telephony";
var url = "VoIP_Implementation_Intergration.htm";
mainbody = "Wavex can deliver not only the IP Telephony component - but the supporting network infrastructure.";
}
if (ref.indexOf("network")>-1) {
title="Network services";
url = "Network_Administration.htm";
mainbody = "Wavex's skilled network engineers can troubleshoot/implement almost any network architecture.";
}

if (ref.indexOf("consulta")>-1) {
title="Consultancy Services";
url = "Consultancy_Budgeting_Planning.htm";
mainbody = "Wavex have great breadth of abilities to call upon to ensure the appropriate Wavex team address you request";

}

if (ref.indexOf("support")>-1) {
title="Small Businesses IT Support";
url = "IT_Support_Services.htm";
mainbody = "Wavex has devised solutions to meet both the financial and service levels for demanding small businesses."
}
if (ref.indexOf("computer")>-1) {
title="Computer support";
url = "IT_Support_Services.htm";
mainbody = "Wavex has devised solutions to meet both the financial and service levels for demanding small businesses."

}
if (ref.indexOf("adsl")>-1) {
title="ADSL Services";
url = "IT_Support_Services.htm";
mainbody = "Wavex can help procure DSL services for your home/remote workers."
}

if (ref.indexOf("vpn")>-1) {
title="VPN";
url = "Mobile_Workforce_Support.htm";
mainbody = "Implementing VPNs for your remote sites or workers is just a small part of the overall Wavex support offering."
}
if (ref.indexOf("outsourc")>-1) {
title="Outsourcing services";
url = "Enterprise_Services.htm";
mainbody = "Wavex is leading the way in technical outsourcing through the use of their bespoke support applications."
}
if (ref.indexOf("securi")>-1) {
title="Security services";
url = "Network_Security_Monitoring.htm";
mainbody = "Wavex's experience in networking allows them to provide a critical systems review to ensure you are protected."
}
if (ref.indexOf("firewal")>-1) {
title="Firewall";
url = "Network_Security_Monitoring.htm";
mainbody = "Wavex can support your infrastructure or procure devices accreditied with the highest level of security."
}

if (ref.indexOf("bristol")>-1) {
title="Bristol IT Support";
url = "IT_Support_Services.htm";
mainbody = "Wavex extends their cutting-edge support services to customers in the Brisol area."
}
if (ref.indexOf("cardiff")>-1) {
title="Cardiff IT Support";
url = "IT_Support_Services.htm";
mainbody = "Wavex open Cardiff offices - extending their cutting-edge support services to customers in the Cardiff area."
}
if (ref.indexOf("reading")>-1) {
title="Reading IT Support";
url = "IT_Support_Services.htm";
mainbody = "Wavex open Reading offices - extending their cutting-edge support services to customers in the Reading area."
}
if (ref.indexOf("bath")>-1) {
title="Bath IT Support";
url = "IT_Support_Services.htm";
mainbody = "Wavex open Bath offices - extending their cutting-edge support services to customers in the Bath area."
}
if (ref.indexOf("swindon")>-1) {
title="Swindon IT Support";
url = "IT_Support_Services.htm";
mainbody = "Wavex open Swindon offices - extending their cutting-edge support services to customers in the Swindon area."
}
if (ref.indexOf("monit")>-1) {
title="Free Server Monitoring";
url = "MonX_Server_Monitoring.htm";
mainbody = "Wavex's years of experience in monitoring and troubleshooting servers - brought to you for free.";
}
if (ref.indexOf("job")>-1) {
title="IT Jobs";
url = "Careers.asp";
mainbody = "Are you interested in working with a team of friendly yet highly skilled and motivated individuals?";
}
if (ref.indexOf("swyx")>-1) {
title="SWYX - VoIP";
url = "Telephony_Solutions.htm";
mainbody = "Wavex has extensive experience in both installation, support and custom development for the VoIP office solution - SWYX"
}
if (ref.indexOf("mitel")>-1) {
title="Mitel - VoIP";
url = "Telephony_Solutions.htm";
mainbody = "Wavex has both the expertise in voice and data for planning, installing, and supporting a range of VoIP business solutions."
}
if (ref.indexOf("avaya")>-1) {
title="Avaya - VoIP";
url = "Telephony_Solutions.htm";
mainbody = "Wavex has both the expertise in voice and data for planning, installing, and supporting a range of VoIP business solutions."
}
if (ref.indexOf("ip office")>-1) {
title="IP Office - VoIP";
url = "Telephony_Solutions.htm";
mainbody = "Wavex has both the expertise in voice and data for planning, installing, and supporting a range of VoIP business solutions."
}
if (ref.indexOf("spam")>-1) {
title="Stop email spam and viruses";
url = "SVX_Spam_Virus_Scanning.htm";
mainbody = "Wavex has a free blacklist tester to ensure you are not on any blacklists and has developed SVX - an inexpensive anti-spam and anti-virus solution."
}
if (ref.indexOf("blackl")>-1) {
title="Are you blacklisted";
url = "SVX_Spam_Virus_Scanning.htm";
mainbody = "Wavex has a free blacklist tester to ensure you are not on any blacklists and has developed SVX - an inexpensive anti-spam and anti-virus solution."
}
if (ref.indexOf("check")>-1) {
title="Are you blacklisted";
url = "SVX_Spam_Virus_Scanning.htm";
mainbody = "Wavex has a free blacklist tester to ensure you are not on any blacklists and has developed SVX - an inexpensive anti-spam and anti-virus solution."
}
if (ref.indexOf("blackberr")>-1) {
title="Blackberry based solutions";
url = "Mobile_Workforce_Support.htm";
var mainbody = "Wavex has expertise in implementing, supporting and planning Blackberry based solutions."
}
if (ref.indexOf("recover")>-1) {
title="Disaster recovery";
url = "Disaster_Recovery.htm";
var mainbody = "Wavex is expert in disaster recovery planning, business continuity solutions, and recovery execution."
}
if (ref.indexOf("monx")>-1) {
title="MonX - Server monitoring";
url = "MonX_Server_Monitoring.htm";
mainbody = "Free, easy to install, pre-emptive server monitoring with automated access to solutions."
}
if (ref.indexOf("backu")>-1) {
title="Effortless on-line backup";
url = "DSX.htm";
mainbody = "Have piece of mind with Wavex's DSX - secure, cost-effective online backup and retrieval of your companies data"
}
if (ref.indexOf("mifid")>-1) {
title="MiFID and financial compliance";
url = "mifid.htm";
mainbody = "Wavex can assist you in becoming compliant with any regulatory requirements."
}
$quote = '"'; 

var text="<img src='/newimages/shared/spacer.gif' width='200' height='4' border='0' /><br>"
text +="<strong><font color='#FFFFFF' size='2px'>" + title + "</font></strong>"
text +="<img src='/newimages/shared/spacer.gif' width='200' height='12' border='0' /><br>"
text +=mainbody
text +="<br><a href='" + url + "'><img src='/newimages/shared/more.gif' class='feeder' border='0' align='left'/></a>"


var el = document.all ? document.all('interestbox') :
document.getElementById ? document.getElementById('interestbox') : null;

if (el) el.innerHTML = text;
Set_Cookie("referrer",ref);
//slide();