
$(document).ready(function(){$('body').attr('class','');prepload();});function prepload(){var fg=getCookie('fgcolor');var bg=getCookie('bgcolor');if(fg!=''){foreground(fg,false,true);}
if(bg!=''){background(bg,false,true);}
$('#custombackground').ColorPicker({color:bg,onHide:function(colpkr){$(colpkr).fadeOut(500);return false;},onChange:function(hsb,hex,rgb){setCookie('bgcolor','#'+hex,365);$('body').css('backgroundColor','#'+hex);$('html').css('backgroundColor','#'+hex);$('div#main_bottom').css('backgroundColor','#'+hex);$('div#main_topfade').css('backgroundColor','#'+hex);$('div#orangebar').css('backgroundColor','#'+hex);$('div#toplinks').css('color',Contrast.match('#'+hex,['#000000','#ffffff'])[1]);$('div#bottom').css('color',Contrast.match('#'+hex,['#000000','#ffffff'])[1]);}});$('#customforeground').ColorPicker({color:fg,onHide:function(colpkr){$(colpkr).fadeOut(500);return false;},onChange:function(hsb,hex,rgb){setCookie('fgcolor','#'+hex,365);$('div#container').css('backgroundColor','#'+hex);$('div#main').css('color',Contrast.match('#'+hex,['#000000','#ffffff'])[1]);}});if(!fg){setTimeout('$("div#flavorbar").effect("pulsate",{ times: 1 },1000);',3000);var interval=setInterval('$("div#flavorbar").effect("pulsate",{ times: 1 },1000);',8000);}
$('div#clicker').click(function(){include_css_once('includes/colorpicker/css/colorpicker.css');clearTimeouts();clearInterval(interval);if($('div#flavors').css('display')=='none'){$('div#flavors').fadeIn(400);if(isIE())$('div#flavorbar').css('width','540px');}
else{$('div#flavors').fadeOut(400,function(){if(isIE())$('div#flavorbar').css('width','22px');$('div#flavors').css('display','none');});}});$('div#clicker').mouseover(function(){$('div#clicker').fadeOut(200,function(){$('div#clicker').fadeIn(200);});setTimeout("$('div#clicker').click();",1000);});$('div#clicker').mouseout(function(){});prettypics();equalizepics();}
function prettypics(){$('.i175').each(function(){if($(this).parent().get(0).tagName=='A'){var href=$(this).parent().attr('href');$(this).parent().click(function(){showpic(href);return false;});}else if($(this).attr('src')!=''){$(this).css('cursor','pointer');$(this).click(function(){showpic($(this).attr('src'));return false;});}});$('.i125').each(function(){if($(this).parent().get(0).tagName=='A'){var href=$(this).parent().attr('href');$(this).parent().click(function(){showpic(href);return false;});}else if($(this).attr('src')!=''){$(this).css('cursor','pointer');$(this).click(function(){showpic($(this).attr('src'));return false;});}});$('.i175').wrap('<div class="imgwrapdiv175"></div>');$('.imgwrapdiv175').prepend('<span class="i175_top"></span>');$('.imgwrapdiv175').append('<span class="i175_bottom"></span>');$('.i125').wrap('<div class="imgwrapdiv125"></div>');$('.imgwrapdiv125').prepend('<span class="i125_top"></span>');$('.imgwrapdiv125').append('<span class="i125_bottom"></span>');}
function equalizepics(){$('.imgline').each(function(){var id=$(this).attr('id');var maxh=0;$("#"+id+" .i125").each(function(){var h=$(this).height();if(h>maxh)maxh=h;});$("#"+id+" .i125").each(function(){var h=$(this).height();if(h<maxh){var buffer=((maxh-h)/2)-3;$(this).css('margin-top',buffer+'px');$(this).css('margin-bottom',buffer+'px');}});maxh=0;$("#"+id+" .i175").each(function(){var h=$(this).height();if(h>maxh)maxh=h;});$("#"+id+" .i175").each(function(){var h=$(this).height();if(h<maxh){var buffer=(maxh-h)/2;$(this).css('margin-top',buffer+'px');$(this).css('margin-bottom',buffer+'px');}});});}
function rgbhex(rgb){var color=new RGBColor(rgb);return color.toHex();}
function background(color,cookie,instant){if(color==false)color='2c4c29';color=color.replace(/#/,'');if(color.substring(1)=='#'||color.substring(3)=='%23')var string=color;else var string='#'+color;if(cookie!=false)setCookie('bgcolor',string,1);var textcolor=Contrast.match(color.replace('#',''),['#000000','#ffffff'])[1];if(!textcolor)textcolor='#000000';if(instant==true){$('body').css('background-color',string);$('html').css('background-color',string);$('div#main_bottom').css('background-color',string);$('div#main_topfade').css('background-color',string);$('div#orangebar').css('background-color',string);$('div#toplinks').css('color',textcolor);$('div#bottom').css('color',textcolor);}else{var speed=800;$('body').animate({backgroundColor:string},speed);$('html').animate({backgroundColor:string},speed);$('div#main_bottom').animate({backgroundColor:string},speed);$('div#main_topfade').animate({backgroundColor:string},speed);$('div#orangebar').animate({backgroundColor:string},speed);$('div#toplinks').animate({color:textcolor},speed);$('div#bottom').animate({color:textcolor},speed);}
$('#custombackground').ColorPickerSetColor(string);if($('div#background'))$('div#background').ColorPickerSetColor(string);}
function foreground(color,cookie,instant){if(color==false)color='2c4c29';color=color.replace(/#/,'');if(color.substring(1)=='#'||color.substring(3)=='%23')var string=color;else var string='#'+color.replace('#','');if(cookie!=false)setCookie('fgcolor',string,1);var textcolor=Contrast.match(color.replace('#',''),['#000000','#ffffff'])[1];if(!textcolor)textcolor='#000000';if(instant==true){$('div#container').css('background-color',string);$('div#main').css('color',textcolor);}
else{var speed=800;$('div#container').animate({backgroundColor:string},speed);$('div#main').animate({color:textcolor},speed);}
$('#customforeground').ColorPickerSetColor(string);if($('div#foreground'))$('div#foreground').ColorPickerSetColor(string);}
function showcustom(target){if(target=='back')$('input#target').val('back');else if(target=='fore')$('input#target').val('fore');$('#customcolor').fadeIn('slow');}
function setcustom(){var color=$('#color').val();var target=$('input#target').val();if(target=='back')background(color);else if(target=='fore')foreground(color);$('#customcolor').fadeOut('slow');}
var id='';function Rollover(e){id=setTimeout("$('#"+e+"').slideDown();",290);}
function Rollout(e){clearTimeouts();$('#'+e).slideUp(600);}
function showhide(obj){var menus=Array('graphicmenu','designmenu','develmenu','marketingmenu','copymenu','printmenu');for(var j in menus){if(menus[j]==obj){$('#'+menus[j]).slideDown(600);}
else $('#'+menus[j]).slideUp(600);}}
function showpic(img){$('div#loader').html('');$('div#loader').fadeIn(300,function(){$('div#loader').before('<img id="fullimg" style=" z-index: 9998; position: fixed; top: 40%; left: 40%; opacity: 1.0;" src="images/loader.gif" />');var newImg=document.createElement('img');newImg.onload=function(){$('img#fullimg').fadeOut(200,function(){var width=newImg.width;var height=newImg.height;var pagedims=getPageSize();var pwidth=pagedims[2];var pheight=pagedims[3];var imgLeft=(pwidth/2-(width*0.5))+'px';var imgTop=(pheight/2-(height*0.5))+'px';$('img#fullimg').css('left',imgLeft);$('img#fullimg').css('top',imgTop);$('img#fullimg').css('border','5px solid #a0a0a0');$('img#fullimg').css('background','white');$('img#fullimg').css('padding','10px');$('img#fullimg').before('<img id="closebutton" src="images/closebutton.png" style="position: fixed; z-index: 9999; margin-bottom: -15px;"/>');$('img#closebutton').css('top',(pheight/2-(height*0.5))-15+'px');$('img#closebutton').css('left',(pwidth/2+(width*0.5))+15+'px');$('img#closebutton').css('cursor','pointer');$('img#closebutton').click(closeit);document.getElementById('fullimg').src=img;$('img#fullimg').fadeIn();});}
newImg.src=img;});$('div#loader').click(closeit);function closeit(){$('img#closebutton').fadeOut(400);$('img#fullimg').fadeOut(400,function(){$('img#fullimg').remove();$('img#closebutton').remove();$('div#loader').fadeOut(800,function(){$('div#loader').html('');});});}
return false;}
function showCframe(edit_id,del){$('#loader').fadeIn();$('#loader').click(function(){$(this).fadeOut();$('#iframe').remove();});if(del==true)var attribs='?del='+edit_id;else if(edit_id!='')var attribs='?edit='+edit_id;else var attribs='';$('#loader').before("<iframe src=\"includes/addclient.php"+attribs+"\" id=\"iframe\" />");$('#iframe').css({'position':'fixed','height':'210px','width':'319px','z-index':'9999','overflow':'hidden','border':'1px solid #010101','left':'40%','top':'40%'});}
function showEframe(edit_id,del,imgid){$('#loader').fadeIn();$('#loader').click(function(){$(this).fadeOut();$('#iframe').remove();});if(del==true)var attribs='?delassoc='+edit_id;else if(edit_id!='')var attribs='?edit='+edit_id;if(imgid!='')attribs=attribs+'&img_id='+imgid;$('#loader').before("<iframe src=\"includes/addexample.php"+attribs+"\" id=\"iframe\" />");$('#iframe').css({'position':'fixed','height':'90px','width':'319px','z-index':'9999','overflow':'hidden','border':'1px solid #010101','left':'40%','top':'40%'});}
function delimg(img_id){$('#loader').fadeIn();$('#loader').click(function(){$(this).fadeOut();$('#iframe').remove();});$('#loader').before("<iframe src=\"includes/addexample.php?delimg="+img_id+"\" id=\"iframe\" />");$('#iframe').css({'position':'fixed','height':'190px','width':'319px','z-index':'9999','overflow':'auto','border':'1px solid #010101','left':'40%','top':'40%'});}
function addImgAsssoc(ex_id,img_id){var result=$.get("includes/addexample.php",{addassoc:ex_id,img_id:img_id},function(){updateEx(img_id);});}
function updateEx(img_id){$.get("includes/examples.php",{img_id:img_id},function(data){$('div#ex_'+img_id).html(data);});}
function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+
((expiredays==null)?"":";expires="+exdate.toGMTString());}
function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function isIE(){return/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent);}
function editbutton(){var form=document.getElementById('editform');var button=document.getElementById('hideshow');if(form.style.display=='none'){$('#editform').fadeIn();button.value='Hide';document.getElementById('editdata').focus();}else{$('#editform').fadeOut();button.value='Edit';}}
function include_dom(script_filename){var html_doc=document.getElementsByTagName('head').item(0);var js=document.createElement('script');js.setAttribute('language','javascript');js.setAttribute('type','text/javascript');js.setAttribute('src',script_filename);html_doc.appendChild(js);return false;}
function include_css(css_filename){var html_doc=document.getElementsByTagName('head').item(0);var js=document.createElement('link');js.setAttribute('rel','stylesheet');js.setAttribute('type','text/css');js.setAttribute('media','screen');js.setAttribute('href',css_filename);html_doc.appendChild(js);return false;}
var included_files=new Array();function include_once(script_filename){if(!in_array(script_filename,included_files)){included_files[included_files.length]=script_filename;include_dom(script_filename);}}
function include_css_once(script_filename){if(!in_array(script_filename,included_files)){included_files[included_files.length]=script_filename;include_css(script_filename);}}
function in_array(needle,haystack){for(var i=0;i<haystack.length;i++){if(haystack[i]==needle){return true;}}
return false;}
function fix_edits(){$('iframe').each(function(){var id=$(this).attr('id');var frame=frames[id];frame.document.getElementById('result').scrollTop=0;});}
(function(jQuery){jQuery.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,attr){jQuery.fx.step[attr]=function(fx){if(fx.state==0){fx.start=getColor(fx.elem,attr);fx.end=getRGB(fx.end);}
fx.elem.style[attr]="rgb("+[Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2]),255),0)].join(",")+")";}});function getRGB(color){var result;if(color&&color.constructor==Array&&color.length==3)
return color;if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
return[parseInt(result[1]),parseInt(result[2]),parseInt(result[3])];if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
return[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55];if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
return[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)];if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
return[parseInt(result[1]+result[1],16),parseInt(result[2]+result[2],16),parseInt(result[3]+result[3],16)];return colors[jQuery.trim(color).toLowerCase()];}
function getColor(elem,attr){var color;do{color=jQuery.curCSS(elem,attr);if(color!=''&&color!='transparent'||jQuery.nodeName(elem,"body"))
break;attr="backgroundColor";}while(elem=elem.parentNode);return getRGB(color);};var colors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};})(jQuery);var Contrast=function()
{var _private={min:{'brightness':125,'difference':500},brightness:function(rgb1,rgb2){var b1=((rgb1.r*299)+(rgb1.g*587)+(rgb1.b*114))/1000;var b2=((rgb2.r*299)+(rgb2.g*587)+(rgb2.b*114))/1000;return Math.abs(Math.round(b1-b2));},difference:function(rgb1,rgb2){var diff=(Math.max(rgb1.r,rgb2.r)-Math.min(rgb1.r,rgb2.r))+
(Math.max(rgb1.g,rgb2.g)-Math.min(rgb1.g,rgb2.g))+
(Math.max(rgb1.b,rgb2.b)-Math.min(rgb1.b,rgb2.b));return Math.abs(Math.round(diff));},rgb:function(hex){hex=hex.replace('#','');var rgb={r:parseInt(hex[0]+hex[1],16),g:parseInt(hex[2]+hex[3],16),b:parseInt(hex[4]+hex[5],16)};return rgb;}};var _public={test:function(hex1,hex2){var rgb1=_private.rgb(hex1);var rgb2=_private.rgb(hex2);var brightness=_private.brightness(rgb1,rgb2);var difference=_private.difference(rgb1,rgb2);return(brightness>=_private.min.brightness&&difference>=_private.min.difference?((brightness-_private.min.brightness)+(difference-_private.min.difference)):false);},match:function(hex1,hex2){var total_score,i,j;if(typeof hex1=='string'){hex1=[hex1];}
if(typeof hex2=='string'){hex2=[hex2];}
var best_match={score:0,hex1:null,hex2:null};if(hex2==null){for(i=0;i<hex1.length;i++){for(j=0;j<hex1.length;j++){total_score=_public.test(hex1[i],hex1[j]);if(total_score>best_match.score){best_match.score=total_score;best_match.hex1=hex1[i];best_match.hex2=hex1[j];}}}}
else{for(i=0;i<hex1.length;i++){for(j=0;j<hex2.length;j++){total_score=_public.test(hex1[i],hex2[j]);if(total_score>best_match.score){best_match.score=total_score;best_match.hex1=hex1[i];best_match.hex2=hex2[j];}}}}
return(best_match.score>0?[best_match.hex1,best_match.hex2]:false);}};return _public;}();timers=new Array();oldSetTimeout=window.setTimeout;window.setTimeout=function(code,interval){timers.push(oldSetTimeout(code,interval));}
function resetTimeouts(){timers=new Array();}
function clearTimeouts(){for(var i=0;i<timers.length;i++){clearTimeout(timers[i]);}
resetTimeouts();}
function RGBColor(color_string)
{this.ok=false;if(color_string.charAt(0)=='#'){color_string=color_string.substr(1,6);}
color_string=color_string.replace(/ /g,'');color_string=color_string.toLowerCase();var simple_colors={aliceblue:'f0f8ff',antiquewhite:'faebd7',aqua:'00ffff',aquamarine:'7fffd4',azure:'f0ffff',beige:'f5f5dc',bisque:'ffe4c4',black:'000000',blanchedalmond:'ffebcd',blue:'0000ff',blueviolet:'8a2be2',brown:'a52a2a',burlywood:'deb887',cadetblue:'5f9ea0',chartreuse:'7fff00',chocolate:'d2691e',coral:'ff7f50',cornflowerblue:'6495ed',cornsilk:'fff8dc',crimson:'dc143c',cyan:'00ffff',darkblue:'00008b',darkcyan:'008b8b',darkgoldenrod:'b8860b',darkgray:'a9a9a9',darkgreen:'006400',darkkhaki:'bdb76b',darkmagenta:'8b008b',darkolivegreen:'556b2f',darkorange:'ff8c00',darkorchid:'9932cc',darkred:'8b0000',darksalmon:'e9967a',darkseagreen:'8fbc8f',darkslateblue:'483d8b',darkslategray:'2f4f4f',darkturquoise:'00ced1',darkviolet:'9400d3',deeppink:'ff1493',deepskyblue:'00bfff',dimgray:'696969',dodgerblue:'1e90ff',feldspar:'d19275',firebrick:'b22222',floralwhite:'fffaf0',forestgreen:'228b22',fuchsia:'ff00ff',gainsboro:'dcdcdc',ghostwhite:'f8f8ff',gold:'ffd700',goldenrod:'daa520',gray:'808080',green:'008000',greenyellow:'adff2f',honeydew:'f0fff0',hotpink:'ff69b4',indianred:'cd5c5c',indigo:'4b0082',ivory:'fffff0',khaki:'f0e68c',lavender:'e6e6fa',lavenderblush:'fff0f5',lawngreen:'7cfc00',lemonchiffon:'fffacd',lightblue:'add8e6',lightcoral:'f08080',lightcyan:'e0ffff',lightgoldenrodyellow:'fafad2',lightgrey:'d3d3d3',lightgreen:'90ee90',lightpink:'ffb6c1',lightsalmon:'ffa07a',lightseagreen:'20b2aa',lightskyblue:'87cefa',lightslateblue:'8470ff',lightslategray:'778899',lightsteelblue:'b0c4de',lightyellow:'ffffe0',lime:'00ff00',limegreen:'32cd32',linen:'faf0e6',magenta:'ff00ff',maroon:'800000',mediumaquamarine:'66cdaa',mediumblue:'0000cd',mediumorchid:'ba55d3',mediumpurple:'9370d8',mediumseagreen:'3cb371',mediumslateblue:'7b68ee',mediumspringgreen:'00fa9a',mediumturquoise:'48d1cc',mediumvioletred:'c71585',midnightblue:'191970',mintcream:'f5fffa',mistyrose:'ffe4e1',moccasin:'ffe4b5',navajowhite:'ffdead',navy:'000080',oldlace:'fdf5e6',olive:'808000',olivedrab:'6b8e23',orange:'ffa500',orangered:'ff4500',orchid:'da70d6',palegoldenrod:'eee8aa',palegreen:'98fb98',paleturquoise:'afeeee',palevioletred:'d87093',papayawhip:'ffefd5',peachpuff:'ffdab9',peru:'cd853f',pink:'ffc0cb',plum:'dda0dd',powderblue:'b0e0e6',purple:'800080',red:'ff0000',rosybrown:'bc8f8f',royalblue:'4169e1',saddlebrown:'8b4513',salmon:'fa8072',sandybrown:'f4a460',seagreen:'2e8b57',seashell:'fff5ee',sienna:'a0522d',silver:'c0c0c0',skyblue:'87ceeb',slateblue:'6a5acd',slategray:'708090',snow:'fffafa',springgreen:'00ff7f',steelblue:'4682b4',tan:'d2b48c',teal:'008080',thistle:'d8bfd8',tomato:'ff6347',turquoise:'40e0d0',violet:'ee82ee',violetred:'d02090',wheat:'f5deb3',white:'ffffff',whitesmoke:'f5f5f5',yellow:'ffff00',yellowgreen:'9acd32'};for(var key in simple_colors){if(color_string==key){color_string=simple_colors[key];}}
var color_defs=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:['rgb(123, 234, 45)','rgb(255,234,245)'],process:function(bits){return[parseInt(bits[1]),parseInt(bits[2]),parseInt(bits[3])];}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:['#00ff00','336699'],process:function(bits){return[parseInt(bits[1],16),parseInt(bits[2],16),parseInt(bits[3],16)];}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:['#fb0','f0f'],process:function(bits){return[parseInt(bits[1]+bits[1],16),parseInt(bits[2]+bits[2],16),parseInt(bits[3]+bits[3],16)];}}];for(var i=0;i<color_defs.length;i++){var re=color_defs[i].re;var processor=color_defs[i].process;var bits=re.exec(color_string);if(bits){channels=processor(bits);this.r=channels[0];this.g=channels[1];this.b=channels[2];this.ok=true;}}
this.r=(this.r<0||isNaN(this.r))?0:((this.r>255)?255:this.r);this.g=(this.g<0||isNaN(this.g))?0:((this.g>255)?255:this.g);this.b=(this.b<0||isNaN(this.b))?0:((this.b>255)?255:this.b);this.toRGB=function(){return'rgb('+this.r+', '+this.g+', '+this.b+')';}
this.toHex=function(){var r=this.r.toString(16);var g=this.g.toString(16);var b=this.b.toString(16);if(r.length==1)r='0'+r;if(g.length==1)g='0'+g;if(b.length==1)b='0'+b;return'#'+r+g+b;}
this.getHelpXML=function(){var examples=new Array();for(var i=0;i<color_defs.length;i++){var example=color_defs[i].example;for(var j=0;j<example.length;j++){examples[examples.length]=example[j];}}
for(var sc in simple_colors){examples[examples.length]=sc;}
var xml=document.createElement('ul');xml.setAttribute('id','rgbcolor-examples');for(var i=0;i<examples.length;i++){try{var list_item=document.createElement('li');var list_color=new RGBColor(examples[i]);var example_div=document.createElement('div');example_div.style.cssText='margin: 3px; '
+'border: 1px solid black; '
+'background:'+list_color.toHex()+'; '
+'color:'+list_color.toHex();example_div.appendChild(document.createTextNode('test'));var list_item_value=document.createTextNode(' '+examples[i]+' -> '+list_color.toRGB()+' -> '+list_color.toHex());list_item.appendChild(example_div);list_item.appendChild(list_item_value);xml.appendChild(list_item);}catch(e){}}
return xml;}}
function getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=windowWidth;}else{pageWidth=xScroll;}
arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;}