// JavaScript Document
var opera=false;
var gecko=false;
var ie=false;
var safari=false;
var browser=navigator.userAgent.toLowerCase();
var ver=parseFloat(navigator.appVersion);
if(browser.indexOf('msie')!=-1)
{
  ie=true;
  if(browser.indexOf('msie 5.5')!=-1)ver=5.5;
  else if(browser.indexOf('msie 5')!=-1)ver=5;
}
if(browser.indexOf('opera')!=-1)opera=true;
if(browser.indexOf('gecko')!=-1)gecko=true;
if(browser.indexOf('safari')!=-1)safari=true;

function png(element)
{if(ie){
var src,method='scale';
var classname=element.className;
if(classname.match('png'))
{
  src=element.getAttribute('src');
  element.setAttribute('src','img/spacer.gif');
}
else if(classname.match('scale')||classname.match('crop'))
{
  src=element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i)[1];
  element.style.backgroundImage='none';
  if(classname.match('crop'))method='crop';
}
element.style.filter="progid:dximagetransform.microsoft.alphaimageloader(src='"+src+"',sizingmethod="+method+")";
}}

function show(id){ 
	if (document.getElementById(id).style.display=='none'){
		document.getElementById(id).style.display='block';
	}else{
		document.getElementById(id).style.display='none';
	} 
	//alert(document.getElementById(id).style.display);
} 

function openWindow(winName,winURL,winFullScreen,winChannelMode,winToolBar,winLocation,winDirectories,winStatus,winMenubar,winScrollbars,winResizable,winWidth,winHeight,winTop,winLeft)
	{
	    var winFeatures  = "fullscreen=" + winFullScreen + "," + "channelmode=" + winChannelMode + "," + "toolbar=" + winToolBar + "," + "location=" + winLocation + "," + "directories=" + winDirectories + "," + "status=" + winStatus + "," + "menubar=" + winMenubar + "," + "scrollbars=" + winScrollbars + "," + "resizable=" + winResizable + "," + "width=" + winWidth + "," + "height=" + winHeight + "," + "top=" + winTop + "," + "left=" + winLeft + ",";
	    var winName = window.open(winURL,winName,winFeatures); 
		winName.focus();
	}

function showimage(val) 
{ 
	openWindow("popup","assets/images/conference/" + val +".jpg",0,0,0,0,0,0,0,0,0,620,420,50,50);
	
}

function init() {
   var arrAnchors = document.getElementsByTagName("a");
   for (var i = 0; i < arrAnchors.length; i++) {
      if (arrAnchors[i].getAttribute("rel") == "external") {
         arrAnchors[i].setAttribute("target", "_blank");
      }
   }
}
window.onload = init;