// JavaScript Document

function openPopUpWindow() {
  popupWin = window.open('./contact_us_form.php','mywindow','width=500,height=360');
  }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



function popUp2(url) 
{
 var width  = 900;
 var height = 700;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 	 params += ', top='+top+', left='+left;
  	 params += ', directories=no';
  	 params += ', location=no';
  	 params += ', menubar=no';
 	 params += ', resizable=yes';
 	 params += ', scrollbars=yes';
  	 params += ', status=no';
  	 params += ', toolbar=no';
  	 newwin=window.open(url,'windowname', params);
 if (window.focus) {newwin.focus()}
 return false
}



function popUp3(url) 
{
 var width  = 550;
 var height = 600;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 	 params += ', top='+top+', left='+left;
  	 params += ', directories=no';
  	 params += ', location=no';
  	 params += ', menubar=no';
 	 params += ', resizable=yes';
 	 params += ', scrollbars=yes';
  	 params += ', status=no';
  	 params += ', toolbar=no';
  	 newwin=window.open(url,'windowname', params);
 if (window.focus) {newwin.focus()}
 return false
}




function popUp4(url) 
{
 var width  = 700;
 var height = 740;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 	 params += ', top='+top+', left='+left;
  	 params += ', directories=no';
  	 params += ', location=no';
  	 params += ', menubar=no';
 	 params += ', resizable=yes';
 	 params += ', scrollbars=yes';
  	 params += ', status=no';
  	 params += ', toolbar=no';
  	 newwin=window.open(url,'windowname', params);
 if (window.focus) {newwin.focus()}
 return false
}


function popUp5(url) 
{
 var width  = 900;
 var height = 900;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 	 params += ', top='+top+', left='+left;
  	 params += ', directories=no';
  	 params += ', location=no';
  	 params += ', menubar=no';
 	 params += ', resizable=yes';
 	 params += ', scrollbars=yes';
  	 params += ', status=no';
  	 params += ', toolbar=no';
  	 newwin=window.open(url,'windowname', params);
 if (window.focus) {newwin.focus()}
 return false
}

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


try {
var pageTracker = _gat._getTracker("UA-16101485-1");
pageTracker._trackPageview();
} catch(err) {}



    if (document.images) {
	t1on = new Image;	t1on.src = "http://www.essays-james-joyce.com/images/on1.jpg";
	t2on = new Image;	t2on.src = "http://www.essays-james-joyce.com/images/on2.jpg";
	t3on = new Image;	t3on.src = "http://www.essays-james-joyce.com/images/on3.jpg";
	t4on = new Image;	t4on.src = "http://www.essays-james-joyce.com/images/on4.jpg";
	t5on = new Image;	t5on.src = "http://www.essays-james-joyce.com/images/on5.jpg";
	t6on = new Image;	t6on.src = "http://www.essays-james-joyce.com/images/on6.jpg";
	t7on = new Image;	t7on.src = "http://www.essays-james-joyce.com/images/on7.jpg";

	t1off = new Image;	t1off.src = "http://www.essays-james-joyce.com/images/off1.jpg";
	t2off = new Image;	t2off.src = "http://www.essays-james-joyce.com/images/off2.jpg";
	t3off = new Image;	t3off.src = "http://www.essays-james-joyce.com/images/off3.jpg";
	t4off = new Image;	t4off.src = "http://www.essays-james-joyce.com/images/off4.jpg";
	t5off = new Image;	t5off.src = "http://www.essays-james-joyce.com/images/off5.jpg";
	t6off = new Image;	t6off.src = "http://www.essays-james-joyce.com/images/off6.jpg";
	t7off = new Image;	t7off.src = "http://www.essays-james-joyce.com/images/off7.jpg";

    }



    function active(imgName) {
	if (document.images) {
	imgOn = eval(imgName + "on.src");
	document [imgName].src = imgOn; }
    }

    function passive(imgName) {
	if (document.images) {
	imgOff = eval(imgName + "off.src");
	document [imgName].src = imgOff; }
    }


function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}
function showArticle(page) {
        var newsPage;
        newsPage = window.open(page,"login","location=no,menubar=no,toolbar=no,status=no,resizable=yes,width=750,height=650,scrollbars=no");
        newsPage.focus();
}

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17071662-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

