// JavaScript Document
var ie = 0;
if (navigator.appName == "Microsoft Internet Explorer")  {ie = 1;};

function monday02(par){	
	var par_h = "#"+par
	var $child = $(par_h);
	
	Ycoord = $child.position().top + 5;
	Xcoord = $child.position().left + 160;
	
	//if (ie == 1) {Xcoord = Xcoord - 33};
	
	//set arrow position
	arrow = 'arrowC';	
	document.getElementById(arrow).style.top = "10px";
	document.getElementById(arrow).style.left = "-20px";
	//set box position position
	obj = 'timetable_hover';
	document.getElementById(obj).style.top = Ycoord + "px";
	document.getElementById(obj).style.left = Xcoord + "px";
	//alert('fired' + Ycoord + ' ' + Xcoord + " X = " + x);
	//alert(x);
	//document.getElementById('hover_box').style.backgroundColor  = "#fee1c9";
	document.getElementById('arrowC').style.backgroundImage="url('/images/homepage/menu/blk_shadow_arrow_left_ff6600.png')";
	
	$('#thover_heading').html('<h2>Group Tuition</h2>');
	$('#thover_text').html('<img src="/images/course_images/ielts-tt-group01.jpg" width="210" height="100" alt="Group tuition" /><p style="background-color:#fee1c9; padding:5px">Our class discussions cover a range of relevant topics and will help you expand your oral skills and vocabulary. We have a  maximum class size of 12, and we tailor our IELTS course to meet your needs and focus on your progress.</p>');
	//if (x%2 == 0) {setYLVisible(obj);}
	if (document.getElementById(obj).style.visibility = 'hidden'){		
	setYLVisible(obj);
	};
	x= x+1;	
};

function monday(par){	
	var par_h = "#"+par
	var $child = $(par_h);
	
	Ycoord = $child.position().top - 40;
	Xcoord = $child.position().left + 160;
	
	//if (ie == 1) {Xcoord = Xcoord - 33};
	
	//set arrow position
	arrow = 'arrowC';	
	document.getElementById(arrow).style.top = "55px";
	document.getElementById(arrow).style.left = "-20px";
	//set box position position
	obj = 'timetable_hover';
	document.getElementById(obj).style.top = Ycoord + "px";
	document.getElementById(obj).style.left = Xcoord + "px";
	//alert('fired' + Ycoord + ' ' + Xcoord + " X = " + x);
	//alert(x);
	//document.getElementById('hover_box').style.backgroundColor  = "#fee1c9";
	document.getElementById('arrowC').style.backgroundImage="url('/images/homepage/menu/blk_shadow_arrow_left_ffcc00.png')";
	
	$('#thover_heading').html('<h2 style="background-color:#ffcc00">1 to 1 tuition</h2>');
	$('#thover_text').html('<img src="/images/course_images/ielts-tt-1to101.jpg" width="210" height="100" alt="1 to 1 tuition" /><p style="background-color:#fff1d0; padding:5px">Working with your own personal teacher, 1 to 1 tuition allows you to focus on specific language areas or skills that you wish to improve such as technical vocabulary or listening practice.</p>');
	//if (x%2 == 0) {setYLVisible(obj);}
	if (document.getElementById(obj).style.visibility = 'hidden'){		
	setYLVisible(obj);
	};
	x= x+1;	
};

function homework(par){	
	var par_h = "#"+par
	var $child = $(par_h);
	
	Ycoord = $child.position().top - 60;
	Xcoord = $child.position().left + 100;
	
	//if (ie == 1) {Xcoord = Xcoord - 33};
	
	//set arrow position	
	arrow = 'arrowC';	
	document.getElementById(arrow).style.top = "55px";
	document.getElementById(arrow).style.left = "-20px";
	//set box position position
	obj = 'timetable_hover';	
	document.getElementById(obj).style.top = Ycoord + "px";
	document.getElementById(obj).style.left = Xcoord + "px";
	//alert('fired' + Ycoord + ' ' + Xcoord + " X = " + x);
	//alert(x);
	//document.getElementById('hover_box').style.backgroundColor  = "#fee1c9";
	document.getElementById('arrowC').style.backgroundImage="url('/images/homepage/menu/blk_shadow_arrow_left_993399.png')";
	
	$('#thover_heading').html('<h2 style="background-color:#993399">Homework</h2>');
	$('#thover_text').html('<img src="/images/course_images/ielts-tt-homework01.jpg" width="210" height="100" alt="Homework" /><p style="background-color:#dccbe4; padding:5px">Your teacher will give you daily homework to complete.</p>');
	//if (x%2 == 0) {setYLVisible(obj);}
	if (document.getElementById(obj).style.visibility = 'hidden'){		
	setYLVisible(obj);
	};
	x= x+1;	
};

function wednesday01(par){	
	var par_h = "#"+par
	var $child = $(par_h);
	
	Ycoord = $child.position().top - 40;
	Xcoord = $child.position().left + 160;
	
	//if (ie == 1) {Xcoord = Xcoord - 33};
	
	//set arrow position
	arrow = 'arrowC';	
	document.getElementById(arrow).style.top = "55px";
	document.getElementById(arrow).style.left = "-20px";
	//set box position position
	obj = 'timetable_hover';
	document.getElementById(obj).style.top = Ycoord + "px";
	document.getElementById(obj).style.left = Xcoord + "px";
	//alert('fired' + Ycoord + ' ' + Xcoord + " X = " + x);
	//alert(x);
	//document.getElementById('hover_box').style.backgroundColor  = "#fee1c9";
	document.getElementById('arrowC').style.backgroundImage="url('/images/homepage/menu/blk_shadow_arrow_left_75c044.png')";
	
	$('#thover_heading').html('<h2 style="background-color:#75c044">Lectures</h2>');
	$('#thover_text').html('<img src="/images/course_images/ielts-tt-lectures01.jpg" width="210" height="100" alt="Lectures" /><p style="background-color:#e9f3dd; padding:5px">You can attend weekly lectures as part of our optional explore programme. Recent topics have included The Tradition of Afternoon Tea, English Football and Japanese Geisha.</p>');
	//if (x%2 == 0) {setYLVisible(obj);}
	if (document.getElementById(obj).style.visibility = 'hidden'){		
	setYLVisible(obj);
	};
	x= x+1;	
};

function wednesday02(par){	
	var par_h = "#"+par
	var $child = $(par_h);
	
	Ycoord = $child.position().top - 40;
	Xcoord = $child.position().left + 160;
	
	//if (ie == 1) {Xcoord = Xcoord - 33};
	
	//set arrow position
	arrow = 'arrowC';	
	document.getElementById(arrow).style.top = "55px";
	document.getElementById(arrow).style.left = "-20px";
	//set box position position
	obj = 'timetable_hover';
	document.getElementById(obj).style.top = Ycoord + "px";
	document.getElementById(obj).style.left = Xcoord + "px";
	//alert('fired' + Ycoord + ' ' + Xcoord + " X = " + x);
	//alert(x);
	//document.getElementById('hover_box').style.backgroundColor  = "#fee1c9";
	document.getElementById('arrowC').style.backgroundImage="url('/images/homepage/menu/blk_shadow_arrow_left_ff6600.png')";
	
	$('#thover_heading').html('<h2>Group Tuition</h2>');
	$('#thover_text').html('<img src="/images/course_images/ielts-tt-group01.jpg" width="210" height="100" alt="Group Tuition" /><p style="background-color:#fee1c9; padding:5px">We’ll develop your general and topic-specific vocabulary for your IELTS exam through class activities and self study. </p>');
	//if (x%2 == 0) {setYLVisible(obj);}
	if (document.getElementById(obj).style.visibility = 'hidden'){		
	setYLVisible(obj);
	};
	x= x+1;	
};

function thursday01(par){	
	var par_h = "#"+par
	var $child = $(par_h);
	
	Ycoord = $child.position().top - 60;
	Xcoord = $child.position().left + 160;
	
	//if (ie == 1) {Xcoord = Xcoord - 33};
	
	//set arrow position
	arrow = 'arrowC';	
	document.getElementById(arrow).style.top = "75px";
	document.getElementById(arrow).style.left = "-20px";
	//set box position position
	obj = 'timetable_hover';
	document.getElementById(obj).style.top = Ycoord + "px";
	document.getElementById(obj).style.left = Xcoord + "px";
	//alert('fired' + Ycoord + ' ' + Xcoord + " X = " + x);
	//alert(x);
	//document.getElementById('hover_box').style.backgroundColor  = "#fee1c9";
	document.getElementById('arrowC').style.backgroundImage="url('/images/homepage/menu/blk_shadow_arrow_left_00a992.png')";
	
	$('#thover_heading').html('<h2 style="background-color:#00a992">Guided study</h2>');
	$('#thover_text').html('<img src="/images/course_images/ielts-tt-guided01.jpg" width="210" height="100" alt="Guided study" /><p style="background-color:#cbe9e3; padding:5px">Our learning centres are open up to 7 days per week. They are a great place for guided study or private learning. Qualified staff are on hand to advise you on resources and materials and help you with your studies.</p>');
	//if (x%2 == 0) {setYLVisible(obj);}
	if (document.getElementById(obj).style.visibility = 'hidden'){		
	setYLVisible(obj);
	};
	x= x+1;	
};



function thursday03(par){	
	var par_h = "#"+par
	var $child = $(par_h);
	
	Ycoord = $child.position().top + 5;
	Xcoord = $child.position().left + 160;
	
	//if (ie == 1) {Xcoord = Xcoord - 33};
	
	//set arrow position
	arrow = 'arrowC';	
	document.getElementById(arrow).style.top = "10px";
	document.getElementById(arrow).style.left = "-20px";
	//set box position position
	obj = 'timetable_hover';
	document.getElementById(obj).style.top = Ycoord + "px";
	document.getElementById(obj).style.left = Xcoord + "px";
	//alert('fired' + Ycoord + ' ' + Xcoord + " X = " + x);
	//alert(x);
	//document.getElementById('hover_box').style.backgroundColor  = "#fee1c9";
	document.getElementById('arrowC').style.backgroundImage="url('/images/homepage/menu/blk_shadow_arrow_left_ff6600.png')";
	
	$('#thover_heading').html('<h2>Group Tuition</h2>');
	$('#thover_text').html('<img src="/images/course_images/ielts-tt-group03.jpg" width="210" height="100" alt="Group Tuition" /><p style="background-color:#fee1c9; padding:5px">Bell will help you familiarise yourself with the <a href="/locals/it/corsi-per-adulti/ielts/what-is-ielts.asp" title="IELTS exam structure">IELTS exam structure</a> and give you the opportunity to practice activities under timed conditions to prepare for your IELTS exam.</p>');
	//if (x%2 == 0) {setYLVisible(obj);}
	if (document.getElementById(obj).style.visibility = 'hidden'){		
	setYLVisible(obj);
	};
	x= x+1;	
};

function friday01(par){	
	var par_h = "#"+par
	var $child = $(par_h);
	
	Ycoord = $child.position().top - 40;
	Xcoord = $child.position().left - 214;
	
	//if (ie == 1) {Xcoord = Xcoord - 33};
	
	//set arrow position
	arrow = 'arrowC';	
	document.getElementById(arrow).style.top = "55px";
	document.getElementById(arrow).style.left = "210px";
	//set box position position
	obj = 'timetable_hover';
	document.getElementById(obj).style.top = Ycoord + "px";
	document.getElementById(obj).style.left = Xcoord + "px";
	//alert('fired' + Ycoord + ' ' + Xcoord + " X = " + x);
	//alert(x);
	//document.getElementById('hover_box').style.backgroundColor  = "#fee1c9";
	document.getElementById('arrowC').style.backgroundImage="url('/images/homepage/menu/blk_shadow_arrow_right_009ddc.png')";
	
	$('#thover_heading').html('<h2 style="background-color:#009ddc">Social programme</h2>');
	$('#thover_text').html('<img src="/images/course_images/ielts-tt-social01.jpg" width="210" height="100" alt="Social programmen" /><p style="background-color:#cfe4f6; padding:5px">As part of your course you receive up to two free trips every two weeks to UK destinations such as Brighton (above). In addition you can take advantage of the daily social programme.</p>');
	//if (x%2 == 0) {setYLVisible(obj);}
	if (document.getElementById(obj).style.visibility = 'hidden'){		
	setYLVisible(obj);
	};
	x= x+1;	
};

