//head tag: <script src="anim/runjava.js" type="text/javascript"></script>

//banner Tag: <script type="text/javascript">RunBanner();</script>

//nav Tag: <script type="text/javascript">RunNav();</script>



function RunBanner()

{

document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');

document.write ('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"\n');

document.write ('id="banner" width="970" height="200">\n');

document.write ('<param name="movie" value="anim/banner.swf" />\n');

document.write ('<param name="quality" value="High" />\n');

document.write ('<param name="wmode" value="transparent" />\n');

document.write ('<param name="allowscriptaccess" value="samedomain" />\n');

document.write ('<embed type="application/x-shockwave-flash"\n');

document.write ('pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"\n');

document.write ('name="banner" width="970" height="200" src="anim/banner.swf"\n');

document.write ('quality="High" wmode="transparent" allowscriptaccess="samedomain">\n');

document.write ('<noembed>\n');

document.write ('</noembed>\n');

document.write ('</embed>\n');

document.write ('</object>\n');

}




function RunBanner_parent()

{

document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');

document.write ('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"\n');

document.write ('id="banner" width="970" height="200">\n');

document.write ('<param name="movie" value="../anim/banner.swf" />\n');

document.write ('<param name="quality" value="High" />\n');

document.write ('<param name="wmode" value="transparent" />\n');

document.write ('<param name="allowscriptaccess" value="samedomain" />\n');

document.write ('<embed type="application/x-shockwave-flash"\n');

document.write ('pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"\n');

document.write ('name="banner" width="970" height="200" src="../anim/banner.swf"\n');

document.write ('quality="High" wmode="transparent" allowscriptaccess="samedomain">\n');

document.write ('<noembed>\n');

document.write ('</noembed>\n');

document.write ('</embed>\n');

document.write ('</object>\n');

}



function bookmark(url,title){

  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {

  window.external.AddFavorite(url,title);

  } else if (navigator.appName == "Netscape") {

	window.sidebar.addPanel(title,url,"");

  } else {

	alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");

  }

}



function EmailLink(){

window.location = "mailto:"+"?subject=Check out Power Tie Marketing!" + "&body="+document.title+"  "+window.location;

}



function goToURL() {

window.location = "http://www.powertiemarketing.com/web_design_pricing.htm";

}



function move_box(an, box) {

  var cleft = 0;

  var ctop = 0;

  var obj = an;

  while (obj.offsetParent) {

	cleft += obj.offsetLeft;

	ctop += obj.offsetTop;

	obj = obj.offsetParent;

  }

  box.style.left = cleft + 'px';

  ctop += an.offsetHeight + 0;

  if (document.body.currentStyle &&

	document.body.currentStyle['marginTop']) {

	ctop += parseInt(

	  document.body.currentStyle['marginTop']);

  }

  box.style.top = ctop + 'px';

}



function show_hide_box(an, width, height, borderStyle) {

  var href = an.href;

  var boxdiv = document.getElementById(href);



  if (boxdiv != null) {

	if (boxdiv.style.display=='none') {

	  move_box(an, boxdiv);

	  boxdiv.style.display='block';

	} else

	  boxdiv.style.display='none';

	return false;

  }



  boxdiv = document.createElement('div');

  boxdiv.setAttribute('id', href);

  boxdiv.style.display = 'block';

  boxdiv.style.position = 'absolute';

  boxdiv.style.width = width + 'px';

  boxdiv.style.height = height + 'px';

  boxdiv.style.border = borderStyle;

  boxdiv.style.backgroundColor = '#fff';



  var contents = document.createElement('iframe');

  contents.scrolling = 'no';

  contents.frameBorder = '0';

  contents.style.width = width + 'px';

  contents.style.height = height + 'px';

  contents.src = href;



  boxdiv.appendChild(contents);

  document.body.appendChild(boxdiv);

  move_box(an, boxdiv);



  return false;

}

