/* © InitiativeWeb */

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-707794-17']); // Set correct UA
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();

/* Allow cut/copy
function context()  {alert('© Initiativeweb'); return(false); }
document.oncontextmenu = context;
/* */

function swf(theSWF, features, divId, bgColor) {
	if (theSWF ==  null)  theSWF = "main.swf"; 
	if (features ==  null)  features = "width='100%' height='100%' align='middle' "; 
	if (divId ==  null)  divId = "mainDiv"; 
	if (bgColor == null) bgColor = "#111111";
	var swfContent = "";
	swfContent = swfContent +'<object type="application/x-shockwave-flash" data='+theSWF+' '+features+'>';
	swfContent = swfContent +'<param name="movie" value='+theSWF+' /><param name="bgcolor" value='+bgColor+' />';
	swfContent = swfContent +'<a href="http://www.adobe.com/go/getflash/"><img src="img/noflash.jpg" alt="Get Flashplayer" /></a>';
	swfContent = swfContent +'<embed src='+theSWF+' '+features+' name='+divId+' wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflash/"></embed>';
	swfContent = swfContent +'</object>';
	if(!divId || document.getElementById(divId) == null) document.writeln(swfContent);
	if (divId) {var container = document.getElementById(divId);	container.innerHTML = swfContent;	}
}

function loading() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=loading.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }

function pop_up(theURL,winName,features) {window.open(theURL,winName,features);}

function printIt(){ 
	var ifMac=(navigator.platform.indexOf("ac") != -1);
	if (document.all && ifMac) {alert("We are sorry but this function is not available for MSIE Mac users.\nYou have to Select \"Print\" from the file menu or use [apple] + \"P\"") }
	else {if(window.print) window.print(); }
}

