// JavaScript Document

function doPopUp(sURL,iWidth, iHeight) { 
	var iLeft = ((screen.width/2)-(iWidth/2)); 
	var iTop = ((screen.height/2)-(iHeight/2)); 
	newWindow = window.open(sURL,'newWindow','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,directories=0,width='+iWidth+',height='+iHeight+',left=' + iLeft +',top=' + iTop); 
	newWindow.focus(); 
}

function getFlashVersion(){ 
  // ie 
  try { 
    try { 
      // avoid fp6 minor version lookup issues 
      // see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/ 
      var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); 
      try { axo.AllowScriptAccess = 'always'; } 
      catch(e) { return '6,0,0'; } 
    } catch(e) {} 
    return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1]; 
  // other browsers 
  } catch(e) { 
    try { 
      if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){ 
        return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]; 
      } 
    } catch(e) {} 
  } 
  return '0,0,0'; 
}

var flashVersion = getFlashVersion().split(',').shift(); 


// Image animation

var tmp = 0;
var tmp1 = 0;
var num = 0;
var img = null;
var timer = null;

function expand(it) {
	tmp = 99;
	tmp1 = 75;
	mult = 1;
	num = 0;
	img = it;
	timer = setTimeout("exp()",100); // 100ms steps
}

function exp() {
	mult += 0.1;
	img.width = tmp * mult; 
	img.height = tmp1 * mult; 
	
	num++
	
	if (num < 10) // steps then stop
	{timer = setTimeout("exp()",100);}
}

function shrink(it) {
	clearTimeout(timer); // stop if active
	it.width = tmp; // go back to original size
	it.height = tmp1; // go back to original size
}