
/*function colorscheme() {
var i = 1;
	switch(i)
	{
		case 1:
		{
			document.body.background= ('images/green/bg_back.gif');
			document.all.top.background='images/green/bg_top.gif';
			document.all.menu.background='images/green/bg_menu.gif';
			document.all.bg_body.background='images/green/bg_body.gif';
			document.all.bottom.background='images/green/bg_bottom.gif';
			document.all.bg_body1.background='images/green/bg_body.gif';
			document.all.menu.style.color = 'yellow';
		}
		break;
		case 2: document.body.background= ('hk22.jpg'); break;
		default: document.body.background= ('images/bg_back.gif'); break;
	}
}*/

/* DropDownMenu Button */

function surfto(form) {
        var myindex=form.dest.selectedIndex
        window.open(form.dest.options[myindex].value, target="_top", "scrollbars"); <!--target="journalframe",-->
}

////////////////////////////////

/* Change Background Image */
function getCookie(NameOfCookie){
    if (document.cookie.length > 0) {              
    begin = document.cookie.indexOf(NameOfCookie+"=");       
    if (begin != -1) {           
      begin += NameOfCookie.length+1;       
      end = document.cookie.indexOf(";", begin);
      if (end == -1) end = document.cookie.length;
        return unescape(document.cookie.substring(begin, end));
    } 
  }
  return null;
}

function setCookie(NameOfCookie, value, expiredays) {
	//alert(value);
var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));

  document.cookie = NameOfCookie + "=" + escape(value) + 
  ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

function delCookie (NameOfCookie) {
  if (getCookie(NameOfCookie)) {
    document.cookie = NameOfCookie + "=" +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}
/*
function white_font()
{
				document.all.ID_elpage1.style.color = '#FFFFFF';
				document.all.ID_elpage2.style.color = '#FFFFFF';
				document.all.ID_elpage3.style.color = '#FFFFFF';
				document.all.ID_elpage4.style.color = '#FFFFFF';
				document.all.ID_elpage5.style.color = '#FFFFFF';
}

function black_font()
{
				document.all.ID_elpage1.style.color = '#000000';
				document.all.ID_elpage2.style.color = '#000000';
				document.all.ID_elpage3.style.color = '#000000';
				document.all.ID_elpage4.style.color = '#000000';
				document.all.ID_elpage5.style.color = '#000000';
}*/
function colorscheme()
{
	dw_fontSizerDX.reset();
	dw_fontSizerDX.adjust(1);
	userColor=getCookie('MyColors');
	//alert("hahaha" + userColor);
	if (userColor!=null) 
	{
		//alert('Hi there '+userColor+' - Good to see you again!')
	}
	else 
	{
		userColor=1;
		setCookie('MyColors',userColor,365)
	}
	
	userColor=getCookie('MyColors');
	
	switch(userColor)
		{
			case '1':
			{
				document.body.background= ('images/orange/bg_back.gif');
				document.all.top.background='images/orange/bg_top.gif';
				document.all.menu.background='images/orange/bg_menu.gif';
				document.all.bg_body.background='images/orange/bg_body.gif';
				document.all.bottom.background='images/orange/bg_bottom.gif';
				document.all.bg_body1.background='images/orange/bg_body.gif';
				//black_font();
				document.all.c.style.color = '#000000';
			}
			break;
			case '2': 
			{
				document.body.background= ('images/red/bg_back.gif');
				document.all.top.background='images/red/bg_top.gif';
				document.all.menu.background='images/red/bg_menu.gif';
				document.all.bg_body.background='images/red/bg_body.gif';
				document.all.bottom.background='images/red/bg_bottom.gif';
				document.all.bg_body1.background='images/red/bg_body.gif';
				//white_font();
				document.all.c.style.color = '#000000';
			}
			break;
			case '3': 
			{
				document.body.background= ('images/green/bg_back.gif');
				document.all.top.background='images/green/bg_top.gif';
				document.all.menu.background='images/green/bg_menu.gif';
				document.all.bg_body.background='images/green/bg_body.gif';
				document.all.bottom.background='images/green/bg_bottom.gif';
				document.all.bg_body1.background='images/green/bg_body.gif';
				//black_font();
				document.all.c.style.color = '#000000';
				//document.fgColor='#999999';
				//document.all.c.style.color = '#999999';
			}
			break;
			case '4': 
			{
				document.body.background= ('images/bg_back.gif');
				document.all.top.background='images/bg_top.gif';
				document.all.menu.background='images/bg_menu.gif';
				document.all.bg_body.background='images/bg_body.gif';
				document.all.bottom.background='images/bg_bottom.gif';
				document.all.bg_body1.background='images/bg_body.gif';
				//white_font();
				document.all.c.style.color = '#b3bd89';
			}
			break;
			case '5': 
			{
				document.body.background= ('images/white/bg_back.gif');
				document.all.top.background='images/white/bg_top.gif';
				document.all.menu.background='images/white/bg_menu.gif';
				document.all.bg_body.background='images/white/bg_body.gif';
				document.all.bottom.background='images/white/bg_bottom.gif';
				document.all.bg_body1.background='images/white/bg_body.gif';
				//black_font();
				document.all.c.style.color = '#000000';
				
			}
			break;
			default:
			{
				document.body.background= ('images/bg_back.gif');
				document.all.top.background='images/bg_top.gif';
				document.all.menu.background='images/bg_menu.gif';
				document.all.bg_body.background='images/bg_body.gif';
				document.all.bottom.background='images/bg_bottom.gif';
				document.all.bg_body1.background='images/bg_body.gif';
				//white_font();
				document.all.c.style.color = '#000000';
			}
			break;
		}
}