/* Include file built: 2007.5.23.1.22.07.949, in file saaCombined_2007.5.23.1.22.07.949.js. */


/* Including file: rounded.js, size: 6164 */
// Contributors: 
// Ilkka Huotari at http://www.editsite.net
// Mathieu 'p01' HENRI at http://www.p01.org/
// http://seky.nahory.net/2005/04/rounded-corners/
// Steven Wittens at http://www.acko.net/anti-aliased-nifty-corners
// Original Nifty Corners by Alessandro Fulciniti at http://pro.html.it/esempio/nifty/


function roundedInit() {
    // quit if this function has already been called
    if (arguments.callee.done) return;

    // flag this function so we don't do the same thing twice
    arguments.callee.done = true;

    // kill the timer
    //if (_timer) clearInterval(_timer);

    // do stuff
    Rounded('rounded', 6, 6);
};

function NiftyCheck() {
  if(!document.getElementById || !document.createElement) {
    return false;
  }
  var b = navigator.userAgent.toLowerCase();
  if (b.indexOf("msie 5") > 0 && b.indexOf("opera") == -1) {
    return false;
  }
  return true;
}

function Rounded(className, sizex, sizey, sizex_b, sizey_b) {
	var bk;
	if (!NiftyCheck()) return;
	if (typeof(sizex_b) == 'undefined')
		sizex_b = sizex;
	if (typeof(sizey_b) == 'undefined')
		sizey_b = sizey;
	var v = getElements(className);
	var l = v.length;
	for (var i = 0; i < l; i++) {
		color = get_current_style(v[i],"background-color","transparent");
		bk = get_current_style(v[i].parentNode,"background-color","transparent");
		AddRounded(v[i], bk, color, sizex, sizey, true);
		AddRounded(v[i], bk, color, sizex_b, sizey_b, false);
	}
}

Math.sqr = function (x) {
  return x*x;
};

function Blend(a, b, alpha) {

  var ca = Array(
    parseInt('0x' + a.substring(1, 3)), 
    parseInt('0x' + a.substring(3, 5)), 
    parseInt('0x' + a.substring(5, 7))
  );
  var cb = Array(
    parseInt('0x' + b.substring(1, 3)), 
    parseInt('0x' + b.substring(3, 5)), 
    parseInt('0x' + b.substring(5, 7))
  );
  return '#' + ('0'+Math.round(ca[0] + (cb[0] - ca[0])*alpha).toString(16)).slice(-2).toString(16)
             + ('0'+Math.round(ca[1] + (cb[1] - ca[1])*alpha).toString(16)).slice(-2).toString(16)
             + ('0'+Math.round(ca[2] + (cb[2] - ca[2])*alpha).toString(16)).slice(-2).toString(16);

  return '#' + ('0'+Math.round(ca[0] + (cb[0] - ca[0])*alpha).toString(16)).slice(-2).toString(16)
             + ('0'+Math.round(ca[1] + (cb[1] - ca[1])*alpha).toString(16)).slice(-2).toString(16)
             + ('0'+Math.round(ca[2] + (cb[2] - ca[2])*alpha).toString(16)).slice(-2).toString(16);
}

function AddRounded(el, bk, color, sizex, sizey, top) {
  if (!sizex && !sizey)
	return;
  var i, j;
  var d = document.createElement("div");
  d.style.backgroundColor = bk;
  var lastarc = 0;
  for (i = 1; i <= sizey; i++) {
    var coverage, arc2, arc3;
    // Find intersection of arc with bottom of pixel row
    arc = Math.sqrt(1.0 - Math.sqr(1.0 - i / sizey)) * sizex;
    // Calculate how many pixels are bg, fg and blended.
    var n_bg = sizex - Math.ceil(arc);
    var n_fg = Math.floor(lastarc);
    var n_aa = sizex - n_bg - n_fg;
    // Create pixel row wrapper
    var x = document.createElement("div");
    var y = d;
    x.style.margin = "0px " + n_bg + "px";
	x.style.height='1px';
	x.style.overflow='hidden';
    // Make a wrapper per anti-aliased pixel (at least one)
    for (j = 1; j <= n_aa; j++) {
      // Calculate coverage per pixel
      // (approximates circle by a line within the pixel)
      if (j == 1) {
        if (j == n_aa) {
          // Single pixel
          coverage = ((arc + lastarc) * .5) - n_fg;
        }
        else {
          // First in a run
          arc2 = Math.sqrt(1.0 - Math.sqr((sizex - n_bg - j + 1) / sizex)) * sizey;
          coverage = (arc2 - (sizey - i)) * (arc - n_fg - n_aa + 1) * .5;
          // Coverage is incorrect. Why?
          coverage = 0;
        }
      }
      else if (j == n_aa) {
        // Last in a run
        arc2 = Math.sqrt(1.0 - Math.sqr((sizex - n_bg - j + 1) / sizex)) * sizey;
        coverage = 1.0 - (1.0 - (arc2 - (sizey - i))) * (1.0 - (lastarc - n_fg)) * .5;
      }
      else {
        // Middle of a run
        arc3 = Math.sqrt(1.0 - Math.sqr((sizex - n_bg - j) / sizex)) * sizey;
        arc2 = Math.sqrt(1.0 - Math.sqr((sizex - n_bg - j + 1) / sizex)) * sizey;
        coverage = ((arc2 + arc3) * .5) - (sizey - i);
      }
      
      x.style.backgroundColor = Blend(bk, color, coverage);
	  if (top)
	      y.appendChild(x);
      else
	      y.insertBefore(x, y.firstChild);
      y = x;
      var x = document.createElement("div");
		x.style.height='1px';
		x.style.overflow='hidden';
      x.style.margin = "0px 1px";
    }
    x.style.backgroundColor = color;
    if (top)
	    y.appendChild(x);
    else
		y.insertBefore(x, y.firstChild);
    lastarc = arc;
  }
  if (top)
	  el.insertBefore(d, el.firstChild);
  else
	  el.appendChild(d);
}

function getElements(className) {
	var elements = [];
	var el = document.getElementsByTagName('DIV');  
	var regexp=new RegExp("\\b"+className+"\\b");
	for (var i = 0; i < el.length; i++) 
	{
		if (regexp.test(el[i].className)) 
			elements.push(el[i]);
	}
	return elements;
}

function get_current_style(element,property,not_accepted)
{
  var ee,i,val,apr;
  try
  {
    var cs=document.defaultView.getComputedStyle(element,'');
    val=cs.getPropertyValue(property);
  }
  catch(ee)
  {
    if(element.currentStyle)
  	{
	    apr=property.split("-");
	    for(i=1;i<apr.length;i++) apr[i]=apr[i].toUpperCase();
	    apr=apr.join("");
	    val=element.currentStyle.getAttribute(apr);
   }
  }
  if((val.indexOf("rgba") > -1 || val==not_accepted) && element.parentNode)
  {
	 if(element.parentNode != document) 
		 val=get_current_style(element.parentNode,property,not_accepted);
	 else
		 val = '#FFFFFF';
  }
  if (val.indexOf("rgb") > -1 && val.indexOf("rgba") == -1)
	  val = rgb2hex(val);
  if (val.length == 4)
	  val = '#'+val.substring(1,1)+val.substring(1,1)+val.substring(2,1)+val.substring(2,1)+val.substring(3,1)+val.substring(3,1);
  return val;
}

function rgb2hex(value)
{
	var x = 255;
	var hex = '';
	var i;
	var regexp=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;
	var array=regexp.exec(value);
	for(i=1;i<4;i++) hex += ('0'+parseInt(array[i]).toString(16)).slice(-2);
	return '#'+hex;
}


/* Including file: common.js, size: 9006 */
function test() {
   alert('in test2');
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}


/*
 * (c)2006 Dean Edwards/Matthias Miller/John Resig
 * Special thanks to Dan Webb's domready.js Prototype extension
 * and Simon Willison's addLoadEvent
 *
 * For more info, see:
 * http://dean.edwards.name/weblog/2006/06/again/
 * http://www.vivabit.com/bollocks/2006/06/21/a-dom-ready-extension-for-prototype
 * http://simon.incutio.com/archive/2004/05/26/addLoadEvent
 * 
 * Thrown together by Jesse Skinner (http://www.thefutureoftheweb.com/)
 *
 *
 * To use: call addDOMLoadEvent one or more times with functions, ie:
 *
 *    function something() {
 *       // do something
 *    }
 *    addDOMLoadEvent(something);
 *
 *    addDOMLoadEvent(function() {
 *        // do other stuff
 *    });
 *
 */
 
function addDOMLoadEvent(func) {
   if (!window.__load_events) {
      var init = function () {
          // quit if this function has already been called
          if (arguments.callee.done) return;
      
          // flag this function so we don't do the same thing twice
          arguments.callee.done = true;
      
          // kill the timer
          if (window.__load_timer) {
              clearInterval(window.__load_timer);
              window.__load_timer = null;
          }
          
          // execute each function in the stack in the order they were added
          for (var i=0;i < window.__load_events.length;i++) {
              window.__load_events[i]();
          }
          window.__load_events = null;

          // clean up the __ie_onload event
          /*@cc_on @*/
          /*@if (@_win32)
              document.getElementById("__ie_onload").onreadystatechange = "";
          /*@end @*/
      };
   
      // for Mozilla/Opera9
      if (document.addEventListener) {
          document.addEventListener("DOMContentLoaded", init, false);
      }
      
      // for Internet Explorer
      /*@cc_on @*/
      /*@if (@_win32)
          document.write("<scr"+"ipt id=__ie_onload defer src=javascript:void(0)><\/scr"+"ipt>");
          var script = document.getElementById("__ie_onload");
          script.onreadystatechange = function() {
              if (this.readyState == "complete") {
                  init(); // call the onload handler
              }
          };
      /*@end @*/
      
      // for Safari
      if (/WebKit/i.test(navigator.userAgent)) { // sniff
          window.__load_timer = setInterval(function() {
              if (/loaded|complete/.test(document.readyState)) {
                  init(); // call the onload handler
              }
          }, 10);
      }
      
      // for other browsers
      window.onload = init;
      
      // create event function stack
      window.__load_events = [];
   }
   
   // add function to event stack
   window.__load_events.push(func);
}

function popupMenu(c, e, id) {
	
	var menu = window.document.getElementById(id);
	//alert('here:'+menu.style.visibility);
	if (menu.style.visibility == 'visible') {
		return;
	}
	var posx = 0;
	var posy = 0;
	var type='?';
	if (!e) var e = window.event;
	if (e.pageX || e.pageY)
	{
		posx = e.pageX;
		posy = e.pageY;
		type='page';
	}
	else if (e.clientX || e.clientY)
	{
		posx = e.clientX + document.body.scrollLeft;
		posy = e.clientY + document.body.scrollTop;
		type='client';
	}
	
	posx = posx + c.style.height;
	// posx and posy contain0
	// the mouse position relative to the document
	// Do something with this information
	//alert('x='+posx+', y='+posy+', type='+type);
	posx = 0; posy=0;
	menu.style.top = posy+'px';
	menu.style.left = posx+'px';
	menu.style.visibility = 'visible';
	window.document.getElementById('adminbutton').style.visibility = 'hidden';
}
function popdownMenu(c, e, id) {
	var menu = window.document.getElementById(id);
	menu.style.visibility = 'hidden';
	window.document.getElementById('adminbutton').style.visibility = 'visible';
}
 function newWindow(item, name, width, height) {
    var itemName = item + ".html";
    window.name = name;
	window.open(itemName,item,config='status=yes,menubar=yes,scrollbars=yes,width='+width+',height='+height)
}
  
var startTime = new Date();
    
function perf () {
	var thisMoment = new Date();
	var elapsed1 = thisMoment.valueOf() - startTime.valueOf();
	var elapsed2 = thisMoment.valueOf() - loaded.valueOf();
	alert (thisMoment.valueOf()+": Page render time ("+startTime.valueOf()+")="+elapsed1+", load time ("+loaded.valueOf()+")="+elapsed2);
}

function popWin(item,winwidth,winheight)
{ 
	var itemName = item + ".html";
	window.name = "popWin";
	window.open(itemName,item,config='status=yes,menubar=yes,scrollbars=yes,width='+winwidth+',height='+winheight)
}

function target(url, name) {
	window.name="target";
	window.open(url, name);
}
function showHideElement(e) {
	e.style.display=(e.style.display!="none")? "none" : "";
}
function showElement(e) {
	e.style.display="";
}

function hideElement(e) {
	e.style.display="none";
}
function showElementById(id) {
	// alert('Showing '+id);
	document.getElementById(id).style.display="block";
}

function hideElementById(id) {
	document.getElementById(id).style.display="none";
}



function showHide (id) {
	var e = document.getElementById(id);
	if (e == null) {
		return;
	}
	e.style.display = (e.style.display == "none") ? "" : "none";
	matchHeight();
}

function moveBelow (id, id2) {
	
	var e = document.getElementById(id);
	var e2 = document.getElementById(id2);
	// alert(getHeight(e2));
	// alert(getTop(e2)+","+getHeight(e2));
	e.top = (getTop(e2)+getHeight(e2));
}

function alignLeft (id, id2) {
	var e = document.getElementById(id);
	var e2 = document.getElementById(id2);
	// alert(getLeft(e)+","+getLeft(e2));
	e.style.left = getLeft(e2)+'px';
}

function showHideClass(className) {
	 var divs=document.getElementsByTagName('div');
	 var myClassExp = new RegExp("\\b"+className+"\\b");
	 for(var i=0;i<divs.length;i++){
	 	// alert(className+"="+divs[i].className);
	 	if (myClassExp.test(divs[i].className)) {
		   		showHideElement(divs[i]);
		  }             
	 }
	 matchHeight();
}

function showClass(className) {
	 var divs=document.getElementsByTagName('div');
	 for(var i=0;i<divs.length;i++){
		   if(divs[i].className == className) {
		   		showElement(divs[i]);
		  }             
	 }
}

function hideClass(className) {
	 var divs=document.getElementsByTagName('div');
	 for(var i=0;i<divs.length;i++){
		   if(divs[i].className == className) {
		   		hideElement(divs[i]);
		  }             
	 }
}

function getAncestors (e) {
	if (e.offsetParent == null) {
		return 'end';
	}
	if (e.offsetParent != 'undefined') {
		return e.offsetParent.id +", "+getAncestors(e.offsetParent);
	} else {
		return 'end';
	}
}

function isAncestorOf (e, p) {
	// alert(e.id);
	if (e == null) {
		return false;
	}
	if (e == 'undefined') {
		return false;
	} else {
		var eq = (e.id == p);
		alert(e.id+", "+p+':'+eq);
		if (e.id == p) {
			return true;
		} else {
			return isAncestorOf(e.offsetParent, p);
		}
	}
}

function getOffsetTopFrom (e, from) {
	if (e.offsetParent == null) {
		return 0;
	} else {
		if (e.offsetParent.id == from) {
			return e.offsetTop;
		} else {
			return e.offsetTop + getOffsetTopFrom(e.offsetParent, from);
		}
	}
}

function getOffsetTopFromTop (e) {
	if (e.offsetParent == null) {
		return 0
	} else {
		return e.offsetTop + getOffsetTopFrom(e.offsetParent);
	}
}

function getTop (e) {
	if (e.offsetTop!= 'undefined') {
		if (e.offsetTop == null) {
			return 0;
		} else {
			return e.offsetTop;
		}
	} else if (d.style.pixelTop != 'undefined') {
		return d.style.pixelTop;
	} else {
		return 0;
	}
}

function getLeft (e) {
	if (e.offsetLeft!= 'undefined') {
		if (e.offsetLeft == null) {
			return 0;
		} else {
			return e.offsetLeft;
		}
	} else if (d.style.pixelLeft != 'undefined') {
		return d.style.pixelLeft;
	} else {
		return 0;
	}
}

function getHeight (e) {
	if (e.offsetHeight!= 'undefined') {
		if (e.offsetHeight == null) {
			return 0;
		} else {
			return e.offsetHeight;
		}
	} else if (d.style.pixelHeight != 'undefined') {
		return d.style.pixelHeight;
	} else {
		return 0;
	}
}

function getParent(e) {
	if (e.offsetParent != 'undefined') {
		return e.offsetParent;
	}
}

function toggleEditLinks() {
	showHideClass('edit-button');
	matchHeight();
}


function popPrintWin(item,winwidth,winheight)
{ 
var itemName = item + ".html"
window.name = "popPrintWin";
window.open(itemName,item,config='resizable=yes,status=yes,menubar=yes,scrollbars=yes,width='+winwidth+',height='+winheight)
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}


/* Including file: switchtext.js, size: 3479 */
// set vars for links

var hideTextLink = "Hide all";
var showTextLink = "Show all";

var enablepersist="off" //Enable saving state of content structure using session cookies? (on/off)
var memoryduration="7" //persistence in # of days

var contractsymbol='minus.gif' //Path to image to represent contract state.
var expandsymbol='plus.gif' //Path to image to represent expand state.


function getElementbyClass(rootobj, classname){
var temparray=new Array()
var inc=0
var rootlength=rootobj.length
for (i=0; i<rootlength; i++){
if (rootobj[i].className==classname)
temparray[inc++]=rootobj[i]
}
return temparray
}

function getElementByClass(rootobj, classname){
var temparray=new Array()
var inc=0
var rootlength=rootobj.length
for (i=0; i<rootlength; i++){
if (rootobj[i].className==classname)
temparray[inc++]=rootobj[i]
}
return temparray
}




function sweeptoggle(ec){
var inc=0

while (ccollect[inc]){
	ccollect[inc].style.display=(ec=="contract")? "none" : ""
	inc++
	}
if (ec=="contract"){
	document.getElementById('toggleall').innerHTML = '';
	document.getElementById('toggleall').innerHTML="[+] <a href=\"javascript:sweeptoggle('expand');\">Show all</a>";
	matchHeight();
	}
if (ec=="expand"){
	document.getElementById('toggleall').innerHTML = '';
	document.getElementById('toggleall').innerHTML="[-] <a href=\"javascript:sweeptoggle('contract');\">Hide all</a>";
	matchHeight();
}
revivestatus()
}




function expandcontent(curobj, cid){
	if (ccollect.length>0){
		document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="none")? "none" : ""
		//curobj.src=(document.getElementById(cid).style.display=="none")? expandsymbol : contractsymbol
	}
	matchHeight();
}





function revivestatus() {
	var inc=0;
	while (statecollect[inc]){
		if (ccollect[inc].style.display=="none") {
			statecollect[inc].src=expandsymbol;
		} else {
			statecollect[inc].src=contractsymbol;
		}
		inc++;
	}
}

function get_cookie(Name) { 
	var search = Name + "=";
	var returnvalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) { 
			offset += search.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1) {
				end = document.cookie.length;
			}
			returnvalue=unescape(document.cookie.substring(offset, end));
		}
	}
	return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
var inc=0, selectedItem=""
while (ccollect[inc]){
if (ccollect[inc].style.display=="none")
selectedItem+=ccollect[inc].id+"|"
inc++
}
if (get_cookie(window.location.pathname)!=selectedItem){ //only update cookie if current states differ from cookie's
var expireDate = new Date()
expireDate.setDate(expireDate.getDate()+parseInt(memoryduration))
document.cookie = window.location.pathname+"="+selectedItem+";path=/;expires=" + expireDate.toGMTString()
}
}

function switchtext_onload(){
	uniqueidn=window.location.pathname+"firsttimeload";
	var alltags=document.all? document.all : document.getElementsByTagName("*");
	ccollect=getElementbyClass(alltags, "switchcontent");

	statecollect=getElementbyClass(alltags, "showstate");
	
	if (enablepersist=="on" && get_cookie(window.location.pathname)!="" && ccollect.length>0) {
		revivecontent()
	}
	if (ccollect.length>0 && statecollect.length>0) {
		revivestatus();
	}
}

/*
if (window.addEventListener)
	window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
	window.attachEvent("onload", do_onload)
else if (document.getElementById)
	window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
	window.onunload=saveswitchstate
*/


/* Including file: PNGTransparency.js, size: 1709 */
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{

   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5 && version < 7.0) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""; 
            //var currentHeight = img.offsetHeight;
            //var currentWidth = img.offsetWidth;
            //  alert(imgID+":"+img.offsetHeight); 
            var imgClass = (img.className) ? "class='" + img.className + "' " : "";
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
            var imgStyle = "display:inline-block;" + img.style.cssText ;
            if (img.align == "left") imgStyle = "float:left;" + imgStyle;
            if (img.align == "right") imgStyle = "float:right;" + imgStyle;
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\',sizingMethod='scale');\"></span>";
            img.outerHTML = strNewHTML;
            // alert (imgID+"="+strNewHTML); 
            
            i = i-1;
         }
      }
   }    
}
// window.attachEvent("onload", correctPNG);
// addLoadEvent(correctPNG);

var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
BrowserDetect.init();

function showAllElement(ename) {
	var browser = navigator.appName;
	var version = navigator.appVersion;
	var ver = parseFloat(version);
	
	 var divs=document.getElementsByTagName(ename);
	  for(var i=0;i<divs.length;i++){
			divs[i].style.visibility = 'visible';
	 }
}