function setFlashHeight(sizeY) {
	if (!featureHeight > 0){
		document.getElementById('feature').style.height = 100 +'px';	
	}
	var featureHeight = document.getElementById('feature').style.height;
	if(document.all && !document.getElementById){
		document.all['feature'].style.pixelHeight = parseFloat(sizeY)+'px';
	} else {
		document.getElementById('feature').style.height = parseFloat(sizeY)+'px';		
	}
	window.scrollTo(0,0);
}
function thisMovie(movieName) {
	 if (navigator.appName.indexOf("Microsoft") != -1) {
		 return window[movieName];
	 } else {
		 return document[movieName];
	 }
}
var timerId = 0;

function checkForFeature(){	
	if (typeof thisMovie("feature_swf").setSWFAddressValue == "function"){
		clearInterval ( timerId );
		triggerEvents();
	}	
}

function triggerEvents(){	
	thisMovie("feature_swf").setSWFAddressValue(SWFAddress.getValue());	
}
var Zooom = {};	

Zooom.urlChange = function(){	
	if (typeof thisMovie("feature_swf").setSWFAddressValue == "function"){
		triggerEvents();
	} else {
		//alert("feature noch nicht da")
		timerId = setInterval ("checkForFeature()",400);
	}
}

SWFAddress.addEventListener(SWFAddressEvent.CHANGE,Zooom.urlChange);

/* Edited 09/23/2009 */
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"));
var pageTracker;
var _gat = -1;
function initTracker(){
	if (_gat != -1){
		clearInterval ( googleTimerId );		
		try {	
			//for live tracking
			//pageTracker = _gat._getTracker("UA-10660688-1");
			pageTracker = _gat._getTracker("UA-10790694-1");			
		} catch(err) {
			//alert("initTracker err: "+err);	
		}
	}	
}


function loadScript(scriptname) {  
	   var snode = document.createElement('script');  
	   snode.setAttribute('type','text/javascript');  
	   snode.setAttribute('src',scriptname);  
	   document.getElementsByTagName('head')[0].appendChild(snode);
	   googleTimerId = setInterval ("initTracker()",100);
}
var url = gaJsHost + "google-analytics.com/ga.js";
loadScript(url);

/* End edit */
//SWFAddress.addEventListener(SWFAddressEvent.INIT,Zooom.urlChange);

//var SWFAddressZooom;

//function copySWFAddress(){
	
	//if (window.SWFAddress){
	
//	SWFAddressZooom = SWFAddress;
//	SWFAddressZooom.forWolfgang = function(){
//		alert('this is a test');	
//	}
		//window.SWFAddressZooom = window.SWFAddress;
		/*var Zooom = {};	
		Zooom.alertChange = function(){
			alert("getValue(): "+SWFAddressZooom.getValue());			
		}
		SWFAddressZooom.addEventListener(SWFAddressEvent.CHANGE,Zooom.alertChange)
		*/
	//}
	
//}
//copySWFAddress();
/*
function loadScript(scriptname) {  
	   var snode = document.createElement('script');  
	   snode.setAttribute('type','text/javascript');  
	   snode.setAttribute('src',scriptname);  
	   document.getElementsByTagName('head')[0].appendChild(snode);
	   info();
	}

var timerId = 0;
function checkForZooom(){
	//alert("checkForZooom window.SWFAddressZooom:"+window.SWFAddressZooom)
	if (window.SWFAddressZooom){
		clearInterval ( timerId );
		alert("timerId was cleared window.SWFAddressZooom: "+window.SWFAddressZooom);
	}
	else {
		//alert('SWFAddressZooom still not present');		
	}
}
function info(){
	var Zooom = {};
	Zooom.alertChange = function(){
		//alert("getBaseURL(): "+SWFAddressZooom.getBaseURL());
	}
	alert('info');
	//SWFAddressZooom.addEventListener(SWFAddressEventZooom.CHANGE,Zooom.alertChange)
	if (window.SWFAddressZooom){
		//alert('SWFAddress present :'+SWFAddress+" Nike6: "+Nike6 +' window.Nike6: '+window.Nike6+" this.Nike6: "+this.Nike6);
		//SWFAddressZooom.addEventListener(SWFAddressEventZooom.CHANGE,Zooom.alertChange)
		//SWFAddress.removeEventListener(SWFAddressEvent.CHANGE, Nike6.hasChange,false);
	}
	else {
		alert('SWFAddressZooom not present!');
		timerId = setInterval ("checkForZooom()",2000);
	}
}
*/
//loadScript('http://ecn1-www.nike.com/nke6/apparel/global/js/test.js');
//loadScript('http://ecn1-www.nike.com/nke6/apparel/global/js/swfaddressZooom.js');
