		var newwindow;
		function poptastic(url,width,height,top,left)
			{
				newwindow=window.open(url,'name','height='+height+',width='+width+', top='+top+', left='+left);
				if (window.focus) {newwindow.focus()}
		}			

		
		function showChart(id)
		{
			var allCharts = [document.getElementById('chart1'), document.getElementById('chart2'), document.getElementById('chart3'), 
				document.getElementById('chart4'), document.getElementById('chart5'), document.getElementById('chart6'), document.getElementById('chart7')];
			var allLinks = ['linkChart1', 'linkChart2', 'linkChart3', 'linkChart4'];
			
			if (id == 'linkChart1')
			{
				allCharts[0].style.display = "block";
				allCharts[1].style.display = "block";
				allCharts[2].style.display = "none";
				allCharts[3].style.display = "none";
				allCharts[4].style.display = "none";
				allCharts[5].style.display = "none";
				allCharts[6].style.display = "none";
				
				document.getElementById(allLinks[0]).setAttribute("class", "on");
				document.getElementById(allLinks[0]).setAttribute("className", "on");
				document.getElementById(allLinks[1]).setAttribute("class", "");
				document.getElementById(allLinks[1]).setAttribute("className", "");
				document.getElementById(allLinks[2]).setAttribute("class", "");
				document.getElementById(allLinks[2]).setAttribute("className", "");
				document.getElementById(allLinks[3]).setAttribute("class", "");
				document.getElementById(allLinks[3]).setAttribute("className", "");
			}
			else if (id == 'linkChart2')
			{
				allCharts[0].style.display = "none";
				allCharts[1].style.display = "none";
				allCharts[2].style.display = "block";
				allCharts[3].style.display = "block";
				allCharts[4].style.display = "none";
				allCharts[5].style.display = "none";
				allCharts[6].style.display = "none";
				
				document.getElementById(allLinks[0]).setAttribute("class", "");
				document.getElementById(allLinks[0]).setAttribute("className", "");
				document.getElementById(allLinks[1]).setAttribute("class", "on");
				document.getElementById(allLinks[1]).setAttribute("className", "on");
				document.getElementById(allLinks[2]).setAttribute("class", "");
				document.getElementById(allLinks[2]).setAttribute("className", "");
				document.getElementById(allLinks[3]).setAttribute("class", "");
				document.getElementById(allLinks[3]).setAttribute("className", "");
			}
			else if (id == 'linkChart3')
			{
				allCharts[0].style.display = "none";
				allCharts[1].style.display = "none";
				allCharts[2].style.display = "none";
				allCharts[3].style.display = "none";
				allCharts[4].style.display = "block";
				allCharts[5].style.display = "none";
				allCharts[6].style.display = "none";
				
				document.getElementById(allLinks[0]).setAttribute("class", "");
				document.getElementById(allLinks[0]).setAttribute("className", "");
				document.getElementById(allLinks[1]).setAttribute("class", "");
				document.getElementById(allLinks[1]).setAttribute("className", "");
				document.getElementById(allLinks[2]).setAttribute("class", "on");
				document.getElementById(allLinks[2]).setAttribute("className", "on");
				document.getElementById(allLinks[3]).setAttribute("class", "");
				document.getElementById(allLinks[3]).setAttribute("className", "");
			}
			else if (id == 'linkChart4')
			{
				allCharts[0].style.display = "none";
				allCharts[1].style.display = "none";
				allCharts[2].style.display = "none";
				allCharts[3].style.display = "none";
				allCharts[4].style.display = "none";
				allCharts[5].style.display = "block";
				allCharts[6].style.display = "block";
				
				document.getElementById(allLinks[0]).setAttribute("class", "");
				document.getElementById(allLinks[0]).setAttribute("className", "");
				document.getElementById(allLinks[1]).setAttribute("class", "");
				document.getElementById(allLinks[1]).setAttribute("className", "");
				document.getElementById(allLinks[2]).setAttribute("class", "");
				document.getElementById(allLinks[2]).setAttribute("className", "");
				document.getElementById(allLinks[3]).setAttribute("class", "on");
				document.getElementById(allLinks[3]).setAttribute("className", "on");
			}
		}
			
		
		window.onload = function()
		{
		
			var randomNum = Math.round(10000*Math.random());

			var Map = new FusionCharts("Fusion/Maps/FCMap_World.swf", "sampleChart1", "480", "300", "0", "0");			
			Map.setDataURL("XML/SpamByCountryMap_Week.xml?rnd="+randomNum);		  
			Map.render("chartMapdiv");			
			
			
			var MapData = new FusionCharts("Fusion/Charts/Bar2D.swf", "sampleChart2", "200", "300", "0", "0");			
			MapData.setDataURL("XML/SpamByCountryBar_Week.xml?rnd="+randomNum);		   
			MapData.render("chartMapDatadiv");			
			
			//CHARTS Spam by Volume
			var chart1 = new FusionCharts("Fusion/Charts/Area2D.swf", "sampleChart3", "317", "230", "0", "0");					
			chart1.setDataURL("XML/SpambyVolume_Week.xml?rnd="+randomNum);	
			chart1.render("chart1div");

			var chart1M = new FusionCharts("Fusion/Charts/Area2D.swf", "sampleChart4", "317", "230", "0", "0");					
			chart1M.setDataURL("XML/SpambyVolume_Month.xml?rnd="+randomNum);	
			chart1M.render("chart1Mdiv");
			
			
			//CHARTS Spam by Type
			var chart2 = new FusionCharts("Fusion/Charts/Doughnut2D.swf", "sampleChart5", "317", "230", "0", "1");			
			chart2.setDataURL("XML/SpambyType_Week.xml?rnd="+randomNum);			  
			chart2.render("chart2div"); 
			
			
			var chart2M = new FusionCharts("Fusion/Charts/Doughnut2D.swf", "sampleChart6", "317", "230", "0", "1");			
			chart2M.setDataURL("XML/SpambyType_Month.xml?rnd="+randomNum);				   
			chart2M.render("chart2Mdiv");
			
			
			//CHARTS Image Type
			var chart3 = new FusionCharts("Fusion/Charts/Doughnut2D.swf", "sampleChart7", "317", "230", "0", "0");
			chart3.setDataURL("XML/ImageType_Week.xml?rnd="+randomNum);				   
			chart3.render("chart3div");			

			var chart3M = new FusionCharts("Fusion/Charts/Doughnut2D.swf", "sampleChart8", "317", "230", "0", "0");
			chart3M.setDataURL("XML/ImageType_Month.xml?rnd="+randomNum);					   
			chart3M.render("chart3Mdiv");
			
			
			//CHARTS Message Size			
			var chart4 = new FusionCharts("Fusion/Charts/StackedArea2D.swf", "sampleChart9", "317", "230", "0", "1");
			chart4.setDataURL("XML/MessageSize_Week.xml?rnd="+randomNum);		   
			chart4.render("chart4div");

			var chart4M = new FusionCharts("Fusion/Charts/StackedArea2D.swf", "sampleChart10", "317", "230", "0", "1");
			chart4M.setDataURL("XML/MessageSize_Month.xml?rnd="+randomNum);
		   	chart4M.render("chart4Mdiv");
			
			
			
			//CHARTS Spam Subjects
			var chart5 = new FusionCharts("Fusion/Charts/Bar2D.swf", "sampleChart11", "660", "230", "0", "1");			
			chart5.setDataURL("XML/SpamSubjects_Week.xml?rnd="+randomNum);	   		  
			chart5.render("chart5div");

			chart5M = new FusionCharts("Fusion/Charts/Bar2D.swf", "sampleChart12", "660", "230", "0", "1");			
			chart5M.setDataURL("XML/SpamSubjects_Month.xml?rnd="+randomNum);	   
			chart5M.render("chart5Mdiv");
			
			
			
			//CHARTS Inbound Threats
			var chart6 = new FusionCharts("Fusion/Charts/Doughnut2D.swf", "sampleChart13", "317", "230", "0", "1");
			chart6.setDataURL("XML/InboundThreats_Week.xml?rnd="+randomNum);		
			chart6.render("chart6div");

			var chart6M = new FusionCharts("Fusion/Charts/Doughnut2D.swf", "sampleChart14", "317", "230", "0", "1");
			chart6M.setDataURL("XML/InboundThreats_Month.xml?rnd="+randomNum);
			chart6M.render("chart6Mdiv");
			
			
			//CHARTS Dark Traffic
			var chart7 = new FusionCharts("Fusion/Charts/Doughnut2D.swf", "sampleChart15", "317", "230", "0", "1");
			chart7.setDataURL("XML/DarkTraffic_Week.xml?rnd="+randomNum);			
			chart7.render("chart7div");

			var chart7M = new FusionCharts("Fusion/Charts/Doughnut2D.swf", "sampleChart16", "317", "230", "0", "1");
			chart7M.setDataURL("XML/DarkTraffic_Month.xml?rnd="+randomNum);			
			chart7M.render("chart7Mdiv");
			
				
			var chart9 = new FusionCharts("Fusion/IS_Charts/FI2_Angular.swf", "sampleChart50", "150", "70", "0", "1");
			chart9.setDataURL("XML/ThreatLevel_Week.xml?rnd="+randomNum);	
			chart9.render("chartspeeddiv");
						
			
			showChart('linkChart1');		
			
		}

	function SetHTML1(type) {
		document.getElementById("chart1div").style.display = "none"
		document.getElementById("chart1Mdiv").style.display = "none"
		document.getElementById(type).style.display = ""
	}

	function SetPrint1() {		
		if(document.getElementById("chart1div").style.display != "none") {
			poptastic('print-SpambyVolume-Week.htm', 850, 550, 200, 20);
		} else if(document.getElementById("chart1Mdiv").style.display != "none") {
			poptastic('print-SpambyVolume-Month.htm', 850, 550, 200, 20);
		} 	
	}

	function SetHTML2(type) {
		document.getElementById("chart2div").style.display = "none"
		document.getElementById("chart2Mdiv").style.display = "none"
		document.getElementById(type).style.display = ""
	}

	function SetPrint2() {	
		if(document.getElementById("chart2div").style.display != "none") {
			poptastic('print-SpambyType-Week.htm', 850, 550, 200, 20);
		} else if(document.getElementById("chart2Mdiv").style.display != "none") {
			poptastic('print-SpambyType-Month.htm', 850, 550, 200, 20);
		}
	}

	function SetHTML3(type) {
		document.getElementById("chart3div").style.display = "none"
		document.getElementById("chart3Mdiv").style.display = "none"
		document.getElementById(type).style.display = ""
	}

	function SetPrint3() {
		if(document.getElementById("chart3div").style.display != "none") {
			poptastic('print-ImageType-Week.htm', 850, 550, 200, 20);
		} else if(document.getElementById("chart3Mdiv").style.display != "none") {
			poptastic('print-ImageType-Month.htm', 850, 550, 200, 20);
		}
	}

	function SetHTML4(type) {
		document.getElementById("chart4div").style.display = "none"
		document.getElementById("chart4Mdiv").style.display = "none"
		document.getElementById(type).style.display = ""
	}

	function SetPrint4() {
		if(document.getElementById("chart4div").style.display != "none") {
			poptastic('print-MessageSize-Week.htm', 850, 550, 200, 20);
		} else if(document.getElementById("chart4Mdiv").style.display != "none") {
			poptastic('print-MessageSize-Month.htm', 850, 550, 200, 20);
		}
	}

	function SetHTML5(type) {
		document.getElementById("chart5div").style.display = "none"
		document.getElementById("chart5Mdiv").style.display = "none"
		document.getElementById(type).style.display = ""
	}

	function SetPrint5() {
		if(document.getElementById("chart5div").style.display != "none") {
			poptastic('print-SpamSubjects-Week.htm', 850, 550, 200, 20);
		} else if(document.getElementById("chart5Mdiv").style.display != "none") {
			poptastic('print-SpamSubjects-Month.htm', 850, 550, 200, 20);
		}
	}

	function SetHTML6(type) {
		document.getElementById("chart6div").style.display = "none"
		document.getElementById("chart6Mdiv").style.display = "none"
		document.getElementById(type).style.display = ""
	}

	function SetPrint6() {
		if(document.getElementById("chart6div").style.display != "none") {
			poptastic('print-InboundThreats-Week.htm', 850, 550, 200, 20);
		} else if(document.getElementById("chart6Mdiv").style.display != "none") {
			poptastic('print-InboundThreats-Month.htm', 850, 550, 200, 20);
		}
	}


	function SetHTML7(type) {
		document.getElementById("chart7div").style.display = "none"
		document.getElementById("chart7Mdiv").style.display = "none"
		document.getElementById(type).style.display = ""
	}

	function SetPrint7() {
		if(document.getElementById("chart7div").style.display != "none") {
			poptastic('print-DarkTraffic-Week.htm', 850, 550, 200, 20);
		} else if(document.getElementById("chart7Mdiv").style.display != "none") {
			poptastic('print-DarkTraffic-Month.htm', 850, 550, 200, 20);
		}
	}

