function toggleFlash(){
	if(!readCookie('flashcookie')){
		createCookie('flashcookie','noflash',7);
	}else{
		var flash = readCookie('flashcookie');
		switch(flash){
			case 'flash':
				eraseCookie('flashcookie');
				createCookie('flashcookie','noflash',7);
			break;
			case 'noflash':
				eraseCookie('flashcookie');
				createCookie('flashcookie','flash',7);
			break;
		}
		
	}
	window.location.reload();
}

function initBoxes(){
	if(!document.getElementById("box_1")){
		return
	}else{
		for(i=1; i<=3; i++){
			thisBox = document.getElementById("box_"+i);
			thisBox.onmouseover = function() {
					highlight_section(this.id);
				}
			thisBox_a = thisBox.getElementsByTagName('a')[0].href;
			thisBox.thisBox_a2 = thisBox_a;
			thisBox.onclick = function() {
				document.location = this.thisBox_a2;
			}
		}
		function highlight_section(section){
			for (i = 1; i <= 3; i++) {
				thisSection = "box_"+i;
				if (section == thisSection){
					document.getElementById(thisSection).className = 'h_box';
					document.getElementById('main_highlight_boxes').style.backgroundImage = 'url(images/main_image_'+i+'_03.gif)';
				}else{
					document.getElementById(thisSection).className = 'h_box h_box_closed';
				}
			}
		}
		highlight_section("box_1");
	}
	if(!readCookie('flashcookie')){
		createCookie('flashcookie','flash',7);
	}
	flash = readCookie('flashcookie');
	if(flash == 'flash'){
		var theseVars = '/includes/main_highlight_boxes.html';
		var so = new SWFObject("boxes.swf?pageURL="+theseVars, "flashrings", "900", "500px", "8");
		so.addParam("scale", "noscale");
		so.addParam("wmode", "transparent");
		so.addVariable("pageURL", theseVars);
		so.write("flash_rings");
		//
		var so2 = new SWFObject("logo_slideshow_1.swf", "mymovie", "227", "70", "8", "");
		so2.write("flashcontent");
	}
}