function showJumpNavigation(){
	var myElement = document.getElementById('searchjump');
	if(myElement){
		myElement.style.display = "block";
	}
	myElement = document.getElementById('searchjump-home');
	if(myElement){
		myElement.style.display = "block";
	}
}
function hideJumpNavigation(){
	var myElement = document.getElementById('searchjump');
	if(myElement){
		myElement.style.display = "none";
	}
	myElement = document.getElementById('searchjump-home');
	if(myElement){
		myElement.style.display = "none";
	}
}
function nw(url) {
	window.open(url, "popup", "width=1280,height=600,left=20,top=20, resizable=yes, scrollbars=yes");
}

function nv(url) {
	window.open(url, "popup", "width=600,height=400,left=20,top=20, resizable=yes, scrollbars=yes");
}
function popup(url, w, h) {
	var winl = (screen.width-w)/2;
  	var wint = (screen.height-h)/2;
	window.open(url, "popup", "width="+ w +",height="+ h +",left="+winl+",top="+wint+", resizable=yes, scrollbars=yes");
}
function sb(box){
	var theBox = document.getElementById("specialbox" + box);
	if(theBox){
		theBox.style.display = "block";	
	}
}
function hb(box){
	var theBox = document.getElementById("specialbox" + box);
	if(theBox){
		theBox.style.display = "none";	
	}
}


function showPic(thePic){
	if(thePic == "pic1"){
		document.getElementById("pic4").style.display = "none";
		document.getElementById("pic3").style.display = "none";
		document.getElementById("pic2").style.display = "none";
		document.getElementById("pic1").style.display = "block";	
	}
	if(thePic == "pic2"){
		document.getElementById("pic4").style.display = "none";
		document.getElementById("pic3").style.display = "none";
		document.getElementById("pic1").style.display = "none";
		document.getElementById("pic2").style.display = "block";	
	}
	if(thePic == "pic3"){
		document.getElementById("pic1").style.display = "none";
		document.getElementById("pic2").style.display = "none";
		document.getElementById("pic4").style.display = "none";
		document.getElementById("pic3").style.display = "block";	
	}
	if(thePic == "pic4"){
		document.getElementById("pic1").style.display = "none";
		document.getElementById("pic3").style.display = "none";
		document.getElementById("pic2").style.display = "none";
		document.getElementById("pic4").style.display = "block";	
	}
}
function rzCC(s){
   for(var exp=/-([a-z])/; 
       exp.test(s); 
       s=s.replace(exp,RegExp.$1.toUpperCase()));
   return s;
 }

 function _setStyle(element, declaration) {
   if (declaration.charAt(declaration.length-1)==';')
     declaration = declaration.slice(0, -1);
   var k, v;
   var splitted = declaration.split(';');
   for (var i=0, len=splitted.length; i<len; i++) {
      k = rzCC(splitted[i].split(':')[0]);
      v = splitted[i].split(':')[1];
      eval("element.style."+k+"='"+v+"'");
   }
 }

function isIE6(){
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ 
 		var ieversion=new Number(RegExp.$1) 
		if (ieversion<=6){
			return true;
		}
	}
}


function removeHTMLTags(strInputCode) {
	var strTagStrippedText = strInputCode.replace(/(<([^>]+)>)/ig, "");
	strTagStrippedText = strTagStrippedText.replace(/&nbsp;+/ig, "");
	return strTagStrippedText;
}
function implode(glue, pieces) {
	return ((pieces instanceof Array) ? pieces.join(glue) : pieces);
}

