/*if (is_nav6up){ 
	//alert("win nn6");
   document.write("<link rel=\"STYLESHEET\" href=\"http://library.vcc.ca/styles/vcclib.css\" type=\"text/css\">");
}
else if (is_nav4up){
	//alert("win nn4");
   document.write("<link rel=\"STYLESHEET\" href=\"http://library.vcc.ca/styles/vcclib.css\" type=\"text/css\">");
}
else if (is_ie5up){
	//alert("win ie5+");
   document.write("<link rel=\"STYLESHEET\" href=\"http://library.vcc.ca/styles/vcclib.css\" type=\"text/css\">");
}
else {
	document.write("<link rel=\"STYLESHEET\" href=\"http://library.vcc.ca/styles/vcclib.css\" type=\"text/css\">");
}
*/
//This script is used for the Printable Version Icon.

var gAutoPrint = true; // Flag for whether or not to automatically call the print function


function print(iLanguage, divName)
{	
	var iLanguage;
	if(! divName){divName = 'printReady';} //default css id for printable section of page
	
	if (document.getElementById != null)
	{
		
		var html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n<HTML lang="eng">\n<HEAD>\n';

		html += '<link rel=\'STYLESHEET\' href=\'../styles/vcclib.css\' type=\'text/css\'>';
		html += '\n</HE' + 'AD>\n<BODY>\n<div align="center"><img src=\'../images/LibraryLogo.gif\' border=\'0\'></div><br><br>';
				
		var printReadyElem = document.getElementById(divName);
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			if(iLanguage == 1){
				alert("The printable version of this page is not yet available. For best results, set the left and right Page Setup margins to .25 inches or select landscape orientation in your printer's print layout or configuration menu/option.");
				return;}
			else{
				alert("La version imprimable de cette page n'est pas encore disponible. Pour obtenir de meilleurs résultats, réglez les marges de gauche et de droite à 0,25 po. ou choisissez le format horizontal dans le menu d'impression (Print > Layout > Landscape).");
				return;}
		}
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","print", "width=800,height=600,resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		if(iLanguage == 1){
				alert("The printable version feature on this Web site is only available in modern browsers - IE 4.0+, NS 6.0+, Mac/Win.");
				return;}
			else{
				alert("La version imprimable de ce site Web est disponible uniquement dans les navigateurs modernes - IE 4.0+, NS 6.0+, Mac/Win.");
				return;}
	}
	
	
}
