// JavaScript Document
// !!!! Be Careful here. If this is a mistake in this file IE 6 png transparency will not work.

//************************************************************
// LOADS THE NECESSARY FUNCTIONS FOR SITE
function addLoadEvent(func)
	{
		var oldonload = window.onload;
		if (typeof window.onload != 'function')
			{
				window.onload = func;
			}
		else
			{
				window.onload = function()
					{
						oldonload();
						func();
					}
			}
	}
	
function confirmSubmit() {
	var sendForm = confirm("Are you sure you want to do this?")
	if(sendForm == true)
		return true;
		return false;
	}
	
// END LOADS THE NECESSARY FUNCTIONS FOR SITE
//************************************************************

//************************************************************
// FOR POPUP WINDOWS - NEW WINDOW
// add 'class="popup"' to any link that you want to open in a new window

function popUp(winURL)
	{
		window.open(winURL, "popup");	
	}
	
function popUp2(winURL)
	{
		window.open(winURL, "popup_video", "width=1000,height=900,scrollbars=yes,resizable=yes");	
	}
	
function openNewWindow() 
	{
		if (!document.getElementsByTagName) return false;
		var lnks = document.getElementsByTagName("a");
		for (var i=1; i<lnks.length; i++) 
			{
				if(lnks[i].className == "popup")
					{
						lnks[i].onclick = function()
							{
								popUp(this.getAttribute("href"));
								return false;
							}
					}
				else if(lnks[i].className == "popup_video")
					{
						lnks[i].onclick = function()
							{
								popUp2(this.getAttribute("href"));
								return false;
							}
					}
				else if(lnks[i].className == "btn_links popup")
					{
						lnks[i].onclick = function()
							{
								popUp2(this.getAttribute("href"));
								return false;
							}
					}
					
					
			}
		
	}
	

WebFontConfig = {
google: { families: [ 'IM Fell DW Pica' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
 
addLoadEvent(openNewWindow);