/* This JavaScript (Random Quotes) developed by Scott Clark
The Source is available at http://www.clarksco.com/blog/
Copyright 2005 Clark Consulting */

function  randomQuote(){
var num_of_quotes = 4;
quotes = Math.floor (num_of_quotes * Math.random());

if (quotes==0) {
body="I have no depth.";
}

if (quotes==1) {
body="I'm only two dimensional.";
}

if (quotes==2) {
body="Am I really that comic?";
}

if (quotes==3) {
body="My existence is rather graphic.";
}


document.write(''+ body +'');


}





function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		mael_over = newImage("images/mael-over.jpg");
		preloadFlag = true;
	}
}


function menu_goto(menuform){
    // see http://www.thesitewizard.com/archive/navigation.shtml
    // for an explanation of this script and how to use it on your
    // own site

    var baseurl = "http://www.arvincasas.com" ;
    selecteditem = menuform.newurl.selectedIndex ;
    newurl = menuform.newurl.options[ selecteditem ].value ;
    if (newurl.length != 0) {
      location.href = baseurl + newurl ;
    }
}
