// JavaScript Document/*var tempPath = new String(document.location);if ( tempPath.match(/index/)){  var charAt = tempPath.indexOf("index");}else if ( tempPath.match(/private_gallery/) ){  var charAt = tempPath.indexOf("private_gallery");}else{  var charAt = tempPath.length;}var $self = tempPath.substring(0,charAt);*/function include_script($script, $self){	var script = document.createElement('script');	script.src = $self + "scripts/" + $script;	script.type = 'text/javascript';	var head = document.getElementsByTagName('head').item(0);	head.appendChild(script);}  include_script("mootools.js", $self);include_script("gallery.js", $self);//include_script("protect.js", $self);include_script("jd.gallery.js", $self);