//TABS
function tabs(tab,handle){
	var x=document.getElementsByTagName("img");
	for (var i=0;i<x.length;i++){
		if (x[i].id.indexOf(handle)>-1){
			var element = document.getElementById(x[i].id);
			if (element.id == tab){
				element.src = element.src.replace('/off/','/on/');
			} else {
				element.onmouseover = tabover;
				element.onclick = tabclick; 
				element.onmouseout = tabout; 
				element.src = element.src.replace('/on/','/off/');
			}
		}
	}
}

function tabover() {
	this.src = this.src.replace('/off/','/roll/');
}

function tabclick(element,div1,div2) {
	this.src = this.src.replace('/roll/','/on/');
}

function tabout() {
	this.src = this.src.replace('/roll/','/off/');
}

//DIV
function loaddiv(div1,div2){
	document.getElementById(div2).innerHTML = document.getElementById(div1).innerHTML;
}

//DIV
function loaddiv1(thediv){
	var thisnumber = thediv.replace('holderextra','')
	//alert (thisnumber);
	for (var i=1;i<6;i++){	
	//alert(i);
	if (i != thisnumber) {
		document.getElementById('holderextra'+i).style.display = "none";
	} else {
		document.getElementById(thediv).style.display = "block";
		//Effect.Appear(thediv,'blind');
		}
	}
}

function hidediv1(thediv){
	document.getElementById(thediv).style.display = "none";
	}
	
var newwindow;
function popwindow(url)
{
	newwindow=window.open(url,'name','height=620,width=650');
	if (window.focus) {newwindow.focus()}
}