function addEvent(obj, evType, fn, useCapture){
		  if (obj.addEventListener){
			obj.addEventListener(evType, fn, useCapture);
			return true;
		  } else if (obj.attachEvent){
			var r = obj.attachEvent("on"+evType, fn);
			return r;
		  } else {
			alert("Handler could not be attached");
		  }
	} 
addEvent(window, 'load', createHREF);


function createHREF(){
<!--
 var viewportwidth;
 var viewportheight;
 var integratedLink = document.getElementById('integratedLink');

 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }

	
 if( viewportwidth > 800 && viewportheight > 550){
 //integratedLink.className = 'thickbox'
 integratedLink.href = 'http://www.advmediaproductions.com/adv-integrated-marketing-graphic/integrated4.html?KeepThis=true&TB_iframe=true&height= ' + (viewportheight - 100 ) + '&width=' + (viewportwidth -100 ) + '&border=0';
 } else{
 integratedLink.href = 'http://www.advmediaproductions.com/adv-integrated-marketing-graphic/integrated4.html?KeepThis=true&TB_iframe=true&height= ' + (viewportheight - 100 ) + '&width=' + (viewportwidth -100 ) + '&border=0';
 //alert(integratedLink.className);
 //integratedLink.href = 'http://ampblogsite/adv-integrated-marketing-graphic/integrated4.html';
 }
 
 
 
 }
//-->