var navname,navvers,newsnavc=0,sidebarcnt;

navname=navigator.appName;
navvers=parseInt(navigator.appVersion);



function addbookmark() {
 if (document.all) window.external.AddFavorite("http://www.www.viktorstudios.com/","ViktorStudios");
}






function breakout_of_frame()
{
	if(top.location!=location)	top.location.href=document.location.href;
}

function menuch(sel,hilo) {
	if (js_ok) {
		toeval='';

		if (hilo==1) {
			toeval='document.'+sel+'.src=bullet_on.src;\n';
		} else {
			toeval='document.'+sel+'.src=bullet_off.src;\n';
		}
		if (toeval!='') eval(toeval);
	}
}



function fresh(time) {
	setTimeout("freshnow()",time*1000);
}

function freshnow() {
	window.location.reload();
}

function jumpto(me) {
	meval=me.options[me.selectedIndex].value;
	if(meval!="") window.location=meval;
}


function inputswap(me,def,setto) {
	if(js_ok) {
		if(me.value==def) {
			me.value=setto;
		}
	}
}

function menuitem(href,alt) {
	name='sidebar'+sidebarcnt;
	sidebarcnt++;
	document.write('<img src="/images/one.gif" width="5" height="1"><br>');
	document.write('<a href="'+href+'"');
	document.write(' onmouseout="menuch(\''+name+'\',0);" onmouseover="menuch(\''+name+'\',1);">');
	document.write('<img src="/images/one.gif" width="92" height="16" hspace="6" border="0" name="'+name+'"');
	document.write('alt="Click for: '+alt+'"></a><br>');
}



// Functions for IE to get position of an object
function AnchorPosition_getPageOffsetLeft (el) {
	var ol=el.offsetLeft;
	while ((el=el.offsetParent) != null) { ol += el.offsetLeft; }
	return ol;
	}
function AnchorPosition_getWindowOffsetLeft (el) {
	return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;
	}	
function AnchorPosition_getPageOffsetTop (el) {
	var ot=el.offsetTop;
	while((el=el.offsetParent) != null) { ot += el.offsetTop; }
	return ot;
	}
function AnchorPosition_getWindowOffsetTop (el) {
	return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;
	}