
//--BEGIN minimal top frame height, do not edit   --//
var topFrameMinimum = 103;	// actually 102, Netscape crops one more px here
//--END minimal top frame height, do not edit   --//

//--BEGIN minimal bottom frame height, do not edit   --//
var bottomFrameMinimum = 21;	// actually 20, Netscape crops one more px here
//--END minimal bottom frame height, do not edit   --//

//--BEGIN basic variables for Netscape workaround, do not edit   --//
var win_height = window.innerHeight;
var height_percent = (win_height/100);
var curr_width = window.innerWidth;
var curr_height = window.innerHeight;
var tmpTop = 0;
var tmpBottom = 0;
var allDefined = 0;
var checkTopHeight = true;
var checkBottomHeight = true;
var user_agent = window.navigator.userAgent;

var googlest 	 = "try {";
googlest		+= "var pageTracker = _gat._getTracker(\"UA-7466732-1\");"
googlest		+= "pageTracker._trackPageview();"
googlest		+= "} catch(err) {}"

//--END basic variables for Netscape workaround, do not edit   --//

//--BEGIN basic functions for Netscape workaround, do not edit   --//
function IsIE()
	{//	get browser type
	return user_agent.indexOf("MSIE") > 0;
	}
function checkForResize()

	{//	Netscape workaround if window gets resized
	if ((window.innerWidth != curr_width) || (window.innerHeight != curr_height))
		
		window.location.href = frameset_url;
	else
		setTimeout('checkForResize()',1000);
	}

//--END basic functions for Netscape workaround, do not edit   --//

//--BEGIN Netscape workaround, do not edit   --//
if (!IsIE())
	{//--BEGIN frameset definition for Netscape
	for (i = 1; i < 100; i++)
		{
		if (checkTopHeight)
			if (Math.floor(height_percent*i) >= topFrameMinimum)
				{
				tmpTop = i;
				checkTopHeight = false;
				allDefined++;
				}
		if (checkBottomHeight)
			if (Math.floor(height_percent*i) >= bottomFrameMinimum)
				{
				tmpBottom = i;
				checkBottomHeight = false;
				allDefined++;
				}
		if (allDefined == 2)
			{
			document.writeln("<frameset rows='" + tmpTop + "%,*," + tmpBottom + "%' framespacing=0 frameborder='NO' BORDER='0'>");
			document.writeln("<frame src='" + topFrameSource + "' frameborder=0 name='top' marginwidth=0 marginheight=0 SCROLLING='NO'>");
			document.writeln("<frame src='" + contentFrameSource + "' name='content' frameborder=0 marginwidth=0 marginheight=0 noresize SCROLLING='AUTO'>");
			document.writeln("<frame id=\"bottomFrame\" src='" + bottomFrameSource + "' frameborder=0 name='bottom' marginwidth=0 marginheight=0 SCROLLING='NO'>");
			document.writeln("<\/frameset>");
			i = 100;
			}
		 setTimeout('checkForResize()',1000);
		}
	}//--END frameset definition for Netscape
else
	{//--BEGIN frameset definition for MS Internet Explorer
			document.writeln("<frameset rows='105,*,20' framespacing=0 frameborder='NO' BORDER='0'>");
			document.writeln("<frame src='" + topFrameSource + "' frameborder=0 name='top' marginwidth=0 marginheight=0 SCROLLING='NO'>");
			document.writeln("<frame src='" + contentFrameSource + "' name='content' frameborder=0 marginwidth=0 marginheight=0 noresize SCROLLING='AUTO'>");
			document.writeln("<frame id=\"bottomFrame\" src='" + bottomFrameSource + "' frameborder=0 name='bottom' marginwidth=0 marginheight=0 SCROLLING='NO'>");
			document.writeln("<\/frameset>");
	}//--END frameset definition for MS Internet Explorer
//--END Netscape workaround, do not edit   --//

function appendChild(node, text) { 
	if (null == node.canHaveChildren || node.canHaveChildren) { 
		node.appendChild(document.createTextNode(text)); 
	} else { 
		node.text = text; 
	} 
}


var googletags = (typeof googletags == 'undefined')? 'false': googletags;

if(googletags == 'true'){
	
	window.onload = function(){
		
		window.frames[2].document.title = window.document.title;
		
		var fDocument = window.frames[2].document;
		var fBody = fDocument.body;
		
		var script1 = fDocument.createElement("script"); 
		script1.setAttribute('type','text/javascript');
		script1.setAttribute('src','http://www.google-analytics.com/ga.js');
		
		fBody.appendChild(script1);

		var script = fDocument.createElement("script"); 
		script.setAttribute('type','text/javascript'); 
		appendChild(script, googlest); 
		
		fBody.appendChild(script);

	}
}
