function resize(w) {
	if (document.all) {
		w.style.height = w.Document.body.scrollHeight + 173 +'px';
	}
	else {
		w.style.height = w.contentDocument.body.offsetHeight + 173 +'px';
	}
}


var veiwerSC = 1;
var previewSC = 1;


function highlightmetasearch() {
document.post.message.select(); document.post.message.focus();
}
function copymetasearch() {
highlightmetasearch();
textRange = document.post.message.createTextRange();
textRange.execCommand("RemoveFormat");
textRange.execCommand("Copy");
alert("This post has been copied to your clipboard.\nIf this post is lost when you submit it you can easily repost it.\nAlways use this feature before posting! - \nAdmin");
   }
function regforum()
{
window.open("http://wienertest.virtualave.net/cgi-bin/messageboard/Ultimate.cgi?action=agree")
}

function movieclip(clip)
{
window.open("html/" + clip + ".html","mediaplayer","toolbar=no,directories=no, status=no,menubar=no,scrollbars=no,resizable=no,width=495,height=465")
}

function movhighlight(img)
{
	document[img].src = "http://www.thepornbaron.com/artwork/movies/" + img + "2.gif";
}

function movunhighlight(img)
{
	document[img].src = "http://www.thepornbaron.com/artwork/movies/" + img + "1.gif";
}

function highlight(img)
{
	document[img].src = "http://www.thepornbaron.com/artwork/page/" + img + "2.gif";
}

function unhighlight(img)
{
	document[img].src = "http://www.thepornbaron.com/artwork/page/" + img + "1.gif";
}

function ScWindow() {
 window.open("http://wpbb.virtualave.net/loading.html","scwin","toolbar=no,directories=no, status=no,menubar=no,scrollbars=yes,resizable=no,width=400,height=150")
   }
 
function forum() {
window.open("http://wienertest.virtualave.net/cgi-bin/messageboard/Ultimate.cgi","forum","toolbar=no,directories=no, status=no,menubar=no,scrollbars=yes,resizable=yes,width=680,height=480")
   }
 
function archives() {
window.open("cgi-bin/html.cgi?archives.html","archives","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=540,height=240")
   }

function changeF(img)
{
		veiwerSC = veiwerSC + 1;
		 if(veiwerSC == 7)
			veiwerSC = 1;

	document['screenShots'].src = "artwork/bios/" + veiwerSC + "s.jpg";

}
	
function changeF2(img)
{
		previewSC = previewSC + 1;
		 if(previewSC == 8)
			previewSC = 1;

	document['preshot'].src = "artwork/previews/" + previewSC + "p.jpg";

}

function changeB(img)
{
		veiwerSC = veiwerSC - 1;
		 if(veiwerSC == 0)
			veiwerSC = 6;

	document['screenShots'].src = "artwork/bios/" + veiwerSC + "s.jpg";

}

function changeB2(img)
{
		previewSC = previewSC - 1;
		 if(previewSC == 0)
			previewSC = 7;

	document['preshot'].src = "artwork/previews/" + previewSC + "p.jpg";

}

function showShot()
{

page = "html/" + veiwerSC + ".html"
window.open(page,'','scrollbars=yes,height=570,width=720');

}   

function showShot2()
{

page = "html/" + previewSC + "pr.html"
window.open(page,'',"toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=410");

}

function download(url) {
window.open(url,'download',"toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=250");
}
function pictureview(url) {
window.open(url,'',"toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=480");
}

function SaveAs() {
if (document.layers) {window.captureEvents(Event.MOUSEDOWN);}
if (document.layers) {window.captureEvents(Event.MOUSEUP);}
if (navigator.appName == 'Netscape') {alert("'Right' Click & 'Save link As'... to save the Movie");return false;}
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 0 || event.button == 1)) {alert("'Right' Click & 'Save target As'... to save the Movie");return false;}
}

function GalWin(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,status=yes,statusbar=1,menubar=1,resizable=1');");
}

function PollWin(page) {
window.open(page,"PollWin",'toolbar=0,scrollbars=0,location=0,status=no,statusbar=0,menubar=0,resizable=0,width=400,height=420');
}

function CheatWin(page) {
window.open(page,"PollWin",'toolbar=0,scrollbars=0,location=0,status=no,statusbar=0,menubar=0,resizable=0,width=450,height=620');
}

function showTooltip(current,e,tip) {
	elm = document.getElementById('mytooltip');
	elmtxt = document.getElementById('mytooltiptext');
	elmtxt.innerHTML = tip;

	if (document.all) { // for IE5+ only
		elm.style.pixelTop = (document.body.scrollTop + event.clientY) + 6;
		elm.style.pixelLeft = (document.body.scrollLeft + event.clientX) + 6;
	}
	else {
		elm.style.top = (document.body.scrollTop + e.clientY) + 6;
		elm.style.left = (document.body.scrollLeft + e.clientX) + 6;
	}
	elm.style.display='';
}

function moveTooltip(e,current) {
	elm = document.getElementById('mytooltip');
	if (document.all) { // for IE5+ only
		elm.style.pixelTop = (document.body.scrollTop + event.clientY) + 6;
		elm.style.pixelLeft = (document.body.scrollLeft + event.clientX) + 6;
	}
	else {
		elm.style.top = (document.body.scrollTop + e.clientY) + 6;
		elm.style.left = (document.body.scrollLeft + e.clientX) + 6;
	}
}

function hideTooltip() {
	if (document.getElementById) { // Netscape 6.0+ and Internet Explorer 5.0+
		elm = document.getElementById('mytooltip');
		elm.style.display = 'none';
	}
}
