var theHints = [];
window.onload = initHints;

function initHints() {
	theHints[0] = {
		'hintTitle':'Advertising',
		'hintText':"Gain hands-on advertising skills. You will take courses such as concept development, storyboarding, online communication and art direction. You will learn how to create the right visual message to cause the reaction you want. Course work in brand marketing, marketing research and consumer behavior will provide you with the business foundation you will need to understand the marketplace and develop winning strategies."
	};
	theHints[1] = {
		'hintTitle':'Culinary Management',
		'hintText':"This bachelor's degree completion program is the perfect choice for working culinary professionals who have an associate's degree in culinary arts. This is a management program (no cooking courses) where you'll study business courses such as human resource management, accounting, hospitality law & ethics. Courses in marketing, customer service, communication and leadership will help you develop critical thinking and interpersonal skills."
	};
	theHints[2] = {
		'hintTitle':'Fashion & Retail Management',
		'hintText':"Have an eye for style and a head for business? This means moving the world's fashions from designers' showrooms to retail sales floors. In the Fashion & Retail Management program, you'll learn how to develop, analyze, and implement sales strategies. Buying and merchandising practices are explored. Your inventory control and cost analysis skills are honed."
	};
	theHints[3] = {
		'hintTitle':'Game Art & Design',
		'hintText':"Want to design successive levels of a complex video game? If so, graduate to a future in Game Art & Design. This online program concentrates on the artistic side of games - not computer programming. You'll strengthen your basic art and design skills, and then you'll learn how to design game play and background, create characters and their environments."
	};
	theHints[4] = {
		'hintTitle':'Graphic Design',
		'hintText':"Interested in Graphic Design and have a passion for art? The Bachelor of Science in Graphic Design Degree program provides you with the opportunity to develop an understanding of color and composition, design and typography. You will be trained in creative problem-solving. Emphasis is placed on learning skills and techniques of computer graphics, electronic imaging and production."
	};
	theHints[5] = {
		'hintTitle':'Hotel & Restaurant Management',
		'hintText':"In the Hotel and Restaurant Management program, you will gain comprehensive training in the hospitality arena, develop quick and effective decision-making skills and enhance your human relations ability. You will also develop a keen understanding of the skills necessary to run a successful hotel and food service enterprise."
	};
	theHints[6] = {
		'hintTitle':'Interior Design',
		'hintText':"Part art, part science, Interior Design goes far beyond decorating. Interior designers have a profound impact on people's lives by creating the surroundings, in which we live, work and play. In this online program you'll study computer-aided drafting and design, 3-D design, space planning, problem-solving, and the history of design and architecture."
	};
	theHints[7] = {
		'hintTitle':'Web Design & Interactive Media',
		'hintText':"Combine your individual artistic abilities with complex technological skills. The Bachelor of Science Degree in Web Design and Interactive Media offers a broad range of design and technology competencies including visual design, digital image manipulation, audio, Web site design, video, animation, text, business and project management."
	};
	theHints[8] = {
		'hintTitle':'Media Arts & Animation',
		'hintText':"The Media Art & Animation program will develop your creative skills with a foundation in drawing, color, character design and computer applications. You'll examine advanced 2-D and 3-D animation principles as well as story development, background design, scenic layout and special effects. You'll work with program specific software such as Adobe Photoshop, Discreet's 3D Studio Max & more."
	};
	theHints[9] = {
		'hintTitle':'Graphic Design',
		'hintText':"Interested in Graphic Design and have a passion for art? The Associate of Science in Graphic Design Degree program provides you with the opportunity to develop an understanding of color and composition, design and typography. You will be trained in creative problem-solving. Emphasis is placed on learning skills and techniques of computer graphics, electronic imaging and production."
	};
	theHints[10] = {
		'hintTitle':'Web Design & Interactive Media',
		'hintText':"Combine your individual artistic abilities with complex technological skills. The Associate of Science Degree in Web Design and Interactive Media offers a broad range of design and technology competencies including those related to visual design, digital image manipulation, audio, Web site design, video, animation, text, business and project management."
	};
	theHints[11] = {
		'hintTitle':'Digital Design',
		'hintText':"Through the diploma program in Digital Design, you will learn design fundamentals, lettering and typography, and graphic design. You'll create color composites and renderings, and get the introduction you need to using computer applications and sophisticated software as design tools. The Digital Design Program provides you with a solid foundation for career growth."
	};
	theHints[12] = {
		'hintTitle':'Residential Planning',
		'hintText':"Turn your talent for design into a rewarding career. The Residential Planning online program covers the basics of interior space planning. You'll study textiles, historic & contemporary styles, kitchen & bath planning, drafting & computer-aided design. Credits earned in this program are fully transferable to the Interior Design Bachelors Program at The Art Institute of Pittsburgh - Online Division."
	};
	theHints[13] = {
		'hintTitle':'Web Design',
		'hintText':"In the Web Design program you'll learn the basics of Web site design, graphics and animation developed specifically for the Internet. You will explore the various site design models used in personal, commercial and government Web sites, and will design Web pages and Web sites utilizing a variety of techniques and software tools."
	};
	theHints[14] = {
		'hintTitle':'Transfer of Credit',
		'hintText':"You may be eligible to apply course credits you've earned from other accredited or recognized institutions toward your degree."
	};
	theHints[15] = {
		'hintTitle':'Life Credit',
		'hintText':"You might have personal or professional experience related to the degree you seek.  Why not get college credit for it?"
	};
	theHints[16] = {
		'hintTitle':'Military Discounts & Benefits',
		'hintText':"If you are currently enlisted or are a veteran of the U.S. Armed Forces, you may qualify for military-related discounts or benefits."
	};
	theHints[17] = {
		'hintTitle':'Employer Reimbursement',
		'hintText':"Some employers offer tuition reimbursement as an employee benefit. A member of our Financial Aid Service team can speak with your employers Human Resources department or your supervisor to determine if this maybe an option for you."
	};
	theHints[18] = {
		'hintTitle':'Federal Aid',
		'hintText':"The U.S. government offers aid including loans and grants for eligible students, usually to be repaid upon degree completion or cessation of classes."
	};
	theHints[19] = {
		'hintTitle':'Gift Aid',
		'hintText':"Grants, scholarships, and other benefits are often based on a combination of criteria such as financial need and/or academic performance and do not have to be repaid."
	};
	theHints[20] = {
		'hintTitle':'Private Loans',
		'hintText':"Several types of loans are available to students and their parents (if applicable) through the government and private lending institutions. Requirements vary; all loans must be repaid."
	};
	theHints[21] = {
		'hintTitle':'Associate of Science in Kitchen &amp; Bath Design',
		'hintText':"Specialize in a fast-growing industry and put your passions to work where you apply your skills in both space planning and aesthetics in our Kitchen &amp; Bath Design associate's degree program. Gain hands-on design skills while you study lighting, materials, products and appliances and also gain skills in business fundamentals such as budgets, estimates, and project bidding. Combine your creativity with practicality and learn how to create these multi-functional interiors."
	};
	theHints[22] = {
		'hintTitle':'Bachelor of Science in Photography',
		'hintText':"The Bachelor of Science in Photography program is for those who want to become a professional photographer and will provide students with a rigorous study of the elements of image production and manipulation, the ultimate goal of which is to provide graduates with skills that are directly applicable to a career in the field. You will focus on image composition, lighting, camera and technical skills including image enhancement software."
	};
	buildHintBlock();
}

function buildHintBlock() {
	var objBody = document.getElementsByTagName("body").item(0);
	
	var objHint = document.createElement("div");
	objHint.setAttribute('id','hintBlock');
	objHint.className = 'txtHint';
	objBody.appendChild(objHint);

	var objCloseBtnHolder = document.createElement("span");
	objCloseBtnHolder.className = 'closebutton';
	objHint.appendChild(objCloseBtnHolder);

	var objCloseBtnAnchor = document.createElement("a");
	objCloseBtnAnchor.setAttribute('href','javascript: void(0)');
	objCloseBtnAnchor.onclick = hideHint;
	objCloseBtnHolder.appendChild(objCloseBtnAnchor);

	var objCloseImage = document.createElement("img");
	objCloseImage.setAttribute('src', '../images/closebutton.gif');
	objCloseImage.setAttribute('border', 0);
	objCloseImage.setAttribute('title', 'Close');
	objCloseBtnAnchor.appendChild(objCloseImage);
	
	var objHintContentHolder = document.createElement("div");
	objHintContentHolder.className = 'txtForHint';
	objHint.appendChild(objHintContentHolder);

	var objHintHeader = document.createElement("span");
	objHintHeader.setAttribute('id','txthintheader');
	objHintContentHolder.appendChild(objHintHeader);

	var objHintContent = document.createElement("span");
	objHintContent.setAttribute('id','txthintcontent');
	objHintContentHolder.appendChild(objHintContent);
}

function hideHint() {
	var theHint = getElement("hintBlock");
	theHint.style.display = "none";
}

function showHint(hintID) {
	scrCenter_x = screen.width/2;
	scrCenter_y = screen.height/2;
	windowCenter_x = pageWidth()/2;
	windowCenter_y = pageHeight()/2;
	
	var theHint = getElement("hintBlock");
	var theHintHeader = getElement("txthintheader");
	var theHintContent = getElement("txthintcontent");
	
	theHintHeader.innerHTML = theHints[hintID].hintTitle;
	theHintContent.innerHTML = theHints[hintID].hintText;
	
	theHint.style.top = windowCenter_y;
	theHint.style.left = windowCenter_x-115;
	theHint.style.display = "block";
}


function pageWidth() {
	return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ?       document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;
}
function pageHeight() {
	return  window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ?  document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null;
}
function posLeft() {
	return typeof window.pageXOffset != 'undefined' ? window.pageXOffset :document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0;
}
function posTop() {
	return typeof window.pageYOffset != 'undefined' ?  window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;
} 
function posRight() {
	return posLeft()+pageWidth();
} 
function posBottom() {
	return posTop()+pageHeight();
}

getElement = document.all ?
	function (s_id) { return document.all[s_id] } :
	function (s_id) { return document.getElementById(s_id) };


