// JavaScript Document

root = '&nbsp;&nbsp;&nbsp;:: guitynovin.com';
var d = new Date();
function getPage(url) {
	document.getElementById('content').innerHTML = '<div class="ajax-loading"></div>';
	scroll(0,0);
	if (url.indexOf('?')>=0) {
		symb = "&";	
	} else {
		symb = "?";
	}
	new Ajax(url+ symb +"o="+(d.getTime()), {method: 'get',
	   update: $('content'),
	   evalScripts:true
	   }).request();
	return false;
}

function new_window(src, w, h) {
	window.open(src,'GuityNovin','left=30,top=30,width='+w+',height='+h+',toolbar=0,resizable=0,status=0');
}

new Ajax("nav.php?o="+(d.getTime()), {method: 'get',	update: $('nav'), evalScripts:true}).request();
quote = '<em>"Once, I dreamed of being a butterfly, flying freely in the wind. When I woke, there I was. I know not if I had dreamed of being a butterfly, or if I am a butterfly dreaming I am me."</em><Br /><strong>~ Chuang Tzu</strong><br/>'
$('sub_right').setHTML(quote);

$('copy').setHTML('&copy;2007 - Guity Novin');

new Ajax("top.php?o="+(d.getTime()), {method: 'get',   update: $('top'),   evalScripts:true}).request();
new Ajax("main.php?o="+(d.getTime()), {method: 'get',   update: $('main'),   evalScripts:true, onComplete:function() { getPage("home.php"); }}).request();