// JavaScript Document

<!--
// This is only needed for Netscape browsers.
    function flashGetHref() { return location.href; }
    function flashPutHref(href) { location.href = href; }
    function flashGetTitle() { return document.title; }
    function flashPutTitle(title) { document.title = title; }
	
function atollopen(theURL,winName,features) { //v2.0
  tmp_window = window.open(theURL,winName,features);
  tmp_window.focus();
  return tmp_window;
}

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v5.0
  var newURL='', userAgent=navigator.userAgent, version=0;
  if (userAgent.indexOf('Netscape') != -1) {
  	version = parseFloat(userAgent.substring(userAgent.indexOf('Netscape')+9,userAgent.length));
    if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
  } else if (userAgent.indexOf('MSIE') != -1) {
  	version = parseFloat(userAgent.substring(userAgent.indexOf('MSIE')+4,userAgent.length));
    if (version >= IEvers)
     {if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
  if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function fishyWindowOpen(theURL,winName,features) { //v2.0
  popup_window = window.open(theURL,winName,features);
  popup_window.focus();
}

function changeclass( obj_element, newstyle )
{
	//my_element = eval( 'document.all.' + newstyle );
	obj_element.className = newstyle;
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
	
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function theq_DoFSCommand(command, args) {
  var theqObj = InternetExplorer ? theq : document.theq;
  //

  if( command == 'logo' )
  {
	MM_showHideLayers('logo', '', args);
  }
  if( command == 'prwto' )
  {
	  MM_showHideLayers('prwto', '', args);
  }
  if( command == 'inside' )
  {
	  MM_showHideLayers('inside', '', args);
  }
  //MM_showHideLayers(args);
  //
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub theq_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call theq_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
function dd_StatusBarMsg(msgStr) { //v1.0 www.dazdezines.com/mme
  window.status=msgStr;
  document.MM_returnValue = true;
}
function MM_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}

function browser_go_back()
{
	if( document.all )
	{
		history.go(-1);
	}
	else
	{
		history.go(-1);
	}
}
function browser_go_back1()
{
	if( document.all )
	{
		history.go(-1);
	}
	else
	{
		history.go(-1);
	}
}
function changeclass( obj_element, newstyle )
{
	//my_element = eval( 'document.all.' + newstyle );
	obj_element.className = newstyle;
}
function atollopen(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function close_window() {
    window.close();
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function saveas(saveAs){
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
	document.execCommand("SaveAs",false,saveAs);
  }
}
function clickIE() {
if (document.all) {
return false;
}
} 
function clickNS(e) {
if (document.layers||(document.getElementById&&!document.all)) { 
if (e.which==2||e.which==3) {
return false;
}
}
} 
if (document.layers) {
//document.captureEvents(Event.MOUSEDOWN);
//document.onmousedown=clickNS;
} 
else{
//document.onmouseup=clickNS;
//document.oncontextmenu=clickIE;
} 
//document.oncontextmenu=new Function("return false") 

function random_content(){
var mycontent=new Array()
mycontent[1]='<img src="images/newsletter_head.jpg" width="569" height="221">'
mycontent[2]=''
mycontent[3]=''
mycontent[4]=''
mycontent[5]=''

var ry=Math.floor(Math.random()*mycontent.length)
if (ry==0)
ry=1
document.write(mycontent[ry])
}

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

// message to show in non-IE browsers
var txt = "<img src='favorite.gif' border='0'>"

// url you wish to have bookmarked
var url = "http://www.benq.gr";

// caption to appear with bookmark
var who = "-- Benq --"

// do not edit below this line
// ===========================

var ver = navigator.appName
var num = parseInt(navigator.appVersion)

function setHomePage(homepage,la_url_es) {
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5")==-1) );
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5")==-1) && (agt.indexOf("msie 6")==-1));
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );

 if (is_win && is_ie5up) {
		oHomePage.style.behavior='url(#default#homepage)';
		oHomePage.setHomePage(homepage);
	}
}



function displayWindowsMediaPlayer( strDivId,strUrl_my, strWidth_my, strHeight_my, strAutoStart_my, strShowStatusBar_my, strEnableContextMenu_my, strShowControls_my, strEnablePositionControls_my, strClickToPlay_my )
{
	
	
	var strDivContents =	'<center>'+
							'<object id="eventMediaPlayer" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="'+(strHeight_my + 20)+'"  width="'+strWidth_my+'" align="middle" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> ' +
							'<param name="FileName"  value="'+strUrl_my+'" /> ' +
							'<param name="AutoStart" value="'+strAutoStart_my+'" /> ' +
							'<param name="clicktopay" value="'+strClickToPlay_my+'" /> ' +
							'<param name="enableContextMenu" value="'+strEnableContextMenu_my+'" /> ' +
							'<param name="showcontrols" value="'+strShowControls_my+'" /> ' +
							'<param name="EnableTracker" value="'+strEnablePositionControls_my+'" /> ' +
							'<param name="ShowPositionControls" value="'+strEnablePositionControls_my+'" /> ' +
							'<param name="showstatusbar" value="'+strShowStatusBar_my+'" /> ' +
							
							'<embed type="application/x-mplayer2\"' +
							'pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"' +
							'src="'+strUrl_my+'" ' +
							'width="'+strWidth_my+'" ' +  				
							'height="'+(strHeight_my + 20)+'" ' +
							'autostart="'+strAutoStart_my+'" ' +
							'clicktopay="'+strClickToPlay_my+'" ' +
							'enablecontextmenu="'+strEnableContextMenu_my+'" ' +
							'showcontrols="'+strShowControls_my+'" ' +
							'EnableTracker="'+strEnablePositionControls_my+'" ' +
							'ShowPositionControls="'+strEnablePositionControls_my+'" ' +
							'showstatusbar="'+strShowStatusBar_my+'" />' +
							'</object>' + 
							'</center>';
	
	//alert(strDivContents);
	
	var oDiv1 = document.getElementById(strDivId);
	oDiv1.innerHTML = strDivContents;
	
}


//--->