	var div_arr = new Array (7)
	div_arr[0]="div1"
	div_arr[1]="div2"
	div_arr[2]="div3"
	div_arr[3]="div4"
	div_arr[4]="div5"
	div_arr[5]="div6"
	div_arr[6]="div7"
	
	var pic_arr = new Array (7)
	pic_arr[0]="pic1"
	pic_arr[1]="pic2"
	pic_arr[2]="pic3"
	pic_arr[3]="pic4"
	pic_arr[4]="pic5"
	pic_arr[5]="pic6"
	pic_arr[6]="pic7"

function color_change (obj1, obj2, color) {
	obj1.style.backgroundColor=color;
	obj2.style.backgroundColor=color;
	}
	
function circle (num) 
	{
	
		for (var i=0;i<=6;i++) {
			document.getElementById(div_arr[i]).style.backgroundImage="url(/i/x.gif)"
			document.getElementById(pic_arr[i]).style.cursor="hand"
	}
	
	document.getElementById(div_arr[num-1]).style.backgroundImage="url(/i/circle.gif)";
	document.getElementById(div_arr[num-1]).style.backgroundPosition='center';
	document.getElementById(pic_arr[num-1]).style.cursor='default';
	}
	
function getexpirydate( nodays){
var UTCstring;
Today = new Date();
nomilli=Date.parse(Today);
Today.setTime(nomilli+nodays*24*60*60*1000);
UTCstring = Today.toUTCString();
return UTCstring;
 }
 
function setcookie(name,value,duration){
cookiestring=name+"="+escape(value)+";EXPIRES="+getexpirydate(duration);
document.cookie=cookiestring;
}

function getcookie(cookiename) {
 var cookiestring=""+document.cookie;
 var index1=cookiestring.indexOf(cookiename);
 if (index1==-1 || cookiename=="") return ""; 
 var index2=cookiestring.indexOf(';',index1);
 if (index2==-1) index2=cookiestring.length; 
 return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}

function write_it()
{
	
	if(getcookie("visitorcolor"))
	{
		var my_cookie=getcookie("visitorcolor");
		if (my_cookie==1)
			color_change(logo, panno, '#0074C5');
		else if (my_cookie==2)
			color_change(logo, panno, '#49983C');
		else if (my_cookie==3)
			color_change(logo, panno, '#C18557');
		else if (my_cookie==4)
			color_change(logo, panno, '#EF2F72');
		else if (my_cookie==5)
			color_change(logo, panno, '#F48000');
		else if (my_cookie==6)
			color_change(logo, panno, '#6E448B');
		else if (my_cookie==7)
			color_change(logo, panno, '#00AEC4');
			
		//document.write ('pic'+my_cookie);
		circle(my_cookie);	
	}
	
		
}

function change_pix (pid, url) 
{
	if (document.images) {
	document[pid].src = url;
	return true;
	}
}

function change_guts (obj1, obj2)
{
	obj1.style.visibility = 'visible';
	obj2.style.visibility = 'hidden';
}

function select_page (id)
{
	var pages = 4;
	for(var i=1;i<=pages;i++) {
		document.getElementById('guts' + i).className = 'displaynone';
		document.getElementById(i).className = 'paging';
	}
	document.getElementById('guts' + id).className = 'visible';
	document.getElementById(id).className = 'selected_page';
	
}