//Quote management--------------------------------------------------
function randQuote()
{	
	var quote = new Array();
	quote[0] = "Kicking ass hard, so you don't have to.";
	quote[1] = '<i>"Without GAZOKBLOG, I\'d still be ironing my widgets the hard way!"</i>';
	quote[2] = "Satisfaction guaranteed, or your granny back.";
	quote[3] = "Gazok: like a king without a king hat.";
	quote[4] = "Awesomeness at your eyetips."
	quote[5] = "The internet without GAZOKBLOG would be like a Power Ranger without a doctor.";
	quote[6] = "Yeah, I catch widgets. I catch 'em good.";
	quote[7] = "Speaking in Haiku has been shown to cause cancer in younger children.";
	quote[8] = '<i>"Gazok threw me into a radiator, and now I have percussion!"</i> Daniel Wrong.';
	quote[9] = '<i>"I hate myself and want to die."</i> Elmo.';
	quote[10] = '<i>"If I were a power ranger, I\'d kick ass!"</i> The Pope.';
	quote[11] = '<i>"Ask not what GAZOKBLOG can do for you, but what you can do for GAZOKBLOG."</i>';
	quote[12] = "Because if you can't get rid of the family granny, you may as well make it dance.";
	quote[13] = 'Updates every couple of whenevers.';
	quote[14] = 'Made even more impressive because it works in <del>Internet Explorer</del>, <del>Opera</del> and <del>Safari</del>!';
	quote[15] = "I AM THE SQUIRREL QUEEN";
	quote[16] = "Awesomeness, on demand, 24/7";
	quote[17] = "The way to live a good life is not to die.";
	quote[18] = "Nobody likes you but you.";
	quote[19] = "You may have your whacky beliefs, but I remain secure in the knowledge that when I die, I'll go straight to Atheist Heaven";
	quote[20] = "I thought ninjas were cool before it was cool.";
	quote[21] = '<i>"BLASARHFDKAAAARG"</i> Catholic, on the second coming of Jesus.';
	quote[22] = "Keeping it tractor.";
	quote[23] = "It's well rapid.";
	quote[24] = "Come for table. Stay for chair.";
	quote[25] = '<i>"Lol"</i> Gordon Brown, on the economy.';
	quote[26] = "Aquiesing Power Rangers since 2003.";
	quote[27] = "I'm taking creepiness outside the box. Then I'm cutting its legs off and watching it dance around.";
	quote[28] = "Endangering society, for society.";
	quote[29] = "Awwwwww Sheeeet.";
	quote[30] = "Hi mum!";
	quote[31] = '"I visited GAZOKBLOG and all I got was this lousy quotation."';
	quote[32] = '<i>"It\'s.. alright. Not great."</i> Gazok, on GAZOKBLOG';
	quote[33] = '<i>"Aight bitchez? Mrs. T in da hood, yo."</i> Margaret Thatcher.';
	quote[34] = '<i>"Monies. I have them now."</i> Rupert Murdoch.';
	quote[35] = "Because I've ran out of funny things to put here.";
	quote[36] = "I am the Zen Master.";
	quote[36] = "(Have a happy haemorrhage).";
	quote[37] = "Better than [insert website here].";
	quote[38] = "My legs hurt.";
	quote[39] = "Is where you're at.";
	quote[40] = "<i>\"I'm going to chop off your leg and slice a hole in your other leg and rape your leg with your leg.\"</i> Larry King.";
	quote[41] = '<i>"Ye fckin\' strtin\', dickead?"</i> Rupert Murdoch.';
	quote[42] = 'Hyperbole is oft exaggerated.';
	quote[42] = "Manly Men doing Manly Things in a Manly Fashion.";
	quote[43] = "<a href='http://en.wikipedia.org/wiki/David_Hoyle'>Your own NEO-REALITY.</a>";
	quote[44] = "Better than really bad sex.";
	quote[45] = "<a href='http://en.wikipedia.org/wiki/The_Secret_of_Monkey_Island'>I'm selling these fine leather jackets...</a>";
	quote[46] = "<a href='http://en.wikipedia.org/wiki/The_Secret_of_Monkey_Island'>How appropriate, you fight like a cow.</a>";
	quote[47] = "My agent tells me I have to be nice to you. If he hadn't, I would be eating your esophagus right now.";
	quote[48] = "TWELVE BEARS WHAT I DO?";
	quote[49] = "I have stolen your corneas. What are you going to do about it?";
	quote[50] = "Web: Negative Zero.";  //Article
	quote[51] = "Still not a blog.";  //Article
	quote[52] = "That pizza fell through me like a duck through a blender.";
	quote[53] = "No longer coloured like a shit.";

	//Random quote
	var rand = Math.round(Math.random()*(quote.length-1));
	
	var quote = quote[rand];
	
	return quote;
}

/*//Cartoonery management--------------------------------------------------
//!!! COMING SOON TO PHP !!! Yay

function getCartoonSize()
{
	var pic = document.getElementById('cartoon');
	var imgHeight = pic.offsetHeight;
	var imgWidth = pic.offsetWidth;
	
	var cartoonDimensions = new Array(imgHeight,imgWidth);
	
	return cartoonDimensions;
} 

var cartoonerylatest = 13;

function cartoonManage()
{
	getCartoonSize();
	
	var cartoonholder = document.getElementById('cartoonholder');
	
	
	cartoonholder.style.width = imgWidth;
	cartoonholder.style.height = imgHeight;
}

//Page/window retrieval--------------------------------------------------


function getPageSizeWithScroll()
{
	if (window.innerHeight && window.scrollMaxY) 
	{
		// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	}
	else if (document.body.scrollHeight > document.body.offsetHeight)
	{ 
		// all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} 
	else 
	{ 
		// works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	
	var arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	
	return arrayPageSizeWithScroll;
}

function getWindowSize() 
{
	if (typeof(window.innerWidth) == 'number')
	{
		//Non-IE
		windowWidth = window.innerWidth;
		windowHeight = window.innerHeight;
	}
	else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
	{
		//IE 6+ in 'standards compliant mode'
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	}
	else if (document.body && (document.body.clientWidth || document.body.clientHeight))
	{
		//IE 4 compatible
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}
	
	var arrayWindowSize = new Array(windowWidth,windowHeight);
	
	return arrayWindowSize;
}

//Border/holder resizing--------------------------------------------------
function wrapperManage() 
{
	getPageSizeWithScroll();
	getWindowSize();
	
	var wrapper = document.getElementById('wrapper');
	var scrollWidth = 0;
	var scrollHeight = 0;
	
	//scrollWidth = xWithScroll - 310;
	
	if (windowHeight <= yWithScroll)
	{
		//If right scrollbar, minus scrollbar width.
		scrollWidth = 17;
	}
	
	if (windowWidth <= xWithScroll)
	{
		//if bottom scrollbar
		scrollHeight = 17;
	}
	
	//wrapper.style.height -= scrollHeight;
	//wrapper.style.width -= scrollWidth + "px";
	
	//wrapper.style.width = xWithScroll + "px";
	wrapper.style.height = yWithScroll + "px";
	
	borderManage();
}

function borderManage()
{
	getPageSizeWithScroll();
	getWindowSize();
	
	var hitcounter = document.getElementById('hitcounter');
	var borderleft = document.getElementById('borderleft');
	var borderright = document.getElementById('borderright');

	//alert(xWithScroll);
	//alert(windowWidth);
	
	if (windowHeight >= yWithScroll)
	{
		borderleft.style.height = windowHeight + "px";
		borderright.style.height = windowHeight + "px";
	}
	else
	{
		borderleft.style.height = yWithScroll + "px";
		borderright.style.height = yWithScroll + "px";
	}
	if (windowWidth >= xWithScroll)
	{
		borderright.style.marginRight = 0;
	}
	else
	{
		borderright.style.marginRight = xWithScroll + "px";
	}
	setTimeout("borderManage()", 20);
}
*/
