﻿function player(url,w,h){
	return "<object width="+w+" height="+h+" title='mediaplay'><embed src='"+url+"' width="+w+" height="+h+"></embed></object>"
}
function externallinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
 var anchor = anchors[i]; 
 if (anchor.getAttribute("href") && 
 anchor.getAttribute("rel") == "external") 
 anchor.target = "_blank"; 
 } 
}

function createPlayer(w,h,url) {

    url = "http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=/file/" + url + ".mp3";

    document.write("<object codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=" + h + " width=" + w + " classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>" +

    "<param name=\"movie\" value=\"" + url + "\" />" +
    "<embed src=" + url + " type=application\/x-shockwave-flash wmode=transparent width=" + w + " height=" + h + "></embed></object>");


}


function fin()
{
    externallinks();
	
	//----------
	
	
	
	$("#inner td").each
	(
		function()
		{
			this.onmousemove = function()
			{
				$(this).css("background-color","#AFC9BD");
				$("a",this).css("color","#000000");
			}			
			this.onmouseout = function()
			{
				$(this).css("background-color","#000000");
				$("a",this).css("color","#ffffff");
			}
		}
	);


	
	//----------
	
    if(WebApps.Location == "http://www.kvspas.com/")
    {
      var hide = $(".hide");
      $(hide).each(function(){
      $(this).remove();
      }); 
    }
    else
    {
      var hide = $(".permanent_link");
      $(hide).each(function(){
      $(this).remove();
      }); 
    }

    snowFlowers();
}
running.additem(fin);