		var curDiv="home";
		var imgC = 0;
		var maxImages = 18;
		var idir = "http://www.worksbestnaked.com/images/rt/";
		var isLastPic = false;


// initsite function
function initSite(){ 
}

function showPix(ic){
		line="";
		line+='<br><center>';
		line+='<img src="'+idir+'pic'+ic+'.jpg" border="2" color="#333366" height="450" width="400">';
		line+='<br>';
		line+=showPixControl(ic);
		line+='</center>';
		document.getElementById('gallery').innerHTML=line;
}

function showPixControl(val){
// see if more pix to show
	imgC = val;
	i=val.toString();
	pcontrols="";
	switch(i){
		case "1":
		pcontrols+='<a href="#" onclick="showPix('+(imgC+1)+')"><img src="arwprev.jpg" border="0"></a>';
		break;
		case maxImages.toString():
		pcontrols+='<a href="#" onclick="showPix('+(imgC-1)+')"><img src="arwnext.jpg" border="0"></a>';
		break;
		default :
		pcontrols+='<a href="#" onclick="showPix('+(imgC+1)+')"><img src="arwprev.jpg" border="0"></a>';
		pcontrols+='&nbsp;&nbsp;';
		pcontrols+='<a href="#" onclick="showPix('+(imgC-1)+')"><img src="arwnext.jpg" border="0"></a>';	
	}
	return pcontrols;
}

function getPixMoreVal(val){
	ans=0;
	if(val==1){
	// show previous
		ans = imgC1+1;
	} else {
	// show next
		ans = imgC1-1;
	}
	alert("ans="+ans.toString());
	return ans;
}

function changeFrame(newContent){
	// if the button pressed isn't mail, update the
	// the frame with the new content
	if(newContent!="mail"){
		parent.frames['main'].location=newContent +'.html';
	}
}
function lightMbar(itemid,aColor){
	target=document.getElementById(itemid);
	target.style.color=aColor;
}

function showPreview(){
	preview=window.open("hogprev.html","preview","width=464,height=256,location=no,menubar=no,toolbar=no");
}
function showColtParty(){
	coltparty=window.open("coltrel.html","coltparty","width=106,height=403,scrollbar=yes,location=no,menubar=no,toolbar=no,screenx=300,screeny=100");
}
function showColtOrd(){
	coltord=window.open("coltord.html","coltord","width=348,height=480,scrollbar=yes,location=no,menubar=no,toolbar=no,screenx=300,screeny=100");
}

// DIV functions
function mvDiv(divid,h){
	target = document.getElementById(divid);
	finalpos = h;
	v = parseInt(target.style.left);
	n = v-1;
	if (v>finalpos){
		target.style.left=n;
		setTimeout("mvDiv('" + divid + "'," + h + ")", 30);
	} else {
		var newColor="#ffff66";
		var oldColor="#333366";
		var mitem = 'mbar';
		var tColor="";
		for(i=1;i<10;i++){
			targetID = mitem.concat(String(i));
			lightMbar(targetID,newColor);
			setTimeout("lightMbar('" + targetID + "','" + oldColor + "')", 1000);
		}
	}
}

function uvDiv(divid,m,i){
	target = document.getElementById(divid);
	target.style.clip='rect(0px,'+i+'px,60px,0px)';
	if(i<m+1){
		i=i+1
		setTimeout("uvDiv('" + divid + "'," + m +","+i+")", 30);
	}
}

function hdDiv(divid){
	target = document.getElementById(divid);
	target.style.visibility="hidden";
}

