var a=1;
var i=1;
function load(){
	for (i=2;i<=4;i++){
		document.getElementById("tab"+i+"Head").style.background="#eeeded url(templates/Original/images/tab.gif) repeat-x";
		document.getElementById("tab"+i+"HeadLeft").style.background="#eeeded url(templates/Original/images/tableft.gif) repeat-x";
		document.getElementById("tab"+i+"HeadRight").style.background="#eeeded url(templates/Original/images/tabright.gif) repeat-x";
		document.getElementById("tab"+i+"Head").style.cursor="hand";
		document.getElementById("tab"+i+"Head").style.cursor="pointer";
		document.getElementById("tab"+i+"Head").style.fontSize="13px";
		document.getElementById("tab"+i+"Head").style.fontFamily="tahoma";
		document.getElementById("tab"+i+"Head").style.fontWeight="bold";
		document.getElementById("tab"+i+"Head").style.color="#939393";
		document.getElementById("tab"+i+"Head").style.padding="0px 4px";
		document.getElementById("tab"+i).style.display="none";
	}
	clickn(click_tab);
}
function clickn(a){
	for (i=1;i<=4;i++){
		if (a==i) {
			document.getElementById("tab"+i).style.display="block";
			document.getElementById("tab"+i+"HeadLeft").style.background="#59ade1 url(templates/Original/images/tablefta.gif) bottom no-repeat";
			document.getElementById("tab"+i+"Head").style.background="#59ade1 url(templates/Original/images/taba.gif) bottom repeat-x";
			document.getElementById("tab"+i+"HeadRight").style.background="#59ade1 url(templates/Original/images/tabrighta.gif) bottom no-repeat";
			document.getElementById("tab"+i+"Head").style.cursor="default";
			document.getElementById("tab"+i+"Head").style.color="#fff";
		}else{
			document.getElementById("tab"+i).style.display="none";
			document.getElementById("tab"+i+"HeadLeft").style.background="#eeeded url(templates/Original/images/tableft.gif) bottom no-repeat";
			document.getElementById("tab"+i+"Head").style.background="#eeeded url(templates/Original/images/tab.gif) bottom repeat-x";
			document.getElementById("tab"+i+"HeadRight").style.background="#eeeded url(templates/Original/images/tabright.gif) bottom no-repeat";
			document.getElementById("tab"+i+"Head").style.cursor="hand";
			document.getElementById("tab"+i+"Head").style.cursor="pointer";
			document.getElementById("tab"+i+"Head").style.color="#939393";
		}
	}
}

function LoadNewImage(src) {
  image = document.getElementById("Foto_JS");
  image.src = src;
}

function ChangeHref(src) {
  var  link0 = document.getElementById("HrefSrc0"); //image
  var  link1 = document.getElementById("HrefSrc1"); //enlarge
  link0.href = "javascript:popupWindow('" + src + "')";
  link1.href = "javascript:popupWindow('" + src + "')";
}
