//Copyright 2006 Adobe Systems, Inc. All rights reserved.
//
//This is the base class for implementing an Active Content extension -- a piece of code that knows how to rewrite OBJECT tags so that they comply to the Eolas patent without making the browser display the "Press OK to continue loading the content of this page" message box.
//
// When the user hovers the mouse over an ActiveX control in Internet Explorer 6 updated with (April 2006) Cumulative Security Update (912812) or Internet Explorer 7, the following message is displayed:
// “Press Spacebar or Enter to activate and use this control.”
// The user can now click the mouse anywhere inside the ActiveX control area, or press the Spacebar or Enter key to activate the control.
// The standard.js file has been introduced to retain the earlier behavior where the control remains interactive from the first click to the last.

function writeDocument(s){document.write(s);}


function getStyleObject(objectId) 
{
    // cross-browser function to get an object's style object given its
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId]; 
    } else {
	return false;
    }
} // getStyleObject

function inform_parent_Im_here()
{

   if (isIphone)
      { return; }  

   getStyleObject("movie_div").display="block";
   getStyleObject("curtain_div").display="none"; 
;
}


function isIphone()
{
   var agent=navigator.userAgent.toLowerCase();
   return (agent.indexOf('iphone')!=-1);
}



function show_discount()
{
   myWindow = window.open("http://abs-consulting.com/_newsletter/clips/ibm_conf_2010_2.shtml?=no_frame", '__abs_discount','resizable=no,scrollbars=auto,status=0,width=655,height=840');            
}

function twitter_ABS()      
{                
   myWindow = window.open("http://twitter.com/absconsulting", '_twitter_ABS', 'resizable=yes,scrollbars=yes,status=0,width=1200,height=800');  
}
