function showJumpNavigation(){
	var myElement = document.getElementById('searchjump');
	myElement.style.display = "block";
}
function hideJumpNavigation(){
	var myElement = document.getElementById('searchjump');
	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 deleteBackground() {
	var myElement = document.getElementById("search");
	myElement.style.background = "transparent";
}
function showBackground() {
	var myElement = document.getElementById("search");
	myElement.style.background = "transparent";
}
function nv(url) {
	window.open(url, "popup", "width=600,height=400,left=20,top=20, resizable=yes, scrollbars=yes");
}
function popup(url) {
	window.open(url, "popup", "width=980,height=525,left=20,top=20, 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;
		}
	}
}
// Print with/without images
window.addEvent("domready", function () {
	if($("printImages") != null){
	$("printImages").addEvents({"click":function () {
		if(this.checked){
			$$("#popup img").each(function(el) { 
				if(el != $("printIcon")){
					el.setStyle('display', 'none');
				}			 
			});
		}else{
			$$("#popup img").each(function(el) { 
				el.setStyle('display', 'block'); 
			});
		}
	} 
	});
	}
});
