function addEventLis(obj, evType, fn){
    if (obj.addEventListener)
		obj.addEventListener(evType, fn, true);
	if (obj.attachEvent)
		obj.attachEvent("on"+evType, fn);
}

// remove the registerOverlay call to disable the close button
hs.registerOverlay({
	overlayId: 'closebutton',
	position: 'top right',
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});

hs.graphicsDir = 'highslide/graphics/';

addEventLis( window, 'load', function(){

	if(document.getElementById("motorola") != null){
		var so = new SWFObject("images/motorola.swf", "movie", "515", "200", "7", "#FFFFFF");		      
		so.addParam("wmode", "transparent");									  
		so.write("motorola");
	}
	
	var so = new SWFObject("images/apre.swf", "movie", "605", "267", "7", "#FFFFFF");		      
	so.addParam("wmode", "transparent");
	
	if(location.href.indexOf("index") > -1) {
		so.write("apre");	
	} else {
		if(location.href.indexOf(".php") == -1) {
			so.write("apre");	
		}
	}			
});