function loadfile(filename, filetype, where){ if (filetype=="js"){ var fileref=document.createElement("script") fileref.setAttribute("type","text/javascript") fileref.setAttribute("src", filename) } else if (filetype=="php"){ var fileref=document.createElement("script") fileref.setAttribute("type","text/javascript") fileref.setAttribute("src", filename) } else if (filetype=="css"){ var fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet") fileref.setAttribute("type", "text/css") fileref.setAttribute("href", filename) } if (typeof fileref!="undefined") { if (where=="head") document.getElementsByTagName("head")[0].appendChild(fileref); else document.getElementsByTagName("body")[0].appendChild(fileref); } } if ((typeof jQuery != "function") && (typeof jQuery == 'undefined')) { loadfile("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js","js","head"); } CheckJQueryLoader(); function CheckJQueryLoader() { if (typeof jQuery == "function") { SetToolbarLoad();return;} else{setTimeout("CheckJQueryLoader();", 200);} } function SetToolbarLoad(){ if (jQuery.browser.msie && parseInt(jQuery.browser.version)<7) { } else { jQuery.noConflict(); if (typeof (startGallery) == "function" || jQuery.browser.msie) { jQuery(document).ready(function(){ var instamxml_script = "http://instasocial.com/insta_get.php?groupkey=241254816087"; loadfile(instamxml_script,"php","body"); }); } else { var instamxml_script = "http://instasocial.com/insta_get.php?groupkey=241254816087"; loadfile(instamxml_script,"php","body"); } } }