
function preload(i) { 
	var img = new Image(); 
	img.src = i; return img; 
}



function roll(name, mode) {
	if ( mode == 'on' ) m = '-a'; else m = '';
	window.document.images[name].src = 'images/' + name + m + '.gif';
}
function roll2(name, mode) {
	if ( mode == 'on' ) m = '-a'; else m = '';
	window.document.images[name].src = 'images/' + 'arrow-left' + m + '.gif';
}

//for dropdown menu//

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

	
	var lastID = "";
	
	function _toggle(id) {
		if (document.all) {
			if (document.all[id].style.display == 'none') {
				document.all[id].style.display = '';
				// turn on mouse catch layer
				document.all['catch'].style.display = '';
				
			} else {
				document.all[id].style.display = 'none';
				document.all['catch'].style.display = 'none';
			}
			return false;
		} else if (document.getElementById) {
			if (document.getElementById(id).style.display == 'none') {
				document.getElementById(id).style.display = 'block';			
				// turn on mouse catch layer
				document.getElementById('catch').style.display = 'block';
				
			} else {
				document.getElementById(id).style.display = 'none';
				document.getElementById('catch').style.display = 'none';
			}
			return false;
		}
	}

	function toggle(id) {
		if (lastID != "") {
			_toggle(lastID);
		}
		lastID = id;
		_toggle(id);
	}

	function hideAll() {
		lastID = "";
		if (document.all) {
			
			return false;
		
		} else if (document.getElementById) {
			if (document.getElementById('sub_Service')) {
				document.getElementById('sub_Service').style.display = 'none';
			}
			if (document.getElementById('sub_Portfolio')) {
				document.getElementById('sub_Portfolio').style.display = 'none';
			}
			if (document.getElementById('sub_Links')) {
				document.getElementById('sub_Links').style.display = 'none';
			}
			if (document.getElementById('sub_Site')) {
				document.getElementById('sub_Site').style.display = 'none';
			}
			if (document.getElementById('sub_Faqs')) {
				document.getElementById('sub_Faqs').style.display = 'none';
			}
			if (document.getElementById('sub_Home')) {
				document.getElementById('sub_Home').style.display = 'none';
			}
			if (document.getElementById('sub_Samples')) {
				document.getElementById('sub_Samples').style.display = 'none';
			}
			if (document.getElementById('sub_Contacts')) {
				document.getElementById('sub_Contacts').style.display = 'none';
			}
			if (document.getElementById('sub_Check')) {
				document.getElementById('sub_Check').style.display = 'none';
			}
			if (document.getElementById('catch')) {
				document.getElementById('catch').style.display = 'none';
			}
			return false;
		}
	}


// function Showsubtext

function Showsubtext(e,id,v) {

         var mousX=e.screenX;
         var mousY=e.screenY; 
         var vScroll = document.body.scrollTop;
         //var vScroll = document.documentElement.scrollTop);  
         
         if(v==0) {
           document.getElementById(id).style.top     = mousY + vScroll - 120;
           document.getElementById(id).style.left    = mousX/* + 10*/  -315;
           document.getElementById(id).style.display = "block";            
         } else {
           document.getElementById(id).style.top     = -10 + 'px';
           document.getElementById(id).style.left    = -100 + 'px';
           document.getElementById(id).style.display = "none";            
         }

/*
'sub_'+
'sub_'+
*/

} 

function help ()

{
	var help = new Array();
	help['entry1'] = 'At ResumesPlanet.com, we are aware of your specific needs as a young professional. We are here to provide you with a high-impact job document that powerfully presents your potential as an employee: even with little work experience.';
	help['entry2'] = 'The competition for professional positions is fierce. Our writers will help you get the resume that leaves all other applicants behind.';
	help['entry3'] = 'With our wide variety of career professionals, there is always someone in your field, no matter what field it is, who knows the current trends.  Our writers have experience in over 40 career fields, so we can tailor your resume to help you transition from your previous career to the new one you wish to pursue.';
	help['entry4'] = 'We have the most professional job application documents for CEOs, Principals, VPs, General Managers, Directors, etc. ';
	help['entry5'] = 'Just how do those skills learned in the military transfer to civilian positions?  Do not worry about that; our writers will craft your resume to reflect the years of hard work, dedication, and education you have to mesh with current job opportunities in the civilian world.  No more trying to explain highly technical jargon to potential employers!  They will understand how your skills relate to their job and they will be impressed.';
	help['entry6'] = 'We offer a complete range of job documents for civil service applicants.';


	return help;

}




function get_help(toid)

{
//	document.getElementById(toid).innerHTML = help[toid];
//	document.getElementById('federal').innerHTML = 'just test';

}




/*Special for Luba!*/
function  get_center_price()
{

					if(browser == 'Netscape')
					{
						document.getElementById('currency_rw').style.textAlign ='right';
						document.getElementById('currency_rw').style.width = '260';
						document.getElementById('currency_rw').style.float = 'left';						
						document.getElementById('get_addit_service_on_service').innerHTML = '<style>#addit_service_on_service {line-height:20px; height:25px;  width:523; float:left; font-size:11pt;}</style>';

						document.getElementById('currency_re').style.textAlign ='right';
						document.getElementById('currency_re').style.width = '260';
						document.getElementById('currency_re').style.float = 'left';						
						
						document.getElementById('currency_cvw').style.textAlign ='right';
						document.getElementById('currency_cvw').style.width = '260';
						document.getElementById('currency_cvw').style.float = 'left';						

						document.getElementById('currency_cve').style.textAlign ='right';
						document.getElementById('currency_cve').style.width = '260';
						document.getElementById('currency_cve').style.float = 'left';						

						document.getElementById('currency_ad').style.textAlign ='right';
						document.getElementById('currency_ad').style.width = '523';
						document.getElementById('currency_ad').style.float = 'left';						

					}
					else
					{

						document.getElementById('currency_rw').style.textAlign ='right';
						document.getElementById('currency_rw').style.width = '300';
						document.getElementById('currency_rw').style.float = 'left';

						document.getElementById('currency_re').style.textAlign ='right';
						document.getElementById('currency_re').style.width = '300';
						document.getElementById('currency_re').style.float = 'left';
						
						document.getElementById('currency_cvw').style.textAlign ='right';
						document.getElementById('currency_cvw').style.width = '300';
						document.getElementById('currency_cvw').style.float = 'left';

						document.getElementById('currency_cve').style.textAlign ='right';
						document.getElementById('currency_cve').style.width = '300';
						document.getElementById('currency_cve').style.float = 'left';

						document.getElementById('currency_ad').style.textAlign ='right';
						document.getElementById('currency_ad').style.width = '618';
						document.getElementById('currency_ad').style.float = 'left';						


					}
}
