/* ***********************Begin Random text*********************** */
var randomtext=new Array() 
randomtext[0] = '<style type="text/css">#national {display:none;}</style>';
randomtext[1] = '<style type="text/css">#national2 {display:none;}</style>';

var R = randomtext.length;
var whichrandomtext=Math.round(Math.random()*(R-1));
function showrandomtext(){document.write(randomtext[whichrandomtext]);}
showrandomtext();
/* ***********************End Random text*********************** */
/* ***********************Begin Open Blank Window*********************** */
/* usage:  onclick="BlankWin(this.href);return false;" */
function BlankWin (url) {
     blankWin = window.open(url,'_blank');
  }

  /* usage:  onclick="NamedWin(this.href, 'news');return false;" */
function NamedWin (url, winname) {
	namedWin = window.open (url, winname);	
}
/* ***********************End Open Blank Window*********************** */
/* ***********************Begin drop down menu*********************** */
activateMenu = function(nav) {

    /* currentStyle restricts the Javascript to IE only */
	if (document.all && document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}
window.onload= function(){
    /* pass the function the id of the top level UL */
    /* remove one, when only using one menu */
    activateMenu('mainnavul'); 
}

/* ***********************end drop down menu*********************** */
/* ***********************begin popup window*********************** */
function openpopupWindow(url, name) {
  popupWin = window.open(url, name, 'width=360,height=280,left=20,top=20,resizable=0,scrollbars=0')
}

function emailpopup(url,name) {
  popupwin = window.open(url, name, 'width=350,height=280');
}
/* ***********************end popup window*********************** */
/* ***********************begin toggle div tags***********************  */
function toggledivs() {
  var inc, endInc=arguments.length;
  for (inc=0; inc<endInc; inc+=2) {
    var id = arguments[inc];
    if (arguments[inc+1] == 'none') param = "none";
    else if(arguments[inc+1]=='block') param = "block";
    if (document.layers) document.layers['container'].layers[id].visibility = param;
    else if (document.all) eval("document.all." + id + ".style.display = \"" + param + "\"");
    else if (document.getElementById) eval("document.getElementById(id).style.display = \"" + param + "\"");
  }
}


function togglevisibility() {
  var inc, endInc=arguments.length;
  for (inc=0; inc<endInc; inc+=2) {
    var id = arguments[inc];
    if (arguments[inc+1] == 'hidden') param = "hidden";
    else if(arguments[inc+1]=='visible') param = "visible";
    if (document.layers) document.layers['container'].layers[id].visibility = param;
    else if (document.all) eval("document.all." + id + ".style.visibility = \"" + param + "\"");
    else if (document.getElementById) eval("document.getElementById(id).style.visibility = \"" + param + "\"");
  }
}


// new code for swapping divs without the hack of adding all the div layers in the onclick event
function getElementsByClass(searchClass,node,tag) {
  // This function gets the elements that all share a class name
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp('(^|\\s)'+searchClass+'(\\s|$)');
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}

function an_toggleDisplay(theid) {
	// This function toggles between the tabs and the corresponding content for the tabs.  The tabs <li> must correspond 1-1 with the order of the content UL content elements.
	// if your 3rd tab is "tab for content z" then ensure that your UL for the content is placed as the 3rd element.
	// we could give the tabs an id in order to match the id of the actual content, but it was kept this way in order to save on logic processing time and added code to the HTML (yet more id's to keep track of).
  
	var contentelmt = getElementsByClass('tab_contents');
	var tabelmt = getElementsByClass('litab');
	var match = false;
		for (i = 0; i < contentelmt.length; i++) {
			if (theid == contentelmt[i].id) {
				match = true;
				contentelmt[i].style.display = "block";
				tabelmt[i].className ="litab active";
			}
			else {
				contentelmt[i].style.display = "none";
				tabelmt[i].className = "litab";			
			}		
		}
		if (!match) {
			contentelmt[0].style.display = "block";
			tabelmt[0].className="litab active";
		}
}
/* ***********************end toggle div tags*********************** */
/* ***********************begin widget*********************** */
function expandcollapse (postid) { 

   whichpost = document.getElementById(postid); 
   
   if (whichpost.className=="postshown") { 
      whichpost.className="posthidden"; 
   } 
   else { 
      whichpost.className="postshown"; 
   } 
} 
/* ***********************end widget*********************** */

/* ***********************Begin siteurl*********************** */
var siteurl = '/';
// string to look for in the url
var keyword = 'devsite/';
// get the starting position of the string
var keywordPos = location.href.indexOf(keyword);
// gather everything in the url up to and including the keyword
if (keywordPos != -1) siteurl = location.href.substr(0, keywordPos+keyword.length);
/* ***********************end siteurl*********************** */

/* ***********************Begin Flash*********************** */
function activateFlash(swfURL) {
	if ( plugin ) {   
				var width = '777';
				var height = '294';
				var bgcolor = '#4A494A';
				var link1 = siteurl +'item-one/';
				var link2 = siteurl +'item-two/';
				var link3 = siteurl +'item-three/';
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" id="flash_ad" width="' + width + '" height="' + height + '">');
			 	document.write('<param name="movie" value="' + swfURL + '" />');
				document.write('<param name="quality" value="autohigh" />');
				document.write('<param name="menu" value="false" />');
				document.write('<param name="wmode" value="transparent" />');
				document.write('<param name="bgcolor" value="' + bgcolor + '" />');
				document.write('<param name=FlashVars value="learnURL=' + link1 + '&telcoURL=' + link2 + '&cableURL=' + link3 + '">');
			 	document.write('<embed src="' + swfURL + '" quality="autohigh" swLiveConnect="false" FlashVars="learnURL=' + link1 + '&telcoURL=' + link2 + '&cableURL=' + link3 + '" width="' + width + '" height="' + height + '"  wmode="transparent" bgcolor="' + bgcolor + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" menu="false"></embed>');
				document.write('</object>');
			}
			else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
				document.write('<img src="masthead.gif" alt="" border="0" />');
			}
}
/* ***********************End Flash*********************** */
/* ***********************begin toggle images***********************  */
function imageover(el,which){
  el.src=el.getAttribute(which || "off");
}

function imageswap(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var over = x[i].getAttribute("over");
    if (!over) continue;
      
    // preload image
    x[i].over_img = new Image();
    x[i].over_img.src=over;
    // set event handlers
    x[i].onmouseover = new Function("imageover(this,'over');");
    x[i].onmouseout = new Function("imageover(this);");
    // save original src
    x[i].setAttribute("off",x[i].src);
  }
}
/* ***********************end toggle images***********************  */


/* ***********************Begin rotating quotes tags*********************** */
/*
Rotating image or text(You can use for changing banners)
Author: Narayan Chand Thakur
Source: http://ncthakur.itgo.com/
This may be used freely as long as this message is intact.
*/
<!--

//you may add your image file or text below
var quote=new Array()
quote[0]="<p class=\"image\"><img src=\"pics/home/customer_flipper/hitachi.gif\" alt=\"Hitachi Data Systems\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/washington.gif\" alt=\"Washington State University\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/t_mobile.gif\" alt=\"T-Mobile\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/petco.gif\" alt=\"Petco\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/outback.gif\" alt=\"Outback Steakhouse\" /></p>"
quote[1]="<div class=\"text\"><p>\"Choosing an on-demand solution for our inbound email filtering seemed an obvious decision. It means one less thing for our IT team to worry about while greatly reducing our overall costs of providing email security. Anti-spam and anti-virus performance has been excellent.\"</p><p class=\"name\">- Mark Beard, IT Services Manager</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/easyJet.gif\" alt=\"easyJet\" /></p>"
quote[2]="<p class=\"image\"><img src=\"pics/home/customer_flipper/seagate.gif\" alt=\"Seagate\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/kaiser_permanente.gif\" alt=\"Kaiser Permanente\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/hca.gif\" alt=\"HCA\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/cowen.gif\" alt=\"Cowen and Company\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/penn_mutual.gif\" alt=\"Penn Mutual Life\" /></p>"
quote[3]="<div class=\"text\"><p>\"We were extremely impressed with how quickly Proofpoint went to work at blocking incoming spam, with very little tuning on our part. Everyone in the organization, including our uppermost administration, instantly noticed the absence of spam.</b>\"</p><p class=\"name\">- Brian Cohen, CIO</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/cuny.gif\" alt=\"CUNY\" /></p>"
quote[4]="<p class=\"image\"><img src=\"pics/home/customer_flipper/leesport.gif\" alt=\"Leesport\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/outback.gif\" alt=\"Outback Steakhouse\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/marykay.gif\" alt=\"Mary Kay\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/pac_sun.gif\" alt=\"Pacific Sunwear\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/princeton.gif\" alt=\"Princeton University\" /></p>"
quote[5]="<div class=\"text\"><p>\"With Proofpoint, we are happy with the level of protection the software provides against many existing and emerging messaging threats, while ensuring that important emails always get through to their intended recipients.\"</p><p class=\"name\">- Matt Marchione, IT Security</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/burlington.gif\" alt=\"Burlington Coat Factory\" /></p>"
quote[6]="<p class=\"image\"><img src=\"pics/home/customer_flipper/brown_university.gif\" alt=\"Brown University\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/cuny.gif\" alt=\"CUNY\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/unlv.gif\" alt=\"UNLV\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/ucla.gif\" alt=\"UCLA\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/penn_mutual.gif\" alt=\"Penn Mutual Life\" /></p>"
quote[7]="<div class=\"text\"><p>\"Proofpoint was by far the best at rooting out spam. Not only that, but it also provided the best tools to our end-users and let them control their incoming email.\"</p><p class=\"name\">- Rick Nicholson, Enterprise Email Administrator</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/houston.gif\" alt=\"City of Houston\" /></p>"
quote[8]="<p class=\"image\"><img src=\"pics/home/customer_flipper/kla_tencor.gif\" alt=\"KLA-Tencor\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/tyson.gif\" alt=\"Tyson Foods\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/leco.gif\" alt=\"Leco\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/usaa.gif\" alt=\"USAA\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/national_instruments.gif\" alt=\"National Instruments\" /></p>"
quote[9]="<div class=\"text\"><p>\"Identity theft is a top concern for consumers right now, so we can't let their credit card information get into the wrong hands. Proofpoint is extremely accurate at detecting any sensitive information that's being sent out and it allows us to automatically encrypt that data so it's always safe.\"</p><p class=\"name\">- Steven Romero, Systems Engineer</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/outback.gif\" alt=\"Outback Steakhouse\" /></p>"
quote[10]="<p class=\"image\"><img src=\"pics/home/customer_flipper/burlington.gif\" alt=\"Burlington Coat Factory\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/dekalb_medical.gif\" alt=\"DeKalb Medical Center\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/grand_valley.gif\" alt=\"Grand Valley State University\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/hofstra.gif\" alt=\"Hofstra University\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/houston.gif\" alt=\"City of Houston\" /></p>"
quote[11]="<div class=\"text\"><p>\"Our employees don't need to do anything differently, yet our patient information is much more secure as a result. Proofpoint has allowed us to identify more than 1,200 emails each month that need to be encrypted because they include PHI.\"</p><p class=\"name\">- Sharon Finney, Security Administrator</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/dekalb_medical.gif\" alt=\"DeKalb Medical Center\" /></p>"
quote[12]="<p class=\"image\"><img src=\"pics/home/customer_flipper/hitachi.gif\" alt=\"Hitachi Data Systems\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/washington.gif\" alt=\"Washington State University\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/t_mobile.gif\" alt=\"T-Mobile\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/petco.gif\" alt=\"Petco\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/outback.gif\" alt=\"Outback Steakhouse\" /></p>"
quote[13]="<div class=\"text\"><p>\"I used to spend more than two hours each day dealing with our old anti-spam product. With Proofpoint, I don't even spend two minutes in administration. It just works.\"</p><p class=\"name\">- Tom Norman, Email Administrator</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/grand_valley.gif\" alt=\"Grand Valley State University\" /></p>"
quote[14]="<p class=\"image\"><img src=\"pics/home/customer_flipper/seagate.gif\" alt=\"Seagate\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/kaiser_permanente.gif\" alt=\"Kaiser Permanente\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/hca.gif\" alt=\"HCA\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/cowen.gif\" alt=\"Cowen and Company\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/vmware.gif\" alt=\"VMware\" /></p>"
quote[15]="<div class=\"text\"><p>\We needed something to work immediately, but realized that there wouldn't be many vendors that could meet our demanding requirements for an anti-spam solution. Proofpoint has performed beautifully, exceeding those demands, and has been a real lifesaver for our email users.\"</p><p class=\"name\">- Jim Donaldson, Senior Unix Systems Engineer</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/hitachi.gif\" alt=\"Hitachi Data Systems\" /></p>"
quote[16]="<p class=\"image\"><img src=\"pics/home/customer_flipper/petco.gif\" alt=\"Petco\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/outback.gif\" alt=\"Outback Steakhouse\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/marykay.gif\" alt=\"Mary Kay\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/pac_sun.gif\" alt=\"Pacific Sunwear\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/princeton.gif\" alt=\"Princeton University\" /></p>"
quote[17]="<div class=\"text\"><p>\"Our customers are top of mind for us. We can’t put a price on our customers’ confidence—if we were to have a data breach, we’d be done. Among all the solutions we looked at, Proofpoint was not only the most technically advanced, but it also provided superior support. It met all of our requirements.\"</p><p class=\"name\">- Jack McLaine, Vice President, Management Information Systems</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/leesport.gif\" alt=\"Leesport\" /></p>"
quote[18]="<p class=\"image\"><img src=\"pics/home/customer_flipper/brown_university.gif\" alt=\"Brown University\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/cuny.gif\" alt=\"CUNY\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/unlv.gif\" alt=\"UNLV\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/ucla.gif\" alt=\"UCLA\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/penn_mutual.gif\" alt=\"Penn Mutual Life\" /></p>"
quote[19]="<div class=\"text\"><p>\"We looked at other encryption solutions but found they didn't have the level of filtering and accurate detection that we required. Proofpoint had the strongest capabilities for detecting PHI of any product we evaluated.\"</p><p class=\"name\">- Jeff Caracci, Information Security Officer</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/pella.gif\" alt=\"Pella Regional Health Center\" /></p>"
quote[20]="<p class=\"image\"><img src=\"pics/home/customer_flipper/kla_tencor.gif\" alt=\"KLA-Tencor\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/tyson.gif\" alt=\"Tyson Foods\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/leco.gif\" alt=\"Leco\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/usaa.gif\" alt=\"USAA\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/national_instruments.gif\" alt=\"National Instruments\" /></p>"
quote[21]="<div class=\"text\"><p>\"We've just been really impressed with Proofpoint's functionality and the advanced algorithms for detecting spam, viruses and intellectual property leaks. Proofpoint just provides us with complete messaging security, without any of the hassles and maintenance.\"</p><p class=\"name\">- Mark Howard, IT Director</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/vist.gif\" alt=\"VIST Financial\" /></p>"
quote[22]="<p class=\"image\"><img src=\"pics/home/customer_flipper/burlington.gif\" alt=\"Burlington Coat Factory\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/dekalb_medical.gif\" alt=\"DeKalb Medical Center\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/grand_valley.gif\" alt=\"Grand Valley State University\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/hofstra.gif\" alt=\"Hofstra University\" /><img src=\"pics/home/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"pics/home/customer_flipper/houston.gif\" alt=\"City of Houston\" /></p>"
quote[23]="<div class=\"text\"><p>\"The Proofpoint Messaging Security Gateway impressed us with its flexibility, ease of administration and anti-spam and virus accuracy. The decision to go with Proofpoint was unanimous.\"</p><p class=\"name\">- James Walker, Senior Systems Administrator</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/hofstra.gif\" alt=\"Hofstra University\" /></p>"
quote[24]="<div class=\"text\"><p>\"The feedback from our user base has been outstanding. People cannot stop talking about the solution and the fact that their <b>spam disappeared virtually overnight.</b>\"</p><p class=\"name\">- Ryan Trevino, Enterprise Messaging Administrator</p></div><p class=\"image\"><img src=\"pics/home/customer_flipper/national_instruments.gif\" alt=\"National Instuments\" /></p>"

var current=0
var quoteID

var ns6=document.getElementById&&!document.all
function changeItem(){
if(document.layers){
document.layer1.document.write(quote[current])
document.layer1.document.close()
}
if(ns6)document.getElementById("rotatequotes").innerHTML=quote[current]
{
if(document.all){
rotatequotes.innerHTML=quote[current]
}
}
if (current==23) current=0
else current++
quoteID = setTimeout("changeItem()",10000)
}

function nextQuote() {
  clearTimeout(quoteID)
  changeItem()
}

function previousQuote() {
  current=current-2
  if (current==-2) current=22
  if (current==-1) current=23
  clearTimeout(quoteID)
  changeItem()
}

//-->


/* ***********************end rotating quotes tags*********************** */


// used by the solutions builder results page for expand and collapse.
function expand(id){
if (document.getElementById)
   {
   var nodeObj = document.getElementById(id)
   var nodeObj2 = document.getElementById(id + "-exp");
   var nodeObj3 = document.getElementById(id + "-col");
   nodeObj.style.overflow = "visible";
   nodeObj.style.height = "auto";
   nodeObj2.style.display = "none";
   nodeObj3.style.display = "block";

   }
}
function collapse(id){
if (document.getElementById)
   {
   var nodeObj = document.getElementById(id)
   var nodeObj2 = document.getElementById(id + "-exp");
   var nodeObj3 = document.getElementById(id + "-col");
   nodeObj.style.overflow = "hidden";
   nodeObj.style.height = "135px";
   nodeObj2.style.display = "block";
   nodeObj3.style.display = "none";

   }
}


// used by the resource center tabs
function getTabList () {
var sTab = getParameter("tab");
   if (sTab!="") {
    an_toggleDisplay(sTab);
  }
  else {
  	an_toggleDisplay();
  }
}
function getParameter(szName)
{
    // Get value out of supplied parameter
    var szUrl = window.location.search;
    szUrl = szUrl.toLowerCase();
    szName = szName.toLowerCase();
    var szValue = "";
    var nBegin = szUrl.indexOf(szName);
    if (nBegin != -1)
    {
     szValue = szUrl.substring(nBegin + (szName.length + 1));
    }
    var nEnd = szValue.indexOf("&");
    if (szValue != "" && nEnd != -1)
    {
     szValue = szValue.substring(0, nEnd);
    }
    //	if (szValue == "")
	//	szValue = "About"; // Set the default here if you like
    //alert(szValue);                                        
    return szValue;
}

// used by the resource center white paper tab for expand and collapse.
var jQuery;
    jQuery && jQuery( function() {

	jQuery('#tabitem .resourceContainer table.collapsable').each(
		function() { 
			jQuery('tr:gt(1)', jQuery(this)).hide();
		}
	);
	
	jQuery('#tabitem .resourceContainer a[@href=#show]').click(function(event) {
		// Prevent the browser from navigating to the href location
		event.preventDefault();
	
		// Keep a jQuery object of the anchor element so that it's easier to re-use
		var $$ = jQuery(this);
	
		// The containing li will give us a good place to operate on other elements
		// from a standard, relative location
		var containingLi = $$.parents('li:first');

		// Hide the show link div
		$$.parent().hide();
		
		// Show the hide link div
		jQuery('a[@href=#hide]', containingLi).parent().show();
	
		// Show all table rows associated with this anchor
		jQuery('table tbody tr', containingLi).show();
	}
	);


	jQuery('#tabitem .resourceContainer a[@href=#hide]').click(function(event) {
		// Prevent the browser from navigating to the href location
		event.preventDefault();
	
		// Keep a jQuery object of the anchor element so that it's easier to re-use
		var $$ = jQuery(this);
	
		// The containing li will give us a good place to operate on other elements
		// from a standard, relative location
		var containingLi = $$.parents('li:first');

		// Hide the hide link div
		$$.parent().hide();
	
		// Show the show link div
		jQuery('a[@href=#show]', containingLi).parent().show();
	
		// Hide all table rows but the first associated with this anchor
		jQuery('table tbody tr:gt(0)', containingLi).hide();
	}
	);
});



//used by autodemo
var openedWin = null;
var wpercent = 100;

function launch(){
	var args = launch.arguments
	var url = args[0]
	var width = args[1]
	var height = args[2]
	
	if (!url || !width || !height) {
		alert("Error");
	} else {
		var scr_w = screen.availWidth
		var scr_h = screen.availHeight
		var target_w = 0
		var target_h = 0
		wpercent = 100

		if(width >= scr_w || height >= scr_h){
			if((width+8) >= (height+27)){
				target_w = scr_w - 8	//target width is screen width - 8
				wpercent = Math.floor((target_w * 100)/width) //get percentage scaled down
				target_h = Math.floor((height * wpercent)/100) - 27 //scale height to  percentage then subtract standard title bar height
				wpercent = Math.floor((target_h * 100)/height)	//re-adjust percentage
				target_w = Math.floor((width * wpercent)/100)	//scale width to new percentage
				width = target_w
				height = target_h
			}else if((height+27) > (width+8)){
				target_h = scr_h - 27
				wpercent = Math.floor((target_h * 100)/height)
				target_w = Math.floor((width * wpercent)/100) - 8
				wpercent = Math.floor((target_w * 100)/width)
				target_h = Math.floor((height * wpercent)/100)
				width = target_w
				height = target_h
			}
		}
		_launch(url, width, height, args[3], args[4], args[5], args[6], args[7], args[8], args[9]);
	}
}

function _launch(){
	closeChild()
	
	var args = _launch.arguments
	var url = args[0]
	var width = args[1]
	var height = args[2]
	var resizable = args[3] ? "yes" : "no"
	var scrollbars = args[4] ? "yes" : "no"
	var toolbar = args[5] ? "yes" : "no"
	var menubar = args[6] ? "yes" : "no"
	var status = args[7] ? "yes" : "no"
	var address = args[8] ? "yes" : "no"
	var directories = args[9] ? "yes" : "no"
	
	var NewX = Math.max(0, Math.floor((screen.availWidth-(width+8))/2));
	var NewY = Math.max(0, Math.floor((screen.availHeight-(height+27))/2));
	
	var params = ''
	
	params += "width="+width // 1
	params += ",height="+height // 2
	params += ",screenx="+NewX
	params += ",screeny="+NewY
	params += ",left="+NewX
	params += ",top="+NewY
	params += ",resizable="+resizable // 3
	params += ",scrollbars="+scrollbars // 4
	params += ",toolbar="+toolbar // 5
	params += ",menubar="+menubar // 6
	params += ",status="+status // 7
	params += ",location="+address // 8
	params += ",directories="+directories // 9
	
	openedWin = window.open(url, "demodashboard", params);
}

function closeChild () {
	if (openedWin != null) {
		if (!openedWin.closed) {
			openedWin.close();
		}
	}
}
onunload = closeChild;

/*************** Begin Press Releases Archive Selector *************/
function selectPRArchive(page){
	if (page != ""){
		if (page == "current"){
			window.location="index.php";
		}
		else {
			window.location="index.php?archive=" + page;
		}
	}
}
/*************** End Press Releases Archive Selector *************/

/*************** Begin Language Dropdown ****************/
    var Language = {
      mouseover: function() {
        //jQuery(this).addClass('over');
        //$(this).children('div#Language').addClass('over');
        jQuery(this).children('ul#LanguageOptions').show();
      },
      mouseout: function() {
        //jQuery(this).removeClass('over');
        //$(this).children('div#Language').removeClass('over');
        jQuery(this).children('ul#LanguageOptions').hide();
      },
      init: function() {
        this.setup();
        jQuery('#Language').hover(this.mouseover, this.mouseout);
        //$('#Language ul#Language-options li').hover(function() { $(this).addClass('over'); }, function() { $(this).removeClass('over'); });
      },
      setup: function() {
        jQuery('#Language').append('<ul id="LanguageOptions" style="display: none;">');
          jQuery('#Language ul')
            .append('<li><a href="http://www.proofpoint.com">English</a></li>')
            .append('<li><a href="http://www.proofpoint.com/jp/">Japanese</a></li>');
      }
    }
	var jQuery;
    jQuery && jQuery(function(){ Language.init(); });
/*************** End Language Dropdown ****************/