
var v1 = "yoshiart.com"
var v2= v1.substring(6,8)
var docElement = false

function o(){
(v2=="rt")?docElement=true:!docElement;
}o();

function ShowHide(id) {
   if ( docElement ) {
	if( document.getElementsByName )
	{
		var divs = document.getElementsByName( id );
		if( divs && divs.length > 0 )
		{
			for( i=0;i<divs.length;i++ )
			{
				if ( divs[i].style.display == "none" )
				{
					divs[i].style.display = "block";
				}
				else
				{
					divs[i].style.display = "none"
				}
			}
		}
	}
}
}




function resolution() {
	var screenres=window.screen.width +"x"+ window.screen.height;
	alert("Your current resolution is "+screenres+".");
}




function rollon(a) {
	a.style.backgroundColor='#AEACAC';
	a.style.cursor = 'hand';
	a.style.cursor = 'pointer';
}

function rolloff(a) {
	a.style.backgroundColor='#D2D2D2';
}




function gototop() {
window.location.href = window.location + "#";
}




function bookmark(anchor) {
   if (window.external) {
	window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title'));
	return false;
   }
   return true;
}


function questions(v3,v4) {
	winname = ('window'+Math.round(Math.random()*100));
	info = window.open('',winname,'toolbar=no,location=no,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=450,height=140');
	info.self.moveTo(170,250);
	info.document.write('<html>\n<head>\n<title>Details</title>\n\n<style type="text/css">\n<!-- \n\nbody {border: 0px; background-color: menu; color: menutext; font-family: Ms Sans Serif; font-size: 8pt}\n.tables {border: 0px; background-color: menu; color: menutext; font-family: Ms Sans Serif; font-size: 8pt}\n.sysbutton {width: 95; height: 23; font-family: Ms Sans Serif; font-size: 8pt; color: menutext; background-color: menu}\n\n -->\n</style>\n\n</head>\n<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false" topmargin="0">\n\n')
	info.document.write('<table height="130" border="0" cellpadding="3" cellspacing="0" class="tables">\n <tr>\n  <td valign="middle"><font size="4">'+v3+'</font></td>\n </tr>\n <tr>\n  <td align="center" valign="middle">'+v4+'</td>\n </tr>\n <tr>\n  <td height="35" align="center" valign="middle">\n  <input type="submit" value="OK" onClick="window.close()" class="sysbutton">\n  </td>\n </tr>\n</table>\n\n</body>\n</html>\n');
}


function killsubmitbutton() {
document.phpform.send.disabled = true
}



// ******************* STUFF BELOW IS OLD CRAP ***********************

/*


//fix for proprietary document.all object

if(document.all && !document.getElementById) {
    document.getElementById = function(id) {
         return document.all[id];
    }
}


var pham = document.cookie;

  function getCookie(name) {
	name += "="; 
	var i = 0; 
	while (i < pham.length) {
	var offset = i + name.length; 
	if (pham.substring(i, offset) == name) {
	var endstr = pham.indexOf(";", offset);
	if (endstr == -1) endstr = pham.length;
	return unescape(pham.substring(offset, endstr));
}
	i = pham.indexOf(" ", i) + 1;
	if (i == 0) break;
}
	return null;
}


var today = new Date();
var expiry = new Date(today.getTime() + 28*24*60*60*1000);

var mainv = getCookie("mainv") || 0;

	if (mainv == 1) {
	document.getElementById('ss1').href = "black.css";
	}



function switchStyles() {		//for some reason it works in IE only, further research needed

var agt = navigator.userAgent.substring(0,11);

if (agt == "Mozilla/5.0") {
	alert("This link currently works only in Internet Explorer. You appear to be using a Mozilla browser, so to change the colors just go to: View > Page Style > Black.")
}

else {

   if (document.getElementById('ss1').href == "style.css") {
	document.getElementById('ss1').href = "black.css";
	document.cookie = "mainv=" + (++mainv) + "; expires=" + expiry.toGMTString();
   }

   else {
	document.getElementById('ss1').href = "style.css";
	document.cookie = "mainv=" + (--mainv) + "; expires=" + expiry.toGMTString();
   }
}
}

*/
