document.write('<style type="text/css">.tooglebox {display:block !important;} .hidden {height: 1px; overflow: hidden; visibility:hidden;}</style>');

zoomlayer = false;
function zoom(id) {
 obj = document.getElementById(id);
 getPosition(obj.firstChild);
 var size = obj.className.match(/zoom w([0-9]+)h([0-9]+)/);
 var w = Number(size[1]) + 20;
 var h = Number(size[2]) + 20;

 if (! zoomlayer) {
  zoomlayer = document.createElement('div');
  zoomlayer.className='zoomlayer';
  zoomlayer.onclick=function(){zoomlayer.style.display='none';}
  document.body.appendChild(zoomlayer);
 }
 var left = Math.floor(absoluteLeft + obj.firstChild.offsetWidth/2 - w / 2);
 if (left < 0) left = 0;
 zoomlayer.style.left =  left +'px';
 zoomlayer.style.top  = Math.floor(absoluteTop + obj.firstChild.offsetHeight/2 - h / 2)  +'px';

 zoomlayer.innerHTML = '<img src="'+obj.href+'" width="'+size[1]+'" height="'+size[2]+'" alt="'+obj.lastChild.innerHTML+'" title="'+obj.lastChild.innerHTML+'" />';
 zoomlayer.style.display='block';

 return false;
}

function toggle(id) {
 obj = document.getElementById(id);
 if (obj.className=='more') {
  obj.className='less';
  obj.parentNode.nextSibling.className='visible';
  /*self.scrollBy(0, 50);*/
 } else {
   obj.className='more';
   obj.parentNode.nextSibling.className='hidden';
   /*self.scrollBy(0, -50);*/
 }
 return false;
}

function initRomina() {
 var obj=false, i=0;
 while (obj = document.getElementsByTagName('a')[i++]) {
  if (obj.className=='more') {
   obj.id='toggle'+i;
   eval("obj.onclick = function(){return toggle('"+obj.id+"')}");
  } else if (obj.className.indexOf('zoom')!=-1) {
   obj.id='zoom'+i;
   eval("obj.onclick = function(){return zoom('"+obj.id+"')}");
   x = new Image();
   x.src = obj.firstChild.href;
  }
 }

 initFlash();
 document.write('<style type="text/css">.flashobject{display:block !important;}</style>');

 if(typeof sIFR == "function"){
  sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"/rominaheadline.swf", sColor:"#344758", sLinkColor:"#000000", sBgColor:"#e4ecf9", sHoverColor:"#CCCCCC", sWmode:'transparent', nPaddingTop:0, nPaddingBottom:0, sFlashVars:"offsetTop=0"}));
 };
}

window.onload = function () {
 if (navigator.appVersion.toLowerCase().indexOf("safari") != -1) initFlash();
}


absoluteTop=0; absoluteLeft=0;
function getPosition(obj) {
 absoluteTop = obj.offsetTop;
 absoluteLeft = obj.offsetLeft;
 while(obj.offsetParent!=null) {
  objParent = obj.offsetParent;
  absoluteTop += objParent.offsetTop;
  absoluteLeft += objParent.offsetLeft;
  obj = objParent;
 }
}


tobj = tlast = false;
tindex = 0;
tcount = 0;
ttime = 0;
function startTicker() {
 tobj = document.getElementById('ticker');
 var i=1;
 tcount = tobj.getElementsByTagName('div').length;
 while (i < tcount) {
  tobj.getElementsByTagName('div')[i].style.display='none';
  i++;
 }
 
 if (tcount<2) return;
 tlast = tobj.getElementsByTagName('div')[0];

 setInterval(function(){
  if (++ttime > 50) {
   ttime =0;
   tlast.style.display='none';
   if (++tindex >= tcount) tindex =0;
 
   tlast = tobj.getElementsByTagName('div')[tindex];
   tlast.style.filter = 'alpha(opacity=100)';
   tlast.style.opacity = 1;
   tlast.style.display='block';
  } else if (ttime > 40) {

   tlast.style.filter = 'alpha(opacity='+Math.floor(100 - ((ttime - 40)*9))+')';
   tlast.style.opacity = (100 - ((ttime - 40)*9)) / 100;
  }
 
 },100);
}



document.write('<style type="text/css">.flashobject{display:none;}</style>');

flashVersion = 0;
function initFlash() {
 if (navigator.plugins != null && navigator.plugins.length > 0) {
  var flashPlugin = navigator.plugins['Shockwave Flash'];
  if (typeof flashPlugin == 'object') {for (var i = 9; i >= 4; i--) {if (flashPlugin.description.indexOf(i + '.') != -1) { flashVersion = i; break; }}}
 } else if (navigator.userAgent.toLowerCase().indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4) {
  document.write('<scr' + 'ipt language="VBScript"\>\nOn Error Resume Next\nDim i \nDim obFlash \nFor i = ' + 9 + ' To 4 Step -1 \nSet obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \nIf IsObject(obFlash) Then \nflashVersion = i \nExit For \nEnd If \nNext \n</scr' + 'ipt\> \n');
 }

 if (flashVersion < 5) return;

 var i=0;
 while (objdiv = document.getElementsByTagName("div")[i++]) {
  if (objdiv.className.indexOf("flashobject")==-1) continue;
  objdiv.innerHTML = getFlashHTML(objdiv.innerHTML.match(/ src=["']?([^"' >]+)/i)[1].replace(/(\.jpg)|(\.gif)|(\.png)/,'.swf'),objdiv.innerHTML.match(/ width=["']?([^"' >]+)/i)[1],objdiv.innerHTML.match(/ height=["']?([^"' >]+)/i)[1]);
 }
}

function getFlashHTML(fname, width, height) {
 return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\""+width+"\" height=\""+height+"\"><param name=\"movie\" value=\""+fname+"\" /><param name=\"menu\" value=\"false\" /><param name=\"quality\" value=\"high\" /><param name=\"scale\" value=\"noscale\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\""+fname+"\" menu=\"false\" quality=\"high\" scale=\"noscale\" wmode=\"transparent\" bgcolor=\"#ffffff\" width=\""+width+"\" height=\""+height+"\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object>";
}


currentspot=false;
function playspot(flash, link, spot) {
 if (currentspot) {
  currentspot.innerHTML = '&nbsp;';
 }
 currentspot = link.parentNode.nextSibling.nextSibling;
 currentspot.innerHTML = getFlashHTML(flash+'?file='+spot, 100, 16);
 return false;
}


function picshowpic(link) {
 document.getElementById('picoverlaybg').style.display='block';
 document.getElementById('picoverlay').style.top = Math.ceil(getSTop() + (getSHeight() / 2) -340) + 'px';
 document.getElementById('picoverlay').style.display='block';
 document.getElementById('picoverlay').innerHTML='<table cellpadding="0" cellspacing="0" border="0" style="width:100%;height:480px;"><tr><td style="width:100%;height:480px;text-align:center;vertical-align:middle;"><img src="'+link.href+'" style="display:inline;border:10px #e8e8e8 solid;" alt="" /></td></tr></table>';
 link.blur();
 return false;
}
document.onmousedown = function() {
 if (document.getElementById('overlaybg')) document.getElementById('overlaybg').style.display='none';
 if (document.getElementById('overlay')) document.getElementById('overlay').style.display='none';
 if (document.getElementById('picoverlaybg')) document.getElementById('picoverlaybg').style.display='none';
 if (document.getElementById('picoverlay')) document.getElementById('picoverlay').style.display='none';
};

function getSTop() {
 if (document.documentElement && document.documentElement.scrollTop)
   return  document.documentElement.scrollTop;
 else if (document.body)
   return  document.body.scrollTop;
 else
   return document.scrollTop;
}

function getSHeight() {
 if (document.documentElement && document.documentElement.clientHeight)
   return  document.documentElement.clientHeight;
 else if (document.body)
   return  document.body.clientHeight;
 else
   return document.clientHeight;
}