<!--
function imgFlip(imgName, newImgPath)
{
	window.document.images[imgName].src = newImgPath;
}

// MENU MOUSE OVER 
function menuOver(itemName)
{
	clearTimeout(timeOn)
	menuActive = 1
}
// MENU MOUSE OUT 
function menuOut(itemName)
{
	if(document.layers)
	{
		menuActive = 3 
		timeOn = setTimeout("hideAllMenus()", 400)
	}
}
 // SET BACKGROUND COLOR 
function getImage(name)
{
	if (document.layers)
	{
		return findImage(name, document);
  	}
  	return null;
}

function findImage(name, doc)
{
	var i, img;
  	for (i = 0; i < doc.images.length; i++)
	if (doc.images[i].name == name)
     	return doc.images[i];
	for (i = 0; i < doc.layers.length; i++)
    		if ((img = findImage(name, doc.layers[i].document)) != null)
		{
			img.container = doc.layers[i];
			return img;
		}
		return null;
}

function getImagePageLeft(img)
{
	var x, obj;
	if (document.layers)
	{
		if (img.container != null)
      		return img.container.pageX + img.x;
		else
		return img.x;
	}
	return -1;
}

function getImagePageTop(img)
{
	var y, obj;
	if (document.layers)
	{
		if (img.container != null)
			return img.container.pageY + img.y;
		else
			return img.y;
	}
	return -1;
}

var timeOn = null
numMenus = 7;
document.onmouseover = hideAllMenus;
document.onclick = hideAllMenus;
window.onerror = null;
var topPos = 115;
if (navigator.appName == "Netscape")
{
	topPos = topPos + 7;
}
var menuOrigColor;

function getStyleObject(objectId)
{
	// cross-browser function to get an object's style object given its id
	if(document.getElementById && document.getElementById(objectId))
	{
		// W3C DOM
		return document.getElementById(objectId).style;
	}
	else if (document.all && document.all(objectId))
	{
		// MSIE 4 DOM
		return document.all(objectId).style;
	}
	else if (document.layers && document.layers[objectId])
	{
		// NN 4 DOM.. note: this won't find nested layers
		return document.layers[objectId];
	}
	else
	{
		return false;
	}
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility)
{
	 // get a reference to the cross-browser style object and make sure the object exists
	var styleObject = getStyleObject(objectId);
	if(styleObject)
	{
		styleObject.visibility = newVisibility;
		return true;
	}
	else
	{
		//we couldn't find the object, so we can't change its visibility
		return false;
	}
} // changeObjectVisibility

function showMenu(menuNumber, eventObj, leftPos)
{
	hideAllMenus();
	/*
	if(document.layers)
	{
		img = getImage("img" + menuNumber);
 		x = getImagePageLeft(img);
 		y = getImagePageTop(img);
 		menuTop = y + 10; // LAYER TOP POSITION
		eval('document.layers["menu'+menuNumber+'"].top="'+menuTop+'"');
 		eval('document.layers["menu'+menuNumber+'"].left="'+x+'"');
	}
	*/
	//moveObject('menu' + menuNumber, leftPos - 10, menuNumber*20 + topPos);
	//moveObject('menu' + menuNumber, tempX, tempY);
	eventObj.cancelBubble = true;
    var menuId = 'menu' + menuNumber;
    if(changeObjectVisibility(menuId, 'visible'))
	{
		return true;
	}
	else
	{
		return false;
	}
}

function hideAllMenus()
{
	for(counter = 1; counter <= numMenus; counter++)
	{
		changeObjectVisibility('menu' + counter, 'hidden');
	}
}

function moveObject(objectId, newXCoordinate, newYCoordinate)
{
	// get a reference to the cross-browser style object and make sure the object exists
	var styleObject = getStyleObject(objectId);
	if(styleObject)
	{
		styleObject.left = newXCoordinate;
		styleObject.top = newYCoordinate;
		return true;
	}
	else
	{
		// we couldn't find the object, so we can't very well move it
		return false;
    	}
} // moveObject

// ***********************
// hacks and workarounds *
// ***********************

// initialize hacks whenever the page loads
window.onload = initializeHacks;

// setup an event handler to hide popups for generic clicks on the document
function initializeHacks()
{
	// this ugly little hack resizes a blank div to make sure you can click
	// anywhere in the window for Mac MSIE 5
	if ((navigator.appVersion.indexOf('MSIE 5') != -1) && (navigator.platform.indexOf('Mac') != -1) && getStyleObject('blankDiv'))
	{
		window.onresize = explorerMacResizeFix;
	 }
	resizeBlankDiv();
	// this next function creates a placeholder object for older browsers
	createFakeEventObj();
}

function createFakeEventObj()
{
	// create a fake event object for older browsers to avoid errors in function call
	// when we need to pass the event object to functions
	if (!window.event)
	{
		window.event = false;
	 }
} // createFakeEventObj

function resizeBlankDiv()
{
	// resize blank placeholder div so IE 5 on mac will get all clicks in window
	if ((navigator.appVersion.indexOf('MSIE 5') != -1) && (navigator.platform.indexOf('Mac') != -1) && getStyleObject('blankDiv'))
	{
		getStyleObject('blankDiv').width = document.body.clientWidth - 20;
		getStyleObject('blankDiv').height = document.body.clientHeight - 20;
	}
}

function explorerMacResizeFix ()
{
	location.reload(false);
}

function mClk(src)
{
	if(event.srcElement.tagName=='TD')
		src.children.tags('A')[0].click();
}

function setMenuBackgroundIn(currElStyle)
{
	var cellBorder = '#B0B0B0';
	menuOrigColor = currElStyle.backgroundColor;
	//currElStyle.backgroundColor = '#571824';
	currElStyle.backgroundColor = '#DDDDDD';
	currElStyle.borderBottomStyle = 'solid';
	currElStyle.borderBottomColor = cellBorder;
	currElStyle.borderBottomWidth = '1px';
	currElStyle.borderTopStyle = 'solid';
	currElStyle.borderTopColor = cellBorder;
	currElStyle.borderTopWidth = '1px';
	currElStyle.borderLeftStyle = 'solid';
	currElStyle.borderLeftColor = cellBorder;
	currElStyle.borderLeftWidth = '1px';
	currElStyle.borderRightStyle = 'solid';
	currElStyle.borderRightColor = cellBorder;
	currElStyle.borderRightWidth = '1px';
	return true;
}

function setMenuBackgroundOut(currElStyle)
{
	var cellBorder = '#FFFFFF';
	currElStyle.backgroundColor = menuOrigColor;
	//currElStyle.borderBottomStyle = 'none';
	//currElStyle.borderTopStyle = 'none';
	//currElStyle.borderLeftStyle = 'none';
	//currElStyle.borderRightStyle = 'none';
	currElStyle.borderBottomStyle = 'solid';
	currElStyle.borderBottomColor = cellBorder;
	currElStyle.borderBottomWidth = '1px';
	currElStyle.borderTopStyle = 'solid';
	currElStyle.borderTopColor = cellBorder;
	currElStyle.borderTopWidth = '1px';
	currElStyle.borderLeftStyle = 'solid';
	currElStyle.borderLeftColor = cellBorder;
	currElStyle.borderLeftWidth = '1px';
	currElStyle.borderRightStyle = 'solid';
	currElStyle.borderRightColor = cellBorder;
	currElStyle.borderRightWidth = '1px';
	return true;
}

pic_width=400;   
pic_height=286;  
border_size=0;   
alignment=1;      /* 0=left,1=center */

/* Graphic urls */

if (document.images)
 {
     pic1= new Image(pic_width,pic_height);
     pic1.src="/Images/Banners/Advert1.jpg";  
     pic2= new Image(pic_width,pic_height); 
     pic2.src="/Images/Banners/Advert2.jpg"; 
     pic3= new Image(pic_width,pic_height);
     pic3.src="/Images/Banners/Advert3.jpg";  
     pic4= new Image(pic_width,pic_height);
     pic4.src="/Images/Banners/Advert4.jpg";  
     pic5= new Image(pic_width,pic_height);
     pic5.src="/Images/Banners/Advert5.jpg"; 
     pic6= new Image(pic_width,pic_height);
     pic6.src="/Images/Banners/Advert6.jpg";
     pic7= new Image(pic_width,pic_height);
     pic7.src="/Images/Banners/Advert7.jpg";
     pic8= new Image(pic_width,pic_height);
     pic8.src="/Images/Banners/Advert8.jpg";
 }    


if (alignment==1)
 {
  cent_it="<CENTER>";
  cent_it2="<\/CENTER>";
 }
else
 {
  cent_it="";
  cent_it2="";
 }
 
function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function get_Image()
{
 if (document.images)
 {
  var choose_one= get_random(8);  
  choose_one--;

  var pics= new Array(8) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   pics[4]=pic5.src; 
   pics[5]=pic6.src;
   pics[6]=pic7.src;
   pics[7]=pic8.src;

  var refArr= new Array(8) 
   refArr[0]="/WebPDFs/Ads/HME_ZarmanSurgicalAd.pdf";
   refArr[1]="/WebPDFs/Ads/HME_DiceSurgicalAd.pdf";
   refArr[2]="/WebPDFs/Ads/HME_DocImageAd.pdf";
   refArr[3]="/WebPDFs/Ads/CT_Spread_PharmLabels.pdf";
   refArr[4]="/WebPDFs/Ads/QS1.1377.LTC_Workflow.pdf";
   refArr[5]="/WebPDFs/Ads/QS1.1377.LTC_Safety_rev.pdf";
   refArr[6]="/WebPDFs/Ads/Ind_Workflow_72.pdf";
   refArr[7]="/WebPDFs/Ads/Ind_Ease.pdf";

  document.write(cent_it+"<a href='"+refArr[choose_one]+"'target=_blank><IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'></a>"+cent_it2);
 }
}


if (document.images) 
{
	 pic1on= new Image(125,50);
	 pic1on.src="/Images/Menu/Solutions2.jpg";
	 pic2on= new Image(125,50);
	 pic2on.src="/Images/Menu/Products2.jpg";
	 pic3on= new Image(125,50);
	 pic3on.src="/Images/Menu/Services2.jpg";
	 pic4on= new Image(125,50);
	 pic4on.src="/Images/Menu/Support2.jpg";
	 pic5on= new Image(125,50);
	 pic5on.src="/Images/Menu/Company2.jpg";
	 loginon= new Image(125,50);
	 loginon.src="/Images/Customer Login/Login2.jpg";

	 pic1off= new Image(125,50);
	 pic1off.src="/Images/Menu/Solutions1.jpg";
	 pic2off= new Image(125,50);
	 pic2off.src="/Images/Menu/Products1.jpg";
	 pic3off= new Image(125,50);
	 pic3off.src="/Images/Menu/Services1.jpg";
	 pic4off= new Image(125,50);
	 pic4off.src="/Images/Menu/Support1.jpg";
	 pic5off= new Image(125,50);
	 pic5off.src="/Images/Menu/Company1.jpg";
	 loginoff= new Image(125,50);
	 loginoff.src="/Images/Customer Login/Login1.jpg";

	 pic1click= new Image(125,50);
	 pic1click.src="/Images/Menu/Solutions3.jpg";
	 pic2click= new Image(125,50);
	 pic2click.src="/Images/Menu/Products3.jpg";
	 pic3click= new Image(125,50);
	 pic3click.src="/Images/Menu/Services3.jpg";
	 pic4click= new Image(125,50);
	 pic4click.src="/Images/Menu/Support3.jpg";
	 pic5click= new Image(125,50);
	 pic5click.src="/Images/Menu/Company3.jpg";
	 loginclick= new Image(125,50);
	 loginclick.src="/Images/Customer Login/Login3.jpg";
 }

function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }

function press(imgName)
 {
   if (document.images)
    {
      imgClick=eval(imgName + "click.src");
      document[imgName].src= imgClick;
    }
 }


// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;


// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  //document.Show.MouseX.value = tempX
  //document.Show.MouseY.value = tempY
  return true
}

// ****************************
//      Marquee - Random 
// ****************************

tag1="Enabling the Future";
tag2="Enabling the Future";
tag3="Enabling the Future";

function get_Marquee()
{
  var choose_one= get_random(3);  
  choose_one--;

  var tags= new Array(3) 
   tags[0]=tag1;
   tags[1]=tag2;
   tags[2]=tag3;
   
  var tag_width= new Array(3)
  	tag_width[0]=130;
   	tag_width[1]=130;
  	tag_width[2]=130;
  	
  var tag_height= new Array(3)
  	tag_height[0]=32;  
  	tag_height[1]=32;
  	tag_height[2]=32;

  document.write("<marquee behavior='slide' direction='right' width='"+tag_width[choose_one]+"' height='"+tag_height[choose_one]+"'><h4>"+tags[choose_one]+"</h4></marquee>");

}

// NRx video programming script

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;

// Tab content functions

    highlight_color	= "#efefef";
    current_highlight	= "";
    name1	= location.hash;
    name1	= name1.substring(1, name1.length);

	// adds "highlight_color" to text or headings
	function highlight_heading(name, color) 
	{
		if(color != "" && typeof(color) != "undefined")
		{
			remove_highlights ("span");
		}
		else { color = highlight_color; }
		
		if(name == "onload")
		{
			name = location.hash;
			name = name.substring(1, name.length);
		}
	
		remove_highlights("h1");
		remove_highlights("h2");
		remove_highlights();
	
		name = name.replace(/ /gi, '_');       
		
		if(document.getElementById(name)) {
			highlight_block = document.getElementById(name);
			//highlight_block.style.padding = '4px';
			//highlight_block.style.backgroundColor	= color;
			highlight_block.style.padding         = "5px";
			highlight_block.style.backgroundImage    = "url('images/highlight-gradient.jpg')";
			highlight_block.style.backgroundPosition = "top left";
			highlight_block.style.backgroundRepeat   = "repeat-x";
			current_highlight = name;
			return 1;
		}
		else { return 0; }
	
	}

	// Removes the background highlights from highlighted text or headings
	function remove_highlights (tagtype, tagid) 
	{
	
		// there's a specific tag name that is higlight (ie, <h1> or <p>)
		if(tagtype != "") {
			tag_array = document.getElementsByTagName(tagtype);
		}
		
		// there's a specific element that is highlighted
		if(current_highlight != "") {
			current_element = document.getElementById(current_highlight);
			current_element.style.backgroundColor = "transparent";
			current_element.style.borderWidth     = "0px";
			current_element.style.padding         = "0px";
		}
		
		// there is a group of tags loop through them
		for(i = 0; i < tag_array.length; i++)
		{
			if(navigator.appName == "Netscape")
			{
				if(tag_array[i].id != "" && tag_array[i].style.backgroundColor != "")
				{   
				tag_array[i].style.backgroundColor = "transparent";
				tag_array[i].style.borderWidth     = "0px";
				tag_array[i].style.padding         = "0px";
				}
			}
			else 
			{
				if(tag_array[i].id != "")
				{
					tag_array[i].style.backgroundColor = "";
					tag_array[i].style.borderWidth     = "0px";
					tag_array[i].style.padding         = "0px";
				}
			}
		}
	}


    // expands all collapsed 
    function expand_all(tag_name, current_level, text) {
	
		toggle_expand_text(text, "expand all", "hide all");

		if(typeof tag_name == "undefined") {
			tag_name = "ul";
		}
		
		elements         = document.getElementsByTagName(tag_name);
		current_bg_color = document.getElementById(current_level).style.backgroundColor;
		current_bg_img   = document.getElementById(current_level).style.backgroundImage;
		highlight_block  = document.getElementById(current_level);
		
		if(typeof current_level != "undefined") {
			if((current_bg_color == "" || 
			current_bg_color == null || 
			current_bg_color == "transparent" || 
			current_bg_color == "none") && 
			(current_bg_img == "" || 
			current_bg_img == "none")
			) {
				highlight_block.style.backgroundColor = "transparent";
				highlight_block.style.padding         = "5px";
				highlight_block.style.backgroundImage    = "url('images/highlight-gradient.jpg')";
				highlight_block.style.backgroundPosition = "top left";
				highlight_block.style.backgroundRepeat   = "repeat-x";
				for( i = 0; i < elements.length; i++) {
					if(elements[i].id != "" && elements[i].id.match(current_level) != null && (elements[i].style.display == "none" || elements[i].className == "hide" ) ) {
						toggle_row(elements[i].id);
					}
				}				
			}
			else if (document.getElementById(current_level).style.backgroundColor != "" || document.getElementById(current_level).style.backgroundImage != ""){
				highlight_block.style.backgroundColor = "transparent";
				highlight_block.style.backgroundImage = "none";
				highlight_block.style.borderWidth     = "0px";
				highlight_block.style.padding         = "0px";
				for( i = 0; i < elements.length; i++) {
					if(elements[i].id != "" && elements[i].id.match(current_level) != null && (elements[i].style.display == "block" || elements[i].className == "reveal" ) ) {
						toggle_row(elements[i].id);
					}
				}
			}
			else { 
				document.getElementById(current_level).style.backgroundColor = "transparent";
				document.getElementById(current_level).style.backgroundImage = "";				
			}
		

		}
		else {
			for( i = 0; i < elements.length; i++) {
				if(elements[i].id != "" && elements[i].id.match("-") != null) {
					toggle_row(elements[i].id);
				}
			}
		}
		
		
		
	}
		
	function toggle_expand_text(text, val1, val2)  {
		if(text.innerHTML == val1) {
			text.innerHTML = val2;
		}
		else if (text.innerHTML == val2) {
			text.innerHTML = val1;
		}
		else {
			text.innerHTML = val1;
		}
	}


    // function toggles the expand/retract arrows on the text columns
    function toggle_row(name)
    { 
		var optional_image = name + "_img";
		var toggled_image = "";
		var toggled_image = document.getElementById(optional_image);
		//alert(optional_image + " : " + toggled_image.src);
		
		var toggled_text = document.getElementById(name + "_text")
		if(toggled_text) toggle_expand_text(toggled_text, "+", "-");
		
		
		if(typeof document.images[optional_image] != "undefined" && document.getElementById(name + "_img").src != "") {
	
			if(document.images[optional_image].src.indexOf("retract_up.gif") > 0 ) {
				toggled_image.src = "http://ochateabar.com/wp-content/themes/ocha/images/expand_down.gif";
				//alert("1st if: " + optional_image + " : " + toggled_image.src);
			}
			else if(document.images[optional_image].src.indexOf("expand_down.gif") > 0) {
				toggled_image.src = "http://ochateabar.com/wp-content/themes/ocha/images/retract_up.gif";
				//alert("else if: " + optional_image + " : " + toggled_image.src);
			}
			else if(document.images[optional_image].src.indexOf("plus_btn.gif") > 0) {
				toggled_image = "images/minus_btn.gif";
			}
			else if(document.images[optional_image].src.indexOf("minus_btn.gif") > 0) {
				toggled_image = "images/plus_btn.gif";
			}
			else {
				toggled_image = ""
			}
		}
		
        current_element = document.getElementById(name);

        if(current_element.style.display == 'none' || current_element.className == 'hide')
        { 
			//alert("not hide, " + current_element.className);
              if(typeof document.images[optional_image] != "undefined" && document.getElementById(name + "_img").src != "") {
                  document.getElementById(name + "_img").src = toggled_image;
              }
			  revealElement(current_element);

        }
        else
        {  
			//alert("hidfe");
			if(typeof document.images[optional_image] != "undefined" && document.getElementById(name + "_img").src != "") {
			  document.getElementById(name + "_img").src = toggled_image;
			}
			hideElement(current_element);
        }
    }

    function hideElement (elementObj) {
		if(typeof elementObj == "string") {
			elementObj = document.getElementById(elementObj);
		}
		if(elementObj.className = "hide") {
			elementObj.setAttribute('class', 'hide');
			elementObj.style.display = 'none';
			return 1;
		}
		return 0;
    }

    function revealElement (elementObj) {
		if(typeof elementObj == "string") {
			elementObj = document.getElementById(elementObj);
		}
		if(elementObj.style.display = "block" || elementObj.style.display == "" || elementObj.className == "reveal") {
			elementObj.className = "reveal";
			return 1;
		}
		return 0;
    }


    function processTabs(currentTab, toBeExpanded) {


        hideElement("pp1");
        hideElement("pp2");
        hideElement("pp3");

        var links = document.getElementsByTagName("a");
	for(i = 0; i < links.length; i++) 
	{
		if(links[i].title == "checked") {
			links[i].setAttribute('title', 'unchecked');	
			links[i].className = 'checkboxUnselected';
			links[i].setAttribute('class', 'checkboxUnselected');		
		}
	}

		currentTab.setAttribute('title', 'checked');
		currentTab.className = 'checkboxSelected';
		currentTab.setAttribute('class', 'checkboxSelected');


	        if(toBeExpanded == "pp1") {
			revealElement(toBeExpanded);
		}
	        else if(toBeExpanded == "pp2") {
			revealElement(toBeExpanded);
		}
	        else if(toBeExpanded == "pp3") {
			revealElement(toBeExpanded);
		}
		else { }

    }


    maskPoint  = 1; 
    maskCount  = 6;

    function rotateMask() {
       maskPoint++; 
       maskObj = document.getElementById("spotlightImageMask");
       maskObj.style.backgroundImage = "url('images/spotlight-img-mask" + maskPoint % maskCount + ".gif')";


    }


    var agt=navigator.userAgent.toLowerCase();
    var appVer = navigator.appVersion.toLowerCase();

    var is_opera = (agt.indexOf("opera") != -1);
    var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    var is_opera6 = (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1); // new 020128- abk
    var is_opera7 = (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1); // new 021205- dmr
    var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4);
    var is_opera6up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5); // new020128
    var is_opera7up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5 && !is_opera6); // new021205 -- dmr

	
	function prepareExpanders() {
	
		var ulNodes = document.getElementsByTagName('ul');

		for (var w = 0; w < ulNodes.length; w++) {

			var elem = ulNodes[w].id + "";

			if(elem.indexOf('p') >= 0 && elem.indexOf('-') >= 0) 
			{
				theElement = document.getElementById(elem)
				theElement.className = "hide";
				var linkNode = document.getElementById(elem.split("-")[0]);
				linkNode.href = "javascript: toggle_row('" + elem + "'); toggle_heading_bg(this);";
				//linkNode.title = "EXPAND: " + imgParent.title;
				
			}
		}
	}
	
	function toggle_heading_bg(theLink) {
		//alert(theLink.className);
		if(theLink.className == "expander_more") {
			
			theLink.className = "expander_less"
			//alert(theLink.className);
		}
		else {
			theLink.className = "expander_more"
			//alert(theLink.className);
		}
	}

/*	Unobtrusive Flash Objects (UFO) v3.20 <http://www.bobbyvandersluis.com/ufo/>
	Copyright 2005, 2006 Bobby van der Sluis
	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/

var UFO = {
	req: ["movie", "width", "height", "majorversion", "build"],
	opt: ["play", "loop", "menu", "quality", "scale", "salign", "wmode", "bgcolor", "base", "flashvars", "devicefont", "allowscriptaccess", "seamlesstabbing"],
	optAtt: ["id", "name", "align"],
	optExc: ["swliveconnect"],
	ximovie: "ufo.swf",
	xiwidth: "215",
	xiheight: "138",
	ua: navigator.userAgent.toLowerCase(),
	pluginType: "",
	fv: [0,0],
	foList: [],
		
	create: function(FO, id) {
		if (!UFO.uaHas("w3cdom") || UFO.uaHas("ieMac")) return;
		UFO.getFlashVersion();
		UFO.foList[id] = UFO.updateFO(FO);
		UFO.createCSS("#" + id, "visibility:hidden;");
		UFO.domLoad(id);
	},

	updateFO: function(FO) {
		if (typeof FO.xi != "undefined" && FO.xi == "true") {
			if (typeof FO.ximovie == "undefined") FO.ximovie = UFO.ximovie;
			if (typeof FO.xiwidth == "undefined") FO.xiwidth = UFO.xiwidth;
			if (typeof FO.xiheight == "undefined") FO.xiheight = UFO.xiheight;
		}
		FO.mainCalled = false;
		return FO;
	},

	domLoad: function(id) {
		var _t = setInterval(function() {
			if ((document.getElementsByTagName("body")[0] != null || document.body != null) && document.getElementById(id) != null) {
				UFO.main(id);
				clearInterval(_t);
			}
		}, 250);
		if (typeof document.addEventListener != "undefined") {
			document.addEventListener("DOMContentLoaded", function() { UFO.main(id); clearInterval(_t); } , null); // Gecko, Opera 9+
		}
	},

	main: function(id) {
		var _fo = UFO.foList[id];
		if (_fo.mainCalled) return;
		UFO.foList[id].mainCalled = true;
		document.getElementById(id).style.visibility = "hidden";
		if (UFO.hasRequired(id)) {
			if (UFO.hasFlashVersion(parseInt(_fo.majorversion, 10), parseInt(_fo.build, 10))) {
				if (typeof _fo.setcontainercss != "undefined" && _fo.setcontainercss == "true") UFO.setContainerCSS(id);
				UFO.writeSWF(id);
			}
			else if (_fo.xi == "true" && UFO.hasFlashVersion(6, 65)) {
				UFO.createDialog(id);
			}
		}
		document.getElementById(id).style.visibility = "visible";
	},
	
	createCSS: function(selector, declaration) {
		var _h = document.getElementsByTagName("head")[0]; 
		var _s = UFO.createElement("style");
		if (!UFO.uaHas("ieWin")) _s.appendChild(document.createTextNode(selector + " {" + declaration + "}")); // bugs in IE/Win
		_s.setAttribute("type", "text/css");
		_s.setAttribute("media", "screen"); 
		_h.appendChild(_s);
		if (UFO.uaHas("ieWin") && document.styleSheets && document.styleSheets.length > 0) {
			var _ls = document.styleSheets[document.styleSheets.length - 1];
			if (typeof _ls.addRule == "object") _ls.addRule(selector, declaration);
		}
	},
	
	setContainerCSS: function(id) {
		var _fo = UFO.foList[id];
		var _w = /%/.test(_fo.width) ? "" : "px";
		var _h = /%/.test(_fo.height) ? "" : "px";
		UFO.createCSS("#" + id, "width:" + _fo.width + _w +"; height:" + _fo.height + _h +";");
		if (_fo.width == "100%") {
			UFO.createCSS("body", "margin-left:0; margin-right:0; padding-left:0; padding-right:0;");
		}
		if (_fo.height == "100%") {
			UFO.createCSS("html", "height:100%; overflow:hidden;");
			UFO.createCSS("body", "margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;");
		}
	},

	createElement: function(el) {
		return (UFO.uaHas("xml") && typeof document.createElementNS != "undefined") ?  document.createElementNS("http://www.w3.org/1999/xhtml", el) : document.createElement(el);
	},

	createObjParam: function(el, aName, aValue) {
		var _p = UFO.createElement("param");
		_p.setAttribute("name", aName);	
		_p.setAttribute("value", aValue);
		el.appendChild(_p);
	},

	uaHas: function(ft) {
		var _u = UFO.ua;
		switch(ft) {
			case "w3cdom":
				return (typeof document.getElementById != "undefined" && typeof document.getElementsByTagName != "undefined" && (typeof document.createElement != "undefined" || typeof document.createElementNS != "undefined"));
			case "xml":
				var _m = document.getElementsByTagName("meta");
				var _l = _m.length;
				for (var i = 0; i < _l; i++) {
					if (/content-type/i.test(_m[i].getAttribute("http-equiv")) && /xml/i.test(_m[i].getAttribute("content"))) return true;
				}
				return false;
			case "ieMac":
				return /msie/.test(_u) && !/opera/.test(_u) && /mac/.test(_u);
			case "ieWin":
				return /msie/.test(_u) && !/opera/.test(_u) && /win/.test(_u);
			case "gecko":
				return /gecko/.test(_u) && !/applewebkit/.test(_u);
			case "opera":
				return /opera/.test(_u);
			case "safari":
				return /applewebkit/.test(_u);
			default:
				return false;
		}
	},
	
	getFlashVersion: function() {
		if (UFO.fv[0] != 0) return;  
		if (navigator.plugins && typeof navigator.plugins["Shockwave Flash"] == "object") {
			UFO.pluginType = "npapi";
			var _d = navigator.plugins["Shockwave Flash"].description;
			if (typeof _d != "undefined") {
				_d = _d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
				var _m = parseInt(_d.replace(/^(.*)\..*$/, "$1"), 10);
				var _r = /r/.test(_d) ? parseInt(_d.replace(/^.*r(.*)$/, "$1"), 10) : 0;
				UFO.fv = [_m, _r];
			}
		}
		else if (window.ActiveXObject) {
			UFO.pluginType = "ax";
			try { // avoid fp 6 crashes
				var _a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
			}
			catch(e) {
				try { 
					var _a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
					UFO.fv = [6, 0];
					_a.AllowScriptAccess = "always"; // throws if fp < 6.47 
				}
				catch(e) {
					if (UFO.fv[0] == 6) return;
				}
				try {
					var _a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
				}
				catch(e) {}
			}
			if (typeof _a == "object") {
				var _d = _a.GetVariable("$version"); // bugs in fp 6.21/6.23
				if (typeof _d != "undefined") {
					_d = _d.replace(/^\S+\s+(.*)$/, "$1").split(",");
					UFO.fv = [parseInt(_d[0], 10), parseInt(_d[2], 10)];
				}
			}
		}
	},

	hasRequired: function(id) {
		var _l = UFO.req.length;
		for (var i = 0; i < _l; i++) {
			if (typeof UFO.foList[id][UFO.req[i]] == "undefined") return false;
		}
		return true;
	},
	
	hasFlashVersion: function(major, release) {
		return (UFO.fv[0] > major || (UFO.fv[0] == major && UFO.fv[1] >= release)) ? true : false;
	},

	writeSWF: function(id) {
		var _fo = UFO.foList[id];
		var _e = document.getElementById(id);
		if (UFO.pluginType == "npapi") {
			if (UFO.uaHas("gecko") || UFO.uaHas("xml")) {
				while(_e.hasChildNodes()) {
					_e.removeChild(_e.firstChild);
				}
				var _obj = UFO.createElement("object");
				_obj.setAttribute("type", "application/x-shockwave-flash");
				_obj.setAttribute("data", _fo.movie);
				_obj.setAttribute("width", _fo.width);
				_obj.setAttribute("height", _fo.height);
				var _l = UFO.optAtt.length;
				for (var i = 0; i < _l; i++) {
					if (typeof _fo[UFO.optAtt[i]] != "undefined") _obj.setAttribute(UFO.optAtt[i], _fo[UFO.optAtt[i]]);
				}
				var _o = UFO.opt.concat(UFO.optExc);
				var _l = _o.length;
				for (var i = 0; i < _l; i++) {
					if (typeof _fo[_o[i]] != "undefined") UFO.createObjParam(_obj, _o[i], _fo[_o[i]]);
				}
				_e.appendChild(_obj);
			}
			else {
				var _emb = "";
				var _o = UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);
				var _l = _o.length;
				for (var i = 0; i < _l; i++) {
					if (typeof _fo[_o[i]] != "undefined") _emb += ' ' + _o[i] + '="' + _fo[_o[i]] + '"';
				}
				_e.innerHTML = '<embed type="application/x-shockwave-flash" src="' + _fo.movie + '" width="' + _fo.width + '" height="' + _fo.height + '" pluginspage="http://www.macromedia.com/go/getflashplayer"' + _emb + '></embed>';
			}
		}
		else if (UFO.pluginType == "ax") {
			var _objAtt = "";
			var _l = UFO.optAtt.length;
			for (var i = 0; i < _l; i++) {
				if (typeof _fo[UFO.optAtt[i]] != "undefined") _objAtt += ' ' + UFO.optAtt[i] + '="' + _fo[UFO.optAtt[i]] + '"';
			}
			var _objPar = "";
			var _l = UFO.opt.length;
			for (var i = 0; i < _l; i++) {
				if (typeof _fo[UFO.opt[i]] != "undefined") _objPar += '<param name="' + UFO.opt[i] + '" value="' + _fo[UFO.opt[i]] + '" />';
			}
			var _p = window.location.protocol == "https:" ? "https:" : "http:";
			_e.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + _objAtt + ' width="' + _fo.width + '" height="' + _fo.height + '" codebase="' + _p + '//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + _fo.majorversion + ',0,' + _fo.build + ',0"><param name="movie" value="' + _fo.movie + '" />' + _objPar + '</object>';
		}
	},
		
	createDialog: function(id) {
		var _fo = UFO.foList[id];
		UFO.createCSS("html", "height:100%; overflow:hidden;");
		UFO.createCSS("body", "height:100%; overflow:hidden;");
		UFO.createCSS("#xi-con", "position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;");
		UFO.createCSS("#xi-dia", "position:absolute; left:50%; top:50%; margin-left: -" + Math.round(parseInt(_fo.xiwidth, 10) / 2) + "px; margin-top: -" + Math.round(parseInt(_fo.xiheight, 10) / 2) + "px; width:" + _fo.xiwidth + "px; height:" + _fo.xiheight + "px;");
		var _b = document.getElementsByTagName("body")[0];
		var _c = UFO.createElement("div");
		_c.setAttribute("id", "xi-con");
		var _d = UFO.createElement("div");
		_d.setAttribute("id", "xi-dia");
		_c.appendChild(_d);
		_b.appendChild(_c);
		var _mmu = window.location;
		if (UFO.uaHas("xml") && UFO.uaHas("safari")) {
			var _mmd = document.getElementsByTagName("title")[0].firstChild.nodeValue = document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0, 47) + " - Flash Player Installation";
		}
		else {
			var _mmd = document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		}
		var _mmp = UFO.pluginType == "ax" ? "ActiveX" : "PlugIn";
		var _uc = typeof _fo.xiurlcancel != "undefined" ? "&xiUrlCancel=" + _fo.xiurlcancel : "";
		var _uf = typeof _fo.xiurlfailed != "undefined" ? "&xiUrlFailed=" + _fo.xiurlfailed : "";
		UFO.foList["xi-dia"] = { movie:_fo.ximovie, width:_fo.xiwidth, height:_fo.xiheight, majorversion:"6", build:"65", flashvars:"MMredirectURL=" + _mmu + "&MMplayerType=" + _mmp + "&MMdoctitle=" + _mmd + _uc + _uf };
		UFO.writeSWF("xi-dia");
	},

	expressInstallCallback: function() {
		var _b = document.getElementsByTagName("body")[0];
		var _c = document.getElementById("xi-con");
		_b.removeChild(_c);
		UFO.createCSS("body", "height:auto; overflow:auto;");
		UFO.createCSS("html", "height:auto; overflow:auto;");
	},

	cleanupIELeaks: function() {
		var _o = document.getElementsByTagName("object");
		var _l = _o.length
		for (var i = 0; i < _l; i++) {
			_o[i].style.display = "none";
			for (var x in _o[i]) {
				if (typeof _o[i][x] == "function") {
					_o[i][x] = null;
				}
			}
		}
	}

};

if (typeof window.attachEvent != "undefined" && UFO.uaHas("ieWin")) {
	window.attachEvent("onunload", UFO.cleanupIELeaks);
}

//-->

//////////////////////////////////////////////////////////////////////////////////////////////////

function isDefined(property) {
  return (typeof property != 'undefined');
}

var flashVersion = 0;
function getFlashVersion() {
   var latestFlashVersion = 30;
   var agent = navigator.userAgent.toLowerCase(); 
	
   // NS3 needs flashVersion to be a local variable
   if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie") == -1) {
      flashVersion = 0;
   }
   
	// NS3+, Opera3+, IE5+ Mac (support plugin array):  check for Flash plugin in plugin array
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		var flashPlugin = navigator.plugins['Shockwave Flash'];
		if (typeof flashPlugin == 'object') { 
			for (var i = latestFlashVersion; i >= 3; i--) {
            if (flashPlugin.description.indexOf(i + '.') != -1) {
               flashVersion = i;
               break;
            }
         }
		}
	}

	// IE4+ Win32:  attempt to create an ActiveX object using VBScript
	else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
	   var doc = '<scr' + 'ipt language="VBScript"\> \n';
      doc += 'On Error Resume Next \n';
      doc += 'Dim obFlash \n';
      doc += 'For i = ' + latestFlashVersion + ' To 3 Step -1 \n';
      doc += '   Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n';
      doc += '   If IsObject(obFlash) Then \n';
      doc += '      flashVersion = i \n';
      doc += '      Exit For \n';
      doc += '   End If \n';
      doc += 'Next \n';
      doc += '</scr' + 'ipt\> \n';
      document.write(doc);
   }
		
	// WebTV 2.5 supports flash 3
	else if (agent.indexOf("webtv/2.5") != -1) flashVersion = 3;

	// older WebTV supports flash 2
	else if (agent.indexOf("webtv") != -1) flashVersion = 2;

	// Can't detect in all other cases
	else {
		flashVersion = flashVersion_DONTKNOW;
	}

	return flashVersion;
}

flashVersion_DONTKNOW = -1;

/**
 * FlashObject v1.2.3: Flash detection and embed - http://blog.deconcept.com/flashobject/
 *
 * FlashObject is (c) 2005 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof com == "undefined") var com = new Object();
if(typeof com.deconcept == "undefined") com.deconcept = new Object();
if(typeof com.deconcept.util == "undefined") com.deconcept.util = new Object();
if(typeof com.deconcept.FlashObjectUtil == "undefined") com.deconcept.FlashObjectUtil = new Object();
com.deconcept.FlashObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, redirectUrl, detectKey){
   this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
   this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT_KEY);
   this.params = new Object();
   this.variables = new Object();
   this.attributes = new Array();

   if(swf) this.setAttribute('swf', swf);
   if(id) this.setAttribute('id', id);
   if(w) this.setAttribute('width', w);
   if(h) this.setAttribute('height', h);
   if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split(".")));
   if(c) this.addParam('bgcolor', c);
   var q = quality ? quality : 'high';
   this.addParam('quality', q);
   this.setAttribute('redirectUrl', '');
   if(redirectUrl) this.setAttribute('redirectUrl', redirectUrl);
   if(useExpressInstall) {
   // check to see if we need to do an express install
   var expressInstallReqVer = new com.deconcept.PlayerVersion([6,0,65]);
   var installedVer = com.deconcept.FlashObjectUtil.getPlayerVersion();
      if (installedVer.versionIsValid(expressInstallReqVer) && !installedVer.versionIsValid(this.getAttribute('version'))) {
         this.setAttribute('doExpressInstall', true);
      }
   } else {
      this.setAttribute('doExpressInstall', false);
   }
}
com.deconcept.FlashObject.prototype.setAttribute = function(name, value){
	this.attributes[name] = value;
}
com.deconcept.FlashObject.prototype.getAttribute = function(name){
	return this.attributes[name];
}
com.deconcept.FlashObject.prototype.getAttributes = function(){
	return this.attributes;
}
com.deconcept.FlashObject.prototype.addParam = function(name, value){
	this.params[name] = value;
}
com.deconcept.FlashObject.prototype.getParams = function(){
	return this.params;
}
com.deconcept.FlashObject.prototype.getParam = function(name){
	return this.params[name];
}
com.deconcept.FlashObject.prototype.addVariable = function(name, value){
	this.variables[name] = value;
}
com.deconcept.FlashObject.prototype.getVariable = function(name){
	return this.variables[name];
}
com.deconcept.FlashObject.prototype.getVariables = function(){
	return this.variables;
}
com.deconcept.FlashObject.prototype.getParamTags = function(){
   var paramTags = ""; var key; var params = this.getParams();
   for(key in params) {
        paramTags += '<param name="' + key + '" value="' + params[key] + '" />';
    }
   return paramTags;
}
com.deconcept.FlashObject.prototype.getVariablePairs = function(){
	var variablePairs = new Array();
	var key;
	var variables = this.getVariables();
	for(key in variables){
		variablePairs.push(key +"="+ variables[key]);
	}
	return variablePairs;
}
com.deconcept.FlashObject.prototype.getHTML = function() {
    var flashHTML = "";
    if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
        if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); }
        flashHTML += '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') + '" name="'+ this.getAttribute('id') +'"';
		var params = this.getParams();
        for(var key in params){ flashHTML += ' '+ key +'="'+ params[key] +'"'; }
		pairs = this.getVariablePairs().join("&");
        if (pairs.length > 0){ flashHTML += ' flashvars="'+ pairs +'"'; }
        flashHTML += '></embed>';
    } else { // PC IE
        if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); }
        flashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" id="'+ this.getAttribute('id') +'">';
        flashHTML += '<param name="movie" value="' + this.getAttribute('swf') + '" />';
		var tags = this.getParamTags();
        if(tags.length > 0){ flashHTML += tags; }
		var pairs = this.getVariablePairs().join("&");
        if(pairs.length > 0){ flashHTML += '<param name="flashvars" value="'+ pairs +'" />'; }
        flashHTML += '</object>';
    }
    return flashHTML;
}
com.deconcept.FlashObject.prototype.write = function(elementId){
	if(this.skipDetect || this.getAttribute('doExpressInstall') || com.deconcept.FlashObjectUtil.getPlayerVersion().versionIsValid(this.getAttribute('version'))){
		if(document.getElementById){
		   if (this.getAttribute('doExpressInstall')) {
		      this.addVariable("MMredirectURL", escape(window.location));
		      document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		      this.addVariable("MMdoctitle", document.title);
		   }
			document.getElementById(elementId).innerHTML = this.getHTML();
		}
	}else{
		if(this.getAttribute('redirectUrl') != "") {
			document.location.replace(this.getAttribute('redirectUrl'));
		}
	}
}
/* ---- detection functions ---- */
com.deconcept.FlashObjectUtil.getPlayerVersion = function(){
   var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
		}
	}else if (window.ActiveXObject){
	   try {
   	   var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
   		PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
	   } catch (e) {}
	}
	return PlayerVersion;
}
com.deconcept.PlayerVersion = function(arrVersion){
	this.major = parseInt(arrVersion[0]) || 0;
	this.minor = parseInt(arrVersion[1]) || 0;
	this.rev = parseInt(arrVersion[2]) || 0;
}
com.deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
	if(this.major < fv.major) return false;
	if(this.major > fv.major) return true;
	if(this.minor < fv.minor) return false;
	if(this.minor > fv.minor) return true;
	if(this.rev < fv.rev) return false;
	return true;
}
/* ---- get value of query string param ---- */
com.deconcept.util.getRequestParameter = function(param){
	var q = document.location.search || document.location.href.hash;
	if(q){
		var startIndex = q.indexOf(param +"=");
		var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length;
		if (q.length > 1 && startIndex > -1) {
			return q.substring(q.indexOf("=", startIndex)+1, endIndex);
		}
	}
	return "";
}

/* add Array.push if needed (ie5) */
if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}

/* add some aliases for ease of use / backwards compatibility */
var getQueryParamValue = com.deconcept.util.getRequestParameter;
var FlashObject = com.deconcept.FlashObject;