Need help / Creating Methods via prototype property
<p>Please help me to understand below code. This is the script for drag and drop object. I am trying to explore it but struck at one thing. </p>

<p><a href="http://developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/InteractiveVisualEffects/InteractiveVisualEffects.html" rel="nofollow">URL for Reference (Complete Script)</a></p>

<p>I dont understand how this method creation work, like get x(), set x() etc. Is <code>get</code> and <code>Set</code> is predefined object? will it actually set object value or get specific value of object, like we have in date object. </p>

<p>Also there is one space between its declaration <code>set x()</code>, why?</p>

<p>I am new to java script, i really appreciate your help. </p>

<pre><code>// position strings are "x,y" with no units
get x()
{
    return parseInt(this._position.split(',')[0]);
},

set x(inX)
{
    var comps = this._position.split(',');   
    comps[0] = inX;
    this.position = comps.join(',');
},

get y()
{
    return parseInt(this._position.split(',')[1]);
},

set y(inY)
{
    var comps = this._position.split(',');
    comps[1] = inY;
    this.position = comps.join(',');
},
</code></pre>
