﻿
function openWindow(theURL,winName,features) { 
  	window.open(theURL,winName,features);	
}
function technique_unhover(x){
	x.className = "technique_unhover";
	document.body.style.cursor = "auto";
}
function technique_hover(x){
	document.body.style.cursor = "hand";
	document.body.style.cursor = "pointer";
	x.className = "technique_hover";		
}
function hover(x, y){
	x.className = "selected";
	if ( y ) x.className = "dieser";
}
function nothover(x, y){
	x.className = "unselected";
	if ( y ) x.className = "dieser";	
}
function imghover(x){
	x.className = "img_selected";
}
function imgunhover(x){
	x.className = "img_unselected";
}
function xml_xsf2() {
	for ( i=0; i < 6; i = i + 1 ) {
		x.className = "selected";
	}
}
function verberg_kurs(course_no) {
		var pop =  document.getElementById("course_"+course_no);
		pop.style.visibility = "hidden";
		var x =  document.getElementById("course_popup");
		x.style.visibility = "hidden";
}
function offen_kurs(course_no) {
		var pop = document.getElementById( "course_popup" );
		pop.style.visibility = "hidden";
		pop.style.visibility = "visible";
		var variable_bit = "course_";
		var variable_get = variable_bit + course_no;
		var clear="";
		var clear_class="";
		for ( i=0; i < 12; i = i + 1 ) {
			clear_class = "course_" + i;
			clear = document.getElementById( clear_class );
			clear.style.visibility = "hidden";
		}
		clear = document.getElementById( variable_get );
		clear.style.visibility = "hidden";
		//var pop = document.getElementById(variable_get);

		var position = 0;
		position = 330 + ( course_no * 30 );
		pop.style.top = position + "px";
		clear.style.visibility = "hidden";
		clear.style.visibility = "visible";
		//load_course_descriptions( course_no );
}		
function kurs_hover(ref){ 
	document.body.style.cursor = "hand";
	document.body.style.cursor = "pointer";
	ref.className = "kurs_schliess_hover";
}
function kurs_unhover(ref){ 
	ref.className = "kurs_schliess_unhover";
	document.body.style.cursor = "auto";
}
function details_hover(ref){ 
	document.body.style.cursor = "hand"; 
	document.body.style.cursor = "pointer";
	ref.className = "details_hover";
}
function details_unhover(ref){ 
	ref.className = "details_unhover";
	document.body.style.cursor = "auto";
}
course_page = true;
var crossobj=document.all? document.all.course_popup : document.getElementById("course_popup")
var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body
function positionit(){
	var dsocleft=document.all? iebody.scrollLeft : pageXOffset
	var dsoctop=document.all? iebody.scrollTop : pageYOffset
	var iggy = document.getElementById("course_popup");
	//if the user is using IE 4+ or Firefox/ NS6+
	if ( course_page ) {
		if (document.all||document.getElementById){
		//crossobj.style.left=parseInt(dsocleft)+5+"px";
		iggy.style.top=dsoctop+5+"px";
		}
	}
}
function course_set_top(){
	setInterval("positionit()",10)
}
/************************************************************************************/
/* Control Position of Large Images													*/
/************************************************************************************/
function position_large_image(){
	var dsocleft=document.all? iebody.scrollLeft : pageXOffset
	var dsoctop=document.all? iebody.scrollTop : pageYOffset
	var iggy = document.getElementById("gallery_auftauch");
	//if the user is using IE 4+ or Firefox/ NS6+
	if ( it_is_a_gallery_page  ) {
		if (document.all||document.getElementById){
		//crossobj.style.left=parseInt(dsocleft)+5+"px";
		iggy.style.top=dsoctop+5+"px";
		}
	}
}
/*setInterval("position_large_image()",100) */
function getLoad( locator ) {
	var img01 = loadImage( locator );
	setTimer( img01 );
}
function setTimer( image_name ){
	time_out_check = setTimeout(function(){checkProgress(image_name)},100);
}
function checkProgress( image_name ){	
	if ( image_name.complete ) 
	{ 	
			clearTimeout(time_out_check); 
	}
	else
	{
		setTimer( image_name );
	}
}
function loadImage( xMin ) {
	var a01 = new Image();
	a01.src = xMin;
	return a01;
}
function galleryImages() {

}
var landscape_gallery_array = new Array(13);
var which_gallery_page = new Array( false, false, false, false, false );
var it_is_a_gallery_page = new Array( false );
function setWhichGalleryPage( page_no ) { 
	which_gallery_page[ page_no ] = true; 
	it_is_a_gallery_page = true; 
	if ( page_no == 0 ) setLandscapeGallery();
	if ( page_no == 1 ) setFigureGallery();
	if ( page_no == 2 ) setObjectGallery();
	if ( page_no == 3 ) setVesselGallery();
	if ( page_no == 4 ) setBookGallery();
}
/*********************************************/
/* Landscapes                                */
/*********************************************/
var landscape_array = new Array(
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_The_Road_to_Walsingham_Watercolour_2_533x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_To_A_Nightingale_painting_3_353x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_solar_etching_COMUS_4_678x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_linocut_The_Moon_5_312x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_linocut_The_Little_Land_6_800x509.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_River_Variations_Watercolour_7_553x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_Solar_Etching_Shapwick01_8_507x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_Solar_Etching_Shapwick02_9_503x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_monoprint_Hopkins_10_667x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_monoprint_Tagore_11_374x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_linocut_Tagore_12_371x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Landscapes/art_and_painting_courses_gallery_painting_Bright_Bield_13_712x500.jpg');
function setLandscapeGallery(){
	if ( which_gallery_page[ 0 ] ) {
		for (no_of_images = 0; no_of_images < 13; no_of_images++){
			landscape_gallery_array[no_of_images] = new Image();
			landscape_gallery_array[no_of_images].src = landscape_array[no_of_images];
			setTimer( landscape_gallery_array[no_of_images] );  
		}
	}
	//alert( which_gallery_page[ 0 ] );
}
/*********************************************/
/* Figures                                */
/*********************************************/
var figure_gallery_array = new Array(13);
var figure_array = new Array(
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_painting_Woman_Standing_2_375x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_painting_Resting_3_667x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_solar_etching_Seated_Figure_4_360x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_solar_etching_Madonna_5_360x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_painting_Jesus_Falls_6_385x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_painting_Sleeping_7_505x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_painting_Shelley_8_375x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_painting_Mary_Shelley_9_377x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_painting_Robert_Louis_Stevenson_10_371x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_painting_Standing_Figure_11_375x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_painting_The_Miller_12_674x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Figures/art_and_painting_courses_gallery_solar_etching_Music_13_362x500.jpg' );
function setFigureGallery(){
	if ( which_gallery_page[ 1 ] ) {
		for (no_of_images = 0; no_of_images < 13; no_of_images++){
			figure_gallery_array[no_of_images] = new Image();
			figure_gallery_array[no_of_images].src = figure_array[no_of_images];
			setTimer( figure_gallery_array[no_of_images] );  
		}
	}
	//alert( which_gallery_page[ 1 ] );
}
/*********************************************/
/* Objects and Interiors                     */
/*********************************************/
var object_gallery_array = new Array(13);
var object_array = new Array(
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_solar_etching_Apple_2_537x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_solar_etching_Still_Life_3_537x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_linocut_The_Forge_4_640x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_watercolour_The_Sculpture_at_Russell-Cotes_5_372x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_collage_Red_Divisions_6_800x545.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_monoprint_Still_Life_7_356x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_collage_Choir_at_Durham_8_227x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_acrylic_Yellow_Form_9_503x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_woodcut_Japanese_Still_Life_10_800x511.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_solar_etching_Palace_of_Westminster_11_294x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_acrylic_Colour_Study_12_800x524.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Objects_and_Interiors/art_and_painting_courses_gallery_acrylic_Colour_Study_13_749x500.jpg');
function setObjectGallery(){
	if ( which_gallery_page[ 2 ] ) {
		for (no_of_images = 0; no_of_images < 13; no_of_images++){
			object_gallery_array[no_of_images] = new Image();
			object_gallery_array[no_of_images].src = object_array[no_of_images];
			setTimer( object_gallery_array[no_of_images] );  
		}
	}
	//alert( which_gallery_page[ 2 ] );
}
/*********************************************/
/* Vessels                                   */
/*********************************************/
var vessel_gallery_array = new Array(13);
var vessel_array = new Array(
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_watercolour_Winter_Journey_2_539x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_colagraph_Flight_3_469x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_pastel_Transformation_4_667x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_zinc_etching_Lenton_Vessel_5_620x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_solar_etching_Reflecting_Vessel_6_678x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_charcoal_War_7_660x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_woodcut_Brimming_Vessel_8_690x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_engraving_Boxwood_Vessel_9_727x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_engraving_Glory_to_God_10_706x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_solar_etching_Bird-Flight_11_331x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_monoprint_Paradise-Lost_12_285x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Art_Vessels/art_and_painting_courses_gallery_monoprint_Goldengrove_13_660x500.jpg');
function setVesselGallery(){
	if ( which_gallery_page[ 3 ] ) {
		for (no_of_images = 0; no_of_images < 13; no_of_images++){
			vessel_gallery_array[no_of_images] = new Image();
			vessel_gallery_array[no_of_images].src = vessel_array[no_of_images];
			setTimer( vessel_gallery_array[no_of_images] );  
		}
	}
	//alert( which_gallery_page[ 3 ] );
}
/*********************************************/
/* Artist's  Books                           */
/*********************************************/
var book_gallery_array = new Array(13);
var book_array = new Array(
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_solar_etching_Road_To_damascus_2_667x524.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_solar_etching_Certain_Point_3_667x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_water_colour_Counterpoint_4_530x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_engraving_Vessel-Book_5_537x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_linocut_Beginning_6_497x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_linocut_Ways-Of-Being_7_653x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_solar_etching_Young-River_8_800x383.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_watercolour_Song-For-Simeon_9_555x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_solar_etching_Jumblies_10_890x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_solar_etching_Milton-Creation_11_800x422.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_linocut_Singing-Field_12_342x500.jpg',
'images/poole_painting_studio_art_and_painting_courses_gallery/Artists_Books/art_and_painting_courses_gallery_monoprint_Window_13_756x500.jpg');
function setBookGallery(){
	if ( which_gallery_page[ 4 ] ) {
		for (no_of_images = 0; no_of_images < 13; no_of_images++){
			book_gallery_array[no_of_images] = new Image();
			book_gallery_array[no_of_images].src = book_array[no_of_images];
			setTimer( book_gallery_array[no_of_images] );  
		}
		//alert( which_gallery_page[ 4 ] );
	}
}
function verberg_gallery_large_image() {
		var pop =  document.getElementById("gallery_auftauch");
		pop.style.visibility = "hidden";
		var mainbody =  document.getElementById("gallery_detail");
		mainbody.className = "full";	
}
function offen_gallery_large_image(large_image_no) {
		var pop =  document.getElementById("gallery_auftauch");
		var position = 0;
		//position = 330 + ( course_no * 30 );
		//pop.style.top = position + "px";
		pop.style.visibility = "hidden";
		pop.style.visibility = "visible";
		if ( which_gallery_page[ 0 ] ) document.getElementById('gallery_large_image').src = landscape_gallery_array[ large_image_no ].src;
		if ( which_gallery_page[ 1 ] ) document.getElementById('gallery_large_image').src = figure_gallery_array[ large_image_no ].src;
		if ( which_gallery_page[ 2 ] ) document.getElementById('gallery_large_image').src = object_gallery_array[ large_image_no ].src;
		if ( which_gallery_page[ 3 ] ) document.getElementById('gallery_large_image').src = vessel_gallery_array[ large_image_no ].src;
		if ( which_gallery_page[ 4 ] ) document.getElementById('gallery_large_image').src = book_gallery_array[ large_image_no ].src;
		//document.images[inames[num]].src = flipped[num].src;
		position_large_image();
		var showelement =  document.getElementById("gallery_detail");
		showelement.style.visibility = "visible";
		//document.body.style.cursor = "auto";
		var mainbody =  document.getElementById("gallery_detail");
		mainbody.className = "obscured";	
}		
function gallery_small_image_hover(ref){ 
	document.body.style.cursor = "hand";
	document.body.style.cursor = "pointer";
	ref.className = "kurs_schliess_hover";
}
function gallery_small_image_unhover(ref){ 
	ref.className = "kurs_schliess_unhover";
	document.body.style.cursor = "auto";
}




