<!--
//<![CDATA[

bBool=false
var copiedtext=""
var tempstore=""

function initiatecopy() {
bBool=true;
}

function copyit() {
if (bBool) {
	tempstore=copiedtext
	document.execCommand("Copy")
	copiedtext=window.clipboardData.getData("Text");
if (tempstore!=copiedtext) {
	alert('COPIED TO YOUR CLIPBOARD: '+copiedtext);
		}
	bBool=false;
	}
}

document.onselectionchange = initiatecopy

function framebreakout()
{
  // Generated by thesitewizard Frame Breakout JavaScript Wizard 2.0
  // Visit http://www.thesitewizard.com/ to get your own
  // frame breakout script FREE!
  if (top.location != location) {
    top.location.href = document.location.href ;
  }
}

function trim(value) {
 startpos=0;
 while((value.charAt(startpos)==" ")&&(startpos<value.length)) {
   startpos++;
 }
 if(startpos==value.length) {
   value="";
 }
 else {
   value=value.substring(startpos,value.length);
   endpos=(value.length)-1;
   while(value.charAt(endpos)==" ") {
     endpos--;
   }
   value=value.substring(0,endpos+1);
 }
 return(value);
}
/****************************************************
*                DOM Image rollover:
*                by Chris Poole
*                http://chrispoole.com
*               Script featured on http://www.dynamicdrive.com
*                Keep this notice intact to use it :-)
****************************************************/

function init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}

function toggleLayer( whichLayer ){ 
  var elem, vis;
    if( document.getElementById ) // this is the way the standards work 
	   elem = document.getElementById( whichLayer );
	     else if( document.all ) // this is the way old msie versions work
		       elem = document.all[whichLayer];
			     else if( document.layers ) // this is the way nn4 works
				     elem = document.layers[whichLayer];
		vis = elem.style;  // if the style.display value is blank we try to figure it out here
	    if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
	       vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
		   vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

//]]>
//-->
