//Rotate Random Function

function rotateimage(id)
{

if (curindex1==(tempindex1=Math.floor(Math.random()*(randomimages.length)))){
curindex1=curindex1==0? 1 : curindex1-1
}
else{
curindex1=tempindex1
}


	document.images.defaultimage.src=randomimages[curindex1];
	document.getElementById("defaultimage1").href=randomlink[curindex1];
	
	//opacity('defaultimage', 100, 10, 1000)
	//document.getElementById("name").innerHTML=randomname[curindex];
	
}


//change & switch Function
function changeimage(img)
{
document.getElementById("autoimg").src=img;
}


function switchmenu(num){

if(document.getElementById(num).style.display == 'none'){
document.getElementById(num).style.display = 'block';
document.getElementById("img"+num).src = 'http://lib.store.yahoo.net/lib/yhst-62767601725016/left-title-arrow2.gif';

}else{

document.getElementById(num).style.display = 'none';
document.getElementById("img"+num).src = 'http://lib.store.yahoo.net/lib/yhst-62767601725016/left-title-arrow1.gif';
}
}

