﻿function staticLoadScript(url) {
  document.write('<script src="', url, '" type="text/javascript"><\/script>');
}
function staticLoadLink(url) {
  document.write('<link href="', url, '" type="text/css" rel="Stylesheet"><\/link>');
}
staticLoadScript("http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js");
staticLoadScript("http://www.newsstand.co.uk/Scripts/fancybox/jquery.fancybox-1.3.0.pack.js");
staticLoadScript("http://www.newsstand.co.uk/Scripts/magazinecovers.ashx");
staticLoadLink("http://www.newsstand.co.uk/Scripts/fancybox/jquery.fancybox-1.3.0.external.css");

document.write('<!--[if IE 8]>	<style>	#nsMagCover table { margin-top:-12px; } </style> <![endif]-->');

/*
function registerScripts() {
  var item = document.createElement('script');
  item.setAttribute('src', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js');
  item.setAttribute('type', 'text/javascript');
  document.getElementsByTagName('head')[0].appendChild(item);
  var item2 = document.createElement('script');
  item2.setAttribute('src', 'http://www.newsstand.co.uk/Scripts/fancybox/jquery.fancybox-1.3.0.pack.js');
  item2.setAttribute('type', 'text/javascript');
  document.getElementsByTagName('head')[0].appendChild(item2);
  var item3 = document.createElement('link');
  item3.setAttribute('href', 'http://localhost:53769/Newsstand%20Magazines/Scripts/fancybox/jquery.fancybox-1.3.0.css');
  item3.setAttribute('type', 'text/css');
  item3.setAttribute('rel', 'Stylesheet');
  document.getElementsByTagName('head')[0].appendChild(item3);


  //document.getElementsByTagName("head")[0].appendChild(e);
}

registerScripts();*/
