
   		function showitem(id, nr, count) {
					var i;
					for(i=1; i<=count; i++) {
						hide('job_'+id+'_item'+i);
					}

				 show('job_'+id+'_item'+nr);

   		}

			function show(div) {
					if (document.getElementById) {
						var style2 = document.getElementById(div).style;
						style2.display = "block";
					}
					else if (document.all) {
						var style2 = document.all[div].style;
						style2.display = "block";
				}
					else if (document.layers) {
						var style2 = document.layers[div].style;
						style2.display = "block";
					}
			}


			function hide(div) {
					if (document.getElementById) {
						var style2 = document.getElementById(div).style;
						style2.display = "none";
					}
					else if (document.all) {
						var style2 = document.all[div].style;
						style2.display = "none";
				}
					else if (document.layers) {
						var style2 = document.layers[div].style;
						style2.display = "none";
					}
			}


			function hideMarker(id) {
					if (document.getElementById) {
						var ih = document.getElementById(id).innerHTML;
					}
					else if (document.all) {
						var ih = document.all[id].innerHTML;
				  }
					else if (document.layers) {
						var ih = document.layers[id].innerHTML;
					}

					ih = '';
			}

			function showMarker(id,marker) {
					if (document.getElementById) {
						var ih = document.getElementById(id).innerHTML;
					}
					else if (document.all) {
						var ih = document.all[id].innerHTML;
				  }
					else if (document.layers) {
						var ih = document.layers[id].innerHTML;
					}

					ih = marker;
			}
			
			function setMarkers(rel_id, set, nr, count) {
				$(document).ready(function(){ 

					var i;
					for(i=1; i<=count; i++) {
						$('span#label_marker_left_'  +rel_id+'_'+set+'_'+i).hide(); 
						$('span#label_marker_right_' +rel_id+'_'+set+'_'+i).hide(); 
					}
				
					$('span#label_marker_left_'  +rel_id+'_'+set+'_'+nr).show(); 
					$('span#label_marker_right_' +rel_id+'_'+set+'_'+nr).show(); 

				})
				
			}

				
				function hideFlash() {
					$(document).ready(function(){ 
					    //$("#flashcontent, #flashcontent2").hide();
					    //$("div[@id^='flashcontent']").hide();
					    $("div[@id^='flashcontent'] *").hide();
					})
				}
				
				function showFlash() {
					$(document).ready(function(){ 
						//$('div#flashcontent').show(); 
						//$("div[@id^='flashcontent']").show();
						$("div[@id^='flashcontent'] *").show();
					})
				}



				function displayVideo(strSrc, strAutoplay, strCache, strType, strLoop, strBgcolor, strKioskmode, strController, intWidth, intHeight){
				  document.write(genVideo(strSrc, strAutoplay, strCache, strType, strLoop, strBgcolor, strKioskmode, strController, intWidth, intHeight));
				} // displayVideo
				
				
				function genVideo(strSrc, strAutoplay, strCache, strType, strLoop, strBgcolor, strKioskmode, strController, intWidth, intHeight) {
				  var strVideo;
				  var strWidthAttribute, strHeightAttribute;
				  
				  var strClassID     = 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';
				  var strCodeBase    = 'http://www.apple.com/qtactivex/qtplugin.cab';
				  var strPluginspage = 'http://www.apple.com/quicktime/download/';
				  
				  var strLineBreak = "";
				  
				  // strWidthAttribute  = genAttribute('width' , intWidth      );
				  // strHeightAttribute = genAttribute('height', intHeight     );
				  
				  strVideo = '<'+'object ' + strLineBreak + ' classid = "' + strClassID + '" ' + strLineBreak + ' codebase = "' + strCodeBase + '" ' + strLineBreak + ' width = "' + intWidth + '" ' + strLineBreak + ' height = "' + intHeight + '" ' + strLineBreak + ' >' + strLineBreak + ' <'+'param name="src" value="' + strSrc + '" />' + strLineBreak + ' <'+'param name="autoplay" value="' + strAutoplay + '" />' + strLineBreak + ' <'+'param name="cache" value="' + strCache + '" />' + strLineBreak + ' <'+'param name="type" value="' + strType + '" />' + strLineBreak + ' <'+'param name="loop" value="' + strLoop + '" />' + strLineBreak + ' <'+'param name="bgcolor" value="' + strBgcolor + '" />' + strLineBreak + ' <'+'param name="kioskmode" value="' + strKioskmode + '" />' + strLineBreak + ' <'+'param name="controller" value="' + strController + '" />' + strLineBreak + '<'+'embed ' + strLineBreak + ' src = "' + strSrc + '" ' + strLineBreak + ' autoplay = "' + strAutoplay + '" ' + strLineBreak + ' cache = "' + strCache + '" ' + strLineBreak + ' type = "' + strType + '" ' + strLineBreak + ' loop = "' + strLoop + '" ' + strLineBreak + ' bgcolor = "' + strBgcolor + '" ' + strLineBreak + ' kioskmode = "' + strKioskmode + '" ' + strLineBreak + ' pluginspage = "' + strPluginspage + '" ' + strLineBreak + ' controller = "' + strController + '" ' + strLineBreak + ' width = "' + intWidth + '" ' + strLineBreak + ' height = "' + intHeight + '" ' + strLineBreak + ' />' + strLineBreak + '<'+'/'+'object>' + strLineBreak;
				
				  return strVideo;
				} // genVideo
				

				function resetIframes() {
						var theObjects = document.getElementsByTagName("iframe"); 
						for (var i = 0; i < theObjects.length; i++) { 
						theObjects[i].src = theObjects[i].src; 
						}
				}


