// JavaScript Document
 var str = location.href;
 homealbum = /homealbum.php/;
 printalbum = /printalbum.php/;
 createalbum = /createalbum.php/;
 album = /album_order.php/;
 photo = /photo_order.php/;
 move = /photo_move.php/;
 batch = /uploadbatch.php/;
 bigphoto = /bigphoto/;
 uploadphotonew= /uploadphotonew/;
 webset = /webset/;
 printdate = /printdate/;
 petset = /petset/;
 peticcard = /peticcard/;
 homealbum = str.match(homealbum);
 printalbum = str.match(printalbum);
 createalbum = str.match(createalbum); 
 album = str.match(album);
 photo = str.match(photo);
 move = str.match(move);
 batch = str.match(batch);
 bigphoto = str.match(bigphoto);
 uploadphotonew = str.match(uploadphotonew);
 webset = str.match(webset); 
 printdate = str.match(printdate);
 petset = str.match(petset);
 peticcard = str.match(peticcard);
 friend = str.match(/friendindex/);
 set = str.match(/\/set.php/);
 if(homealbum != null || printalbum != null || createalbum != null || album != null || photo !=null || move !=null || batch != null || bigphoto != null || uploadphotonew != null){
  mm_includejs('album.js');
 }
 if(webset !=null || str.match(/webset-n/)){
  document .write('<link href="css/colorbox.css" rel="stylesheet" type="text/css">');
  mm_jquery('jquery.js');
  mm_jquery('colorbox/jquery.colorbox.js');
  mm_includejs('set/webset.js');
 }
 if(printdate !=null){
  mm_jquery('jquery.js');
  mm_jquery('lightbox/js/jquery.lightbox-0.5.js');
  mm_includejs ('flash-fix.js');
  mm_includejs('calendar/printdate.js');
 }
 if(petset !=null){
  mm_includejs('petset.js');
 }
 if(peticcard !=null){
  document .write('<link href="petid.css" rel="stylesheet" type="text/css">');
 }
 if(friend  !=null){
  mm_includejs('blog.js');
 }
 if(set !=null){
  mm_jquery('jquery.js');
 }
 if(str.match(/calendar_add/) !=null || str.match(/calendar_mod/) !=null){
  mm_jquery('jquery.js');
  mm_jquery('ui/ui.js');
  mm_jquery('ui/ui.datepicker.js');
  document.write('<link rel="stylesheet" href="script/ui/ui.datepicker.css" type="text/css" media="screen" title="core css file" charset="utf-8" />');
  mm_mce('tiny_mce.js')
  mm_includejs('calendar/add.js');
  mm_includejs('tinymce.js');
 }
 if(str.match(/message/)!=null){
  mm_includejs('message.js');			
 }
