// This function send the user to the country site selected in the selectCountry dropdown

function go_to_selected_page()
{
		var nextPage = document.getElementsByName("selectCountry");
		if(nextPage[0].value != ""){
			javascript:document.location=(nextPage[0].value);
		}
		else{
			alert("Please select a country. Thank you.");
		}
}


function gallery_display(selected_image_num, no_of_images){
	var current_image;
	var current_description;
	var requested_image = document.getElementById("large_" + selected_image_num);
	var requested_description = document.getElementById("casestudy_" + selected_image_num);
	for(var i = 0; i < no_of_images; i++){
					current_image = document.getElementById("large_" + i);
					current_description = document.getElementById("casestudy_" + i);
					current_image.style.display = "none";
					current_description.style.display = "none";
			}
	requested_image.style.display = "inline";
	requested_description.style.display = "inline";

}

function screenshot_creator(application_num, screenshot_num){
	var page_content = 
	'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n' +
	'"http://www.w3.org/TR/html4/loose.dtd">\n' +
	'<html>\n' +
	'<head>\n' +
	'<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n' +
	'<title>Symbiosys Case Study - Screenshot</title>\n' +
	'</head>\n' +
	'<body>\n' +
	'<table width="465">\n' +
	'<tr>\n' +
	'	<td>\n' +
	'	<img src="http://www2.dupont.com/assets/images/spacer.gif" height = "1" width="10">\n' +
	'	</td>\n' +
	'	<td>\n' +
	'	<img src="http://www.symbionet.net/assets/images/recent_work/screenshot_'+ application_num +'_'+ screenshot_num +'.gif" height="450" width="450" style="border-width:thin; border-color:#666666; border-style:solid;">\n' +
	'	</td>\n' +
	'</tr>\n' +
	'<tr>\n' +
	'	<td colspan="2" align="right">\n' +
	'	<a href="javascript:window.close()"><img src="http://www.symbionet.net/assets/images/close_window.gif" height="36" width="103" border="0"></a>\n' +
	'	</td>\n' +
	'</tr>\n' +
	'</table>\n' +
	'</body>\n' +
	'</html>\n';
	var NewWindow;
	var winHeight = 520;
	var winWidth = 500;
	var winTop = (screen.height / 2) - 500;
	var winLeft = (screen.width / 2) - 350;
	var windowFeatures = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=" + winWidth + ",height=" + winHeight + ",alwaysRaised=yes,left=" + winLeft + ",top=" + winTop;
	newWindow = window.open('','',windowFeatures);
	newWindow.document.write(page_content);
    newWindow.document.close();
}

