
function SAMA_CreateredbubbleMarkerA (width, height)
{
	var size	= "<object width='" + width + "' height='" + height + "'>";
	var paramA	= "<param name='movie' value='http://www.redbubble.com/swf/redbubble.swf'></param>";
	var paramB	= "<param name='allowFullScreen' value='true'></param>";
	var paramC	= "<PARAM NAME=FlashVars VALUE='url=http://www.redbubble.com/people/samavan/works/visual.atom?campaign=sales_widget&mode=slideshow'>";
	var embed	= "<embed src='http://www.redbubble.com/swf/redbubble.swf' FlashVars='url=http://www.redbubble.com/people/samavan/works/visual.atom?campaign=sales_widget&mode=slideshow' type='application/x-shockwave-flash' allowfullscreen='true' width='" + width + "' height='" + height + "'></embed>";
	var end		= "</object>";
	
	return (size + paramA + paramB + paramC + embed + end);
}




function SAMA_CreateYouTubeMarker (url, width, height)
{
	var obj 	= "<object width='" + width + "' height='" + height + "'>";
	var par1	= "<param name='movie' value='" + url + "'></param>";
	var par2 	= "<param name='allowFullScreen' value='true7></param>";
	var par3	= "<param name='allowscriptaccess' value='always'></param>";
	var embed	= "<embed src='" + url + "' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='" + width + "' height='" + height + "'></embed>";
	var end 	= "</object>";
	
	return (obj + par1 + par2 + par3 + embed + end)
}


function SAMA_CreateAMarker (href, target, content)
{
	var startLine		= "<a href = " + href + " target = " + target  + ">"
	var endLine 		= "</a>"

	return (startLine + content + endLine)
}

function SAMA_CreateFontMarker (color, size, content, italic, bold, align)
{
	//<font color="#999999" size="2">
	var startLine		= "<font color = '" + color + "' size = '" + size + "' align = '" + align + "'>";
	var endLine 		= "</font>"

	if (italic == 1)
	{
		content	= "<i>" + content + "</i>"
	}
	
	if (bold == 1)
	{
		content	= "<b>" + content + "</b>"
	}
	
	return (startLine + content + endLine)
}

function SAMA_CreateImageMarker (picture, border, usemap, cmd, width, height)
{
	var imageMarker		= "<img src=" + picture 
	imageMarker		= imageMarker + " border= " + border
	imageMarker		= imageMarker + " " + cmd

	if (width != "")	imageMarker = imageMarker + " width='" + width + "'  ";
	if (height != "")	imageMarker = imageMarker + " height='" + height + "'  ";

	imageMarker		= imageMarker +  " >"
	return (imageMarker)
}

function SAMA_CreateInputMarker (type, name, value, id, code)
{
		//<input type="text" name="firstname">
	var start	= "<input "
	var type	= "type = \"" + 	type + "\""
	var name	= "name = \"" + 	name + "\""
	var value	= "value = \"" +	value + "\""
	var id		= "id = \"" + 		id + "\""
	var end		= ">"

	return(start + type + name + value + id + end)
}

function SAMA_CreateDivMarker(align, content)
{
	var start	= "<div "
	var align	= "align=\"" + align + "\">"
	var end		= "</div>"
	return (start + align + content + end)
}
function SAMA_CreateLegendMarkout (fontColor, sizeFont, stringFont)
{
	var legendStart	= "<legend>"
	var font 	= "<font color =\"" + fontColor + "\"size = \"" + sizeFont + "\"<b><i>" + stringFont + "</i></b></font>"
	var legendEnd	= "</legend>"
	
	return (legendStart + font + legendEnd	)
}

function SAMA_CreateFieldsetMarkout (content)
{
	var start	= "<fieldset>"
	var end		= "</fieldset>"
	
	return (start + content + end)
}

function SAMA_SourceJsfile (fileToSource)
{
	var htmlLine	=" <script src=\"" + fileToSource + "\"></script>";
	return htmlLine
}
