// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
// 
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


function RandomPic(WSO_param)
{
var a=Math.round(Math.random()*29);
switch (WSO_param)
	{
	case "w":
	var WSO_folder = "wedding";
	break
	case "s":
	var WSO_folder = "studio";
	break
	case "o":
	var WSO_folder = "outdoor";
	break
	car
	}
 
image = new Array();
image[0] = "001_s.jpg"
image[1] = "002_s.jpg"
image[2] = "003_s.jpg"
image[3] = "004_s.jpg"
image[4] = "005_s.jpg"
image[5] = "006_s.jpg"
image[6] = "007_s.jpg"
image[7] = "008_s.jpg"
image[8] = "009_s.jpg"
image[9] = "010_s.jpg"
image[10] = "011_s.jpg"
image[11] = "012_s.jpg"
image[12] = "013_s.jpg"
image[13] = "014_s.jpg"
image[14] = "015_s.jpg"
image[15] = "016_s.jpg"
image[16] = "017_s.jpg"
image[17] = "018_s.jpg"
image[18] = "019_s.jpg"
image[19] = "020_s.jpg"
image[20] = "021_s.jpg"
image[21] = "022_s.jpg"
image[22] = "023_s.jpg"
image[23] = "024_s.jpg"
image[24] = "025_s.jpg"
image[25] = "026_s.jpg"
image[26] = "027_s.jpg"
image[27] = "028_s.jpg"
image[28] = "029_s.jpg"
image[29] = "030_s.jpg"

document.writeln("<img src='images/" + WSO_folder + "/" + image[a] + "' border='0' alt=''>");
}


