var DHTML = (document.getElementById || document.all || document.layers);
var loadslideshow = false;
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}
function resizeimages(pid)
{
  var new_width = 600;
  var imagetoprocess = document.getElementById(pid);
  var old_width = imagetoprocess.width;
  var old_height = imagetoprocess.height;
  imagetoprocess.width = new_width;
  imagetoprocess.height = Math.round(old_width * new_height / old_height);
}
function showhide(pid)
{
 //if (!DHTML) return;
 var imagetoprocess = document.getElementById('img_'+pid);
 var divtoprocess = document.getElementById('div_'+pid);
 if (divtoprocess.style.visibility!='hidden') {
   divtoprocess.style.visibility = 'hidden';
   divtoprocess.style.display = 'none';   
   imagetoprocess.src = 'images/next.gif';
 }else{
   divtoprocess.style.visibility = 'visible';
   divtoprocess.style.display = 'block';      
   imagetoprocess.src = 'images/downs.gif';   
 }  
}

function createPlayer(theFile,placeholder,anid,wide,high,img) {
            if (high > 200) {
				var flashvars = {
                    file:theFile, 
                    autostart:"true", 
                    shuffle:"false", 
					repeat:"list",
                    playlistsize:"0",
                    playlist:"none",
					skin:"modieus.swf"};
				 var params = {
                    allowfullscreen:"true", 
                    allowscriptaccess:"always",
					wmode:"opaque"
            }
            }else{
				
				var flashvars = {
                    file:theFile, 
                    autostart:"true", 
                    shuffle:"false",
					repeat:"list",
                    playlistsize:"0",
                    playlist:"none",
					skin:"modieus.swf",
					plugins:"spectrumvisualizer-1"}
				 var params = {
                    allowfullscreen:"false", 
                    allowscriptaccess:"always",
					wmode:"opaque"
            }
            };
           
            var attributes = {
                    id:anid,  
                    name:anid
            }
            swfobject.embedSWF("player.swf", placeholder, wide,high, "9.0.115", false, flashvars, params, attributes);
}