﻿/* ***********************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="../../js/' + 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="../../js/' + 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="../../js/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=\"./img/customer_flipper/hitachi.gif\" alt=\"Hitachi Data Systems\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/kaiser_permanente.gif\" alt=\"Kaiser Permanente\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/t_mobile.gif\" alt=\"T-Mobile\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/asahikasei.gif\" alt=\"Asahi Kasei\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/jcr.gif\" alt=\"Japanese Foundation For Cancer Research\" /></p>"
quote[1]="<div class=\"text\"><p>\"エンドユーザの声を重視して検討を重ね、Proofpointを導入しました。ユーザは検知率の高さと使い勝手のよさ、管理者は管理負担の少なさを高く評価。導入前全受信メールの8割を占めていたスパムが、今では無くなったかと錯覚するほどの効果があります。\"</p><p class=\"name\">- 公益財団法人 がん研究会 殿</p></div><p class=\"image\"><img src=\"./img/customer_flipper/jcr.gif\" alt=\"Japanese Foundation For Cancer Research\" /></p>"
quote[2]="<p class=\"image\"><img src=\"./img/customer_flipper/seagate.gif\" alt=\"Seagate\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/kaiser_permanente.gif\" alt=\"Kaiser Permanente\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/nagano.gif\" alt=\"Nagano Municipal Hospital\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/bristoll_myers_squibb.gif\" alt=\"Bristol-Myers Squibb\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/wells_fargo.gif\" alt=\"Wells Fargo\" /></p>"
quote[3]="<div class=\"text\"><p>\"信頼性の高いスコアリングテクノロジーに基づいた精度の高いスコアリング、とりわけ限りなくゼロに近い誤検出率の低さが圧倒的な魅力です。目をみはる程の導入効果を実感しています。\"</p><p class=\"name\">- 長野市民病院殿</p></div><p class=\"image\"><img src=\"./img/customer_flipper/nagano.gif\" alt=\"Nagano Municipal Hospital\" /></p>"
quote[4]="<p class=\"image\"><img src=\"./img/customer_flipper/petco.gif\" alt=\"Petco\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/jcr.gif\" alt=\"Japanese Foundation For Cancer Research\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/marykay.gif\" alt=\"Mary Kay\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/pac_sun.gif\" alt=\"Pacific Sunwear\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/princeton.gif\" alt=\"Princeton University\" /></p>"
quote[5]="<div class=\"text\"><p>\"私たちは、重要なメールを誤って止めることなく、電子メールのあらゆる脅威からメールを保護するProofpointの技術水準の高さにとても満足しています。\"</p><p class=\"name\">- Matt Marchione, IT Security</p></div><p class=\"image\"><img src=\"./img/customer_flipper/burlington.gif\" alt=\"Burlington Coat Factory\" /></p>"
quote[6]="<p class=\"image\"><img src=\"./img/customer_flipper/nagano.gif\" alt=\"Nagano Municipal Hospital\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/cuny.gif\" alt=\"CUNY\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/unlv.gif\" alt=\"UNLV\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/ucla.gif\" alt=\"UCLA\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/penn_mutual.gif\" alt=\"Penn Mutual Life\" /></p>"
quote[7]="<div class=\"text\"><p>\"Proofpointは、スパムを根絶させる最高の製品でした。それだけではなく、メールユーザ自身で受信メールを管理する最高のツールを提供しました。\"</p><p class=\"name\">- Rick Nicholson, Enterprise Email Administrator</p></div><p class=\"image\"><img src=\"./img/customer_flipper/houston.gif\" alt=\"City of Houston\" /></p>"
quote[8]="<p class=\"image\"><img src=\"./img/customer_flipper/kla_tencor.gif\" alt=\"KLA-Tencor\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/tyson.gif\" alt=\"Tyson Foods\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/unlv.gif\" alt=\"UNLV\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/usaa.gif\" alt=\"USAA\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/national_instruments.gif\" alt=\"National Instruments\" /></p>"
quote[9]="<div class=\"text\"><p>\"個人情報の漏えいは、顧客が最も注目するものの一つです。そのため、我々がクレジットカード情報を漏えいし、それらが悪用されることは絶対にあってはなりません。Proofpointは、外部に送られようとしているいかなる機密情報も正確に検出します。またそれらを安全に送付するため、自動的に暗号化することもできます。\"</p><p class=\"name\">- Steven Romero, Systems Engineer</p></div><p class=\"image\"><img src=\"./img/customer_flipper/outback.gif\" alt=\"Outback Steakhouse\" /></p>"
quote[10]="<p class=\"image\"><img src=\"./img/customer_flipper/burlington.gif\" alt=\"Burlington Coat Factory\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/dekalb_medical.gif\" alt=\"DeKalb Medical Center\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/grand_valley.gif\" alt=\"Grand Valley State University\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/hofstra.gif\" alt=\"Hofstra University\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/houston.gif\" alt=\"City of Houston\" /></p>"
quote[11]="<div class=\"text\"><p>\"我々の社員は今までと違う操作をすることなく、患者の個人情報がより一層安全になりました。Proofpointは、PHI(被保護保険情報)を含むため暗号化すべきメールを月々1200通以上の検出します。\"</p><p class=\"name\">- Sharon Finney, Security Administrator</p></div><p class=\"image\"><img src=\"./img/customer_flipper/dekalb_medical.gif\" alt=\"DeKalb Medical Center\" /></p>"
quote[12]="<p class=\"image\"><img src=\"./img/customer_flipper/hitachi.gif\" alt=\"Hitachi Data Systems\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/kaiser_permanente.gif\" alt=\"Kaiser Permanente\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/t_mobile.gif\" alt=\"T-Mobile\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/asahikasei.gif\" alt=\"Asahi Kasei\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/jcr.gif\" alt=\"Japanese Foundation For Cancer Research\" /></p>"
quote[13]="<div class=\"text\"><p>\"私は、古いアンチスパム製品のメンテナンスに毎日2時間以上を費やしていました。Proofpoint導入後、メンテナンスに時間を費やすことなく、Proofpointは最適な状態で稼動し続けます。\"</p><p class=\"name\">- Tom Norman, Email Administrator</p></div><p class=\"image\"><img src=\"./img/customer_flipper/grand_valley.gif\" alt=\"Grand Valley State University\" /></p>"
quote[14]="<p class=\"image\"><img src=\"./img/customer_flipper/seagate.gif\" alt=\"Seagate\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/kaiser_permanente.gif\" alt=\"Kaiser Permanente\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/hca.gif\" alt=\"HCA\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/bristoll_myers_squibb.gif\" alt=\"Bristol-Myers Squibb\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/wells_fargo.gif\" alt=\"Wells Fargo\" /></p>"
quote[15]="<div class=\"text\"><p>\私たちは、早急に導入できるアンチスパムソリューションが必要でしたが、我々の厳しい要求を満たすベンダーは多くありませんでした。Proofpointは我々の期待を超えるソリューションを提供した、社内メールユーザの救世主でした。\"</p><p class=\"name\">- Jim Donaldson, Senior Unix Systems Engineer</p></div><p class=\"image\"><img src=\"./img/customer_flipper/hitachi.gif\" alt=\"Hitachi Data Systems\" /></p>"
quote[16]="<p class=\"image\"><img src=\"./img/customer_flipper/petco.gif\" alt=\"Petco\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/jcr.gif\" alt=\"Japanese Foundation For Cancer Research\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/marykay.gif\" alt=\"Mary Kay\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/pac_sun.gif\" alt=\"Pacific Sunwear\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/princeton.gif\" alt=\"Princeton University\" /></p>"
quote[17]="<div class=\"text\"><p>\"Proofpointは、スパムの検知精度、MTAとしてのスペックや使いやすさ、将来的な内部統制対応への拡張など、厳しい要件を満たした唯一のソリューションでした。稼働後、業務効率も改善し、国内外の拠点から「Good job!」などの感謝のメールが届きました。\"</p><p class=\"name\">- 旭化成グループ殿</p></div><p class=\"image\"><img src=\"./img/customer_flipper/asahikasei.gif\" alt=\"Asahi Kasei\" /></p>"
quote[18]="<p class=\"image\"><img src=\"./img/customer_flipper/nagano.gif\" alt=\"Nagano Municipal Hospital\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/cuny.gif\" alt=\"CUNY\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/unlv.gif\" alt=\"UNLV\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/ucla.gif\" alt=\"UCLA\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/penn_mutual.gif\" alt=\"Penn Mutual Life\" /></p>"
quote[19]="<div class=\"text\"><p>\"当初、私たちは他の暗号化ソリューションを調べましたが、その製品はフィルタリングの正確性や機能で要件を満たしていませんでした。Proofpointは、評価したどの製品よりも正確にPHI(被保護保険情報)を検出する強力な性能、機能を提供しました。\"</p></div><p class=\"image\"><img src=\"./img/customer_flipper/pella.gif\" alt=\"Pella Regional Health Center\" /></p>"
quote[20]="<p class=\"image\"><img src=\"./img/customer_flipper/kla_tencor.gif\" alt=\"KLA-Tencor\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/tyson.gif\" alt=\"Tyson Foods\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/unlv.gif\" alt=\"UNLV\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/usaa.gif\" alt=\"USAA\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/national_instruments.gif\" alt=\"National Instruments\" /></p>"
quote[21]="<div class=\"text\"><p>\"Proofpointは、スパムの検知精度、MTAとしてのスペックや使いやすさ、将来的な内部統制対応への拡張など、厳しい要件を満たした唯一のソリューションでした。稼働後、業務効率も改善し、国内外の拠点から「Good job!」などの感謝のメールが届きました。\"</p><p class=\"name\">- 旭化成グループ殿</p></div><p class=\"image\"><img src=\"./img/customer_flipper/asahikasei.gif\" alt=\"Asahi Kasei\" /></p>"
quote[22]="<p class=\"image\"><img src=\"./img/customer_flipper/burlington.gif\" alt=\"Burlington Coat Factory\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/dekalb_medical.gif\" alt=\"DeKalb Medical Center\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/grand_valley.gif\" alt=\"Grand Valley State University\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/hofstra.gif\" alt=\"Hofstra University\" /><img src=\"./img/customer_flipper/logo_divider.gif\" alt=\"\" /><img src=\"./img/customer_flipper/houston.gif\" alt=\"City of Houston\" /></p>"
quote[23]="<div class=\"text\"><p>\"Proofpoint Messaging Security Gatewayアプライアンスは、その柔軟性、容易な管理およびスパム・ウィルスフィルタリングの正確性を私たちに強く感じさせました。Proofpointを導入することは全社の統一見解でした。\"</p><p class=\"name\">- James Walker, Senior Systems Administrator</p></div><p class=\"image\"><img src=\"./img/customer_flipper/hofstra.gif\" alt=\"Hofstra University\" /></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 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;





